const __vite__fileDeps=["assets/lft-trial-upgrade-bottom-sheet-1jAXqAOs.js","assets/bottom-sheet-wrapper-D7zwqHzd.js","assets/pricing-page-constants-LpMWaPq8.js","assets/email-util-Cj6hLqCr.js","assets/form-validation-regex-D0UuSiU5.js","assets/use-create-organization-checkout-link-rkMaw0zI.js","assets/use-shopify-variant-CLHPVrtI.js","assets/badge-Dk35BBmN.js","assets/description-button-DMJ8bVM5.js","assets/loading-spinner-CHKWH_5J.js","assets/selection-circle-XAOFLyKX.js","assets/qr-read-to-nfc-write-page-DulJIXi0.js","assets/index-CJI2cvJH.js","assets/radio-slider-BWaDSmse.js","assets/secondary-footer-D5xfVYpM.js","assets/simple-alert-B--FauXP.js","assets/write-nfc-actions-CXnruIWo.js","assets/task-logs-page--nk9j42j.js","assets/reminder-task-item-CzCUjnhz.js","assets/manage-reminder-bottom-sheet-Bpd52xEP.js","assets/alert-message-CSXqgohN.js","assets/alert-message-body-dWQFaud4.js","assets/dropdown-select-2Ka3jfaU.js","assets/string-CQ-TTZQb.js","assets/ion-bottom-sheet-wrapper-B6S2eVcm.js","assets/outlined-input-CMfdLocf.js","assets/outlined-input-base-PfAZv6Tz.js","assets/radio-button-Cr3EydOm.js","assets/tasks-CtmPTP9Q.js","assets/use-delete-reminder-B9d0nEf8.js","assets/contact-details-page-test-ids-wcUmh1SG.js","assets/index-BRVyLNfZ.js","assets/toggle-B2IHrLs4.js","assets/with-loading-BRBQTYrp.js","assets/use-tasks-BR4sCmUU.js","assets/index.esm-Dh1JbiqW.js","assets/useInfiniteQuery-Bx2zU5x7.js","assets/contact-note-bottom-sheet-DBEEAHIi.js","assets/outlined-text-area-CgZDYT7A.js","assets/use-update-contact-note-BU9kCVdN.js","assets/contact-snippets-bottom-sheet-oztqTtd1.js","assets/safari-focus-bug-thing-B-F3ETE5.js","assets/use-create-conversation-BL3irpds.js","assets/oauth-button-UOGWs4nO.js","assets/use-create-integration-connection-CHctVxPL.js","assets/use-update-integration-connection-tt0Uu1b0.js","assets/use-oauth-G8Cnujvf.js","assets/new-email-body-DKCfUOX2.js","assets/use-generate-ai-follow-ups-wdggNW_g.js","assets/dashboard-tooltip-UymzBou1.js","assets/use-snippets-PhNosJW8.js","assets/linq-one-subscription-modal-D0fy_1ch.js","assets/gradient-border-BPiFexmR.js","assets/use-subscription-upsell-D73vZm7N.js","assets/use-update-stripe-subscription-C6F2Z65o.js","assets/user-create-embedded-stripe-checkout-wBOBGj8m.js","assets/use-phone-numbers-5ghrx_Tq.js","assets/quick-contact-B1Eh9fSZ.js","assets/quick-contact-button-DiGy8axB.js","assets/card-view-test-ids-BFOhdX9c.js","assets/tile-keys-0fMFQHiV.js","assets/checkbox-DDSoUmVJ.js","assets/default-photos-JqKmSLSW.js","assets/contact-card-preview-DihHlep5.css","assets/book-meeting-details-page-CBQAzi_D.js","assets/use-book-meeting-state-CSf7f_zF.js","assets/use-create-user-D5OBPJBX.js","assets/signup-flow-NObIn2i-.js","assets/card-preview-hero-CAL3SYyY.js","assets/card-preview-CMfWqJBv.js","assets/phone-number-util-ibFE2qSB.js","assets/welcome-page-layout-CTsNczaL.js","assets/compact-outlined-input-v2-Cd_SpHNO.js","assets/colors-_K4Pyhmy.js","assets/book-meeting-confirm-details-page-CtkdpkPm.js","assets/book-meeting-calendar-page-DSFsUVbL.js","assets/add-team-members-page-DGj2hRIf.js","assets/invite-table-BW3q6lVf.js","assets/alert-message-title-CJGbKLkv.js","assets/admin-onboarding-content-block-form-BVmylYwZ.js","assets/table-scroll-indicator-t0zzj6hC.js","assets/use-create-team-CvJftJOu.js","assets/image-file-resize-service-9tYtVT8O.js","assets/image-file-resize-service-CR1wIxpL.css","assets/use-upload-photo-to-cloudinary-mutation-C2L47KtI.js","assets/files-util-BmhVSCNx.js","assets/non-stripe-seat-count-change-DQWgza5l.js","assets/page-header-D26l76l4.js","assets/batch-action-panel-B230LwbI.js","assets/batch-actions-contacts-CDi6G8CW.js","assets/integration-avatar-C3Wg453K.js","assets/tooltip-deprecated-IL87S0_y.js","assets/tooltip-deprecated-BNumoci5.css","assets/use-integration-connections-DWLr6Qco.js","assets/input-CHrv27cp.js","assets/input-COd6ODha.css","assets/use-show-bottom-sheet-Cosj_swb.js","assets/contacts-page-test-ids-BpcUzAjc.js","assets/use-create-hubspot-contact-CInaxfqJ.js","assets/linq-for-teams-EIIoUd1D.js","assets/index-xx1O2wpN.js","assets/index-ClmE7qKZ.js","assets/use-feature-toggles-Bey9a0Z4.js","assets/entitlement-keys-PN_4rIk3.js","assets/use-check-entitlement-CCdao4xY.js","assets/use-entitlements-CHyF_1bc.js","assets/use-save-progress-BgC3Qj6t.js","assets/use-organization-teams-D-B6ROgV.js","assets/use-organization-tile-group-BPRr50lA.js","assets/use-page-templates-B3oh203Y.js","assets/book-meeting-page-wMUk0Fl8.js","assets/use-request-auth-code-0wfAyg6z.js","assets/call-page-N-h6edhU.js","assets/use-call-0zu-GFv1.js","assets/howler-BgVYyl4o.js","assets/date-util-JT2WPKdh.js","assets/index-CmW31z51.js","assets/index-CjtYJ2Iq.js","assets/avatar-CWYINdKM.js","assets/conversations-header-zD53ORF1.js","assets/keypad-sheet-D-AQkoGe.js","assets/index-B9mtG4Fi.js","assets/keypad-numbers-BhRumyCI.js","assets/use-create-slim-user-contact-yxEn-JpN.js","assets/use-make-call-DN7FSrXD.js","assets/use-twilio-voice-client-Dw6FwmFN.js","assets/events-CXH2uRM3.js","assets/select-recipient--bRpJdZ2.css","assets/dropdown-list-button-CWcHgZm3.js","assets/useWindowSize-B9LUlhYy.js","assets/linq-phone-logo-Dab1KmK_.js","assets/conversation-page-DKGun6ug.js","assets/conversation-header-CEyCu3YO.js","assets/edit-user-contact-CkyTDPUb.js","assets/edit-contact-form-COAdh00I.js","assets/progressive-image-BqAlkTw5.js","assets/edit-form-field-DihBBBVY.js","assets/formable_types-DZj-Klw_.js","assets/form-field-C_oe9wIQ.js","assets/synced-input-bwrJdHyl.js","assets/country-flag-select-button-CwoRuPsT.js","assets/lock-button-BoO2S2m8.js","assets/adornment-button-BF-Vr_Gi.js","assets/photo-dropzone-input-nRMb_r7Q.js","assets/use-upload-photo-to-cloudinary-Dghypvib.js","assets/index-CcN9YP8i.js","assets/linking-util-CHjNVvqf.js","assets/sliding-drawer-header-o3thnD7K.js","assets/use-update-contact-DF3IyM9g.js","assets/use-user-contact-CI9GXi73.js","assets/conversation-participants-avatars-DWU-Y44U.js","assets/use-show-delete-warning-JcFMkTWL.js","assets/content-types-k-xhfmxU.js","assets/use-toast-ByHfgCiz.js","assets/system-message-DXoxRdLu.js","assets/linkify-react.module-B9Qogknf.js","assets/message-input-BGdzqoEu.js","assets/index-C3qYdVTP.js","assets/base-64-util-RnBZs8eG.js","assets/email-thread-page-7N-3bCdw.js","assets/email-thread-page-DL24FoBb.css","assets/new-email-page-DBqZMa_C.js","assets/voicemails-page-CBvV1Swe.js","assets/use-calls-BYMn-8jd.js","assets/voicemail-greeting-page-BQOqk1r8.js","assets/use-upload-file-to-cloudinary-v2-D6ndsrGX.js","assets/new-message-page-C27MZkOm.js","assets/user-contact-list-item-BFieN5pL.js","assets/handle-integration-flow-CSu6jlm3.js","assets/integration-BovuERIq.js","assets/user-list-item-CwDrOK6b.js","assets/leads-util-DEQQ7qj-.js","assets/use-debounce-Q-UvNqON.js","assets/use-user-contacts-DTQTfpBq.js","assets/team-admin-add-team-members-page-B0awMIiQ.js","assets/select-sso-connection-page-Bx6BB8VQ.js","assets/use-query-params-CzWVaQDt.js","assets/contacts-page-D-n0xzwv.js","assets/create-contact-TSywlUgc.js","assets/contact-details-CHIZdX0k.js","assets/user-contact-details-content-v2-CcxYf9lt.js","assets/index-DXHG3Avi.js","assets/view-page-BekoU-M5.js","assets/display-card-tiles-Cz20fE8x.js","assets/use-get-card-tile-content-block-info-Bwx1M-e2.js","assets/tile-type-util-D2lUBuHB.js","assets/card-view-helmet-CMJuCRTm.js","assets/Helmet-BZv7GcTK.js","assets/divider-button-DY3tXKEk.js","assets/referralCode-BJETvmVC.js","assets/profile-image-CAZrFClv.js","assets/use-card-Bv_O5zLR.js","assets/routing-util-BgIMhQ3a.js","assets/use-contact-card-tile-preview-5Al1ap9r.js","assets/use-is-file-downloadable-CYdriCUW.js","assets/tiles-actions-BCsLEz-O.js","assets/use-get-field-value-BODIUwqf.js","assets/clipboard-copy-util-DC4PRF8y.js","assets/use-tiles-for-card-BM0as3Q-.js","assets/profile-page-BuTU801E.css","assets/page-link-DDIKZCNC.js","assets/index-d7TUTuwq.js","assets/use-update-tags-B1LYDn_f.js","assets/user-contacts-details-toolbar-v2-B2TwnBne.js","assets/use-download-contact-DUeE2LfY.js","assets/app-clip-push-notification-template-_S2k33_f.js","assets/use-intercom-custom-n30rs_B8.js","assets/react-use-intercom.esm-BN6XZjpF.js","assets/use-org-user-organization-CkEM6ceM.js","assets/edit-contact-form-v2-DXjdAZOF.js","assets/photo-dropzone-input-v2-Bn8D-OAR.js","assets/use-find-existing-user-contact-72vTIeil.js","assets/recent-scanned-business-cards-BDJS_jdU.js","assets/conversations-page-27jvmerQ.js","assets/conversations-tabs-Dwp62bS9.js","assets/load-more-DFiThQwF.js","assets/reactivate-pro-plus-modal-DOGtFdQR.js","assets/recent-scanned-contacts-page-D-TNd5Cw.js","assets/onboarding-lite-page-DUGsL8eH.js","assets/onboarding-page-spacer-D4c-DCnJ.js","assets/privacy-policy-info-Dv6sJEWR.js","assets/progress-bar-CJRySP-P.js","assets/scan-business-card-page-DVHSchog.js","assets/native-camera-DbLkJq8y.css","assets/scan-qr-code-page-B6woY_Ke.js","assets/user-contact-detail-page-Dh4oBp3j.js","assets/select-card-modal-CPZA9BNW.js","assets/select-card-modal-test-ids-DfXX8Kv9.js","assets/user-contact-edit-page-CrTlUos-.js","assets/user-contact-notes-page-BlEiod4F.js","assets/tasks-page-Cj6Deu5k.js","assets/product-activation-video-modal-CUbdKt6I.js","assets/settings-tab-BFLGMVip.js","assets/index-BbCh-wgu.js","assets/use-ambassador-CQSHK3a9.js","assets/use-activate-product-Dv6JZVLw.js","assets/product-activation-bottom-sheet-CbFuwkZn.js","assets/settings-tab-B8PgFpqh.css","assets/auth-page-BSXw3Fz0.js","assets/onboarding-page-layout-Br9D_NwP.js","assets/use-light-status-bar-oWJJHTDx.js","assets/welcome-page-CHhHtleA.js","assets/index.esm-BV1l4BwP.js","assets/signup-page-C0Q562FG.js","assets/signup-form-BYvOkZUC.js","assets/use-update-user-DTFa7leb.js","assets/signup-photo-page-BQe7F2bn.js","assets/signup-page-test-ids-ByNmrC3t.js","assets/signup-about-page-BPn2VdAF.js","assets/toConsumableArray-Bfg5HH_D.js","assets/use-update-organization-Bs7W6HVj.js","assets/signup-organization-setup-page-B7XvaXeC.js","assets/Google-DYc0JyYO.js","assets/color-picker-input-TNzXQ1Mp.css","assets/signup-invite-team-members-page-BfbkCd5t.js","assets/use-invite-members-BdYJXWYn.js","assets/linq-pay-settings-page-y12ikb2w.js","assets/react-number-format.es-DzYp7lr0.js","assets/currency-util-D8-MUwy_.js","assets/linq-pay-settings-page-DDKsVFHr.css","assets/edit-page-page-C9aLYPST.js","assets/edit-card-form-BhcuO4ZF.js","assets/edit-page-template-CtAWiUnx.js","assets/product-callouts-actions-cggYz7-S.js","assets/ambassador-signup-bottom-sheet-CyqA85Ey.js","assets/edit-tile-modal-9wT2G26v.js","assets/index-WmBTOhYk.js","assets/colors-util-BE5aDS3X.js","assets/chat-util-C5BHJGhW.js","assets/use-query-with-key-pX9mdPJL.js","assets/use-tile-group-DlU91JjV.js","assets/edit-tile-modal-Ll8oyKlQ.css","assets/content-block-tiles-D6ImizLv.js","assets/reorder-modal-EM6lNYWi.js","assets/text-editor-D5Iakbnu.js","assets/text-editor-CtMcXDyn.css","assets/wrap-variable-in-span-tag-CwPkJJta.js","assets/sliding-drawer-wrapper-Dz8_HNeu.js","assets/use-contact-exchange-setting-BrHFmZKy.js","assets/use-page-template-DcpvOk7m.js","assets/use-update-contact-exchange-settings-D4E1T6Zl.js","assets/mobile-preview-BM6TeSYq.js","assets/contact-exchange-form-sheet-CZu-FPru.js","assets/use-is-product-url-DV0OL1jB.js","assets/contact-exchange-form-sheet-DhjEXXrC.css","assets/async-content-B25afjMf.js","assets/card-list-item-Dom-qTu7.js","assets/use-search-cards-MNc1tW19.js","assets/advanced-settings-button-D61GVMC_.js","assets/useDebounce-CknfVlGw.js","assets/cover-profile-logo-preview-D6Vsvs1q.js","assets/use-team-user-team-C4DAhoGN.js","assets/use-update-card-Cj0_Pehf.js","assets/edit-contact-exchange-setting-form-page-CKHMhF8n.js","assets/use-update-contact-exchange-form-AxQkcrv9.js","assets/dropdown-list-BjG-LDp9.js","assets/compact-outlined-input-v3-DdbDfUTI.js","assets/toggleV2-CXer66vE.js","assets/edit-app-clip-experiences-page-CE_jMvEZ.js","assets/app-clip-settings-form-D_SSEge_.js","assets/alert-message-notification-88q8Lwxg.js","assets/create-contact-page-kJdkBByL.js","assets/edit-contact-page-C519Z_JP.js","assets/use-hr-settings-Dv61KwRn.js","assets/account-edit-page-AhUfrKK8.js","assets/timezone-list-CSVvebKk.js","assets/clean-form-values-B8titHAY.js","assets/card-page-D_-AcA22.js","assets/card-response-DYeRHjqK.js","assets/product-activation-modal-CdUv0I4L.js","assets/nowrap-text-B40vUNqM.js","assets/select-card-bottom-sheet-DwcEl63u.js","assets/linq-leads-actions-Dg2yOvL7.js","assets/use-reassign-product-Drxsou8J.js","assets/create-linq-lead-page-D_c7kxGr.js","assets/analytics-page-xiHQZ5Rk.js","assets/index-e_5NoD-Z.js","assets/analytics-section-card-mzAJlM-z.js","assets/analytics-section-card-t3SEqvYQ.js","assets/analytics-section-card-BBsMldim.css","assets/integrations-page-CMOeFDKL.js","assets/integration-selector-Bqylv06N.js","assets/use-create-custom-request-DNnjtWfZ.js","assets/integration-selector-BWi99mt4.css","assets/workos-auth-callback-page-DixCFoeP.js","assets/create-user-from-simple-page-CM7vI9lt.js","assets/nfc-setup-page-Br0E-EbL.js","assets/activate-product-button-Cj872H3U.js","assets/manage-product-bottom-sheet-CQ51aURY.js","assets/product-details-Bd8tmceZ.js","assets/use-search-cards-iA-090I5.js","assets/edit-app-clip-experiences-drawer-BSBci6-0.js","assets/use-infinite-scroll-CIhsMYM0.js","assets/nfc-setup-page-AgBJgQhQ.css","assets/stripe-success-page-COx6qNot.js","assets/confetti-stuff-BJi45C-q.js","assets/confetti-stuff-CDoq8-dN.css","assets/temp-write-nfc-page-DJt4O9QF.js","assets/admin-lft-purchase-builder-page-kwG_-CsE.js","assets/admin-user-management-page-CdDZCpuD.js","assets/product-education-page-Dmo3TduM.js","assets/product-education-page-uv6sptbA.css","assets/product-education-menu-page-uOGqCblc.js","assets/edit-directory-page-DV8Hnbij.js","assets/use-group-search-DDHpw2xU.js","assets/qr-code-download-page-Cm-MRGgy.js","assets/index-CfhjI7p8.js","assets/organization-detail-page-BFW7pQmd.js","assets/group-search-modal-C8VE28E1.js","assets/org-card-preview-NI9DYKCC.js","assets/team-settings-page-CJ1ZQXsJ.js","assets/use-update-team-CGHftv7_.js","assets/color-picker-input-outline-Bnwm-wyU.js","assets/color-picker-input-outline-DQSVjoAe.css","assets/use-team-YsvyK_RF.js","assets/team-workflows-page-Cm_o8IxR.js","assets/workflow-page-BA3xqrXw.js","assets/workflow-filter-types-c41Hjsa1.js","assets/linq-team-detail-page-CGzTS9K7.js","assets/use-create-user-team-BkZY4gnn.js","assets/linq-team-manage-page-BPt4HOeX.js","assets/linq-team-manage-invite-modal-BlgeOYmS.js","assets/use-member-invite-emails-kCMF2EEu.js","assets/use-user-teams--NlzasWx.js","assets/linq-team-directories-page-vEHIN9UB.js","assets/use-duplicate-group-CVGogCYC.js","assets/use-delete-group-BaOySpXR.js","assets/organization-manage-page-Bt_x_kHS.js","assets/organization-manage-invite-modal-DpeIuwzS.js","assets/use-update-workos-user-d0i2-hvx.js","assets/use-organization-user-organizations-DsBhOm7v.js","assets/organization-settings-page-BlvmIytZ.js","assets/organization-settings-form-b2glYoEq.js","assets/organization-settings-CXdKMnHS.js","assets/hr-settings-page-_3th06Nu.js","assets/use-update-hr-settings-D4JPUjHX.js","assets/use-resync-workos-directories-D-iQOBvf.js","assets/sso-settings-page-zT4awHLG.js","assets/organization-content-blocks-page-CTAYLuOn.js","assets/use-create-tile-group-CJ0Exj6k.js","assets/use-duplicate-tile-for-team-DirzEqJT.js","assets/use-update-tile-group-DSEnoR7G.js","assets/organization-page-templates-page-Cvxv76So.js","assets/use-duplicate-page-template-BZMYCwUJ.js","assets/use-create-page-template-B3ZTUsLI.js","assets/organization-edit-integration-page-CrSAKYfH.js","assets/use-save-integration-connection-teams-6yUHld8B.js","assets/organization-manage-products-page-imNF_7Zw.js","assets/manage-products-B-ICC94v.js","assets/team-manage-products-page-B1fs7Y9u.js","assets/organization-directories-page-BMnO7aKM.js","assets/linq-teams-accept-invite-page-6uIQ3hGT.js","assets/linq-teams-member-details-9FzOZmCK.js","assets/linq-teams-member-details-Cvt9fQR1.js","assets/linq-teams-member-details-D3Qb-Tdc.css","assets/use-user-card-permission-for-user-and-card-BUXwkfpa.js","assets/organization-member-details-BijaAEXa.js","assets/use-delete-user-organization-CkbkzoXr.js","assets/linq-teams-purchase-page-DFi2pd8G.js","assets/linq-teams-purchase-page-Dp0KZ5vU.css","assets/linq-teams-stripe-success-page-yCyJ4Fck.js","assets/mobile-linq-teams-stripe-success-page-D3-gkTVD.js","assets/linq-team-billing-page-DKdpPSk9.js","assets/use-organization-subscription-invoices-DCXqaX6s.js","assets/linq-team-analytics-overview-page-C1_v_CTv.js","assets/time-period-keys-BgWE7ui3.js","assets/linq-team-invites-list-page-q5wjdkT1.js","assets/invites-list-BxuUnTUA.js","assets/organization-invites-list-page-M7SPphsl.js","assets/edit-content-block-page-BErYNvo2.js","assets/linq-team-content-blocks-page-CcDD-MlY.js","assets/linq-team-manage-content-block-pages-page-Bhn9dXe8.js","assets/content-block-page-alert-message-B2ADM_ct.js","assets/linq-org-manage-content-block-pages-page-CqJdP4vS.js","assets/user-leads-page-scMmCt5X.js","assets/linq-team-leads-page-Cb9FoXw0.js","assets/tile-analytics-page-4JHnFi93.js","assets/edit-card-content-block-overrides-page-BaP_toBa.js","assets/virtual-backgrounds-page-BPlQpabE.js","assets/virtual_background_access-b_G1vBnq.js","assets/virtual-backgrounds-setting-description-DapFo3hV.js","assets/virtual-backgrounds-message-BnsLazAz.js","assets/asset-library-ZWF0NcaD.js","assets/use-update-organization-settings-B-sKXwW6.js","assets/org-assets-library-page-DTlQdAUX.js","assets/org-prompts-page-BY-r1c07.js","assets/use-send-sms-prompt-test-Cougzw86.js","assets/prompts-page-BDSo2Mxw.js","assets/use-send-sms-prompt-test-DVSyd0B5.css","assets/prompt-page-header-C9sQnJl8.js","assets/router-prompt-DtXqk373.js","assets/send-test-form-COd0_DXC.js","assets/find-unvalidated-variables-and-count-characters-BEMI6AZR.js","assets/use-save-org-prompt-sms-template-CFERjjqi.js","assets/share-page-By9BPNFQ.js","assets/share-page-NsJ8hF_1.js","assets/share-page-nL47-teV.css","assets/delete-or-deactivate-account-page-CmJBhz6b.js","assets/notification-settings-page-e4RZ_x2k.js","assets/email-unsubscribe-confirmation-page-D-FUzZOB.js","assets/page-not-found-page-C1UcH6As.js","assets/prompts-page-DSjT_npH.js","assets/use-cards-wE7BuPrg.js","assets/snippets-page-BpTyBx4c.js","assets/snippets-section-lz9-Cja3.js","assets/org-snippet-details-page-BYcvoEwB.js","assets/use-snippet-variables-BvBpliee.js","assets/snippet-details-page-CdP8bHO7.js","assets/org-snippets-page-CSxBEyBe.js","assets/use-organization-snippets-BadPHwec.js","assets/mobile-dashboard-page-B1jleJgL.js","assets/compact-outlined-input-BcRpsore.js","assets/update-swiper-CYTb6L3h.js","assets/graphics-TsDh4Mqe.js","assets/mobile-dashboard-page-sq0cZ1K8.css","assets/domain-contact-page-C2QBGAAT.js","assets/organization-edit-page-template-page-q_BuUUno.js","assets/organization-page-templates-assigner-page-wvWDdYcB.js","assets/page-template-assigner-DRF3hoTf.js","assets/assigner-section-CL7LSg2V.js","assets/card-summary-without-actions-BnpsTJ3A.js","assets/pricing-page-Bqn-tksY.js","assets/pricing-page-org-size-section-B5mGLsRn.js","assets/alert-message-new-CPxEtkC5.js","assets/number-input-Cde6KtzB.js","assets/crossed-out-number-BSiuJH7b.js","assets/create-profile-page-BmBWvqSU.js","assets/about-team-page-C-4er5uS.js","assets/use-update-org-internal-metadatum-BoEV5uHz.js","assets/about-team-page-WL94vs5K.css","assets/manage-linq-one-subscription-page-w7bkpWBK.js","assets/use-user-subscription-invoices-zcXbAAUG.js","assets/admin-pages-CPYKWIQu.js","assets/sortable-table-CWCuHeiL.js","assets/table-filter-popover-sorting-header-CRNUPK9j.js","assets/table-row-20EP1QP4.js","assets/stripe-embedded-checkout-Blyatum8.js","assets/entitlement-interest-page-Cg2UoWNc.js","assets/use-update-entitlement-interest-DD_ucVm8.js","assets/hubspot-dialer-page-Boiuyq5t.js","assets/dialer-page-CeonwKkO.js","assets/salesforce-entry-page-d1_1_j8O.js","assets/message-B3lJrdqV.js","assets/messages-DHCamae1.js","assets/conversations-setup-page-C4mEUPbe.js","assets/conversations-settings-page-BIrzdfHg.js","assets/phone-automations-page-Rvltt4d2.js","assets/workflows-DXmXFNhI.js","assets/edit-automation-page-CnE3hK9w.js","assets/chunk.util-DLr0kae7.js","assets/tabs-BYhtKJUu.js","assets/import-native-contacts-page-CimL66pW.js","assets/search-bar-DyiVZLhK.js","assets/search-bar-Cp7lH-ri.css","assets/user-contact-list-tB9AhyAd.js","assets/take-control-DqwLaspZ.js","assets/create-new-content-block-DVJoqiTT.js","assets/edit-content-block-DaZ4gPOn.js","assets/inspiration-drawer-xNm4nqFu.js","assets/empty-search-CSpVPZEE.js","assets/use-search-inspiration-DChA9_B-.js","assets/head-scripts-C7rsMMga.js","assets/re-engage-linq-one-subscription-modal-D4-CulTW.js","assets/call-in-progress-fab-DVEDljD5.js","assets/call-duration-DuLYPQAj.js","assets/call-in-progress-sheet-DiW9mOyy.js","assets/admin-app-view-Bw7y0EPa.js","assets/intercom-provider-DBX6lrJm.js","assets/voip-controller-Bi9xnmo8.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
function _mergeNamespaces(o,s){for(var a=0;a<s.length;a++){const $=s[a];if(typeof $!="string"&&!Array.isArray($)){for(const j in $)if(j!=="default"&&!(j in o)){const _e=Object.getOwnPropertyDescriptor($,j);_e&&Object.defineProperty(o,j,_e.get?_e:{enumerable:!0,get:()=>$[j]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const j of document.querySelectorAll('link[rel="modulepreload"]'))$(j);new MutationObserver(j=>{for(const _e of j)if(_e.type==="childList")for(const et of _e.addedNodes)et.tagName==="LINK"&&et.rel==="modulepreload"&&$(et)}).observe(document,{childList:!0,subtree:!0});function a(j){const _e={};return j.integrity&&(_e.integrity=j.integrity),j.referrerPolicy&&(_e.referrerPolicy=j.referrerPolicy),j.crossOrigin==="use-credentials"?_e.credentials="include":j.crossOrigin==="anonymous"?_e.credentials="omit":_e.credentials="same-origin",_e}function $(j){if(j.ep)return;j.ep=!0;const _e=a(j);fetch(j.href,_e)}})();var commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}function getAugmentedNamespace(o){if(o.__esModule)return o;var s=o.default;if(typeof s=="function"){var a=function $(){return this instanceof $?Reflect.construct(s,arguments,this.constructor):s.apply(this,arguments)};a.prototype=s.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(o).forEach(function($){var j=Object.getOwnPropertyDescriptor(o,$);Object.defineProperty(a,$,j.get?j:{enumerable:!0,get:function(){return o[$]}})}),a}var buffer={},base64Js={};base64Js.byteLength=byteLength;base64Js.toByteArray=toByteArray;base64Js.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i=0,len=code.length;i<len;++i)lookup[i]=code[i],revLookup[code.charCodeAt(i)]=i;revLookup[45]=62;revLookup[95]=63;function getLens(o){var s=o.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=o.indexOf("=");a===-1&&(a=s);var $=a===s?0:4-a%4;return[a,$]}function byteLength(o){var s=getLens(o),a=s[0],$=s[1];return(a+$)*3/4-$}function _byteLength(o,s,a){return(s+a)*3/4-a}function toByteArray(o){var s,a=getLens(o),$=a[0],j=a[1],_e=new Arr(_byteLength(o,$,j)),et=0,tt=j>0?$-4:$,nt;for(nt=0;nt<tt;nt+=4)s=revLookup[o.charCodeAt(nt)]<<18|revLookup[o.charCodeAt(nt+1)]<<12|revLookup[o.charCodeAt(nt+2)]<<6|revLookup[o.charCodeAt(nt+3)],_e[et++]=s>>16&255,_e[et++]=s>>8&255,_e[et++]=s&255;return j===2&&(s=revLookup[o.charCodeAt(nt)]<<2|revLookup[o.charCodeAt(nt+1)]>>4,_e[et++]=s&255),j===1&&(s=revLookup[o.charCodeAt(nt)]<<10|revLookup[o.charCodeAt(nt+1)]<<4|revLookup[o.charCodeAt(nt+2)]>>2,_e[et++]=s>>8&255,_e[et++]=s&255),_e}function tripletToBase64(o){return lookup[o>>18&63]+lookup[o>>12&63]+lookup[o>>6&63]+lookup[o&63]}function encodeChunk(o,s,a){for(var $,j=[],_e=s;_e<a;_e+=3)$=(o[_e]<<16&16711680)+(o[_e+1]<<8&65280)+(o[_e+2]&255),j.push(tripletToBase64($));return j.join("")}function fromByteArray(o){for(var s,a=o.length,$=a%3,j=[],_e=16383,et=0,tt=a-$;et<tt;et+=_e)j.push(encodeChunk(o,et,et+_e>tt?tt:et+_e));return $===1?(s=o[a-1],j.push(lookup[s>>2]+lookup[s<<4&63]+"==")):$===2&&(s=(o[a-2]<<8)+o[a-1],j.push(lookup[s>>10]+lookup[s>>4&63]+lookup[s<<2&63]+"=")),j.join("")}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ieee754.read=function(o,s,a,$,j){var _e,et,tt=j*8-$-1,nt=(1<<tt)-1,it=nt>>1,rt=-7,st=a?j-1:0,ot=a?-1:1,at=o[s+st];for(st+=ot,_e=at&(1<<-rt)-1,at>>=-rt,rt+=tt;rt>0;_e=_e*256+o[s+st],st+=ot,rt-=8);for(et=_e&(1<<-rt)-1,_e>>=-rt,rt+=$;rt>0;et=et*256+o[s+st],st+=ot,rt-=8);if(_e===0)_e=1-it;else{if(_e===nt)return et?NaN:(at?-1:1)*(1/0);et=et+Math.pow(2,$),_e=_e-it}return(at?-1:1)*et*Math.pow(2,_e-$)};ieee754.write=function(o,s,a,$,j,_e){var et,tt,nt,it=_e*8-j-1,rt=(1<<it)-1,st=rt>>1,ot=j===23?Math.pow(2,-24)-Math.pow(2,-77):0,at=$?0:_e-1,lt=$?1:-1,ct=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(tt=isNaN(s)?1:0,et=rt):(et=Math.floor(Math.log(s)/Math.LN2),s*(nt=Math.pow(2,-et))<1&&(et--,nt*=2),et+st>=1?s+=ot/nt:s+=ot*Math.pow(2,1-st),s*nt>=2&&(et++,nt/=2),et+st>=rt?(tt=0,et=rt):et+st>=1?(tt=(s*nt-1)*Math.pow(2,j),et=et+st):(tt=s*Math.pow(2,st-1)*Math.pow(2,j),et=0));j>=8;o[a+at]=tt&255,at+=lt,tt/=256,j-=8);for(et=et<<j|tt,it+=j;it>0;o[a+at]=et&255,at+=lt,et/=256,it-=8);o[a+at-lt]|=ct*128};/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */(function(o){const s=base64Js,a=ieee754,$=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;o.Buffer=tt,o.SlowBuffer=ut,o.INSPECT_MAX_BYTES=50;const j=2147483647;o.kMaxLength=j,tt.TYPED_ARRAY_SUPPORT=_e(),!tt.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function _e(){try{const Mt=new Uint8Array(1),_t={foo:function(){return 42}};return Object.setPrototypeOf(_t,Uint8Array.prototype),Object.setPrototypeOf(Mt,_t),Mt.foo()===42}catch{return!1}}Object.defineProperty(tt.prototype,"parent",{enumerable:!0,get:function(){if(tt.isBuffer(this))return this.buffer}}),Object.defineProperty(tt.prototype,"offset",{enumerable:!0,get:function(){if(tt.isBuffer(this))return this.byteOffset}});function et(Mt){if(Mt>j)throw new RangeError('The value "'+Mt+'" is invalid for option "size"');const _t=new Uint8Array(Mt);return Object.setPrototypeOf(_t,tt.prototype),_t}function tt(Mt,_t,kt){if(typeof Mt=="number"){if(typeof _t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return st(Mt)}return nt(Mt,_t,kt)}tt.poolSize=8192;function nt(Mt,_t,kt){if(typeof Mt=="string")return ot(Mt,_t);if(ArrayBuffer.isView(Mt))return lt(Mt);if(Mt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Mt);if(jn(Mt,ArrayBuffer)||Mt&&jn(Mt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(jn(Mt,SharedArrayBuffer)||Mt&&jn(Mt.buffer,SharedArrayBuffer)))return ct(Mt,_t,kt);if(typeof Mt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Vt=Mt.valueOf&&Mt.valueOf();if(Vt!=null&&Vt!==Mt)return tt.from(Vt,_t,kt);const qt=ht(Mt);if(qt)return qt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Mt[Symbol.toPrimitive]=="function")return tt.from(Mt[Symbol.toPrimitive]("string"),_t,kt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Mt)}tt.from=function(Mt,_t,kt){return nt(Mt,_t,kt)},Object.setPrototypeOf(tt.prototype,Uint8Array.prototype),Object.setPrototypeOf(tt,Uint8Array);function it(Mt){if(typeof Mt!="number")throw new TypeError('"size" argument must be of type number');if(Mt<0)throw new RangeError('The value "'+Mt+'" is invalid for option "size"')}function rt(Mt,_t,kt){return it(Mt),Mt<=0?et(Mt):_t!==void 0?typeof kt=="string"?et(Mt).fill(_t,kt):et(Mt).fill(_t):et(Mt)}tt.alloc=function(Mt,_t,kt){return rt(Mt,_t,kt)};function st(Mt){return it(Mt),et(Mt<0?0:dt(Mt)|0)}tt.allocUnsafe=function(Mt){return st(Mt)},tt.allocUnsafeSlow=function(Mt){return st(Mt)};function ot(Mt,_t){if((typeof _t!="string"||_t==="")&&(_t="utf8"),!tt.isEncoding(_t))throw new TypeError("Unknown encoding: "+_t);const kt=pt(Mt,_t)|0;let Vt=et(kt);const qt=Vt.write(Mt,_t);return qt!==kt&&(Vt=Vt.slice(0,qt)),Vt}function at(Mt){const _t=Mt.length<0?0:dt(Mt.length)|0,kt=et(_t);for(let Vt=0;Vt<_t;Vt+=1)kt[Vt]=Mt[Vt]&255;return kt}function lt(Mt){if(jn(Mt,Uint8Array)){const _t=new Uint8Array(Mt);return ct(_t.buffer,_t.byteOffset,_t.byteLength)}return at(Mt)}function ct(Mt,_t,kt){if(_t<0||Mt.byteLength<_t)throw new RangeError('"offset" is outside of buffer bounds');if(Mt.byteLength<_t+(kt||0))throw new RangeError('"length" is outside of buffer bounds');let Vt;return _t===void 0&&kt===void 0?Vt=new Uint8Array(Mt):kt===void 0?Vt=new Uint8Array(Mt,_t):Vt=new Uint8Array(Mt,_t,kt),Object.setPrototypeOf(Vt,tt.prototype),Vt}function ht(Mt){if(tt.isBuffer(Mt)){const _t=dt(Mt.length)|0,kt=et(_t);return kt.length===0||Mt.copy(kt,0,0,_t),kt}if(Mt.length!==void 0)return typeof Mt.length!="number"||Xn(Mt.length)?et(0):at(Mt);if(Mt.type==="Buffer"&&Array.isArray(Mt.data))return at(Mt.data)}function dt(Mt){if(Mt>=j)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+j.toString(16)+" bytes");return Mt|0}function ut(Mt){return+Mt!=Mt&&(Mt=0),tt.alloc(+Mt)}tt.isBuffer=function(_t){return _t!=null&&_t._isBuffer===!0&&_t!==tt.prototype},tt.compare=function(_t,kt){if(jn(_t,Uint8Array)&&(_t=tt.from(_t,_t.offset,_t.byteLength)),jn(kt,Uint8Array)&&(kt=tt.from(kt,kt.offset,kt.byteLength)),!tt.isBuffer(_t)||!tt.isBuffer(kt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(_t===kt)return 0;let Vt=_t.length,qt=kt.length;for(let Jt=0,ln=Math.min(Vt,qt);Jt<ln;++Jt)if(_t[Jt]!==kt[Jt]){Vt=_t[Jt],qt=kt[Jt];break}return Vt<qt?-1:qt<Vt?1:0},tt.isEncoding=function(_t){switch(String(_t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},tt.concat=function(_t,kt){if(!Array.isArray(_t))throw new TypeError('"list" argument must be an Array of Buffers');if(_t.length===0)return tt.alloc(0);let Vt;if(kt===void 0)for(kt=0,Vt=0;Vt<_t.length;++Vt)kt+=_t[Vt].length;const qt=tt.allocUnsafe(kt);let Jt=0;for(Vt=0;Vt<_t.length;++Vt){let ln=_t[Vt];if(jn(ln,Uint8Array))Jt+ln.length>qt.length?(tt.isBuffer(ln)||(ln=tt.from(ln)),ln.copy(qt,Jt)):Uint8Array.prototype.set.call(qt,ln,Jt);else if(tt.isBuffer(ln))ln.copy(qt,Jt);else throw new TypeError('"list" argument must be an Array of Buffers');Jt+=ln.length}return qt};function pt(Mt,_t){if(tt.isBuffer(Mt))return Mt.length;if(ArrayBuffer.isView(Mt)||jn(Mt,ArrayBuffer))return Mt.byteLength;if(typeof Mt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Mt);const kt=Mt.length,Vt=arguments.length>2&&arguments[2]===!0;if(!Vt&&kt===0)return 0;let qt=!1;for(;;)switch(_t){case"ascii":case"latin1":case"binary":return kt;case"utf8":case"utf-8":return Rn(Mt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kt*2;case"hex":return kt>>>1;case"base64":return qn(Mt).length;default:if(qt)return Vt?-1:Rn(Mt).length;_t=(""+_t).toLowerCase(),qt=!0}}tt.byteLength=pt;function ft(Mt,_t,kt){let Vt=!1;if((_t===void 0||_t<0)&&(_t=0),_t>this.length||((kt===void 0||kt>this.length)&&(kt=this.length),kt<=0)||(kt>>>=0,_t>>>=0,kt<=_t))return"";for(Mt||(Mt="utf8");;)switch(Mt){case"hex":return xt(this,_t,kt);case"utf8":case"utf-8":return yt(this,_t,kt);case"ascii":return Lt(this,_t,kt);case"latin1":case"binary":return vt(this,_t,kt);case"base64":return Ct(this,_t,kt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ut(this,_t,kt);default:if(Vt)throw new TypeError("Unknown encoding: "+Mt);Mt=(Mt+"").toLowerCase(),Vt=!0}}tt.prototype._isBuffer=!0;function mt(Mt,_t,kt){const Vt=Mt[_t];Mt[_t]=Mt[kt],Mt[kt]=Vt}tt.prototype.swap16=function(){const _t=this.length;if(_t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let kt=0;kt<_t;kt+=2)mt(this,kt,kt+1);return this},tt.prototype.swap32=function(){const _t=this.length;if(_t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let kt=0;kt<_t;kt+=4)mt(this,kt,kt+3),mt(this,kt+1,kt+2);return this},tt.prototype.swap64=function(){const _t=this.length;if(_t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let kt=0;kt<_t;kt+=8)mt(this,kt,kt+7),mt(this,kt+1,kt+6),mt(this,kt+2,kt+5),mt(this,kt+3,kt+4);return this},tt.prototype.toString=function(){const _t=this.length;return _t===0?"":arguments.length===0?yt(this,0,_t):ft.apply(this,arguments)},tt.prototype.toLocaleString=tt.prototype.toString,tt.prototype.equals=function(_t){if(!tt.isBuffer(_t))throw new TypeError("Argument must be a Buffer");return this===_t?!0:tt.compare(this,_t)===0},tt.prototype.inspect=function(){let _t="";const kt=o.INSPECT_MAX_BYTES;return _t=this.toString("hex",0,kt).replace(/(.{2})/g,"$1 ").trim(),this.length>kt&&(_t+=" ... "),"<Buffer "+_t+">"},$&&(tt.prototype[$]=tt.prototype.inspect),tt.prototype.compare=function(_t,kt,Vt,qt,Jt){if(jn(_t,Uint8Array)&&(_t=tt.from(_t,_t.offset,_t.byteLength)),!tt.isBuffer(_t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof _t);if(kt===void 0&&(kt=0),Vt===void 0&&(Vt=_t?_t.length:0),qt===void 0&&(qt=0),Jt===void 0&&(Jt=this.length),kt<0||Vt>_t.length||qt<0||Jt>this.length)throw new RangeError("out of range index");if(qt>=Jt&&kt>=Vt)return 0;if(qt>=Jt)return-1;if(kt>=Vt)return 1;if(kt>>>=0,Vt>>>=0,qt>>>=0,Jt>>>=0,this===_t)return 0;let ln=Jt-qt,Un=Vt-kt;const Yn=Math.min(ln,Un),ir=this.slice(qt,Jt),tr=_t.slice(kt,Vt);for(let nr=0;nr<Yn;++nr)if(ir[nr]!==tr[nr]){ln=ir[nr],Un=tr[nr];break}return ln<Un?-1:Un<ln?1:0};function gt(Mt,_t,kt,Vt,qt){if(Mt.length===0)return-1;if(typeof kt=="string"?(Vt=kt,kt=0):kt>2147483647?kt=2147483647:kt<-2147483648&&(kt=-2147483648),kt=+kt,Xn(kt)&&(kt=qt?0:Mt.length-1),kt<0&&(kt=Mt.length+kt),kt>=Mt.length){if(qt)return-1;kt=Mt.length-1}else if(kt<0)if(qt)kt=0;else return-1;if(typeof _t=="string"&&(_t=tt.from(_t,Vt)),tt.isBuffer(_t))return _t.length===0?-1:bt(Mt,_t,kt,Vt,qt);if(typeof _t=="number")return _t=_t&255,typeof Uint8Array.prototype.indexOf=="function"?qt?Uint8Array.prototype.indexOf.call(Mt,_t,kt):Uint8Array.prototype.lastIndexOf.call(Mt,_t,kt):bt(Mt,[_t],kt,Vt,qt);throw new TypeError("val must be string, number or Buffer")}function bt(Mt,_t,kt,Vt,qt){let Jt=1,ln=Mt.length,Un=_t.length;if(Vt!==void 0&&(Vt=String(Vt).toLowerCase(),Vt==="ucs2"||Vt==="ucs-2"||Vt==="utf16le"||Vt==="utf-16le")){if(Mt.length<2||_t.length<2)return-1;Jt=2,ln/=2,Un/=2,kt/=2}function Yn(tr,nr){return Jt===1?tr[nr]:tr.readUInt16BE(nr*Jt)}let ir;if(qt){let tr=-1;for(ir=kt;ir<ln;ir++)if(Yn(Mt,ir)===Yn(_t,tr===-1?0:ir-tr)){if(tr===-1&&(tr=ir),ir-tr+1===Un)return tr*Jt}else tr!==-1&&(ir-=ir-tr),tr=-1}else for(kt+Un>ln&&(kt=ln-Un),ir=kt;ir>=0;ir--){let tr=!0;for(let nr=0;nr<Un;nr++)if(Yn(Mt,ir+nr)!==Yn(_t,nr)){tr=!1;break}if(tr)return ir}return-1}tt.prototype.includes=function(_t,kt,Vt){return this.indexOf(_t,kt,Vt)!==-1},tt.prototype.indexOf=function(_t,kt,Vt){return gt(this,_t,kt,Vt,!0)},tt.prototype.lastIndexOf=function(_t,kt,Vt){return gt(this,_t,kt,Vt,!1)};function St(Mt,_t,kt,Vt){kt=Number(kt)||0;const qt=Mt.length-kt;Vt?(Vt=Number(Vt),Vt>qt&&(Vt=qt)):Vt=qt;const Jt=_t.length;Vt>Jt/2&&(Vt=Jt/2);let ln;for(ln=0;ln<Vt;++ln){const Un=parseInt(_t.substr(ln*2,2),16);if(Xn(Un))return ln;Mt[kt+ln]=Un}return ln}function Nt(Mt,_t,kt,Vt){return Zn(Rn(_t,Mt.length-kt),Mt,kt,Vt)}function Rt(Mt,_t,kt,Vt){return Zn(Gn(_t),Mt,kt,Vt)}function Ft(Mt,_t,kt,Vt){return Zn(qn(_t),Mt,kt,Vt)}function Ot(Mt,_t,kt,Vt){return Zn(Vn(_t,Mt.length-kt),Mt,kt,Vt)}tt.prototype.write=function(_t,kt,Vt,qt){if(kt===void 0)qt="utf8",Vt=this.length,kt=0;else if(Vt===void 0&&typeof kt=="string")qt=kt,Vt=this.length,kt=0;else if(isFinite(kt))kt=kt>>>0,isFinite(Vt)?(Vt=Vt>>>0,qt===void 0&&(qt="utf8")):(qt=Vt,Vt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Jt=this.length-kt;if((Vt===void 0||Vt>Jt)&&(Vt=Jt),_t.length>0&&(Vt<0||kt<0)||kt>this.length)throw new RangeError("Attempt to write outside buffer bounds");qt||(qt="utf8");let ln=!1;for(;;)switch(qt){case"hex":return St(this,_t,kt,Vt);case"utf8":case"utf-8":return Nt(this,_t,kt,Vt);case"ascii":case"latin1":case"binary":return Rt(this,_t,kt,Vt);case"base64":return Ft(this,_t,kt,Vt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ot(this,_t,kt,Vt);default:if(ln)throw new TypeError("Unknown encoding: "+qt);qt=(""+qt).toLowerCase(),ln=!0}},tt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ct(Mt,_t,kt){return _t===0&&kt===Mt.length?s.fromByteArray(Mt):s.fromByteArray(Mt.slice(_t,kt))}function yt(Mt,_t,kt){kt=Math.min(Mt.length,kt);const Vt=[];let qt=_t;for(;qt<kt;){const Jt=Mt[qt];let ln=null,Un=Jt>239?4:Jt>223?3:Jt>191?2:1;if(qt+Un<=kt){let Yn,ir,tr,nr;switch(Un){case 1:Jt<128&&(ln=Jt);break;case 2:Yn=Mt[qt+1],(Yn&192)===128&&(nr=(Jt&31)<<6|Yn&63,nr>127&&(ln=nr));break;case 3:Yn=Mt[qt+1],ir=Mt[qt+2],(Yn&192)===128&&(ir&192)===128&&(nr=(Jt&15)<<12|(Yn&63)<<6|ir&63,nr>2047&&(nr<55296||nr>57343)&&(ln=nr));break;case 4:Yn=Mt[qt+1],ir=Mt[qt+2],tr=Mt[qt+3],(Yn&192)===128&&(ir&192)===128&&(tr&192)===128&&(nr=(Jt&15)<<18|(Yn&63)<<12|(ir&63)<<6|tr&63,nr>65535&&nr<1114112&&(ln=nr))}}ln===null?(ln=65533,Un=1):ln>65535&&(ln-=65536,Vt.push(ln>>>10&1023|55296),ln=56320|ln&1023),Vt.push(ln),qt+=Un}return wt(Vt)}const Pt=4096;function wt(Mt){const _t=Mt.length;if(_t<=Pt)return String.fromCharCode.apply(String,Mt);let kt="",Vt=0;for(;Vt<_t;)kt+=String.fromCharCode.apply(String,Mt.slice(Vt,Vt+=Pt));return kt}function Lt(Mt,_t,kt){let Vt="";kt=Math.min(Mt.length,kt);for(let qt=_t;qt<kt;++qt)Vt+=String.fromCharCode(Mt[qt]&127);return Vt}function vt(Mt,_t,kt){let Vt="";kt=Math.min(Mt.length,kt);for(let qt=_t;qt<kt;++qt)Vt+=String.fromCharCode(Mt[qt]);return Vt}function xt(Mt,_t,kt){const Vt=Mt.length;(!_t||_t<0)&&(_t=0),(!kt||kt<0||kt>Vt)&&(kt=Vt);let qt="";for(let Jt=_t;Jt<kt;++Jt)qt+=dr[Mt[Jt]];return qt}function Ut(Mt,_t,kt){const Vt=Mt.slice(_t,kt);let qt="";for(let Jt=0;Jt<Vt.length-1;Jt+=2)qt+=String.fromCharCode(Vt[Jt]+Vt[Jt+1]*256);return qt}tt.prototype.slice=function(_t,kt){const Vt=this.length;_t=~~_t,kt=kt===void 0?Vt:~~kt,_t<0?(_t+=Vt,_t<0&&(_t=0)):_t>Vt&&(_t=Vt),kt<0?(kt+=Vt,kt<0&&(kt=0)):kt>Vt&&(kt=Vt),kt<_t&&(kt=_t);const qt=this.subarray(_t,kt);return Object.setPrototypeOf(qt,tt.prototype),qt};function Et(Mt,_t,kt){if(Mt%1!==0||Mt<0)throw new RangeError("offset is not uint");if(Mt+_t>kt)throw new RangeError("Trying to access beyond buffer length")}tt.prototype.readUintLE=tt.prototype.readUIntLE=function(_t,kt,Vt){_t=_t>>>0,kt=kt>>>0,Vt||Et(_t,kt,this.length);let qt=this[_t],Jt=1,ln=0;for(;++ln<kt&&(Jt*=256);)qt+=this[_t+ln]*Jt;return qt},tt.prototype.readUintBE=tt.prototype.readUIntBE=function(_t,kt,Vt){_t=_t>>>0,kt=kt>>>0,Vt||Et(_t,kt,this.length);let qt=this[_t+--kt],Jt=1;for(;kt>0&&(Jt*=256);)qt+=this[_t+--kt]*Jt;return qt},tt.prototype.readUint8=tt.prototype.readUInt8=function(_t,kt){return _t=_t>>>0,kt||Et(_t,1,this.length),this[_t]},tt.prototype.readUint16LE=tt.prototype.readUInt16LE=function(_t,kt){return _t=_t>>>0,kt||Et(_t,2,this.length),this[_t]|this[_t+1]<<8},tt.prototype.readUint16BE=tt.prototype.readUInt16BE=function(_t,kt){return _t=_t>>>0,kt||Et(_t,2,this.length),this[_t]<<8|this[_t+1]},tt.prototype.readUint32LE=tt.prototype.readUInt32LE=function(_t,kt){return _t=_t>>>0,kt||Et(_t,4,this.length),(this[_t]|this[_t+1]<<8|this[_t+2]<<16)+this[_t+3]*16777216},tt.prototype.readUint32BE=tt.prototype.readUInt32BE=function(_t,kt){return _t=_t>>>0,kt||Et(_t,4,this.length),this[_t]*16777216+(this[_t+1]<<16|this[_t+2]<<8|this[_t+3])},tt.prototype.readBigUInt64LE=mn(function(_t){_t=_t>>>0,Cn(_t,"offset");const kt=this[_t],Vt=this[_t+7];(kt===void 0||Vt===void 0)&&rn(_t,this.length-8);const qt=kt+this[++_t]*2**8+this[++_t]*2**16+this[++_t]*2**24,Jt=this[++_t]+this[++_t]*2**8+this[++_t]*2**16+Vt*2**24;return BigInt(qt)+(BigInt(Jt)<<BigInt(32))}),tt.prototype.readBigUInt64BE=mn(function(_t){_t=_t>>>0,Cn(_t,"offset");const kt=this[_t],Vt=this[_t+7];(kt===void 0||Vt===void 0)&&rn(_t,this.length-8);const qt=kt*2**24+this[++_t]*2**16+this[++_t]*2**8+this[++_t],Jt=this[++_t]*2**24+this[++_t]*2**16+this[++_t]*2**8+Vt;return(BigInt(qt)<<BigInt(32))+BigInt(Jt)}),tt.prototype.readIntLE=function(_t,kt,Vt){_t=_t>>>0,kt=kt>>>0,Vt||Et(_t,kt,this.length);let qt=this[_t],Jt=1,ln=0;for(;++ln<kt&&(Jt*=256);)qt+=this[_t+ln]*Jt;return Jt*=128,qt>=Jt&&(qt-=Math.pow(2,8*kt)),qt},tt.prototype.readIntBE=function(_t,kt,Vt){_t=_t>>>0,kt=kt>>>0,Vt||Et(_t,kt,this.length);let qt=kt,Jt=1,ln=this[_t+--qt];for(;qt>0&&(Jt*=256);)ln+=this[_t+--qt]*Jt;return Jt*=128,ln>=Jt&&(ln-=Math.pow(2,8*kt)),ln},tt.prototype.readInt8=function(_t,kt){return _t=_t>>>0,kt||Et(_t,1,this.length),this[_t]&128?(255-this[_t]+1)*-1:this[_t]},tt.prototype.readInt16LE=function(_t,kt){_t=_t>>>0,kt||Et(_t,2,this.length);const Vt=this[_t]|this[_t+1]<<8;return Vt&32768?Vt|4294901760:Vt},tt.prototype.readInt16BE=function(_t,kt){_t=_t>>>0,kt||Et(_t,2,this.length);const Vt=this[_t+1]|this[_t]<<8;return Vt&32768?Vt|4294901760:Vt},tt.prototype.readInt32LE=function(_t,kt){return _t=_t>>>0,kt||Et(_t,4,this.length),this[_t]|this[_t+1]<<8|this[_t+2]<<16|this[_t+3]<<24},tt.prototype.readInt32BE=function(_t,kt){return _t=_t>>>0,kt||Et(_t,4,this.length),this[_t]<<24|this[_t+1]<<16|this[_t+2]<<8|this[_t+3]},tt.prototype.readBigInt64LE=mn(function(_t){_t=_t>>>0,Cn(_t,"offset");const kt=this[_t],Vt=this[_t+7];(kt===void 0||Vt===void 0)&&rn(_t,this.length-8);const qt=this[_t+4]+this[_t+5]*2**8+this[_t+6]*2**16+(Vt<<24);return(BigInt(qt)<<BigInt(32))+BigInt(kt+this[++_t]*2**8+this[++_t]*2**16+this[++_t]*2**24)}),tt.prototype.readBigInt64BE=mn(function(_t){_t=_t>>>0,Cn(_t,"offset");const kt=this[_t],Vt=this[_t+7];(kt===void 0||Vt===void 0)&&rn(_t,this.length-8);const qt=(kt<<24)+this[++_t]*2**16+this[++_t]*2**8+this[++_t];return(BigInt(qt)<<BigInt(32))+BigInt(this[++_t]*2**24+this[++_t]*2**16+this[++_t]*2**8+Vt)}),tt.prototype.readFloatLE=function(_t,kt){return _t=_t>>>0,kt||Et(_t,4,this.length),a.read(this,_t,!0,23,4)},tt.prototype.readFloatBE=function(_t,kt){return _t=_t>>>0,kt||Et(_t,4,this.length),a.read(this,_t,!1,23,4)},tt.prototype.readDoubleLE=function(_t,kt){return _t=_t>>>0,kt||Et(_t,8,this.length),a.read(this,_t,!0,52,8)},tt.prototype.readDoubleBE=function(_t,kt){return _t=_t>>>0,kt||Et(_t,8,this.length),a.read(this,_t,!1,52,8)};function Dt(Mt,_t,kt,Vt,qt,Jt){if(!tt.isBuffer(Mt))throw new TypeError('"buffer" argument must be a Buffer instance');if(_t>qt||_t<Jt)throw new RangeError('"value" argument is out of bounds');if(kt+Vt>Mt.length)throw new RangeError("Index out of range")}tt.prototype.writeUintLE=tt.prototype.writeUIntLE=function(_t,kt,Vt,qt){if(_t=+_t,kt=kt>>>0,Vt=Vt>>>0,!qt){const Un=Math.pow(2,8*Vt)-1;Dt(this,_t,kt,Vt,Un,0)}let Jt=1,ln=0;for(this[kt]=_t&255;++ln<Vt&&(Jt*=256);)this[kt+ln]=_t/Jt&255;return kt+Vt},tt.prototype.writeUintBE=tt.prototype.writeUIntBE=function(_t,kt,Vt,qt){if(_t=+_t,kt=kt>>>0,Vt=Vt>>>0,!qt){const Un=Math.pow(2,8*Vt)-1;Dt(this,_t,kt,Vt,Un,0)}let Jt=Vt-1,ln=1;for(this[kt+Jt]=_t&255;--Jt>=0&&(ln*=256);)this[kt+Jt]=_t/ln&255;return kt+Vt},tt.prototype.writeUint8=tt.prototype.writeUInt8=function(_t,kt,Vt){return _t=+_t,kt=kt>>>0,Vt||Dt(this,_t,kt,1,255,0),this[kt]=_t&255,kt+1},tt.prototype.writeUint16LE=tt.prototype.writeUInt16LE=function(_t,kt,Vt){return _t=+_t,kt=kt>>>0,Vt||Dt(this,_t,kt,2,65535,0),this[kt]=_t&255,this[kt+1]=_t>>>8,kt+2},tt.prototype.writeUint16BE=tt.prototype.writeUInt16BE=function(_t,kt,Vt){return _t=+_t,kt=kt>>>0,Vt||Dt(this,_t,kt,2,65535,0),this[kt]=_t>>>8,this[kt+1]=_t&255,kt+2},tt.prototype.writeUint32LE=tt.prototype.writeUInt32LE=function(_t,kt,Vt){return _t=+_t,kt=kt>>>0,Vt||Dt(this,_t,kt,4,4294967295,0),this[kt+3]=_t>>>24,this[kt+2]=_t>>>16,this[kt+1]=_t>>>8,this[kt]=_t&255,kt+4},tt.prototype.writeUint32BE=tt.prototype.writeUInt32BE=function(_t,kt,Vt){return _t=+_t,kt=kt>>>0,Vt||Dt(this,_t,kt,4,4294967295,0),this[kt]=_t>>>24,this[kt+1]=_t>>>16,this[kt+2]=_t>>>8,this[kt+3]=_t&255,kt+4};function Bt(Mt,_t,kt,Vt,qt){On(_t,Vt,qt,Mt,kt,7);let Jt=Number(_t&BigInt(4294967295));Mt[kt++]=Jt,Jt=Jt>>8,Mt[kt++]=Jt,Jt=Jt>>8,Mt[kt++]=Jt,Jt=Jt>>8,Mt[kt++]=Jt;let ln=Number(_t>>BigInt(32)&BigInt(4294967295));return Mt[kt++]=ln,ln=ln>>8,Mt[kt++]=ln,ln=ln>>8,Mt[kt++]=ln,ln=ln>>8,Mt[kt++]=ln,kt}function Wt(Mt,_t,kt,Vt,qt){On(_t,Vt,qt,Mt,kt,7);let Jt=Number(_t&BigInt(4294967295));Mt[kt+7]=Jt,Jt=Jt>>8,Mt[kt+6]=Jt,Jt=Jt>>8,Mt[kt+5]=Jt,Jt=Jt>>8,Mt[kt+4]=Jt;let ln=Number(_t>>BigInt(32)&BigInt(4294967295));return Mt[kt+3]=ln,ln=ln>>8,Mt[kt+2]=ln,ln=ln>>8,Mt[kt+1]=ln,ln=ln>>8,Mt[kt]=ln,kt+8}tt.prototype.writeBigUInt64LE=mn(function(_t,kt=0){return Bt(this,_t,kt,BigInt(0),BigInt("0xffffffffffffffff"))}),tt.prototype.writeBigUInt64BE=mn(function(_t,kt=0){return Wt(this,_t,kt,BigInt(0),BigInt("0xffffffffffffffff"))}),tt.prototype.writeIntLE=function(_t,kt,Vt,qt){if(_t=+_t,kt=kt>>>0,!qt){const Yn=Math.pow(2,8*Vt-1);Dt(this,_t,kt,Vt,Yn-1,-Yn)}let Jt=0,ln=1,Un=0;for(this[kt]=_t&255;++Jt<Vt&&(ln*=256);)_t<0&&Un===0&&this[kt+Jt-1]!==0&&(Un=1),this[kt+Jt]=(_t/ln>>0)-Un&255;return kt+Vt},tt.prototype.writeIntBE=function(_t,kt,Vt,qt){if(_t=+_t,kt=kt>>>0,!qt){const Yn=Math.pow(2,8*Vt-1);Dt(this,_t,kt,Vt,Yn-1,-Yn)}let Jt=Vt-1,ln=1,Un=0;for(this[kt+Jt]=_t&255;--Jt>=0&&(ln*=256);)_t<0&&Un===0&&this[kt+Jt+1]!==0&&(Un=1),this[kt+Jt]=(_t/ln>>0)-Un&255;return kt+Vt},tt.prototype.writeInt8=function(_t,kt,Vt){return _t=+_t,kt=kt>>>0,Vt||Dt(this,_t,kt,1,127,-128),_t<0&&(_t=255+_t+1),this[kt]=_t&255,kt+1},tt.prototype.writeInt16LE=function(_t,kt,Vt){return _t=+_t,kt=kt>>>0,Vt||Dt(this,_t,kt,2,32767,-32768),this[kt]=_t&255,this[kt+1]=_t>>>8,kt+2},tt.prototype.writeInt16BE=function(_t,kt,Vt){return _t=+_t,kt=kt>>>0,Vt||Dt(this,_t,kt,2,32767,-32768),this[kt]=_t>>>8,this[kt+1]=_t&255,kt+2},tt.prototype.writeInt32LE=function(_t,kt,Vt){return _t=+_t,kt=kt>>>0,Vt||Dt(this,_t,kt,4,2147483647,-2147483648),this[kt]=_t&255,this[kt+1]=_t>>>8,this[kt+2]=_t>>>16,this[kt+3]=_t>>>24,kt+4},tt.prototype.writeInt32BE=function(_t,kt,Vt){return _t=+_t,kt=kt>>>0,Vt||Dt(this,_t,kt,4,2147483647,-2147483648),_t<0&&(_t=4294967295+_t+1),this[kt]=_t>>>24,this[kt+1]=_t>>>16,this[kt+2]=_t>>>8,this[kt+3]=_t&255,kt+4},tt.prototype.writeBigInt64LE=mn(function(_t,kt=0){return Bt(this,_t,kt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),tt.prototype.writeBigInt64BE=mn(function(_t,kt=0){return Wt(this,_t,kt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Zt(Mt,_t,kt,Vt,qt,Jt){if(kt+Vt>Mt.length)throw new RangeError("Index out of range");if(kt<0)throw new RangeError("Index out of range")}function sn(Mt,_t,kt,Vt,qt){return _t=+_t,kt=kt>>>0,qt||Zt(Mt,_t,kt,4),a.write(Mt,_t,kt,Vt,23,4),kt+4}tt.prototype.writeFloatLE=function(_t,kt,Vt){return sn(this,_t,kt,!0,Vt)},tt.prototype.writeFloatBE=function(_t,kt,Vt){return sn(this,_t,kt,!1,Vt)};function dn(Mt,_t,kt,Vt,qt){return _t=+_t,kt=kt>>>0,qt||Zt(Mt,_t,kt,8),a.write(Mt,_t,kt,Vt,52,8),kt+8}tt.prototype.writeDoubleLE=function(_t,kt,Vt){return dn(this,_t,kt,!0,Vt)},tt.prototype.writeDoubleBE=function(_t,kt,Vt){return dn(this,_t,kt,!1,Vt)},tt.prototype.copy=function(_t,kt,Vt,qt){if(!tt.isBuffer(_t))throw new TypeError("argument should be a Buffer");if(Vt||(Vt=0),!qt&&qt!==0&&(qt=this.length),kt>=_t.length&&(kt=_t.length),kt||(kt=0),qt>0&&qt<Vt&&(qt=Vt),qt===Vt||_t.length===0||this.length===0)return 0;if(kt<0)throw new RangeError("targetStart out of bounds");if(Vt<0||Vt>=this.length)throw new RangeError("Index out of range");if(qt<0)throw new RangeError("sourceEnd out of bounds");qt>this.length&&(qt=this.length),_t.length-kt<qt-Vt&&(qt=_t.length-kt+Vt);const Jt=qt-Vt;return this===_t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(kt,Vt,qt):Uint8Array.prototype.set.call(_t,this.subarray(Vt,qt),kt),Jt},tt.prototype.fill=function(_t,kt,Vt,qt){if(typeof _t=="string"){if(typeof kt=="string"?(qt=kt,kt=0,Vt=this.length):typeof Vt=="string"&&(qt=Vt,Vt=this.length),qt!==void 0&&typeof qt!="string")throw new TypeError("encoding must be a string");if(typeof qt=="string"&&!tt.isEncoding(qt))throw new TypeError("Unknown encoding: "+qt);if(_t.length===1){const ln=_t.charCodeAt(0);(qt==="utf8"&&ln<128||qt==="latin1")&&(_t=ln)}}else typeof _t=="number"?_t=_t&255:typeof _t=="boolean"&&(_t=Number(_t));if(kt<0||this.length<kt||this.length<Vt)throw new RangeError("Out of range index");if(Vt<=kt)return this;kt=kt>>>0,Vt=Vt===void 0?this.length:Vt>>>0,_t||(_t=0);let Jt;if(typeof _t=="number")for(Jt=kt;Jt<Vt;++Jt)this[Jt]=_t;else{const ln=tt.isBuffer(_t)?_t:tt.from(_t,qt),Un=ln.length;if(Un===0)throw new TypeError('The value "'+_t+'" is invalid for argument "value"');for(Jt=0;Jt<Vt-kt;++Jt)this[Jt+kt]=ln[Jt%Un]}return this};const vn={};function kn(Mt,_t,kt){vn[Mt]=class extends kt{constructor(){super(),Object.defineProperty(this,"message",{value:_t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Mt}]`,this.stack,delete this.name}get code(){return Mt}set code(qt){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:qt,writable:!0})}toString(){return`${this.name} [${Mt}]: ${this.message}`}}}kn("ERR_BUFFER_OUT_OF_BOUNDS",function(Mt){return Mt?`${Mt} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),kn("ERR_INVALID_ARG_TYPE",function(Mt,_t){return`The "${Mt}" argument must be of type number. Received type ${typeof _t}`},TypeError),kn("ERR_OUT_OF_RANGE",function(Mt,_t,kt){let Vt=`The value of "${Mt}" is out of range.`,qt=kt;return Number.isInteger(kt)&&Math.abs(kt)>2**32?qt=An(String(kt)):typeof kt=="bigint"&&(qt=String(kt),(kt>BigInt(2)**BigInt(32)||kt<-(BigInt(2)**BigInt(32)))&&(qt=An(qt)),qt+="n"),Vt+=` It must be ${_t}. Received ${qt}`,Vt},RangeError);function An(Mt){let _t="",kt=Mt.length;const Vt=Mt[0]==="-"?1:0;for(;kt>=Vt+4;kt-=3)_t=`_${Mt.slice(kt-3,kt)}${_t}`;return`${Mt.slice(0,kt)}${_t}`}function $n(Mt,_t,kt){Cn(_t,"offset"),(Mt[_t]===void 0||Mt[_t+kt]===void 0)&&rn(_t,Mt.length-(kt+1))}function On(Mt,_t,kt,Vt,qt,Jt){if(Mt>kt||Mt<_t){const ln=typeof _t=="bigint"?"n":"";let Un;throw _t===0||_t===BigInt(0)?Un=`>= 0${ln} and < 2${ln} ** ${(Jt+1)*8}${ln}`:Un=`>= -(2${ln} ** ${(Jt+1)*8-1}${ln}) and < 2 ** ${(Jt+1)*8-1}${ln}`,new vn.ERR_OUT_OF_RANGE("value",Un,Mt)}$n(Vt,qt,Jt)}function Cn(Mt,_t){if(typeof Mt!="number")throw new vn.ERR_INVALID_ARG_TYPE(_t,"number",Mt)}function rn(Mt,_t,kt){throw Math.floor(Mt)!==Mt?(Cn(Mt,kt),new vn.ERR_OUT_OF_RANGE("offset","an integer",Mt)):_t<0?new vn.ERR_BUFFER_OUT_OF_BOUNDS:new vn.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${_t}`,Mt)}const Fn=/[^+/0-9A-Za-z-_]/g;function Ln(Mt){if(Mt=Mt.split("=")[0],Mt=Mt.trim().replace(Fn,""),Mt.length<2)return"";for(;Mt.length%4!==0;)Mt=Mt+"=";return Mt}function Rn(Mt,_t){_t=_t||1/0;let kt;const Vt=Mt.length;let qt=null;const Jt=[];for(let ln=0;ln<Vt;++ln){if(kt=Mt.charCodeAt(ln),kt>55295&&kt<57344){if(!qt){if(kt>56319){(_t-=3)>-1&&Jt.push(239,191,189);continue}else if(ln+1===Vt){(_t-=3)>-1&&Jt.push(239,191,189);continue}qt=kt;continue}if(kt<56320){(_t-=3)>-1&&Jt.push(239,191,189),qt=kt;continue}kt=(qt-55296<<10|kt-56320)+65536}else qt&&(_t-=3)>-1&&Jt.push(239,191,189);if(qt=null,kt<128){if((_t-=1)<0)break;Jt.push(kt)}else if(kt<2048){if((_t-=2)<0)break;Jt.push(kt>>6|192,kt&63|128)}else if(kt<65536){if((_t-=3)<0)break;Jt.push(kt>>12|224,kt>>6&63|128,kt&63|128)}else if(kt<1114112){if((_t-=4)<0)break;Jt.push(kt>>18|240,kt>>12&63|128,kt>>6&63|128,kt&63|128)}else throw new Error("Invalid code point")}return Jt}function Gn(Mt){const _t=[];for(let kt=0;kt<Mt.length;++kt)_t.push(Mt.charCodeAt(kt)&255);return _t}function Vn(Mt,_t){let kt,Vt,qt;const Jt=[];for(let ln=0;ln<Mt.length&&!((_t-=2)<0);++ln)kt=Mt.charCodeAt(ln),Vt=kt>>8,qt=kt%256,Jt.push(qt),Jt.push(Vt);return Jt}function qn(Mt){return s.toByteArray(Ln(Mt))}function Zn(Mt,_t,kt,Vt){let qt;for(qt=0;qt<Vt&&!(qt+kt>=_t.length||qt>=Mt.length);++qt)_t[qt+kt]=Mt[qt];return qt}function jn(Mt,_t){return Mt instanceof _t||Mt!=null&&Mt.constructor!=null&&Mt.constructor.name!=null&&Mt.constructor.name===_t.name}function Xn(Mt){return Mt!==Mt}const dr=function(){const Mt="0123456789abcdef",_t=new Array(256);for(let kt=0;kt<16;++kt){const Vt=kt*16;for(let qt=0;qt<16;++qt)_t[Vt+qt]=Mt[kt]+Mt[qt]}return _t}();function mn(Mt){return typeof BigInt>"u"?Mn:Mt}function Mn(){throw new Error("BigInt not supported")}})(buffer);const Buffer$1=getDefaultExportFromCjs(buffer);var browser$2={exports:{}},process=browser$2.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(o){if(cachedSetTimeout===setTimeout)return setTimeout(o,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(o,0);try{return cachedSetTimeout(o,0)}catch{try{return cachedSetTimeout.call(null,o,0)}catch{return cachedSetTimeout.call(this,o,0)}}}function runClearTimeout(o){if(cachedClearTimeout===clearTimeout)return clearTimeout(o);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(o);try{return cachedClearTimeout(o)}catch{try{return cachedClearTimeout.call(null,o)}catch{return cachedClearTimeout.call(this,o)}}}var queue$2=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue$2=currentQueue.concat(queue$2):queueIndex=-1,queue$2.length&&drainQueue())}function drainQueue(){if(!draining){var o=runTimeout(cleanUpNextTick);draining=!0;for(var s=queue$2.length;s;){for(currentQueue=queue$2,queue$2=[];++queueIndex<s;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,s=queue$2.length}currentQueue=null,draining=!1,runClearTimeout(o)}}process.nextTick=function(o){var s=new Array(arguments.length-1);if(arguments.length>1)for(var a=1;a<arguments.length;a++)s[a-1]=arguments[a];queue$2.push(new Item$1(o,s)),queue$2.length===1&&!draining&&runTimeout(drainQueue)};function Item$1(o,s){this.fun=o,this.array=s}Item$1.prototype.run=function(){this.fun.apply(null,this.array)};process.title="browser";process.browser=!0;process.env={};process.argv=[];process.version="";process.versions={};function noop$6(){}process.on=noop$6;process.addListener=noop$6;process.once=noop$6;process.off=noop$6;process.removeListener=noop$6;process.removeAllListeners=noop$6;process.emit=noop$6;process.prependListener=noop$6;process.prependOnceListener=noop$6;process.listeners=function(o){return[]};process.binding=function(o){throw new Error("process.binding is not supported")};process.cwd=function(){return"/"};process.chdir=function(o){throw new Error("process.chdir is not supported")};process.umask=function(){return 0};var browserExports=browser$2.exports;const Process=getDefaultExportFromCjs(browserExports);globalThis.process=Process;globalThis.Buffer=Buffer$1;var jsxRuntime={exports:{}},reactJsxRuntime_production_min={};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var getOwnPropertySymbols$1=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function shouldUseNative(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var $=Object.getOwnPropertyNames(s).map(function(_e){return s[_e]});if($.join("")!=="0123456789")return!1;var j={};return"abcdefghijklmnopqrst".split("").forEach(function(_e){j[_e]=_e}),Object.keys(Object.assign({},j)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var objectAssign=shouldUseNative()?Object.assign:function(o,s){for(var a,$=toObject(o),j,_e=1;_e<arguments.length;_e++){a=Object(arguments[_e]);for(var et in a)hasOwnProperty.call(a,et)&&($[et]=a[et]);if(getOwnPropertySymbols$1){j=getOwnPropertySymbols$1(a);for(var tt=0;tt<j.length;tt++)propIsEnumerable.call(a,j[tt])&&($[j[tt]]=a[j[tt]])}}return $};const objectAssign$1=getDefaultExportFromCjs(objectAssign);var react={exports:{}},react_production_min={};/** @license React v17.0.2
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var l$2=objectAssign,n$3=60103,p$3=60106;react_production_min.Fragment=60107;react_production_min.StrictMode=60108;react_production_min.Profiler=60114;var q$3=60109,r$4=60110,t$1=60112;react_production_min.Suspense=60113;var u$1=60115,v$2=60116;if(typeof Symbol=="function"&&Symbol.for){var w$2=Symbol.for;n$3=w$2("react.element"),p$3=w$2("react.portal"),react_production_min.Fragment=w$2("react.fragment"),react_production_min.StrictMode=w$2("react.strict_mode"),react_production_min.Profiler=w$2("react.profiler"),q$3=w$2("react.provider"),r$4=w$2("react.context"),t$1=w$2("react.forward_ref"),react_production_min.Suspense=w$2("react.suspense"),u$1=w$2("react.memo"),v$2=w$2("react.lazy")}var x$2=typeof Symbol=="function"&&Symbol.iterator;function y$3(o){return o===null||typeof o!="object"?null:(o=x$2&&o[x$2]||o["@@iterator"],typeof o=="function"?o:null)}function z$2(o){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+o,a=1;a<arguments.length;a++)s+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var A$2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B$2={};function C$1(o,s,a){this.props=o,this.context=s,this.refs=B$2,this.updater=a||A$2}C$1.prototype.isReactComponent={};C$1.prototype.setState=function(o,s){if(typeof o!="object"&&typeof o!="function"&&o!=null)throw Error(z$2(85));this.updater.enqueueSetState(this,o,s,"setState")};C$1.prototype.forceUpdate=function(o){this.updater.enqueueForceUpdate(this,o,"forceUpdate")};function D$2(){}D$2.prototype=C$1.prototype;function E$2(o,s,a){this.props=o,this.context=s,this.refs=B$2,this.updater=a||A$2}var F$2=E$2.prototype=new D$2;F$2.constructor=E$2;l$2(F$2,C$1.prototype);F$2.isPureReactComponent=!0;var G$2={current:null},H$3=Object.prototype.hasOwnProperty,I$2={key:!0,ref:!0,__self:!0,__source:!0};function J(o,s,a){var $,j={},_e=null,et=null;if(s!=null)for($ in s.ref!==void 0&&(et=s.ref),s.key!==void 0&&(_e=""+s.key),s)H$3.call(s,$)&&!I$2.hasOwnProperty($)&&(j[$]=s[$]);var tt=arguments.length-2;if(tt===1)j.children=a;else if(1<tt){for(var nt=Array(tt),it=0;it<tt;it++)nt[it]=arguments[it+2];j.children=nt}if(o&&o.defaultProps)for($ in tt=o.defaultProps,tt)j[$]===void 0&&(j[$]=tt[$]);return{$$typeof:n$3,type:o,key:_e,ref:et,props:j,_owner:G$2.current}}function K(o,s){return{$$typeof:n$3,type:o.type,key:s,ref:o.ref,props:o.props,_owner:o._owner}}function L(o){return typeof o=="object"&&o!==null&&o.$$typeof===n$3}function escape$1(o){var s={"=":"=0",":":"=2"};return"$"+o.replace(/[=:]/g,function(a){return s[a]})}var M$1=/\/+/g;function N$1(o,s){return typeof o=="object"&&o!==null&&o.key!=null?escape$1(""+o.key):s.toString(36)}function O$1(o,s,a,$,j){var _e=typeof o;(_e==="undefined"||_e==="boolean")&&(o=null);var et=!1;if(o===null)et=!0;else switch(_e){case"string":case"number":et=!0;break;case"object":switch(o.$$typeof){case n$3:case p$3:et=!0}}if(et)return et=o,j=j(et),o=$===""?"."+N$1(et,0):$,Array.isArray(j)?(a="",o!=null&&(a=o.replace(M$1,"$&/")+"/"),O$1(j,s,a,"",function(it){return it})):j!=null&&(L(j)&&(j=K(j,a+(!j.key||et&&et.key===j.key?"":(""+j.key).replace(M$1,"$&/")+"/")+o)),s.push(j)),1;if(et=0,$=$===""?".":$+":",Array.isArray(o))for(var tt=0;tt<o.length;tt++){_e=o[tt];var nt=$+N$1(_e,tt);et+=O$1(_e,s,a,nt,j)}else if(nt=y$3(o),typeof nt=="function")for(o=nt.call(o),tt=0;!(_e=o.next()).done;)_e=_e.value,nt=$+N$1(_e,tt++),et+=O$1(_e,s,a,nt,j);else if(_e==="object")throw s=""+o,Error(z$2(31,s==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":s));return et}function P$1(o,s,a){if(o==null)return o;var $=[],j=0;return O$1(o,$,"","",function(_e){return s.call(a,_e,j++)}),$}function Q(o){if(o._status===-1){var s=o._result;s=s(),o._status=0,o._result=s,s.then(function(a){o._status===0&&(a=a.default,o._status=1,o._result=a)},function(a){o._status===0&&(o._status=2,o._result=a)})}if(o._status===1)return o._result;throw o._result}var R$1={current:null};function S$1(){var o=R$1.current;if(o===null)throw Error(z$2(321));return o}var T$1={ReactCurrentDispatcher:R$1,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:G$2,IsSomeRendererActing:{current:!1},assign:l$2};react_production_min.Children={map:P$1,forEach:function(o,s,a){P$1(o,function(){s.apply(this,arguments)},a)},count:function(o){var s=0;return P$1(o,function(){s++}),s},toArray:function(o){return P$1(o,function(s){return s})||[]},only:function(o){if(!L(o))throw Error(z$2(143));return o}};react_production_min.Component=C$1;react_production_min.PureComponent=E$2;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T$1;react_production_min.cloneElement=function(o,s,a){if(o==null)throw Error(z$2(267,o));var $=l$2({},o.props),j=o.key,_e=o.ref,et=o._owner;if(s!=null){if(s.ref!==void 0&&(_e=s.ref,et=G$2.current),s.key!==void 0&&(j=""+s.key),o.type&&o.type.defaultProps)var tt=o.type.defaultProps;for(nt in s)H$3.call(s,nt)&&!I$2.hasOwnProperty(nt)&&($[nt]=s[nt]===void 0&&tt!==void 0?tt[nt]:s[nt])}var nt=arguments.length-2;if(nt===1)$.children=a;else if(1<nt){tt=Array(nt);for(var it=0;it<nt;it++)tt[it]=arguments[it+2];$.children=tt}return{$$typeof:n$3,type:o.type,key:j,ref:_e,props:$,_owner:et}};react_production_min.createContext=function(o,s){return s===void 0&&(s=null),o={$$typeof:r$4,_calculateChangedBits:s,_currentValue:o,_currentValue2:o,_threadCount:0,Provider:null,Consumer:null},o.Provider={$$typeof:q$3,_context:o},o.Consumer=o};react_production_min.createElement=J;react_production_min.createFactory=function(o){var s=J.bind(null,o);return s.type=o,s};react_production_min.createRef=function(){return{current:null}};react_production_min.forwardRef=function(o){return{$$typeof:t$1,render:o}};react_production_min.isValidElement=L;react_production_min.lazy=function(o){return{$$typeof:v$2,_payload:{_status:-1,_result:o},_init:Q}};react_production_min.memo=function(o,s){return{$$typeof:u$1,type:o,compare:s===void 0?null:s}};react_production_min.useCallback=function(o,s){return S$1().useCallback(o,s)};react_production_min.useContext=function(o,s){return S$1().useContext(o,s)};react_production_min.useDebugValue=function(){};react_production_min.useEffect=function(o,s){return S$1().useEffect(o,s)};react_production_min.useImperativeHandle=function(o,s,a){return S$1().useImperativeHandle(o,s,a)};react_production_min.useLayoutEffect=function(o,s){return S$1().useLayoutEffect(o,s)};react_production_min.useMemo=function(o,s){return S$1().useMemo(o,s)};react_production_min.useReducer=function(o,s,a){return S$1().useReducer(o,s,a)};react_production_min.useRef=function(o){return S$1().useRef(o)};react_production_min.useState=function(o){return S$1().useState(o)};react_production_min.version="17.0.2";react.exports=react_production_min;var reactExports=react.exports;const React$1=getDefaultExportFromCjs(reactExports),React$2=_mergeNamespaces({__proto__:null,default:React$1},[reactExports]);/** @license React v17.0.2
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var f$2=reactExports,g$2=60103;reactJsxRuntime_production_min.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var h$4=Symbol.for;g$2=h$4("react.element"),reactJsxRuntime_production_min.Fragment=h$4("react.fragment")}var m$3=f$2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n$2=Object.prototype.hasOwnProperty,p$2={key:!0,ref:!0,__self:!0,__source:!0};function q$2(o,s,a){var $,j={},_e=null,et=null;a!==void 0&&(_e=""+a),s.key!==void 0&&(_e=""+s.key),s.ref!==void 0&&(et=s.ref);for($ in s)n$2.call(s,$)&&!p$2.hasOwnProperty($)&&(j[$]=s[$]);if(o&&o.defaultProps)for($ in s=o.defaultProps,s)j[$]===void 0&&(j[$]=s[$]);return{$$typeof:g$2,type:o,key:_e,ref:et,props:j,_owner:m$3.current}}reactJsxRuntime_production_min.jsx=q$2;reactJsxRuntime_production_min.jsxs=q$2;jsxRuntime.exports=reactJsxRuntime_production_min;var jsxRuntimeExports=jsxRuntime.exports,reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};/** @license React v0.20.2
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(o){var s,a,$,j;if(typeof performance=="object"&&typeof performance.now=="function"){var _e=performance;o.unstable_now=function(){return _e.now()}}else{var et=Date,tt=et.now();o.unstable_now=function(){return et.now()-tt}}if(typeof window>"u"||typeof MessageChannel!="function"){var nt=null,it=null,rt=function(){if(nt!==null)try{var Et=o.unstable_now();nt(!0,Et),nt=null}catch(Dt){throw setTimeout(rt,0),Dt}};s=function(Et){nt!==null?setTimeout(s,0,Et):(nt=Et,setTimeout(rt,0))},a=function(Et,Dt){it=setTimeout(Et,Dt)},$=function(){clearTimeout(it)},o.unstable_shouldYield=function(){return!1},j=o.unstable_forceFrameRate=function(){}}else{var st=window.setTimeout,ot=window.clearTimeout;if(typeof console<"u"){var at=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof at!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var lt=!1,ct=null,ht=-1,dt=5,ut=0;o.unstable_shouldYield=function(){return o.unstable_now()>=ut},j=function(){},o.unstable_forceFrameRate=function(Et){0>Et||125<Et?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):dt=0<Et?Math.floor(1e3/Et):5};var pt=new MessageChannel,ft=pt.port2;pt.port1.onmessage=function(){if(ct!==null){var Et=o.unstable_now();ut=Et+dt;try{ct(!0,Et)?ft.postMessage(null):(lt=!1,ct=null)}catch(Dt){throw ft.postMessage(null),Dt}}else lt=!1},s=function(Et){ct=Et,lt||(lt=!0,ft.postMessage(null))},a=function(Et,Dt){ht=st(function(){Et(o.unstable_now())},Dt)},$=function(){ot(ht),ht=-1}}function mt(Et,Dt){var Bt=Et.length;Et.push(Dt);e:for(;;){var Wt=Bt-1>>>1,Zt=Et[Wt];if(Zt!==void 0&&0<St(Zt,Dt))Et[Wt]=Dt,Et[Bt]=Zt,Bt=Wt;else break e}}function gt(Et){return Et=Et[0],Et===void 0?null:Et}function bt(Et){var Dt=Et[0];if(Dt!==void 0){var Bt=Et.pop();if(Bt!==Dt){Et[0]=Bt;e:for(var Wt=0,Zt=Et.length;Wt<Zt;){var sn=2*(Wt+1)-1,dn=Et[sn],vn=sn+1,kn=Et[vn];if(dn!==void 0&&0>St(dn,Bt))kn!==void 0&&0>St(kn,dn)?(Et[Wt]=kn,Et[vn]=Bt,Wt=vn):(Et[Wt]=dn,Et[sn]=Bt,Wt=sn);else if(kn!==void 0&&0>St(kn,Bt))Et[Wt]=kn,Et[vn]=Bt,Wt=vn;else break e}}return Dt}return null}function St(Et,Dt){var Bt=Et.sortIndex-Dt.sortIndex;return Bt!==0?Bt:Et.id-Dt.id}var Nt=[],Rt=[],Ft=1,Ot=null,Ct=3,yt=!1,Pt=!1,wt=!1;function Lt(Et){for(var Dt=gt(Rt);Dt!==null;){if(Dt.callback===null)bt(Rt);else if(Dt.startTime<=Et)bt(Rt),Dt.sortIndex=Dt.expirationTime,mt(Nt,Dt);else break;Dt=gt(Rt)}}function vt(Et){if(wt=!1,Lt(Et),!Pt)if(gt(Nt)!==null)Pt=!0,s(xt);else{var Dt=gt(Rt);Dt!==null&&a(vt,Dt.startTime-Et)}}function xt(Et,Dt){Pt=!1,wt&&(wt=!1,$()),yt=!0;var Bt=Ct;try{for(Lt(Dt),Ot=gt(Nt);Ot!==null&&(!(Ot.expirationTime>Dt)||Et&&!o.unstable_shouldYield());){var Wt=Ot.callback;if(typeof Wt=="function"){Ot.callback=null,Ct=Ot.priorityLevel;var Zt=Wt(Ot.expirationTime<=Dt);Dt=o.unstable_now(),typeof Zt=="function"?Ot.callback=Zt:Ot===gt(Nt)&&bt(Nt),Lt(Dt)}else bt(Nt);Ot=gt(Nt)}if(Ot!==null)var sn=!0;else{var dn=gt(Rt);dn!==null&&a(vt,dn.startTime-Dt),sn=!1}return sn}finally{Ot=null,Ct=Bt,yt=!1}}var Ut=j;o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(Et){Et.callback=null},o.unstable_continueExecution=function(){Pt||yt||(Pt=!0,s(xt))},o.unstable_getCurrentPriorityLevel=function(){return Ct},o.unstable_getFirstCallbackNode=function(){return gt(Nt)},o.unstable_next=function(Et){switch(Ct){case 1:case 2:case 3:var Dt=3;break;default:Dt=Ct}var Bt=Ct;Ct=Dt;try{return Et()}finally{Ct=Bt}},o.unstable_pauseExecution=function(){},o.unstable_requestPaint=Ut,o.unstable_runWithPriority=function(Et,Dt){switch(Et){case 1:case 2:case 3:case 4:case 5:break;default:Et=3}var Bt=Ct;Ct=Et;try{return Dt()}finally{Ct=Bt}},o.unstable_scheduleCallback=function(Et,Dt,Bt){var Wt=o.unstable_now();switch(typeof Bt=="object"&&Bt!==null?(Bt=Bt.delay,Bt=typeof Bt=="number"&&0<Bt?Wt+Bt:Wt):Bt=Wt,Et){case 1:var Zt=-1;break;case 2:Zt=250;break;case 5:Zt=1073741823;break;case 4:Zt=1e4;break;default:Zt=5e3}return Zt=Bt+Zt,Et={id:Ft++,callback:Dt,priorityLevel:Et,startTime:Bt,expirationTime:Zt,sortIndex:-1},Bt>Wt?(Et.sortIndex=Bt,mt(Rt,Et),gt(Nt)===null&&Et===gt(Rt)&&(wt?$():wt=!0,a(vt,Bt-Wt))):(Et.sortIndex=Zt,mt(Nt,Et),Pt||yt||(Pt=!0,s(xt))),Et},o.unstable_wrapCallback=function(Et){var Dt=Ct;return function(){var Bt=Ct;Ct=Dt;try{return Et.apply(this,arguments)}finally{Ct=Bt}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** @license React v17.0.2
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var aa=reactExports,m$2=objectAssign,r$3=schedulerExports;function y$2(o){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+o,a=1;a<arguments.length;a++)s+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!aa)throw Error(y$2(227));var ba=new Set,ca={};function da(o,s){ea(o,s),ea(o+"Capture",s)}function ea(o,s){for(ca[o]=s,o=0;o<s.length;o++)ba.add(s[o])}var fa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ha=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ia=Object.prototype.hasOwnProperty,ja={},ka={};function la(o){return ia.call(ka,o)?!0:ia.call(ja,o)?!1:ha.test(o)?ka[o]=!0:(ja[o]=!0,!1)}function ma(o,s,a,$){if(a!==null&&a.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return $?!1:a!==null?!a.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function na(o,s,a,$){if(s===null||typeof s>"u"||ma(o,s,a,$))return!0;if($)return!1;if(a!==null)switch(a.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function B$1(o,s,a,$,j,_e,et){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=$,this.attributeNamespace=j,this.mustUseProperty=a,this.propertyName=o,this.type=s,this.sanitizeURL=_e,this.removeEmptyString=et}var D$1={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){D$1[o]=new B$1(o,0,!1,o,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var s=o[0];D$1[s]=new B$1(s,1,!1,o[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(o){D$1[o]=new B$1(o,2,!1,o.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){D$1[o]=new B$1(o,2,!1,o,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(o){D$1[o]=new B$1(o,3,!1,o.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(o){D$1[o]=new B$1(o,3,!0,o,null,!1,!1)});["capture","download"].forEach(function(o){D$1[o]=new B$1(o,4,!1,o,null,!1,!1)});["cols","rows","size","span"].forEach(function(o){D$1[o]=new B$1(o,6,!1,o,null,!1,!1)});["rowSpan","start"].forEach(function(o){D$1[o]=new B$1(o,5,!1,o.toLowerCase(),null,!1,!1)});var oa=/[\-:]([a-z])/g;function pa(o){return o[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(o){var s=o.replace(oa,pa);D$1[s]=new B$1(s,1,!1,o,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var s=o.replace(oa,pa);D$1[s]=new B$1(s,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(o){var s=o.replace(oa,pa);D$1[s]=new B$1(s,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(o){D$1[o]=new B$1(o,1,!1,o.toLowerCase(),null,!1,!1)});D$1.xlinkHref=new B$1("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(o){D$1[o]=new B$1(o,1,!1,o.toLowerCase(),null,!0,!0)});function qa(o,s,a,$){var j=D$1.hasOwnProperty(s)?D$1[s]:null,_e=j!==null?j.type===0:$?!1:!(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N");_e||(na(s,a,j,$)&&(a=null),$||j===null?la(s)&&(a===null?o.removeAttribute(s):o.setAttribute(s,""+a)):j.mustUseProperty?o[j.propertyName]=a===null?j.type===3?!1:"":a:(s=j.attributeName,$=j.attributeNamespace,a===null?o.removeAttribute(s):(j=j.type,a=j===3||j===4&&a===!0?"":""+a,$?o.setAttributeNS($,s,a):o.setAttribute(s,a))))}var ra=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,sa=60103,ta=60106,ua$1=60107,wa=60108,xa=60114,ya=60109,za=60110,Aa=60112,Ba=60113,Ca=60120,Da=60115,Ea=60116,Fa=60121,Ga=60128,Ha=60129,Ia=60130,Ja=60131;if(typeof Symbol=="function"&&Symbol.for){var E$1=Symbol.for;sa=E$1("react.element"),ta=E$1("react.portal"),ua$1=E$1("react.fragment"),wa=E$1("react.strict_mode"),xa=E$1("react.profiler"),ya=E$1("react.provider"),za=E$1("react.context"),Aa=E$1("react.forward_ref"),Ba=E$1("react.suspense"),Ca=E$1("react.suspense_list"),Da=E$1("react.memo"),Ea=E$1("react.lazy"),Fa=E$1("react.block"),E$1("react.scope"),Ga=E$1("react.opaque.id"),Ha=E$1("react.debug_trace_mode"),Ia=E$1("react.offscreen"),Ja=E$1("react.legacy_hidden")}var Ka=typeof Symbol=="function"&&Symbol.iterator;function La(o){return o===null||typeof o!="object"?null:(o=Ka&&o[Ka]||o["@@iterator"],typeof o=="function"?o:null)}var Ma;function Na(o){if(Ma===void 0)try{throw Error()}catch(a){var s=a.stack.trim().match(/\n( *(at )?)/);Ma=s&&s[1]||""}return`
`+Ma+o}var Oa=!1;function Pa(o,s){if(!o||Oa)return"";Oa=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(nt){var $=nt}Reflect.construct(o,[],s)}else{try{s.call()}catch(nt){$=nt}o.call(s.prototype)}else{try{throw Error()}catch(nt){$=nt}o()}}catch(nt){if(nt&&$&&typeof nt.stack=="string"){for(var j=nt.stack.split(`
`),_e=$.stack.split(`
`),et=j.length-1,tt=_e.length-1;1<=et&&0<=tt&&j[et]!==_e[tt];)tt--;for(;1<=et&&0<=tt;et--,tt--)if(j[et]!==_e[tt]){if(et!==1||tt!==1)do if(et--,tt--,0>tt||j[et]!==_e[tt])return`
`+j[et].replace(" at new "," at ");while(1<=et&&0<=tt);break}}}finally{Oa=!1,Error.prepareStackTrace=a}return(o=o?o.displayName||o.name:"")?Na(o):""}function Qa(o){switch(o.tag){case 5:return Na(o.type);case 16:return Na("Lazy");case 13:return Na("Suspense");case 19:return Na("SuspenseList");case 0:case 2:case 15:return o=Pa(o.type,!1),o;case 11:return o=Pa(o.type.render,!1),o;case 22:return o=Pa(o.type._render,!1),o;case 1:return o=Pa(o.type,!0),o;default:return""}}function Ra(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case ua$1:return"Fragment";case ta:return"Portal";case xa:return"Profiler";case wa:return"StrictMode";case Ba:return"Suspense";case Ca:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case za:return(o.displayName||"Context")+".Consumer";case ya:return(o._context.displayName||"Context")+".Provider";case Aa:var s=o.render;return s=s.displayName||s.name||"",o.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case Da:return Ra(o.type);case Fa:return Ra(o._render);case Ea:s=o._payload,o=o._init;try{return Ra(o(s))}catch{}}return null}function Sa(o){switch(typeof o){case"boolean":case"number":case"object":case"string":case"undefined":return o;default:return""}}function Ta(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Ua(o){var s=Ta(o)?"checked":"value",a=Object.getOwnPropertyDescriptor(o.constructor.prototype,s),$=""+o[s];if(!o.hasOwnProperty(s)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var j=a.get,_e=a.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return j.call(this)},set:function(et){$=""+et,_e.call(this,et)}}),Object.defineProperty(o,s,{enumerable:a.enumerable}),{getValue:function(){return $},setValue:function(et){$=""+et},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function Va(o){o._valueTracker||(o._valueTracker=Ua(o))}function Wa(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var a=s.getValue(),$="";return o&&($=Ta(o)?o.checked?"true":"false":o.value),o=$,o!==a?(s.setValue(o),!0):!1}function Xa(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}function Ya(o,s){var a=s.checked;return m$2({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??o._wrapperState.initialChecked})}function Za(o,s){var a=s.defaultValue==null?"":s.defaultValue,$=s.checked!=null?s.checked:s.defaultChecked;a=Sa(s.value!=null?s.value:a),o._wrapperState={initialChecked:$,initialValue:a,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function $a(o,s){s=s.checked,s!=null&&qa(o,"checked",s,!1)}function ab(o,s){$a(o,s);var a=Sa(s.value),$=s.type;if(a!=null)$==="number"?(a===0&&o.value===""||o.value!=a)&&(o.value=""+a):o.value!==""+a&&(o.value=""+a);else if($==="submit"||$==="reset"){o.removeAttribute("value");return}s.hasOwnProperty("value")?bb(o,s.type,a):s.hasOwnProperty("defaultValue")&&bb(o,s.type,Sa(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(o.defaultChecked=!!s.defaultChecked)}function cb(o,s,a){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var $=s.type;if(!($!=="submit"&&$!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+o._wrapperState.initialValue,a||s===o.value||(o.value=s),o.defaultValue=s}a=o.name,a!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,a!==""&&(o.name=a)}function bb(o,s,a){(s!=="number"||Xa(o.ownerDocument)!==o)&&(a==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+a&&(o.defaultValue=""+a))}function db(o){var s="";return aa.Children.forEach(o,function(a){a!=null&&(s+=a)}),s}function eb(o,s){return o=m$2({children:void 0},s),(s=db(s.children))&&(o.children=s),o}function fb(o,s,a,$){if(o=o.options,s){s={};for(var j=0;j<a.length;j++)s["$"+a[j]]=!0;for(a=0;a<o.length;a++)j=s.hasOwnProperty("$"+o[a].value),o[a].selected!==j&&(o[a].selected=j),j&&$&&(o[a].defaultSelected=!0)}else{for(a=""+Sa(a),s=null,j=0;j<o.length;j++){if(o[j].value===a){o[j].selected=!0,$&&(o[j].defaultSelected=!0);return}s!==null||o[j].disabled||(s=o[j])}s!==null&&(s.selected=!0)}}function gb(o,s){if(s.dangerouslySetInnerHTML!=null)throw Error(y$2(91));return m$2({},s,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function hb(o,s){var a=s.value;if(a==null){if(a=s.children,s=s.defaultValue,a!=null){if(s!=null)throw Error(y$2(92));if(Array.isArray(a)){if(!(1>=a.length))throw Error(y$2(93));a=a[0]}s=a}s==null&&(s=""),a=s}o._wrapperState={initialValue:Sa(a)}}function ib(o,s){var a=Sa(s.value),$=Sa(s.defaultValue);a!=null&&(a=""+a,a!==o.value&&(o.value=a),s.defaultValue==null&&o.defaultValue!==a&&(o.defaultValue=a)),$!=null&&(o.defaultValue=""+$)}function jb(o){var s=o.textContent;s===o._wrapperState.initialValue&&s!==""&&s!==null&&(o.value=s)}var kb={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function lb(o){switch(o){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function mb(o,s){return o==null||o==="http://www.w3.org/1999/xhtml"?lb(s):o==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":o}var nb,ob=function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,a,$,j){MSApp.execUnsafeLocalFunction(function(){return o(s,a,$,j)})}:o}(function(o,s){if(o.namespaceURI!==kb.svg||"innerHTML"in o)o.innerHTML=s;else{for(nb=nb||document.createElement("div"),nb.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=nb.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;s.firstChild;)o.appendChild(s.firstChild)}});function pb(o,s){if(s){var a=o.firstChild;if(a&&a===o.lastChild&&a.nodeType===3){a.nodeValue=s;return}}o.textContent=s}var qb={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rb=["Webkit","ms","Moz","O"];Object.keys(qb).forEach(function(o){rb.forEach(function(s){s=s+o.charAt(0).toUpperCase()+o.substring(1),qb[s]=qb[o]})});function sb(o,s,a){return s==null||typeof s=="boolean"||s===""?"":a||typeof s!="number"||s===0||qb.hasOwnProperty(o)&&qb[o]?(""+s).trim():s+"px"}function tb(o,s){o=o.style;for(var a in s)if(s.hasOwnProperty(a)){var $=a.indexOf("--")===0,j=sb(a,s[a],$);a==="float"&&(a="cssFloat"),$?o.setProperty(a,j):o[a]=j}}var ub=m$2({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vb(o,s){if(s){if(ub[o]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(y$2(137,o));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(y$2(60));if(!(typeof s.dangerouslySetInnerHTML=="object"&&"__html"in s.dangerouslySetInnerHTML))throw Error(y$2(61))}if(s.style!=null&&typeof s.style!="object")throw Error(y$2(62))}}function wb(o,s){if(o.indexOf("-")===-1)return typeof s.is=="string";switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function xb(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var yb=null,zb=null,Ab=null;function Bb(o){if(o=Cb(o)){if(typeof yb!="function")throw Error(y$2(280));var s=o.stateNode;s&&(s=Db(s),yb(o.stateNode,o.type,s))}}function Eb(o){zb?Ab?Ab.push(o):Ab=[o]:zb=o}function Fb(){if(zb){var o=zb,s=Ab;if(Ab=zb=null,Bb(o),s)for(o=0;o<s.length;o++)Bb(s[o])}}function Gb(o,s){return o(s)}function Hb(o,s,a,$,j){return o(s,a,$,j)}function Ib(){}var Jb=Gb,Kb=!1,Lb=!1;function Mb(){(zb!==null||Ab!==null)&&(Ib(),Fb())}function Nb(o,s,a){if(Lb)return o(s,a);Lb=!0;try{return Jb(o,s,a)}finally{Lb=!1,Mb()}}function Ob(o,s){var a=o.stateNode;if(a===null)return null;var $=Db(a);if($===null)return null;a=$[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":($=!$.disabled)||(o=o.type,$=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!$;break e;default:o=!1}if(o)return null;if(a&&typeof a!="function")throw Error(y$2(231,s,typeof a));return a}var Pb=!1;if(fa)try{var Qb={};Object.defineProperty(Qb,"passive",{get:function(){Pb=!0}}),window.addEventListener("test",Qb,Qb),window.removeEventListener("test",Qb,Qb)}catch{Pb=!1}function Rb(o,s,a,$,j,_e,et,tt,nt){var it=Array.prototype.slice.call(arguments,3);try{s.apply(a,it)}catch(rt){this.onError(rt)}}var Sb=!1,Tb=null,Ub=!1,Vb=null,Wb={onError:function(o){Sb=!0,Tb=o}};function Xb(o,s,a,$,j,_e,et,tt,nt){Sb=!1,Tb=null,Rb.apply(Wb,arguments)}function Yb(o,s,a,$,j,_e,et,tt,nt){if(Xb.apply(this,arguments),Sb){if(Sb){var it=Tb;Sb=!1,Tb=null}else throw Error(y$2(198));Ub||(Ub=!0,Vb=it)}}function Zb(o){var s=o,a=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,s.flags&1026&&(a=s.return),o=s.return;while(o)}return s.tag===3?a:null}function $b(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function ac(o){if(Zb(o)!==o)throw Error(y$2(188))}function bc(o){var s=o.alternate;if(!s){if(s=Zb(o),s===null)throw Error(y$2(188));return s!==o?null:o}for(var a=o,$=s;;){var j=a.return;if(j===null)break;var _e=j.alternate;if(_e===null){if($=j.return,$!==null){a=$;continue}break}if(j.child===_e.child){for(_e=j.child;_e;){if(_e===a)return ac(j),o;if(_e===$)return ac(j),s;_e=_e.sibling}throw Error(y$2(188))}if(a.return!==$.return)a=j,$=_e;else{for(var et=!1,tt=j.child;tt;){if(tt===a){et=!0,a=j,$=_e;break}if(tt===$){et=!0,$=j,a=_e;break}tt=tt.sibling}if(!et){for(tt=_e.child;tt;){if(tt===a){et=!0,a=_e,$=j;break}if(tt===$){et=!0,$=_e,a=j;break}tt=tt.sibling}if(!et)throw Error(y$2(189))}}if(a.alternate!==$)throw Error(y$2(190))}if(a.tag!==3)throw Error(y$2(188));return a.stateNode.current===a?o:s}function cc(o){if(o=bc(o),!o)return null;for(var s=o;;){if(s.tag===5||s.tag===6)return s;if(s.child)s.child.return=s,s=s.child;else{if(s===o)break;for(;!s.sibling;){if(!s.return||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}}return null}function dc(o,s){for(var a=o.alternate;s!==null;){if(s===o||s===a)return!0;s=s.return}return!1}var ec,fc,gc,hc,ic=!1,jc=[],kc=null,lc=null,mc=null,nc=new Map,oc=new Map,pc=[],qc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function rc(o,s,a,$,j){return{blockedOn:o,domEventName:s,eventSystemFlags:a|16,nativeEvent:j,targetContainers:[$]}}function sc(o,s){switch(o){case"focusin":case"focusout":kc=null;break;case"dragenter":case"dragleave":lc=null;break;case"mouseover":case"mouseout":mc=null;break;case"pointerover":case"pointerout":nc.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":oc.delete(s.pointerId)}}function tc(o,s,a,$,j,_e){return o===null||o.nativeEvent!==_e?(o=rc(s,a,$,j,_e),s!==null&&(s=Cb(s),s!==null&&fc(s)),o):(o.eventSystemFlags|=$,s=o.targetContainers,j!==null&&s.indexOf(j)===-1&&s.push(j),o)}function uc(o,s,a,$,j){switch(s){case"focusin":return kc=tc(kc,o,s,a,$,j),!0;case"dragenter":return lc=tc(lc,o,s,a,$,j),!0;case"mouseover":return mc=tc(mc,o,s,a,$,j),!0;case"pointerover":var _e=j.pointerId;return nc.set(_e,tc(nc.get(_e)||null,o,s,a,$,j)),!0;case"gotpointercapture":return _e=j.pointerId,oc.set(_e,tc(oc.get(_e)||null,o,s,a,$,j)),!0}return!1}function vc(o){var s=wc(o.target);if(s!==null){var a=Zb(s);if(a!==null){if(s=a.tag,s===13){if(s=$b(a),s!==null){o.blockedOn=s,hc(o.lanePriority,function(){r$3.unstable_runWithPriority(o.priority,function(){gc(a)})});return}}else if(s===3&&a.stateNode.hydrate){o.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}o.blockedOn=null}function xc(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var a=yc(o.domEventName,o.eventSystemFlags,s[0],o.nativeEvent);if(a!==null)return s=Cb(a),s!==null&&fc(s),o.blockedOn=a,!1;s.shift()}return!0}function zc(o,s,a){xc(o)&&a.delete(s)}function Ac(){for(ic=!1;0<jc.length;){var o=jc[0];if(o.blockedOn!==null){o=Cb(o.blockedOn),o!==null&&ec(o);break}for(var s=o.targetContainers;0<s.length;){var a=yc(o.domEventName,o.eventSystemFlags,s[0],o.nativeEvent);if(a!==null){o.blockedOn=a;break}s.shift()}o.blockedOn===null&&jc.shift()}kc!==null&&xc(kc)&&(kc=null),lc!==null&&xc(lc)&&(lc=null),mc!==null&&xc(mc)&&(mc=null),nc.forEach(zc),oc.forEach(zc)}function Bc(o,s){o.blockedOn===s&&(o.blockedOn=null,ic||(ic=!0,r$3.unstable_scheduleCallback(r$3.unstable_NormalPriority,Ac)))}function Cc(o){function s(j){return Bc(j,o)}if(0<jc.length){Bc(jc[0],o);for(var a=1;a<jc.length;a++){var $=jc[a];$.blockedOn===o&&($.blockedOn=null)}}for(kc!==null&&Bc(kc,o),lc!==null&&Bc(lc,o),mc!==null&&Bc(mc,o),nc.forEach(s),oc.forEach(s),a=0;a<pc.length;a++)$=pc[a],$.blockedOn===o&&($.blockedOn=null);for(;0<pc.length&&(a=pc[0],a.blockedOn===null);)vc(a),a.blockedOn===null&&pc.shift()}function Dc(o,s){var a={};return a[o.toLowerCase()]=s.toLowerCase(),a["Webkit"+o]="webkit"+s,a["Moz"+o]="moz"+s,a}var Ec={animationend:Dc("Animation","AnimationEnd"),animationiteration:Dc("Animation","AnimationIteration"),animationstart:Dc("Animation","AnimationStart"),transitionend:Dc("Transition","TransitionEnd")},Fc={},Gc={};fa&&(Gc=document.createElement("div").style,"AnimationEvent"in window||(delete Ec.animationend.animation,delete Ec.animationiteration.animation,delete Ec.animationstart.animation),"TransitionEvent"in window||delete Ec.transitionend.transition);function Hc(o){if(Fc[o])return Fc[o];if(!Ec[o])return o;var s=Ec[o],a;for(a in s)if(s.hasOwnProperty(a)&&a in Gc)return Fc[o]=s[a];return o}var Ic=Hc("animationend"),Jc=Hc("animationiteration"),Kc=Hc("animationstart"),Lc=Hc("transitionend"),Mc=new Map,Nc=new Map,Oc=["abort","abort",Ic,"animationEnd",Jc,"animationIteration",Kc,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Lc,"transitionEnd","waiting","waiting"];function Pc(o,s){for(var a=0;a<o.length;a+=2){var $=o[a],j=o[a+1];j="on"+(j[0].toUpperCase()+j.slice(1)),Nc.set($,s),Mc.set($,j),da(j,[$])}}var Qc=r$3.unstable_now;Qc();var F$1=8;function Rc(o){if(1&o)return F$1=15,1;if(2&o)return F$1=14,2;if(4&o)return F$1=13,4;var s=24&o;return s!==0?(F$1=12,s):o&32?(F$1=11,32):(s=192&o,s!==0?(F$1=10,s):o&256?(F$1=9,256):(s=3584&o,s!==0?(F$1=8,s):o&4096?(F$1=7,4096):(s=4186112&o,s!==0?(F$1=6,s):(s=62914560&o,s!==0?(F$1=5,s):o&67108864?(F$1=4,67108864):o&134217728?(F$1=3,134217728):(s=805306368&o,s!==0?(F$1=2,s):1073741824&o?(F$1=1,1073741824):(F$1=8,o))))))}function Sc(o){switch(o){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function Tc(o){switch(o){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(y$2(358,o))}}function Uc(o,s){var a=o.pendingLanes;if(a===0)return F$1=0;var $=0,j=0,_e=o.expiredLanes,et=o.suspendedLanes,tt=o.pingedLanes;if(_e!==0)$=_e,j=F$1=15;else if(_e=a&134217727,_e!==0){var nt=_e&~et;nt!==0?($=Rc(nt),j=F$1):(tt&=_e,tt!==0&&($=Rc(tt),j=F$1))}else _e=a&~et,_e!==0?($=Rc(_e),j=F$1):tt!==0&&($=Rc(tt),j=F$1);if($===0)return 0;if($=31-Vc($),$=a&((0>$?0:1<<$)<<1)-1,s!==0&&s!==$&&!(s&et)){if(Rc(s),j<=F$1)return s;F$1=j}if(s=o.entangledLanes,s!==0)for(o=o.entanglements,s&=$;0<s;)a=31-Vc(s),j=1<<a,$|=o[a],s&=~j;return $}function Wc(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function Xc(o,s){switch(o){case 15:return 1;case 14:return 2;case 12:return o=Yc(24&~s),o===0?Xc(10,s):o;case 10:return o=Yc(192&~s),o===0?Xc(8,s):o;case 8:return o=Yc(3584&~s),o===0&&(o=Yc(4186112&~s),o===0&&(o=512)),o;case 2:return s=Yc(805306368&~s),s===0&&(s=268435456),s}throw Error(y$2(358,o))}function Yc(o){return o&-o}function Zc(o){for(var s=[],a=0;31>a;a++)s.push(o);return s}function $c(o,s,a){o.pendingLanes|=s;var $=s-1;o.suspendedLanes&=$,o.pingedLanes&=$,o=o.eventTimes,s=31-Vc(s),o[s]=a}var Vc=Math.clz32?Math.clz32:ad,bd=Math.log,cd=Math.LN2;function ad(o){return o===0?32:31-(bd(o)/cd|0)|0}var dd=r$3.unstable_UserBlockingPriority,ed=r$3.unstable_runWithPriority,fd=!0;function gd(o,s,a,$){Kb||Ib();var j=hd,_e=Kb;Kb=!0;try{Hb(j,o,s,a,$)}finally{(Kb=_e)||Mb()}}function id(o,s,a,$){ed(dd,hd.bind(null,o,s,a,$))}function hd(o,s,a,$){if(fd){var j;if((j=(s&4)===0)&&0<jc.length&&-1<qc.indexOf(o))o=rc(null,o,s,a,$),jc.push(o);else{var _e=yc(o,s,a,$);if(_e===null)j&&sc(o,$);else{if(j){if(-1<qc.indexOf(o)){o=rc(_e,o,s,a,$),jc.push(o);return}if(uc(_e,o,s,a,$))return;sc(o,$)}jd(o,s,$,null,a)}}}}function yc(o,s,a,$){var j=xb($);if(j=wc(j),j!==null){var _e=Zb(j);if(_e===null)j=null;else{var et=_e.tag;if(et===13){if(j=$b(_e),j!==null)return j;j=null}else if(et===3){if(_e.stateNode.hydrate)return _e.tag===3?_e.stateNode.containerInfo:null;j=null}else _e!==j&&(j=null)}}return jd(o,s,$,j,a),null}var kd=null,ld=null,md=null;function nd(){if(md)return md;var o,s=ld,a=s.length,$,j="value"in kd?kd.value:kd.textContent,_e=j.length;for(o=0;o<a&&s[o]===j[o];o++);var et=a-o;for($=1;$<=et&&s[a-$]===j[_e-$];$++);return md=j.slice(o,1<$?1-$:void 0)}function od(o){var s=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function pd(){return!0}function qd(){return!1}function rd(o){function s(a,$,j,_e,et){this._reactName=a,this._targetInst=j,this.type=$,this.nativeEvent=_e,this.target=et,this.currentTarget=null;for(var tt in o)o.hasOwnProperty(tt)&&(a=o[tt],this[tt]=a?a(_e):_e[tt]);return this.isDefaultPrevented=(_e.defaultPrevented!=null?_e.defaultPrevented:_e.returnValue===!1)?pd:qd,this.isPropagationStopped=qd,this}return m$2(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd}),s}var sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=m$2({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=m$2({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==yd&&(yd&&o.type==="mousemove"?(wd=o.screenX-yd.screenX,xd=o.screenY-yd.screenY):xd=wd=0,yd=o),wd)},movementY:function(o){return"movementY"in o?o.movementY:xd}}),Bd=rd(Ad),Cd=m$2({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=m$2({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=m$2({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=m$2({},sd,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=m$2({},sd,{data:0}),Ld=rd(Kd),Md={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Od={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=Od[o])?!!s[o]:!1}function zd(){return Pd}var Qd=m$2({},ud,{key:function(o){if(o.key){var s=Md[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=od(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?Nd[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(o){return o.type==="keypress"?od(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?od(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),Rd=rd(Qd),Sd=m$2({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=m$2({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=m$2({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=m$2({},Ad,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd(Yd),$d=[9,13,27,32],ae=fa&&"CompositionEvent"in window,be=null;fa&&"documentMode"in document&&(be=document.documentMode);var ce=fa&&"TextEvent"in window&&!be,de=fa&&(!ae||be&&8<be&&11>=be),ee=" ",fe=!1;function ge(o,s){switch(o){case"keyup":return $d.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var ie=!1;function je(o,s){switch(o){case"compositionend":return he(s);case"keypress":return s.which!==32?null:(fe=!0,ee);case"textInput":return o=s.data,o===ee&&fe?null:o;default:return null}}function ke(o,s){if(ie)return o==="compositionend"||!ae&&ge(o,s)?(o=nd(),md=ld=kd=null,ie=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return de&&s.locale!=="ko"?null:s.data;default:return null}}var le={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!le[o.type]:s==="textarea"}function ne(o,s,a,$){Eb($),s=oe(s,"onChange"),0<s.length&&(a=new td("onChange","change",null,a,$),o.push({event:a,listeners:s}))}var pe=null,qe=null;function re(o){se(o,0)}function te(o){var s=ue(o);if(Wa(s))return o}function ve(o,s){if(o==="change")return s}var we=!1;if(fa){var xe;if(fa){var ye="oninput"in document;if(!ye){var ze=document.createElement("div");ze.setAttribute("oninput","return;"),ye=typeof ze.oninput=="function"}xe=ye}else xe=!1;we=xe&&(!document.documentMode||9<document.documentMode)}function Ae(){pe&&(pe.detachEvent("onpropertychange",Be),qe=pe=null)}function Be(o){if(o.propertyName==="value"&&te(qe)){var s=[];if(ne(s,qe,o,xb(o)),o=re,Kb)o(s);else{Kb=!0;try{Gb(o,s)}finally{Kb=!1,Mb()}}}}function Ce(o,s,a){o==="focusin"?(Ae(),pe=s,qe=a,pe.attachEvent("onpropertychange",Be)):o==="focusout"&&Ae()}function De(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return te(qe)}function Ee(o,s){if(o==="click")return te(s)}function Fe(o,s){if(o==="input"||o==="change")return te(s)}function Ge(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var He=typeof Object.is=="function"?Object.is:Ge,Ie=Object.prototype.hasOwnProperty;function Je(o,s){if(He(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var a=Object.keys(o),$=Object.keys(s);if(a.length!==$.length)return!1;for($=0;$<a.length;$++)if(!Ie.call(s,a[$])||!He(o[a[$]],s[a[$]]))return!1;return!0}function Ke(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Le(o,s){var a=Ke(o);o=0;for(var $;a;){if(a.nodeType===3){if($=o+a.textContent.length,o<=s&&$>=s)return{node:a,offset:s-o};o=$}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Ke(a)}}function Me(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?Me(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function Ne(){for(var o=window,s=Xa();s instanceof o.HTMLIFrameElement;){try{var a=typeof s.contentWindow.location.href=="string"}catch{a=!1}if(a)o=s.contentWindow;else break;s=Xa(o.document)}return s}function Oe(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}var Pe=fa&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue(o,s,a){var $=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Te||Qe==null||Qe!==Xa($)||($=Qe,"selectionStart"in $&&Oe($)?$={start:$.selectionStart,end:$.selectionEnd}:($=($.ownerDocument&&$.ownerDocument.defaultView||window).getSelection(),$={anchorNode:$.anchorNode,anchorOffset:$.anchorOffset,focusNode:$.focusNode,focusOffset:$.focusOffset}),Se&&Je(Se,$)||(Se=$,$=oe(Re,"onSelect"),0<$.length&&(s=new td("onSelect","select",null,s,a),o.push({event:s,listeners:$}),s.target=Qe)))}Pc("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);Pc("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);Pc(Oc,2);for(var Ve="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),We=0;We<Ve.length;We++)Nc.set(Ve[We],0);ea("onMouseEnter",["mouseout","mouseover"]);ea("onMouseLeave",["mouseout","mouseover"]);ea("onPointerEnter",["pointerout","pointerover"]);ea("onPointerLeave",["pointerout","pointerover"]);da("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));da("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));da("onBeforeInput",["compositionend","keypress","textInput","paste"]);da("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));da("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));da("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ye=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xe));function Ze(o,s,a){var $=o.type||"unknown-event";o.currentTarget=a,Yb($,s,void 0,o),o.currentTarget=null}function se(o,s){s=(s&4)!==0;for(var a=0;a<o.length;a++){var $=o[a],j=$.event;$=$.listeners;e:{var _e=void 0;if(s)for(var et=$.length-1;0<=et;et--){var tt=$[et],nt=tt.instance,it=tt.currentTarget;if(tt=tt.listener,nt!==_e&&j.isPropagationStopped())break e;Ze(j,tt,it),_e=nt}else for(et=0;et<$.length;et++){if(tt=$[et],nt=tt.instance,it=tt.currentTarget,tt=tt.listener,nt!==_e&&j.isPropagationStopped())break e;Ze(j,tt,it),_e=nt}}}if(Ub)throw o=Vb,Ub=!1,Vb=null,o}function G$1(o,s){var a=$e(s),$=o+"__bubble";a.has($)||(af(s,o,2,!1),a.add($))}var bf="_reactListening"+Math.random().toString(36).slice(2);function cf(o){o[bf]||(o[bf]=!0,ba.forEach(function(s){Ye.has(s)||df(s,!1,o,null),df(s,!0,o,null)}))}function df(o,s,a,$){var j=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,_e=a;o==="selectionchange"&&a.nodeType!==9&&(_e=a.ownerDocument);var et=$e(_e),tt=o+"__"+(s?"capture":"bubble");et.has(tt)||(s&&(j|=4),af(_e,o,j,s),et.add(tt))}function af(o,s,a,$){var j=Nc.get(s);switch(j===void 0?2:j){case 0:j=gd;break;case 1:j=id;break;default:j=hd}a=j.bind(null,s,a,o),j=void 0,!Pb||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(j=!0),$?j!==void 0?o.addEventListener(s,a,{capture:!0,passive:j}):o.addEventListener(s,a,!0):j!==void 0?o.addEventListener(s,a,{passive:j}):o.addEventListener(s,a,!1)}function jd(o,s,a,$,j){var _e=$;if(!(s&1)&&!(s&2)&&$!==null)e:for(;;){if($===null)return;var et=$.tag;if(et===3||et===4){var tt=$.stateNode.containerInfo;if(tt===j||tt.nodeType===8&&tt.parentNode===j)break;if(et===4)for(et=$.return;et!==null;){var nt=et.tag;if((nt===3||nt===4)&&(nt=et.stateNode.containerInfo,nt===j||nt.nodeType===8&&nt.parentNode===j))return;et=et.return}for(;tt!==null;){if(et=wc(tt),et===null)return;if(nt=et.tag,nt===5||nt===6){$=_e=et;continue e}tt=tt.parentNode}}$=$.return}Nb(function(){var it=_e,rt=xb(a),st=[];e:{var ot=Mc.get(o);if(ot!==void 0){var at=td,lt=o;switch(o){case"keypress":if(od(a)===0)break e;case"keydown":case"keyup":at=Rd;break;case"focusin":lt="focus",at=Fd;break;case"focusout":lt="blur",at=Fd;break;case"beforeblur":case"afterblur":at=Fd;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":at=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":at=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":at=Vd;break;case Ic:case Jc:case Kc:at=Hd;break;case Lc:at=Xd;break;case"scroll":at=vd;break;case"wheel":at=Zd;break;case"copy":case"cut":case"paste":at=Jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":at=Td}var ct=(s&4)!==0,ht=!ct&&o==="scroll",dt=ct?ot!==null?ot+"Capture":null:ot;ct=[];for(var ut=it,pt;ut!==null;){pt=ut;var ft=pt.stateNode;if(pt.tag===5&&ft!==null&&(pt=ft,dt!==null&&(ft=Ob(ut,dt),ft!=null&&ct.push(ef(ut,ft,pt)))),ht)break;ut=ut.return}0<ct.length&&(ot=new at(ot,lt,null,a,rt),st.push({event:ot,listeners:ct}))}}if(!(s&7)){e:{if(ot=o==="mouseover"||o==="pointerover",at=o==="mouseout"||o==="pointerout",ot&&!(s&16)&&(lt=a.relatedTarget||a.fromElement)&&(wc(lt)||lt[ff]))break e;if((at||ot)&&(ot=rt.window===rt?rt:(ot=rt.ownerDocument)?ot.defaultView||ot.parentWindow:window,at?(lt=a.relatedTarget||a.toElement,at=it,lt=lt?wc(lt):null,lt!==null&&(ht=Zb(lt),lt!==ht||lt.tag!==5&&lt.tag!==6)&&(lt=null)):(at=null,lt=it),at!==lt)){if(ct=Bd,ft="onMouseLeave",dt="onMouseEnter",ut="mouse",(o==="pointerout"||o==="pointerover")&&(ct=Td,ft="onPointerLeave",dt="onPointerEnter",ut="pointer"),ht=at==null?ot:ue(at),pt=lt==null?ot:ue(lt),ot=new ct(ft,ut+"leave",at,a,rt),ot.target=ht,ot.relatedTarget=pt,ft=null,wc(rt)===it&&(ct=new ct(dt,ut+"enter",lt,a,rt),ct.target=pt,ct.relatedTarget=ht,ft=ct),ht=ft,at&&lt)t:{for(ct=at,dt=lt,ut=0,pt=ct;pt;pt=gf(pt))ut++;for(pt=0,ft=dt;ft;ft=gf(ft))pt++;for(;0<ut-pt;)ct=gf(ct),ut--;for(;0<pt-ut;)dt=gf(dt),pt--;for(;ut--;){if(ct===dt||dt!==null&&ct===dt.alternate)break t;ct=gf(ct),dt=gf(dt)}ct=null}else ct=null;at!==null&&hf(st,ot,at,ct,!1),lt!==null&&ht!==null&&hf(st,ht,lt,ct,!0)}}e:{if(ot=it?ue(it):window,at=ot.nodeName&&ot.nodeName.toLowerCase(),at==="select"||at==="input"&&ot.type==="file")var mt=ve;else if(me(ot))if(we)mt=Fe;else{mt=De;var gt=Ce}else(at=ot.nodeName)&&at.toLowerCase()==="input"&&(ot.type==="checkbox"||ot.type==="radio")&&(mt=Ee);if(mt&&(mt=mt(o,it))){ne(st,mt,a,rt);break e}gt&&gt(o,ot,it),o==="focusout"&&(gt=ot._wrapperState)&&gt.controlled&&ot.type==="number"&&bb(ot,"number",ot.value)}switch(gt=it?ue(it):window,o){case"focusin":(me(gt)||gt.contentEditable==="true")&&(Qe=gt,Re=it,Se=null);break;case"focusout":Se=Re=Qe=null;break;case"mousedown":Te=!0;break;case"contextmenu":case"mouseup":case"dragend":Te=!1,Ue(st,a,rt);break;case"selectionchange":if(Pe)break;case"keydown":case"keyup":Ue(st,a,rt)}var bt;if(ae)e:{switch(o){case"compositionstart":var St="onCompositionStart";break e;case"compositionend":St="onCompositionEnd";break e;case"compositionupdate":St="onCompositionUpdate";break e}St=void 0}else ie?ge(o,a)&&(St="onCompositionEnd"):o==="keydown"&&a.keyCode===229&&(St="onCompositionStart");St&&(de&&a.locale!=="ko"&&(ie||St!=="onCompositionStart"?St==="onCompositionEnd"&&ie&&(bt=nd()):(kd=rt,ld="value"in kd?kd.value:kd.textContent,ie=!0)),gt=oe(it,St),0<gt.length&&(St=new Ld(St,o,null,a,rt),st.push({event:St,listeners:gt}),bt?St.data=bt:(bt=he(a),bt!==null&&(St.data=bt)))),(bt=ce?je(o,a):ke(o,a))&&(it=oe(it,"onBeforeInput"),0<it.length&&(rt=new Ld("onBeforeInput","beforeinput",null,a,rt),st.push({event:rt,listeners:it}),rt.data=bt))}se(st,s)})}function ef(o,s,a){return{instance:o,listener:s,currentTarget:a}}function oe(o,s){for(var a=s+"Capture",$=[];o!==null;){var j=o,_e=j.stateNode;j.tag===5&&_e!==null&&(j=_e,_e=Ob(o,a),_e!=null&&$.unshift(ef(o,_e,j)),_e=Ob(o,s),_e!=null&&$.push(ef(o,_e,j))),o=o.return}return $}function gf(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function hf(o,s,a,$,j){for(var _e=s._reactName,et=[];a!==null&&a!==$;){var tt=a,nt=tt.alternate,it=tt.stateNode;if(nt!==null&&nt===$)break;tt.tag===5&&it!==null&&(tt=it,j?(nt=Ob(a,_e),nt!=null&&et.unshift(ef(a,nt,tt))):j||(nt=Ob(a,_e),nt!=null&&et.push(ef(a,nt,tt)))),a=a.return}et.length!==0&&o.push({event:s,listeners:et})}function jf(){}var kf=null,lf=null;function mf(o,s){switch(o){case"button":case"input":case"select":case"textarea":return!!s.autoFocus}return!1}function nf(o,s){return o==="textarea"||o==="option"||o==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var of=typeof setTimeout=="function"?setTimeout:void 0,pf=typeof clearTimeout=="function"?clearTimeout:void 0;function qf(o){o.nodeType===1?o.textContent="":o.nodeType===9&&(o=o.body,o!=null&&(o.textContent=""))}function rf(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break}return o}function sf(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var a=o.data;if(a==="$"||a==="$!"||a==="$?"){if(s===0)return o;s--}else a==="/$"&&s++}o=o.previousSibling}return null}var tf=0;function uf(o){return{$$typeof:Ga,toString:o,valueOf:o}}var vf=Math.random().toString(36).slice(2),wf="__reactFiber$"+vf,xf="__reactProps$"+vf,ff="__reactContainer$"+vf,yf="__reactEvents$"+vf;function wc(o){var s=o[wf];if(s)return s;for(var a=o.parentNode;a;){if(s=a[ff]||a[wf]){if(a=s.alternate,s.child!==null||a!==null&&a.child!==null)for(o=sf(o);o!==null;){if(a=o[wf])return a;o=sf(o)}return s}o=a,a=o.parentNode}return null}function Cb(o){return o=o[wf]||o[ff],!o||o.tag!==5&&o.tag!==6&&o.tag!==13&&o.tag!==3?null:o}function ue(o){if(o.tag===5||o.tag===6)return o.stateNode;throw Error(y$2(33))}function Db(o){return o[xf]||null}function $e(o){var s=o[yf];return s===void 0&&(s=o[yf]=new Set),s}var zf=[],Af=-1;function Bf(o){return{current:o}}function H$2(o){0>Af||(o.current=zf[Af],zf[Af]=null,Af--)}function I$1(o,s){Af++,zf[Af]=o.current,o.current=s}var Cf={},M=Bf(Cf),N=Bf(!1),Df=Cf;function Ef(o,s){var a=o.type.contextTypes;if(!a)return Cf;var $=o.stateNode;if($&&$.__reactInternalMemoizedUnmaskedChildContext===s)return $.__reactInternalMemoizedMaskedChildContext;var j={},_e;for(_e in a)j[_e]=s[_e];return $&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=s,o.__reactInternalMemoizedMaskedChildContext=j),j}function Ff(o){return o=o.childContextTypes,o!=null}function Gf(){H$2(N),H$2(M)}function Hf(o,s,a){if(M.current!==Cf)throw Error(y$2(168));I$1(M,s),I$1(N,a)}function If(o,s,a){var $=o.stateNode;if(o=s.childContextTypes,typeof $.getChildContext!="function")return a;$=$.getChildContext();for(var j in $)if(!(j in o))throw Error(y$2(108,Ra(s)||"Unknown",j));return m$2({},a,$)}function Jf(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||Cf,Df=M.current,I$1(M,o),I$1(N,N.current),!0}function Kf(o,s,a){var $=o.stateNode;if(!$)throw Error(y$2(169));a?(o=If(o,s,Df),$.__reactInternalMemoizedMergedChildContext=o,H$2(N),H$2(M),I$1(M,o)):H$2(N),I$1(N,a)}var Lf=null,Mf=null,Nf=r$3.unstable_runWithPriority,Of=r$3.unstable_scheduleCallback,Pf=r$3.unstable_cancelCallback,Qf=r$3.unstable_shouldYield,Rf=r$3.unstable_requestPaint,Sf=r$3.unstable_now,Tf=r$3.unstable_getCurrentPriorityLevel,Uf=r$3.unstable_ImmediatePriority,Vf=r$3.unstable_UserBlockingPriority,Wf=r$3.unstable_NormalPriority,Xf=r$3.unstable_LowPriority,Yf=r$3.unstable_IdlePriority,Zf={},$f=Rf!==void 0?Rf:function(){},ag=null,bg=null,cg=!1,dg=Sf(),O=1e4>dg?Sf:function(){return Sf()-dg};function eg(){switch(Tf()){case Uf:return 99;case Vf:return 98;case Wf:return 97;case Xf:return 96;case Yf:return 95;default:throw Error(y$2(332))}}function fg(o){switch(o){case 99:return Uf;case 98:return Vf;case 97:return Wf;case 96:return Xf;case 95:return Yf;default:throw Error(y$2(332))}}function gg(o,s){return o=fg(o),Nf(o,s)}function hg(o,s,a){return o=fg(o),Of(o,s,a)}function ig(){if(bg!==null){var o=bg;bg=null,Pf(o)}jg()}function jg(){if(!cg&&ag!==null){cg=!0;var o=0;try{var s=ag;gg(99,function(){for(;o<s.length;o++){var a=s[o];do a=a(!0);while(a!==null)}}),ag=null}catch(a){throw ag!==null&&(ag=ag.slice(o+1)),Of(Uf,ig),a}finally{cg=!1}}}var kg=ra.ReactCurrentBatchConfig;function lg(o,s){if(o&&o.defaultProps){s=m$2({},s),o=o.defaultProps;for(var a in o)s[a]===void 0&&(s[a]=o[a]);return s}return s}var mg=Bf(null),ng=null,og=null,pg=null;function qg(){pg=og=ng=null}function rg(o){var s=mg.current;H$2(mg),o.type._context._currentValue=s}function sg(o,s){for(;o!==null;){var a=o.alternate;if((o.childLanes&s)===s){if(a===null||(a.childLanes&s)===s)break;a.childLanes|=s}else o.childLanes|=s,a!==null&&(a.childLanes|=s);o=o.return}}function tg(o,s){ng=o,pg=og=null,o=o.dependencies,o!==null&&o.firstContext!==null&&(o.lanes&s&&(ug=!0),o.firstContext=null)}function vg(o,s){if(pg!==o&&s!==!1&&s!==0)if((typeof s!="number"||s===1073741823)&&(pg=o,s=1073741823),s={context:o,observedBits:s,next:null},og===null){if(ng===null)throw Error(y$2(308));og=s,ng.dependencies={lanes:0,firstContext:s,responders:null}}else og=og.next=s;return o._currentValue}var wg=!1;function xg(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function yg(o,s){o=o.updateQueue,s.updateQueue===o&&(s.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function zg(o,s){return{eventTime:o,lane:s,tag:0,payload:null,callback:null,next:null}}function Ag(o,s){if(o=o.updateQueue,o!==null){o=o.shared;var a=o.pending;a===null?s.next=s:(s.next=a.next,a.next=s),o.pending=s}}function Bg(o,s){var a=o.updateQueue,$=o.alternate;if($!==null&&($=$.updateQueue,a===$)){var j=null,_e=null;if(a=a.firstBaseUpdate,a!==null){do{var et={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};_e===null?j=_e=et:_e=_e.next=et,a=a.next}while(a!==null);_e===null?j=_e=s:_e=_e.next=s}else j=_e=s;a={baseState:$.baseState,firstBaseUpdate:j,lastBaseUpdate:_e,shared:$.shared,effects:$.effects},o.updateQueue=a;return}o=a.lastBaseUpdate,o===null?a.firstBaseUpdate=s:o.next=s,a.lastBaseUpdate=s}function Cg(o,s,a,$){var j=o.updateQueue;wg=!1;var _e=j.firstBaseUpdate,et=j.lastBaseUpdate,tt=j.shared.pending;if(tt!==null){j.shared.pending=null;var nt=tt,it=nt.next;nt.next=null,et===null?_e=it:et.next=it,et=nt;var rt=o.alternate;if(rt!==null){rt=rt.updateQueue;var st=rt.lastBaseUpdate;st!==et&&(st===null?rt.firstBaseUpdate=it:st.next=it,rt.lastBaseUpdate=nt)}}if(_e!==null){st=j.baseState,et=0,rt=it=nt=null;do{tt=_e.lane;var ot=_e.eventTime;if(($&tt)===tt){rt!==null&&(rt=rt.next={eventTime:ot,lane:0,tag:_e.tag,payload:_e.payload,callback:_e.callback,next:null});e:{var at=o,lt=_e;switch(tt=s,ot=a,lt.tag){case 1:if(at=lt.payload,typeof at=="function"){st=at.call(ot,st,tt);break e}st=at;break e;case 3:at.flags=at.flags&-4097|64;case 0:if(at=lt.payload,tt=typeof at=="function"?at.call(ot,st,tt):at,tt==null)break e;st=m$2({},st,tt);break e;case 2:wg=!0}}_e.callback!==null&&(o.flags|=32,tt=j.effects,tt===null?j.effects=[_e]:tt.push(_e))}else ot={eventTime:ot,lane:tt,tag:_e.tag,payload:_e.payload,callback:_e.callback,next:null},rt===null?(it=rt=ot,nt=st):rt=rt.next=ot,et|=tt;if(_e=_e.next,_e===null){if(tt=j.shared.pending,tt===null)break;_e=tt.next,tt.next=null,j.lastBaseUpdate=tt,j.shared.pending=null}}while(!0);rt===null&&(nt=st),j.baseState=nt,j.firstBaseUpdate=it,j.lastBaseUpdate=rt,Dg|=et,o.lanes=et,o.memoizedState=st}}function Eg(o,s,a){if(o=s.effects,s.effects=null,o!==null)for(s=0;s<o.length;s++){var $=o[s],j=$.callback;if(j!==null){if($.callback=null,$=a,typeof j!="function")throw Error(y$2(191,j));j.call($)}}}var Fg=new aa.Component().refs;function Gg(o,s,a,$){s=o.memoizedState,a=a($,s),a=a==null?s:m$2({},s,a),o.memoizedState=a,o.lanes===0&&(o.updateQueue.baseState=a)}var Kg={isMounted:function(o){return(o=o._reactInternals)?Zb(o)===o:!1},enqueueSetState:function(o,s,a){o=o._reactInternals;var $=Hg(),j=Ig(o),_e=zg($,j);_e.payload=s,a!=null&&(_e.callback=a),Ag(o,_e),Jg(o,j,$)},enqueueReplaceState:function(o,s,a){o=o._reactInternals;var $=Hg(),j=Ig(o),_e=zg($,j);_e.tag=1,_e.payload=s,a!=null&&(_e.callback=a),Ag(o,_e),Jg(o,j,$)},enqueueForceUpdate:function(o,s){o=o._reactInternals;var a=Hg(),$=Ig(o),j=zg(a,$);j.tag=2,s!=null&&(j.callback=s),Ag(o,j),Jg(o,$,a)}};function Lg(o,s,a,$,j,_e,et){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate($,_e,et):s.prototype&&s.prototype.isPureReactComponent?!Je(a,$)||!Je(j,_e):!0}function Mg(o,s,a){var $=!1,j=Cf,_e=s.contextType;return typeof _e=="object"&&_e!==null?_e=vg(_e):(j=Ff(s)?Df:M.current,$=s.contextTypes,_e=($=$!=null)?Ef(o,j):Cf),s=new s(a,_e),o.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Kg,o.stateNode=s,s._reactInternals=o,$&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=j,o.__reactInternalMemoizedMaskedChildContext=_e),s}function Ng(o,s,a,$){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(a,$),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(a,$),s.state!==o&&Kg.enqueueReplaceState(s,s.state,null)}function Og(o,s,a,$){var j=o.stateNode;j.props=a,j.state=o.memoizedState,j.refs=Fg,xg(o);var _e=s.contextType;typeof _e=="object"&&_e!==null?j.context=vg(_e):(_e=Ff(s)?Df:M.current,j.context=Ef(o,_e)),Cg(o,a,j,$),j.state=o.memoizedState,_e=s.getDerivedStateFromProps,typeof _e=="function"&&(Gg(o,s,_e,a),j.state=o.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof j.getSnapshotBeforeUpdate=="function"||typeof j.UNSAFE_componentWillMount!="function"&&typeof j.componentWillMount!="function"||(s=j.state,typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount(),s!==j.state&&Kg.enqueueReplaceState(j,j.state,null),Cg(o,a,j,$),j.state=o.memoizedState),typeof j.componentDidMount=="function"&&(o.flags|=4)}var Pg=Array.isArray;function Qg(o,s,a){if(o=a.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(y$2(309));var $=a.stateNode}if(!$)throw Error(y$2(147,o));var j=""+o;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===j?s.ref:(s=function(_e){var et=$.refs;et===Fg&&(et=$.refs={}),_e===null?delete et[j]:et[j]=_e},s._stringRef=j,s)}if(typeof o!="string")throw Error(y$2(284));if(!a._owner)throw Error(y$2(290,o))}return o}function Rg(o,s){if(o.type!=="textarea")throw Error(y$2(31,Object.prototype.toString.call(s)==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":s))}function Sg(o){function s(ht,dt){if(o){var ut=ht.lastEffect;ut!==null?(ut.nextEffect=dt,ht.lastEffect=dt):ht.firstEffect=ht.lastEffect=dt,dt.nextEffect=null,dt.flags=8}}function a(ht,dt){if(!o)return null;for(;dt!==null;)s(ht,dt),dt=dt.sibling;return null}function $(ht,dt){for(ht=new Map;dt!==null;)dt.key!==null?ht.set(dt.key,dt):ht.set(dt.index,dt),dt=dt.sibling;return ht}function j(ht,dt){return ht=Tg(ht,dt),ht.index=0,ht.sibling=null,ht}function _e(ht,dt,ut){return ht.index=ut,o?(ut=ht.alternate,ut!==null?(ut=ut.index,ut<dt?(ht.flags=2,dt):ut):(ht.flags=2,dt)):dt}function et(ht){return o&&ht.alternate===null&&(ht.flags=2),ht}function tt(ht,dt,ut,pt){return dt===null||dt.tag!==6?(dt=Ug(ut,ht.mode,pt),dt.return=ht,dt):(dt=j(dt,ut),dt.return=ht,dt)}function nt(ht,dt,ut,pt){return dt!==null&&dt.elementType===ut.type?(pt=j(dt,ut.props),pt.ref=Qg(ht,dt,ut),pt.return=ht,pt):(pt=Vg(ut.type,ut.key,ut.props,null,ht.mode,pt),pt.ref=Qg(ht,dt,ut),pt.return=ht,pt)}function it(ht,dt,ut,pt){return dt===null||dt.tag!==4||dt.stateNode.containerInfo!==ut.containerInfo||dt.stateNode.implementation!==ut.implementation?(dt=Wg(ut,ht.mode,pt),dt.return=ht,dt):(dt=j(dt,ut.children||[]),dt.return=ht,dt)}function rt(ht,dt,ut,pt,ft){return dt===null||dt.tag!==7?(dt=Xg(ut,ht.mode,pt,ft),dt.return=ht,dt):(dt=j(dt,ut),dt.return=ht,dt)}function st(ht,dt,ut){if(typeof dt=="string"||typeof dt=="number")return dt=Ug(""+dt,ht.mode,ut),dt.return=ht,dt;if(typeof dt=="object"&&dt!==null){switch(dt.$$typeof){case sa:return ut=Vg(dt.type,dt.key,dt.props,null,ht.mode,ut),ut.ref=Qg(ht,null,dt),ut.return=ht,ut;case ta:return dt=Wg(dt,ht.mode,ut),dt.return=ht,dt}if(Pg(dt)||La(dt))return dt=Xg(dt,ht.mode,ut,null),dt.return=ht,dt;Rg(ht,dt)}return null}function ot(ht,dt,ut,pt){var ft=dt!==null?dt.key:null;if(typeof ut=="string"||typeof ut=="number")return ft!==null?null:tt(ht,dt,""+ut,pt);if(typeof ut=="object"&&ut!==null){switch(ut.$$typeof){case sa:return ut.key===ft?ut.type===ua$1?rt(ht,dt,ut.props.children,pt,ft):nt(ht,dt,ut,pt):null;case ta:return ut.key===ft?it(ht,dt,ut,pt):null}if(Pg(ut)||La(ut))return ft!==null?null:rt(ht,dt,ut,pt,null);Rg(ht,ut)}return null}function at(ht,dt,ut,pt,ft){if(typeof pt=="string"||typeof pt=="number")return ht=ht.get(ut)||null,tt(dt,ht,""+pt,ft);if(typeof pt=="object"&&pt!==null){switch(pt.$$typeof){case sa:return ht=ht.get(pt.key===null?ut:pt.key)||null,pt.type===ua$1?rt(dt,ht,pt.props.children,ft,pt.key):nt(dt,ht,pt,ft);case ta:return ht=ht.get(pt.key===null?ut:pt.key)||null,it(dt,ht,pt,ft)}if(Pg(pt)||La(pt))return ht=ht.get(ut)||null,rt(dt,ht,pt,ft,null);Rg(dt,pt)}return null}function lt(ht,dt,ut,pt){for(var ft=null,mt=null,gt=dt,bt=dt=0,St=null;gt!==null&&bt<ut.length;bt++){gt.index>bt?(St=gt,gt=null):St=gt.sibling;var Nt=ot(ht,gt,ut[bt],pt);if(Nt===null){gt===null&&(gt=St);break}o&&gt&&Nt.alternate===null&&s(ht,gt),dt=_e(Nt,dt,bt),mt===null?ft=Nt:mt.sibling=Nt,mt=Nt,gt=St}if(bt===ut.length)return a(ht,gt),ft;if(gt===null){for(;bt<ut.length;bt++)gt=st(ht,ut[bt],pt),gt!==null&&(dt=_e(gt,dt,bt),mt===null?ft=gt:mt.sibling=gt,mt=gt);return ft}for(gt=$(ht,gt);bt<ut.length;bt++)St=at(gt,ht,bt,ut[bt],pt),St!==null&&(o&&St.alternate!==null&&gt.delete(St.key===null?bt:St.key),dt=_e(St,dt,bt),mt===null?ft=St:mt.sibling=St,mt=St);return o&&gt.forEach(function(Rt){return s(ht,Rt)}),ft}function ct(ht,dt,ut,pt){var ft=La(ut);if(typeof ft!="function")throw Error(y$2(150));if(ut=ft.call(ut),ut==null)throw Error(y$2(151));for(var mt=ft=null,gt=dt,bt=dt=0,St=null,Nt=ut.next();gt!==null&&!Nt.done;bt++,Nt=ut.next()){gt.index>bt?(St=gt,gt=null):St=gt.sibling;var Rt=ot(ht,gt,Nt.value,pt);if(Rt===null){gt===null&&(gt=St);break}o&&gt&&Rt.alternate===null&&s(ht,gt),dt=_e(Rt,dt,bt),mt===null?ft=Rt:mt.sibling=Rt,mt=Rt,gt=St}if(Nt.done)return a(ht,gt),ft;if(gt===null){for(;!Nt.done;bt++,Nt=ut.next())Nt=st(ht,Nt.value,pt),Nt!==null&&(dt=_e(Nt,dt,bt),mt===null?ft=Nt:mt.sibling=Nt,mt=Nt);return ft}for(gt=$(ht,gt);!Nt.done;bt++,Nt=ut.next())Nt=at(gt,ht,bt,Nt.value,pt),Nt!==null&&(o&&Nt.alternate!==null&&gt.delete(Nt.key===null?bt:Nt.key),dt=_e(Nt,dt,bt),mt===null?ft=Nt:mt.sibling=Nt,mt=Nt);return o&&gt.forEach(function(Ft){return s(ht,Ft)}),ft}return function(ht,dt,ut,pt){var ft=typeof ut=="object"&&ut!==null&&ut.type===ua$1&&ut.key===null;ft&&(ut=ut.props.children);var mt=typeof ut=="object"&&ut!==null;if(mt)switch(ut.$$typeof){case sa:e:{for(mt=ut.key,ft=dt;ft!==null;){if(ft.key===mt){switch(ft.tag){case 7:if(ut.type===ua$1){a(ht,ft.sibling),dt=j(ft,ut.props.children),dt.return=ht,ht=dt;break e}break;default:if(ft.elementType===ut.type){a(ht,ft.sibling),dt=j(ft,ut.props),dt.ref=Qg(ht,ft,ut),dt.return=ht,ht=dt;break e}}a(ht,ft);break}else s(ht,ft);ft=ft.sibling}ut.type===ua$1?(dt=Xg(ut.props.children,ht.mode,pt,ut.key),dt.return=ht,ht=dt):(pt=Vg(ut.type,ut.key,ut.props,null,ht.mode,pt),pt.ref=Qg(ht,dt,ut),pt.return=ht,ht=pt)}return et(ht);case ta:e:{for(ft=ut.key;dt!==null;){if(dt.key===ft)if(dt.tag===4&&dt.stateNode.containerInfo===ut.containerInfo&&dt.stateNode.implementation===ut.implementation){a(ht,dt.sibling),dt=j(dt,ut.children||[]),dt.return=ht,ht=dt;break e}else{a(ht,dt);break}else s(ht,dt);dt=dt.sibling}dt=Wg(ut,ht.mode,pt),dt.return=ht,ht=dt}return et(ht)}if(typeof ut=="string"||typeof ut=="number")return ut=""+ut,dt!==null&&dt.tag===6?(a(ht,dt.sibling),dt=j(dt,ut),dt.return=ht,ht=dt):(a(ht,dt),dt=Ug(ut,ht.mode,pt),dt.return=ht,ht=dt),et(ht);if(Pg(ut))return lt(ht,dt,ut,pt);if(La(ut))return ct(ht,dt,ut,pt);if(mt&&Rg(ht,ut),typeof ut>"u"&&!ft)switch(ht.tag){case 1:case 22:case 0:case 11:case 15:throw Error(y$2(152,Ra(ht.type)||"Component"))}return a(ht,dt)}}var Yg=Sg(!0),Zg=Sg(!1),$g={},ah=Bf($g),bh=Bf($g),ch=Bf($g);function dh(o){if(o===$g)throw Error(y$2(174));return o}function eh(o,s){switch(I$1(ch,s),I$1(bh,o),I$1(ah,$g),o=s.nodeType,o){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:mb(null,"");break;default:o=o===8?s.parentNode:s,s=o.namespaceURI||null,o=o.tagName,s=mb(s,o)}H$2(ah),I$1(ah,s)}function fh(){H$2(ah),H$2(bh),H$2(ch)}function gh(o){dh(ch.current);var s=dh(ah.current),a=mb(s,o.type);s!==a&&(I$1(bh,o),I$1(ah,a))}function hh(o){bh.current===o&&(H$2(ah),H$2(bh))}var P=Bf(0);function ih(o){for(var s=o;s!==null;){if(s.tag===13){var a=s.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if(s.flags&64)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var jh=null,kh=null,lh=!1;function mh(o,s){var a=nh(5,null,null,0);a.elementType="DELETED",a.type="DELETED",a.stateNode=s,a.return=o,a.flags=8,o.lastEffect!==null?(o.lastEffect.nextEffect=a,o.lastEffect=a):o.firstEffect=o.lastEffect=a}function oh(o,s){switch(o.tag){case 5:var a=o.type;return s=s.nodeType!==1||a.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(o.stateNode=s,!0):!1;case 6:return s=o.pendingProps===""||s.nodeType!==3?null:s,s!==null?(o.stateNode=s,!0):!1;case 13:return!1;default:return!1}}function ph(o){if(lh){var s=kh;if(s){var a=s;if(!oh(o,s)){if(s=rf(a.nextSibling),!s||!oh(o,s)){o.flags=o.flags&-1025|2,lh=!1,jh=o;return}mh(jh,a)}jh=o,kh=rf(s.firstChild)}else o.flags=o.flags&-1025|2,lh=!1,jh=o}}function qh(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;jh=o}function rh(o){if(o!==jh)return!1;if(!lh)return qh(o),lh=!0,!1;var s=o.type;if(o.tag!==5||s!=="head"&&s!=="body"&&!nf(s,o.memoizedProps))for(s=kh;s;)mh(o,s),s=rf(s.nextSibling);if(qh(o),o.tag===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(y$2(317));e:{for(o=o.nextSibling,s=0;o;){if(o.nodeType===8){var a=o.data;if(a==="/$"){if(s===0){kh=rf(o.nextSibling);break e}s--}else a!=="$"&&a!=="$!"&&a!=="$?"||s++}o=o.nextSibling}kh=null}}else kh=jh?rf(o.stateNode.nextSibling):null;return!0}function sh(){kh=jh=null,lh=!1}var th=[];function uh(){for(var o=0;o<th.length;o++)th[o]._workInProgressVersionPrimary=null;th.length=0}var vh=ra.ReactCurrentDispatcher,wh=ra.ReactCurrentBatchConfig,xh=0,R=null,S=null,T=null,yh=!1,zh=!1;function Ah(){throw Error(y$2(321))}function Bh(o,s){if(s===null)return!1;for(var a=0;a<s.length&&a<o.length;a++)if(!He(o[a],s[a]))return!1;return!0}function Ch(o,s,a,$,j,_e){if(xh=_e,R=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,vh.current=o===null||o.memoizedState===null?Dh:Eh,o=a($,j),zh){_e=0;do{if(zh=!1,!(25>_e))throw Error(y$2(301));_e+=1,T=S=null,s.updateQueue=null,vh.current=Fh,o=a($,j)}while(zh)}if(vh.current=Gh,s=S!==null&&S.next!==null,xh=0,T=S=R=null,yh=!1,s)throw Error(y$2(300));return o}function Hh(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return T===null?R.memoizedState=T=o:T=T.next=o,T}function Ih(){if(S===null){var o=R.alternate;o=o!==null?o.memoizedState:null}else o=S.next;var s=T===null?R.memoizedState:T.next;if(s!==null)T=s,S=o;else{if(o===null)throw Error(y$2(310));S=o,o={memoizedState:S.memoizedState,baseState:S.baseState,baseQueue:S.baseQueue,queue:S.queue,next:null},T===null?R.memoizedState=T=o:T=T.next=o}return T}function Jh(o,s){return typeof s=="function"?s(o):s}function Kh(o){var s=Ih(),a=s.queue;if(a===null)throw Error(y$2(311));a.lastRenderedReducer=o;var $=S,j=$.baseQueue,_e=a.pending;if(_e!==null){if(j!==null){var et=j.next;j.next=_e.next,_e.next=et}$.baseQueue=j=_e,a.pending=null}if(j!==null){j=j.next,$=$.baseState;var tt=et=_e=null,nt=j;do{var it=nt.lane;if((xh&it)===it)tt!==null&&(tt=tt.next={lane:0,action:nt.action,eagerReducer:nt.eagerReducer,eagerState:nt.eagerState,next:null}),$=nt.eagerReducer===o?nt.eagerState:o($,nt.action);else{var rt={lane:it,action:nt.action,eagerReducer:nt.eagerReducer,eagerState:nt.eagerState,next:null};tt===null?(et=tt=rt,_e=$):tt=tt.next=rt,R.lanes|=it,Dg|=it}nt=nt.next}while(nt!==null&&nt!==j);tt===null?_e=$:tt.next=et,He($,s.memoizedState)||(ug=!0),s.memoizedState=$,s.baseState=_e,s.baseQueue=tt,a.lastRenderedState=$}return[s.memoizedState,a.dispatch]}function Lh(o){var s=Ih(),a=s.queue;if(a===null)throw Error(y$2(311));a.lastRenderedReducer=o;var $=a.dispatch,j=a.pending,_e=s.memoizedState;if(j!==null){a.pending=null;var et=j=j.next;do _e=o(_e,et.action),et=et.next;while(et!==j);He(_e,s.memoizedState)||(ug=!0),s.memoizedState=_e,s.baseQueue===null&&(s.baseState=_e),a.lastRenderedState=_e}return[_e,$]}function Mh(o,s,a){var $=s._getVersion;$=$(s._source);var j=s._workInProgressVersionPrimary;if(j!==null?o=j===$:(o=o.mutableReadLanes,(o=(xh&o)===o)&&(s._workInProgressVersionPrimary=$,th.push(s))),o)return a(s._source);throw th.push(s),Error(y$2(350))}function Nh(o,s,a,$){var j=U;if(j===null)throw Error(y$2(349));var _e=s._getVersion,et=_e(s._source),tt=vh.current,nt=tt.useState(function(){return Mh(j,s,a)}),it=nt[1],rt=nt[0];nt=T;var st=o.memoizedState,ot=st.refs,at=ot.getSnapshot,lt=st.source;st=st.subscribe;var ct=R;return o.memoizedState={refs:ot,source:s,subscribe:$},tt.useEffect(function(){ot.getSnapshot=a,ot.setSnapshot=it;var ht=_e(s._source);if(!He(et,ht)){ht=a(s._source),He(rt,ht)||(it(ht),ht=Ig(ct),j.mutableReadLanes|=ht&j.pendingLanes),ht=j.mutableReadLanes,j.entangledLanes|=ht;for(var dt=j.entanglements,ut=ht;0<ut;){var pt=31-Vc(ut),ft=1<<pt;dt[pt]|=ht,ut&=~ft}}},[a,s,$]),tt.useEffect(function(){return $(s._source,function(){var ht=ot.getSnapshot,dt=ot.setSnapshot;try{dt(ht(s._source));var ut=Ig(ct);j.mutableReadLanes|=ut&j.pendingLanes}catch(pt){dt(function(){throw pt})}})},[s,$]),He(at,a)&&He(lt,s)&&He(st,$)||(o={pending:null,dispatch:null,lastRenderedReducer:Jh,lastRenderedState:rt},o.dispatch=it=Oh.bind(null,R,o),nt.queue=o,nt.baseQueue=null,rt=Mh(j,s,a),nt.memoizedState=nt.baseState=rt),rt}function Ph(o,s,a){var $=Ih();return Nh($,o,s,a)}function Qh(o){var s=Hh();return typeof o=="function"&&(o=o()),s.memoizedState=s.baseState=o,o=s.queue={pending:null,dispatch:null,lastRenderedReducer:Jh,lastRenderedState:o},o=o.dispatch=Oh.bind(null,R,o),[s.memoizedState,o]}function Rh(o,s,a,$){return o={tag:o,create:s,destroy:a,deps:$,next:null},s=R.updateQueue,s===null?(s={lastEffect:null},R.updateQueue=s,s.lastEffect=o.next=o):(a=s.lastEffect,a===null?s.lastEffect=o.next=o:($=a.next,a.next=o,o.next=$,s.lastEffect=o)),o}function Sh(o){var s=Hh();return o={current:o},s.memoizedState=o}function Th(){return Ih().memoizedState}function Uh(o,s,a,$){var j=Hh();R.flags|=o,j.memoizedState=Rh(1|s,a,void 0,$===void 0?null:$)}function Vh(o,s,a,$){var j=Ih();$=$===void 0?null:$;var _e=void 0;if(S!==null){var et=S.memoizedState;if(_e=et.destroy,$!==null&&Bh($,et.deps)){Rh(s,a,_e,$);return}}R.flags|=o,j.memoizedState=Rh(1|s,a,_e,$)}function Wh(o,s){return Uh(516,4,o,s)}function Xh(o,s){return Vh(516,4,o,s)}function Yh(o,s){return Vh(4,2,o,s)}function Zh(o,s){if(typeof s=="function")return o=o(),s(o),function(){s(null)};if(s!=null)return o=o(),s.current=o,function(){s.current=null}}function $h(o,s,a){return a=a!=null?a.concat([o]):null,Vh(4,2,Zh.bind(null,s,o),a)}function ai(){}function bi(o,s){var a=Ih();s=s===void 0?null:s;var $=a.memoizedState;return $!==null&&s!==null&&Bh(s,$[1])?$[0]:(a.memoizedState=[o,s],o)}function ci(o,s){var a=Ih();s=s===void 0?null:s;var $=a.memoizedState;return $!==null&&s!==null&&Bh(s,$[1])?$[0]:(o=o(),a.memoizedState=[o,s],o)}function di(o,s){var a=eg();gg(98>a?98:a,function(){o(!0)}),gg(97<a?97:a,function(){var $=wh.transition;wh.transition=1;try{o(!1),s()}finally{wh.transition=$}})}function Oh(o,s,a){var $=Hg(),j=Ig(o),_e={lane:j,action:a,eagerReducer:null,eagerState:null,next:null},et=s.pending;if(et===null?_e.next=_e:(_e.next=et.next,et.next=_e),s.pending=_e,et=o.alternate,o===R||et!==null&&et===R)zh=yh=!0;else{if(o.lanes===0&&(et===null||et.lanes===0)&&(et=s.lastRenderedReducer,et!==null))try{var tt=s.lastRenderedState,nt=et(tt,a);if(_e.eagerReducer=et,_e.eagerState=nt,He(nt,tt))return}catch{}finally{}Jg(o,j,$)}}var Gh={readContext:vg,useCallback:Ah,useContext:Ah,useEffect:Ah,useImperativeHandle:Ah,useLayoutEffect:Ah,useMemo:Ah,useReducer:Ah,useRef:Ah,useState:Ah,useDebugValue:Ah,useDeferredValue:Ah,useTransition:Ah,useMutableSource:Ah,useOpaqueIdentifier:Ah,unstable_isNewReconciler:!1},Dh={readContext:vg,useCallback:function(o,s){return Hh().memoizedState=[o,s===void 0?null:s],o},useContext:vg,useEffect:Wh,useImperativeHandle:function(o,s,a){return a=a!=null?a.concat([o]):null,Uh(4,2,Zh.bind(null,s,o),a)},useLayoutEffect:function(o,s){return Uh(4,2,o,s)},useMemo:function(o,s){var a=Hh();return s=s===void 0?null:s,o=o(),a.memoizedState=[o,s],o},useReducer:function(o,s,a){var $=Hh();return s=a!==void 0?a(s):s,$.memoizedState=$.baseState=s,o=$.queue={pending:null,dispatch:null,lastRenderedReducer:o,lastRenderedState:s},o=o.dispatch=Oh.bind(null,R,o),[$.memoizedState,o]},useRef:Sh,useState:Qh,useDebugValue:ai,useDeferredValue:function(o){var s=Qh(o),a=s[0],$=s[1];return Wh(function(){var j=wh.transition;wh.transition=1;try{$(o)}finally{wh.transition=j}},[o]),a},useTransition:function(){var o=Qh(!1),s=o[0];return o=di.bind(null,o[1]),Sh(o),[o,s]},useMutableSource:function(o,s,a){var $=Hh();return $.memoizedState={refs:{getSnapshot:s,setSnapshot:null},source:o,subscribe:a},Nh($,o,s,a)},useOpaqueIdentifier:function(){if(lh){var o=!1,s=uf(function(){throw o||(o=!0,a("r:"+(tf++).toString(36))),Error(y$2(355))}),a=Qh(s)[1];return!(R.mode&2)&&(R.flags|=516,Rh(5,function(){a("r:"+(tf++).toString(36))},void 0,null)),s}return s="r:"+(tf++).toString(36),Qh(s),s},unstable_isNewReconciler:!1},Eh={readContext:vg,useCallback:bi,useContext:vg,useEffect:Xh,useImperativeHandle:$h,useLayoutEffect:Yh,useMemo:ci,useReducer:Kh,useRef:Th,useState:function(){return Kh(Jh)},useDebugValue:ai,useDeferredValue:function(o){var s=Kh(Jh),a=s[0],$=s[1];return Xh(function(){var j=wh.transition;wh.transition=1;try{$(o)}finally{wh.transition=j}},[o]),a},useTransition:function(){var o=Kh(Jh)[0];return[Th().current,o]},useMutableSource:Ph,useOpaqueIdentifier:function(){return Kh(Jh)[0]},unstable_isNewReconciler:!1},Fh={readContext:vg,useCallback:bi,useContext:vg,useEffect:Xh,useImperativeHandle:$h,useLayoutEffect:Yh,useMemo:ci,useReducer:Lh,useRef:Th,useState:function(){return Lh(Jh)},useDebugValue:ai,useDeferredValue:function(o){var s=Lh(Jh),a=s[0],$=s[1];return Xh(function(){var j=wh.transition;wh.transition=1;try{$(o)}finally{wh.transition=j}},[o]),a},useTransition:function(){var o=Lh(Jh)[0];return[Th().current,o]},useMutableSource:Ph,useOpaqueIdentifier:function(){return Lh(Jh)[0]},unstable_isNewReconciler:!1},ei=ra.ReactCurrentOwner,ug=!1;function fi(o,s,a,$){s.child=o===null?Zg(s,null,a,$):Yg(s,o.child,a,$)}function gi(o,s,a,$,j){a=a.render;var _e=s.ref;return tg(s,j),$=Ch(o,s,a,$,_e,j),o!==null&&!ug?(s.updateQueue=o.updateQueue,s.flags&=-517,o.lanes&=~j,hi(o,s,j)):(s.flags|=1,fi(o,s,$,j),s.child)}function ii(o,s,a,$,j,_e){if(o===null){var et=a.type;return typeof et=="function"&&!ji(et)&&et.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(s.tag=15,s.type=et,ki(o,s,et,$,j,_e)):(o=Vg(a.type,null,$,s,s.mode,_e),o.ref=s.ref,o.return=s,s.child=o)}return et=o.child,!(j&_e)&&(j=et.memoizedProps,a=a.compare,a=a!==null?a:Je,a(j,$)&&o.ref===s.ref)?hi(o,s,_e):(s.flags|=1,o=Tg(et,$),o.ref=s.ref,o.return=s,s.child=o)}function ki(o,s,a,$,j,_e){if(o!==null&&Je(o.memoizedProps,$)&&o.ref===s.ref)if(ug=!1,(_e&j)!==0)o.flags&16384&&(ug=!0);else return s.lanes=o.lanes,hi(o,s,_e);return li(o,s,a,$,_e)}function mi(o,s,a){var $=s.pendingProps,j=$.children,_e=o!==null?o.memoizedState:null;if($.mode==="hidden"||$.mode==="unstable-defer-without-hiding")if(!(s.mode&4))s.memoizedState={baseLanes:0},ni(s,a);else if(a&1073741824)s.memoizedState={baseLanes:0},ni(s,_e!==null?_e.baseLanes:a);else return o=_e!==null?_e.baseLanes|a:a,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:o},ni(s,o),null;else _e!==null?($=_e.baseLanes|a,s.memoizedState=null):$=a,ni(s,$);return fi(o,s,j,a),s.child}function oi(o,s){var a=s.ref;(o===null&&a!==null||o!==null&&o.ref!==a)&&(s.flags|=128)}function li(o,s,a,$,j){var _e=Ff(a)?Df:M.current;return _e=Ef(s,_e),tg(s,j),a=Ch(o,s,a,$,_e,j),o!==null&&!ug?(s.updateQueue=o.updateQueue,s.flags&=-517,o.lanes&=~j,hi(o,s,j)):(s.flags|=1,fi(o,s,a,j),s.child)}function pi(o,s,a,$,j){if(Ff(a)){var _e=!0;Jf(s)}else _e=!1;if(tg(s,j),s.stateNode===null)o!==null&&(o.alternate=null,s.alternate=null,s.flags|=2),Mg(s,a,$),Og(s,a,$,j),$=!0;else if(o===null){var et=s.stateNode,tt=s.memoizedProps;et.props=tt;var nt=et.context,it=a.contextType;typeof it=="object"&&it!==null?it=vg(it):(it=Ff(a)?Df:M.current,it=Ef(s,it));var rt=a.getDerivedStateFromProps,st=typeof rt=="function"||typeof et.getSnapshotBeforeUpdate=="function";st||typeof et.UNSAFE_componentWillReceiveProps!="function"&&typeof et.componentWillReceiveProps!="function"||(tt!==$||nt!==it)&&Ng(s,et,$,it),wg=!1;var ot=s.memoizedState;et.state=ot,Cg(s,$,et,j),nt=s.memoizedState,tt!==$||ot!==nt||N.current||wg?(typeof rt=="function"&&(Gg(s,a,rt,$),nt=s.memoizedState),(tt=wg||Lg(s,a,tt,$,ot,nt,it))?(st||typeof et.UNSAFE_componentWillMount!="function"&&typeof et.componentWillMount!="function"||(typeof et.componentWillMount=="function"&&et.componentWillMount(),typeof et.UNSAFE_componentWillMount=="function"&&et.UNSAFE_componentWillMount()),typeof et.componentDidMount=="function"&&(s.flags|=4)):(typeof et.componentDidMount=="function"&&(s.flags|=4),s.memoizedProps=$,s.memoizedState=nt),et.props=$,et.state=nt,et.context=it,$=tt):(typeof et.componentDidMount=="function"&&(s.flags|=4),$=!1)}else{et=s.stateNode,yg(o,s),tt=s.memoizedProps,it=s.type===s.elementType?tt:lg(s.type,tt),et.props=it,st=s.pendingProps,ot=et.context,nt=a.contextType,typeof nt=="object"&&nt!==null?nt=vg(nt):(nt=Ff(a)?Df:M.current,nt=Ef(s,nt));var at=a.getDerivedStateFromProps;(rt=typeof at=="function"||typeof et.getSnapshotBeforeUpdate=="function")||typeof et.UNSAFE_componentWillReceiveProps!="function"&&typeof et.componentWillReceiveProps!="function"||(tt!==st||ot!==nt)&&Ng(s,et,$,nt),wg=!1,ot=s.memoizedState,et.state=ot,Cg(s,$,et,j);var lt=s.memoizedState;tt!==st||ot!==lt||N.current||wg?(typeof at=="function"&&(Gg(s,a,at,$),lt=s.memoizedState),(it=wg||Lg(s,a,it,$,ot,lt,nt))?(rt||typeof et.UNSAFE_componentWillUpdate!="function"&&typeof et.componentWillUpdate!="function"||(typeof et.componentWillUpdate=="function"&&et.componentWillUpdate($,lt,nt),typeof et.UNSAFE_componentWillUpdate=="function"&&et.UNSAFE_componentWillUpdate($,lt,nt)),typeof et.componentDidUpdate=="function"&&(s.flags|=4),typeof et.getSnapshotBeforeUpdate=="function"&&(s.flags|=256)):(typeof et.componentDidUpdate!="function"||tt===o.memoizedProps&&ot===o.memoizedState||(s.flags|=4),typeof et.getSnapshotBeforeUpdate!="function"||tt===o.memoizedProps&&ot===o.memoizedState||(s.flags|=256),s.memoizedProps=$,s.memoizedState=lt),et.props=$,et.state=lt,et.context=nt,$=it):(typeof et.componentDidUpdate!="function"||tt===o.memoizedProps&&ot===o.memoizedState||(s.flags|=4),typeof et.getSnapshotBeforeUpdate!="function"||tt===o.memoizedProps&&ot===o.memoizedState||(s.flags|=256),$=!1)}return qi(o,s,a,$,_e,j)}function qi(o,s,a,$,j,_e){oi(o,s);var et=(s.flags&64)!==0;if(!$&&!et)return j&&Kf(s,a,!1),hi(o,s,_e);$=s.stateNode,ei.current=s;var tt=et&&typeof a.getDerivedStateFromError!="function"?null:$.render();return s.flags|=1,o!==null&&et?(s.child=Yg(s,o.child,null,_e),s.child=Yg(s,null,tt,_e)):fi(o,s,tt,_e),s.memoizedState=$.state,j&&Kf(s,a,!0),s.child}function ri(o){var s=o.stateNode;s.pendingContext?Hf(o,s.pendingContext,s.pendingContext!==s.context):s.context&&Hf(o,s.context,!1),eh(o,s.containerInfo)}var si={dehydrated:null,retryLane:0};function ti(o,s,a){var $=s.pendingProps,j=P.current,_e=!1,et;return(et=(s.flags&64)!==0)||(et=o!==null&&o.memoizedState===null?!1:(j&2)!==0),et?(_e=!0,s.flags&=-65):o!==null&&o.memoizedState===null||$.fallback===void 0||$.unstable_avoidThisFallback===!0||(j|=1),I$1(P,j&1),o===null?($.fallback!==void 0&&ph(s),o=$.children,j=$.fallback,_e?(o=ui(s,o,j,a),s.child.memoizedState={baseLanes:a},s.memoizedState=si,o):typeof $.unstable_expectedLoadTime=="number"?(o=ui(s,o,j,a),s.child.memoizedState={baseLanes:a},s.memoizedState=si,s.lanes=33554432,o):(a=vi({mode:"visible",children:o},s.mode,a,null),a.return=s,s.child=a)):o.memoizedState!==null?_e?($=wi(o,s,$.children,$.fallback,a),_e=s.child,j=o.child.memoizedState,_e.memoizedState=j===null?{baseLanes:a}:{baseLanes:j.baseLanes|a},_e.childLanes=o.childLanes&~a,s.memoizedState=si,$):(a=xi(o,s,$.children,a),s.memoizedState=null,a):_e?($=wi(o,s,$.children,$.fallback,a),_e=s.child,j=o.child.memoizedState,_e.memoizedState=j===null?{baseLanes:a}:{baseLanes:j.baseLanes|a},_e.childLanes=o.childLanes&~a,s.memoizedState=si,$):(a=xi(o,s,$.children,a),s.memoizedState=null,a)}function ui(o,s,a,$){var j=o.mode,_e=o.child;return s={mode:"hidden",children:s},!(j&2)&&_e!==null?(_e.childLanes=0,_e.pendingProps=s):_e=vi(s,j,0,null),a=Xg(a,j,$,null),_e.return=o,a.return=o,_e.sibling=a,o.child=_e,a}function xi(o,s,a,$){var j=o.child;return o=j.sibling,a=Tg(j,{mode:"visible",children:a}),!(s.mode&2)&&(a.lanes=$),a.return=s,a.sibling=null,o!==null&&(o.nextEffect=null,o.flags=8,s.firstEffect=s.lastEffect=o),s.child=a}function wi(o,s,a,$,j){var _e=s.mode,et=o.child;o=et.sibling;var tt={mode:"hidden",children:a};return!(_e&2)&&s.child!==et?(a=s.child,a.childLanes=0,a.pendingProps=tt,et=a.lastEffect,et!==null?(s.firstEffect=a.firstEffect,s.lastEffect=et,et.nextEffect=null):s.firstEffect=s.lastEffect=null):a=Tg(et,tt),o!==null?$=Tg(o,$):($=Xg($,_e,j,null),$.flags|=2),$.return=s,a.return=s,a.sibling=$,s.child=a,$}function yi(o,s){o.lanes|=s;var a=o.alternate;a!==null&&(a.lanes|=s),sg(o.return,s)}function zi(o,s,a,$,j,_e){var et=o.memoizedState;et===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:$,tail:a,tailMode:j,lastEffect:_e}:(et.isBackwards=s,et.rendering=null,et.renderingStartTime=0,et.last=$,et.tail=a,et.tailMode=j,et.lastEffect=_e)}function Ai(o,s,a){var $=s.pendingProps,j=$.revealOrder,_e=$.tail;if(fi(o,s,$.children,a),$=P.current,$&2)$=$&1|2,s.flags|=64;else{if(o!==null&&o.flags&64)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&yi(o,a);else if(o.tag===19)yi(o,a);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}$&=1}if(I$1(P,$),!(s.mode&2))s.memoizedState=null;else switch(j){case"forwards":for(a=s.child,j=null;a!==null;)o=a.alternate,o!==null&&ih(o)===null&&(j=a),a=a.sibling;a=j,a===null?(j=s.child,s.child=null):(j=a.sibling,a.sibling=null),zi(s,!1,j,a,_e,s.lastEffect);break;case"backwards":for(a=null,j=s.child,s.child=null;j!==null;){if(o=j.alternate,o!==null&&ih(o)===null){s.child=j;break}o=j.sibling,j.sibling=a,a=j,j=o}zi(s,!0,a,null,_e,s.lastEffect);break;case"together":zi(s,!1,null,null,void 0,s.lastEffect);break;default:s.memoizedState=null}return s.child}function hi(o,s,a){if(o!==null&&(s.dependencies=o.dependencies),Dg|=s.lanes,a&s.childLanes){if(o!==null&&s.child!==o.child)throw Error(y$2(153));if(s.child!==null){for(o=s.child,a=Tg(o,o.pendingProps),s.child=a,a.return=s;o.sibling!==null;)o=o.sibling,a=a.sibling=Tg(o,o.pendingProps),a.return=s;a.sibling=null}return s.child}return null}var Bi,Ci,Di,Ei;Bi=function(o,s){for(var a=s.child;a!==null;){if(a.tag===5||a.tag===6)o.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break;for(;a.sibling===null;){if(a.return===null||a.return===s)return;a=a.return}a.sibling.return=a.return,a=a.sibling}};Ci=function(){};Di=function(o,s,a,$){var j=o.memoizedProps;if(j!==$){o=s.stateNode,dh(ah.current);var _e=null;switch(a){case"input":j=Ya(o,j),$=Ya(o,$),_e=[];break;case"option":j=eb(o,j),$=eb(o,$),_e=[];break;case"select":j=m$2({},j,{value:void 0}),$=m$2({},$,{value:void 0}),_e=[];break;case"textarea":j=gb(o,j),$=gb(o,$),_e=[];break;default:typeof j.onClick!="function"&&typeof $.onClick=="function"&&(o.onclick=jf)}vb(a,$);var et;a=null;for(it in j)if(!$.hasOwnProperty(it)&&j.hasOwnProperty(it)&&j[it]!=null)if(it==="style"){var tt=j[it];for(et in tt)tt.hasOwnProperty(et)&&(a||(a={}),a[et]="")}else it!=="dangerouslySetInnerHTML"&&it!=="children"&&it!=="suppressContentEditableWarning"&&it!=="suppressHydrationWarning"&&it!=="autoFocus"&&(ca.hasOwnProperty(it)?_e||(_e=[]):(_e=_e||[]).push(it,null));for(it in $){var nt=$[it];if(tt=j!=null?j[it]:void 0,$.hasOwnProperty(it)&&nt!==tt&&(nt!=null||tt!=null))if(it==="style")if(tt){for(et in tt)!tt.hasOwnProperty(et)||nt&&nt.hasOwnProperty(et)||(a||(a={}),a[et]="");for(et in nt)nt.hasOwnProperty(et)&&tt[et]!==nt[et]&&(a||(a={}),a[et]=nt[et])}else a||(_e||(_e=[]),_e.push(it,a)),a=nt;else it==="dangerouslySetInnerHTML"?(nt=nt?nt.__html:void 0,tt=tt?tt.__html:void 0,nt!=null&&tt!==nt&&(_e=_e||[]).push(it,nt)):it==="children"?typeof nt!="string"&&typeof nt!="number"||(_e=_e||[]).push(it,""+nt):it!=="suppressContentEditableWarning"&&it!=="suppressHydrationWarning"&&(ca.hasOwnProperty(it)?(nt!=null&&it==="onScroll"&&G$1("scroll",o),_e||tt===nt||(_e=[])):typeof nt=="object"&&nt!==null&&nt.$$typeof===Ga?nt.toString():(_e=_e||[]).push(it,nt))}a&&(_e=_e||[]).push("style",a);var it=_e;(s.updateQueue=it)&&(s.flags|=4)}};Ei=function(o,s,a,$){a!==$&&(s.flags|=4)};function Fi(o,s){if(!lh)switch(o.tailMode){case"hidden":s=o.tail;for(var a=null;s!==null;)s.alternate!==null&&(a=s),s=s.sibling;a===null?o.tail=null:a.sibling=null;break;case"collapsed":a=o.tail;for(var $=null;a!==null;)a.alternate!==null&&($=a),a=a.sibling;$===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:$.sibling=null}}function Gi(o,s,a){var $=s.pendingProps;switch(s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Ff(s.type)&&Gf(),null;case 3:return fh(),H$2(N),H$2(M),uh(),$=s.stateNode,$.pendingContext&&($.context=$.pendingContext,$.pendingContext=null),(o===null||o.child===null)&&(rh(s)?s.flags|=4:$.hydrate||(s.flags|=256)),Ci(s),null;case 5:hh(s);var j=dh(ch.current);if(a=s.type,o!==null&&s.stateNode!=null)Di(o,s,a,$,j),o.ref!==s.ref&&(s.flags|=128);else{if(!$){if(s.stateNode===null)throw Error(y$2(166));return null}if(o=dh(ah.current),rh(s)){$=s.stateNode,a=s.type;var _e=s.memoizedProps;switch($[wf]=s,$[xf]=_e,a){case"dialog":G$1("cancel",$),G$1("close",$);break;case"iframe":case"object":case"embed":G$1("load",$);break;case"video":case"audio":for(o=0;o<Xe.length;o++)G$1(Xe[o],$);break;case"source":G$1("error",$);break;case"img":case"image":case"link":G$1("error",$),G$1("load",$);break;case"details":G$1("toggle",$);break;case"input":Za($,_e),G$1("invalid",$);break;case"select":$._wrapperState={wasMultiple:!!_e.multiple},G$1("invalid",$);break;case"textarea":hb($,_e),G$1("invalid",$)}vb(a,_e),o=null;for(var et in _e)_e.hasOwnProperty(et)&&(j=_e[et],et==="children"?typeof j=="string"?$.textContent!==j&&(o=["children",j]):typeof j=="number"&&$.textContent!==""+j&&(o=["children",""+j]):ca.hasOwnProperty(et)&&j!=null&&et==="onScroll"&&G$1("scroll",$));switch(a){case"input":Va($),cb($,_e,!0);break;case"textarea":Va($),jb($);break;case"select":case"option":break;default:typeof _e.onClick=="function"&&($.onclick=jf)}$=o,s.updateQueue=$,$!==null&&(s.flags|=4)}else{switch(et=j.nodeType===9?j:j.ownerDocument,o===kb.html&&(o=lb(a)),o===kb.html?a==="script"?(o=et.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild)):typeof $.is=="string"?o=et.createElement(a,{is:$.is}):(o=et.createElement(a),a==="select"&&(et=o,$.multiple?et.multiple=!0:$.size&&(et.size=$.size))):o=et.createElementNS(o,a),o[wf]=s,o[xf]=$,Bi(o,s,!1,!1),s.stateNode=o,et=wb(a,$),a){case"dialog":G$1("cancel",o),G$1("close",o),j=$;break;case"iframe":case"object":case"embed":G$1("load",o),j=$;break;case"video":case"audio":for(j=0;j<Xe.length;j++)G$1(Xe[j],o);j=$;break;case"source":G$1("error",o),j=$;break;case"img":case"image":case"link":G$1("error",o),G$1("load",o),j=$;break;case"details":G$1("toggle",o),j=$;break;case"input":Za(o,$),j=Ya(o,$),G$1("invalid",o);break;case"option":j=eb(o,$);break;case"select":o._wrapperState={wasMultiple:!!$.multiple},j=m$2({},$,{value:void 0}),G$1("invalid",o);break;case"textarea":hb(o,$),j=gb(o,$),G$1("invalid",o);break;default:j=$}vb(a,j);var tt=j;for(_e in tt)if(tt.hasOwnProperty(_e)){var nt=tt[_e];_e==="style"?tb(o,nt):_e==="dangerouslySetInnerHTML"?(nt=nt?nt.__html:void 0,nt!=null&&ob(o,nt)):_e==="children"?typeof nt=="string"?(a!=="textarea"||nt!=="")&&pb(o,nt):typeof nt=="number"&&pb(o,""+nt):_e!=="suppressContentEditableWarning"&&_e!=="suppressHydrationWarning"&&_e!=="autoFocus"&&(ca.hasOwnProperty(_e)?nt!=null&&_e==="onScroll"&&G$1("scroll",o):nt!=null&&qa(o,_e,nt,et))}switch(a){case"input":Va(o),cb(o,$,!1);break;case"textarea":Va(o),jb(o);break;case"option":$.value!=null&&o.setAttribute("value",""+Sa($.value));break;case"select":o.multiple=!!$.multiple,_e=$.value,_e!=null?fb(o,!!$.multiple,_e,!1):$.defaultValue!=null&&fb(o,!!$.multiple,$.defaultValue,!0);break;default:typeof j.onClick=="function"&&(o.onclick=jf)}mf(a,$)&&(s.flags|=4)}s.ref!==null&&(s.flags|=128)}return null;case 6:if(o&&s.stateNode!=null)Ei(o,s,o.memoizedProps,$);else{if(typeof $!="string"&&s.stateNode===null)throw Error(y$2(166));a=dh(ch.current),dh(ah.current),rh(s)?($=s.stateNode,a=s.memoizedProps,$[wf]=s,$.nodeValue!==a&&(s.flags|=4)):($=(a.nodeType===9?a:a.ownerDocument).createTextNode($),$[wf]=s,s.stateNode=$)}return null;case 13:return H$2(P),$=s.memoizedState,s.flags&64?(s.lanes=a,s):($=$!==null,a=!1,o===null?s.memoizedProps.fallback!==void 0&&rh(s):a=o.memoizedState!==null,$&&!a&&s.mode&2&&(o===null&&s.memoizedProps.unstable_avoidThisFallback!==!0||P.current&1?V===0&&(V=3):((V===0||V===3)&&(V=4),U===null||!(Dg&134217727)&&!(Hi&134217727)||Ii(U,W))),($||a)&&(s.flags|=4),null);case 4:return fh(),Ci(s),o===null&&cf(s.stateNode.containerInfo),null;case 10:return rg(s),null;case 17:return Ff(s.type)&&Gf(),null;case 19:if(H$2(P),$=s.memoizedState,$===null)return null;if(_e=(s.flags&64)!==0,et=$.rendering,et===null)if(_e)Fi($,!1);else{if(V!==0||o!==null&&o.flags&64)for(o=s.child;o!==null;){if(et=ih(o),et!==null){for(s.flags|=64,Fi($,!1),_e=et.updateQueue,_e!==null&&(s.updateQueue=_e,s.flags|=4),$.lastEffect===null&&(s.firstEffect=null),s.lastEffect=$.lastEffect,$=a,a=s.child;a!==null;)_e=a,o=$,_e.flags&=2,_e.nextEffect=null,_e.firstEffect=null,_e.lastEffect=null,et=_e.alternate,et===null?(_e.childLanes=0,_e.lanes=o,_e.child=null,_e.memoizedProps=null,_e.memoizedState=null,_e.updateQueue=null,_e.dependencies=null,_e.stateNode=null):(_e.childLanes=et.childLanes,_e.lanes=et.lanes,_e.child=et.child,_e.memoizedProps=et.memoizedProps,_e.memoizedState=et.memoizedState,_e.updateQueue=et.updateQueue,_e.type=et.type,o=et.dependencies,_e.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),a=a.sibling;return I$1(P,P.current&1|2),s.child}o=o.sibling}$.tail!==null&&O()>Ji&&(s.flags|=64,_e=!0,Fi($,!1),s.lanes=33554432)}else{if(!_e)if(o=ih(et),o!==null){if(s.flags|=64,_e=!0,a=o.updateQueue,a!==null&&(s.updateQueue=a,s.flags|=4),Fi($,!0),$.tail===null&&$.tailMode==="hidden"&&!et.alternate&&!lh)return s=s.lastEffect=$.lastEffect,s!==null&&(s.nextEffect=null),null}else 2*O()-$.renderingStartTime>Ji&&a!==1073741824&&(s.flags|=64,_e=!0,Fi($,!1),s.lanes=33554432);$.isBackwards?(et.sibling=s.child,s.child=et):(a=$.last,a!==null?a.sibling=et:s.child=et,$.last=et)}return $.tail!==null?(a=$.tail,$.rendering=a,$.tail=a.sibling,$.lastEffect=s.lastEffect,$.renderingStartTime=O(),a.sibling=null,s=P.current,I$1(P,_e?s&1|2:s&1),a):null;case 23:case 24:return Ki(),o!==null&&o.memoizedState!==null!=(s.memoizedState!==null)&&$.mode!=="unstable-defer-without-hiding"&&(s.flags|=4),null}throw Error(y$2(156,s.tag))}function Li(o){switch(o.tag){case 1:Ff(o.type)&&Gf();var s=o.flags;return s&4096?(o.flags=s&-4097|64,o):null;case 3:if(fh(),H$2(N),H$2(M),uh(),s=o.flags,s&64)throw Error(y$2(285));return o.flags=s&-4097|64,o;case 5:return hh(o),null;case 13:return H$2(P),s=o.flags,s&4096?(o.flags=s&-4097|64,o):null;case 19:return H$2(P),null;case 4:return fh(),null;case 10:return rg(o),null;case 23:case 24:return Ki(),null;default:return null}}function Mi(o,s){try{var a="",$=s;do a+=Qa($),$=$.return;while($);var j=a}catch(_e){j=`
Error generating stack: `+_e.message+`
`+_e.stack}return{value:o,source:s,stack:j}}function Ni(o,s){try{console.error(s.value)}catch(a){setTimeout(function(){throw a})}}var Oi=typeof WeakMap=="function"?WeakMap:Map;function Pi(o,s,a){a=zg(-1,a),a.tag=3,a.payload={element:null};var $=s.value;return a.callback=function(){Qi||(Qi=!0,Ri=$),Ni(o,s)},a}function Si(o,s,a){a=zg(-1,a),a.tag=3;var $=o.type.getDerivedStateFromError;if(typeof $=="function"){var j=s.value;a.payload=function(){return Ni(o,s),$(j)}}var _e=o.stateNode;return _e!==null&&typeof _e.componentDidCatch=="function"&&(a.callback=function(){typeof $!="function"&&(Ti===null?Ti=new Set([this]):Ti.add(this),Ni(o,s));var et=s.stack;this.componentDidCatch(s.value,{componentStack:et!==null?et:""})}),a}var Ui=typeof WeakSet=="function"?WeakSet:Set;function Vi(o){var s=o.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(a){Wi(o,a)}else s.current=null}function Xi(o,s){switch(s.tag){case 0:case 11:case 15:case 22:return;case 1:if(s.flags&256&&o!==null){var a=o.memoizedProps,$=o.memoizedState;o=s.stateNode,s=o.getSnapshotBeforeUpdate(s.elementType===s.type?a:lg(s.type,a),$),o.__reactInternalSnapshotBeforeUpdate=s}return;case 3:s.flags&256&&qf(s.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(y$2(163))}function Yi(o,s,a){switch(a.tag){case 0:case 11:case 15:case 22:if(s=a.updateQueue,s=s!==null?s.lastEffect:null,s!==null){o=s=s.next;do{if((o.tag&3)===3){var $=o.create;o.destroy=$()}o=o.next}while(o!==s)}if(s=a.updateQueue,s=s!==null?s.lastEffect:null,s!==null){o=s=s.next;do{var j=o;$=j.next,j=j.tag,j&4&&j&1&&(Zi(a,o),$i(a,o)),o=$}while(o!==s)}return;case 1:o=a.stateNode,a.flags&4&&(s===null?o.componentDidMount():($=a.elementType===a.type?s.memoizedProps:lg(a.type,s.memoizedProps),o.componentDidUpdate($,s.memoizedState,o.__reactInternalSnapshotBeforeUpdate))),s=a.updateQueue,s!==null&&Eg(a,s,o);return;case 3:if(s=a.updateQueue,s!==null){if(o=null,a.child!==null)switch(a.child.tag){case 5:o=a.child.stateNode;break;case 1:o=a.child.stateNode}Eg(a,s,o)}return;case 5:o=a.stateNode,s===null&&a.flags&4&&mf(a.type,a.memoizedProps)&&o.focus();return;case 6:return;case 4:return;case 12:return;case 13:a.memoizedState===null&&(a=a.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&Cc(a))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(y$2(163))}function aj(o,s){for(var a=o;;){if(a.tag===5){var $=a.stateNode;if(s)$=$.style,typeof $.setProperty=="function"?$.setProperty("display","none","important"):$.display="none";else{$=a.stateNode;var j=a.memoizedProps.style;j=j!=null&&j.hasOwnProperty("display")?j.display:null,$.style.display=sb("display",j)}}else if(a.tag===6)a.stateNode.nodeValue=s?"":a.memoizedProps;else if((a.tag!==23&&a.tag!==24||a.memoizedState===null||a===o)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return;a=a.return}a.sibling.return=a.return,a=a.sibling}}function bj(o,s){if(Mf&&typeof Mf.onCommitFiberUnmount=="function")try{Mf.onCommitFiberUnmount(Lf,s)}catch{}switch(s.tag){case 0:case 11:case 14:case 15:case 22:if(o=s.updateQueue,o!==null&&(o=o.lastEffect,o!==null)){var a=o=o.next;do{var $=a,j=$.destroy;if($=$.tag,j!==void 0)if($&4)Zi(s,a);else{$=s;try{j()}catch(_e){Wi($,_e)}}a=a.next}while(a!==o)}break;case 1:if(Vi(s),o=s.stateNode,typeof o.componentWillUnmount=="function")try{o.props=s.memoizedProps,o.state=s.memoizedState,o.componentWillUnmount()}catch(_e){Wi(s,_e)}break;case 5:Vi(s);break;case 4:cj(o,s)}}function dj(o){o.alternate=null,o.child=null,o.dependencies=null,o.firstEffect=null,o.lastEffect=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.return=null,o.updateQueue=null}function ej(o){return o.tag===5||o.tag===3||o.tag===4}function fj(o){e:{for(var s=o.return;s!==null;){if(ej(s))break e;s=s.return}throw Error(y$2(160))}var a=s;switch(s=a.stateNode,a.tag){case 5:var $=!1;break;case 3:s=s.containerInfo,$=!0;break;case 4:s=s.containerInfo,$=!0;break;default:throw Error(y$2(161))}a.flags&16&&(pb(s,""),a.flags&=-17);e:t:for(a=o;;){for(;a.sibling===null;){if(a.return===null||ej(a.return)){a=null;break e}a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue t;a.child.return=a,a=a.child}if(!(a.flags&2)){a=a.stateNode;break e}}$?gj(o,a,s):hj(o,a,s)}function gj(o,s,a){var $=o.tag,j=$===5||$===6;if(j)o=j?o.stateNode:o.stateNode.instance,s?a.nodeType===8?a.parentNode.insertBefore(o,s):a.insertBefore(o,s):(a.nodeType===8?(s=a.parentNode,s.insertBefore(o,a)):(s=a,s.appendChild(o)),a=a._reactRootContainer,a!=null||s.onclick!==null||(s.onclick=jf));else if($!==4&&(o=o.child,o!==null))for(gj(o,s,a),o=o.sibling;o!==null;)gj(o,s,a),o=o.sibling}function hj(o,s,a){var $=o.tag,j=$===5||$===6;if(j)o=j?o.stateNode:o.stateNode.instance,s?a.insertBefore(o,s):a.appendChild(o);else if($!==4&&(o=o.child,o!==null))for(hj(o,s,a),o=o.sibling;o!==null;)hj(o,s,a),o=o.sibling}function cj(o,s){for(var a=s,$=!1,j,_e;;){if(!$){$=a.return;e:for(;;){if($===null)throw Error(y$2(160));switch(j=$.stateNode,$.tag){case 5:_e=!1;break e;case 3:j=j.containerInfo,_e=!0;break e;case 4:j=j.containerInfo,_e=!0;break e}$=$.return}$=!0}if(a.tag===5||a.tag===6){e:for(var et=o,tt=a,nt=tt;;)if(bj(et,nt),nt.child!==null&&nt.tag!==4)nt.child.return=nt,nt=nt.child;else{if(nt===tt)break e;for(;nt.sibling===null;){if(nt.return===null||nt.return===tt)break e;nt=nt.return}nt.sibling.return=nt.return,nt=nt.sibling}_e?(et=j,tt=a.stateNode,et.nodeType===8?et.parentNode.removeChild(tt):et.removeChild(tt)):j.removeChild(a.stateNode)}else if(a.tag===4){if(a.child!==null){j=a.stateNode.containerInfo,_e=!0,a.child.return=a,a=a.child;continue}}else if(bj(o,a),a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break;for(;a.sibling===null;){if(a.return===null||a.return===s)return;a=a.return,a.tag===4&&($=!1)}a.sibling.return=a.return,a=a.sibling}}function ij(o,s){switch(s.tag){case 0:case 11:case 14:case 15:case 22:var a=s.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var $=a=a.next;do($.tag&3)===3&&(o=$.destroy,$.destroy=void 0,o!==void 0&&o()),$=$.next;while($!==a)}return;case 1:return;case 5:if(a=s.stateNode,a!=null){$=s.memoizedProps;var j=o!==null?o.memoizedProps:$;o=s.type;var _e=s.updateQueue;if(s.updateQueue=null,_e!==null){for(a[xf]=$,o==="input"&&$.type==="radio"&&$.name!=null&&$a(a,$),wb(o,j),s=wb(o,$),j=0;j<_e.length;j+=2){var et=_e[j],tt=_e[j+1];et==="style"?tb(a,tt):et==="dangerouslySetInnerHTML"?ob(a,tt):et==="children"?pb(a,tt):qa(a,et,tt,s)}switch(o){case"input":ab(a,$);break;case"textarea":ib(a,$);break;case"select":o=a._wrapperState.wasMultiple,a._wrapperState.wasMultiple=!!$.multiple,_e=$.value,_e!=null?fb(a,!!$.multiple,_e,!1):o!==!!$.multiple&&($.defaultValue!=null?fb(a,!!$.multiple,$.defaultValue,!0):fb(a,!!$.multiple,$.multiple?[]:"",!1))}}}return;case 6:if(s.stateNode===null)throw Error(y$2(162));s.stateNode.nodeValue=s.memoizedProps;return;case 3:a=s.stateNode,a.hydrate&&(a.hydrate=!1,Cc(a.containerInfo));return;case 12:return;case 13:s.memoizedState!==null&&(jj=O(),aj(s.child,!0)),kj(s);return;case 19:kj(s);return;case 17:return;case 23:case 24:aj(s,s.memoizedState!==null);return}throw Error(y$2(163))}function kj(o){var s=o.updateQueue;if(s!==null){o.updateQueue=null;var a=o.stateNode;a===null&&(a=o.stateNode=new Ui),s.forEach(function($){var j=lj.bind(null,o,$);a.has($)||(a.add($),$.then(j,j))})}}function mj(o,s){return o!==null&&(o=o.memoizedState,o===null||o.dehydrated!==null)?(s=s.memoizedState,s!==null&&s.dehydrated===null):!1}var nj=Math.ceil,oj=ra.ReactCurrentDispatcher,pj=ra.ReactCurrentOwner,X=0,U=null,Y=null,W=0,qj=0,rj=Bf(0),V=0,sj=null,tj=0,Dg=0,Hi=0,uj=0,vj=null,jj=0,Ji=1/0;function wj(){Ji=O()+500}var Z=null,Qi=!1,Ri=null,Ti=null,xj=!1,yj=null,zj=90,Aj=[],Bj=[],Cj=null,Dj=0,Ej=null,Fj=-1,Gj=0,Hj=0,Ij=null,Jj=!1;function Hg(){return X&48?O():Fj!==-1?Fj:Fj=O()}function Ig(o){if(o=o.mode,!(o&2))return 1;if(!(o&4))return eg()===99?1:2;if(Gj===0&&(Gj=tj),kg.transition!==0){Hj!==0&&(Hj=vj!==null?vj.pendingLanes:0),o=Gj;var s=4186112&~Hj;return s&=-s,s===0&&(o=4186112&~o,s=o&-o,s===0&&(s=8192)),s}return o=eg(),X&4&&o===98?o=Xc(12,Gj):(o=Sc(o),o=Xc(o,Gj)),o}function Jg(o,s,a){if(50<Dj)throw Dj=0,Ej=null,Error(y$2(185));if(o=Kj(o,s),o===null)return null;$c(o,s,a),o===U&&(Hi|=s,V===4&&Ii(o,W));var $=eg();s===1?X&8&&!(X&48)?Lj(o):(Mj(o,a),X===0&&(wj(),ig())):(!(X&4)||$!==98&&$!==99||(Cj===null?Cj=new Set([o]):Cj.add(o)),Mj(o,a)),vj=o}function Kj(o,s){o.lanes|=s;var a=o.alternate;for(a!==null&&(a.lanes|=s),a=o,o=o.return;o!==null;)o.childLanes|=s,a=o.alternate,a!==null&&(a.childLanes|=s),a=o,o=o.return;return a.tag===3?a.stateNode:null}function Mj(o,s){for(var a=o.callbackNode,$=o.suspendedLanes,j=o.pingedLanes,_e=o.expirationTimes,et=o.pendingLanes;0<et;){var tt=31-Vc(et),nt=1<<tt,it=_e[tt];if(it===-1){if(!(nt&$)||nt&j){it=s,Rc(nt);var rt=F$1;_e[tt]=10<=rt?it+250:6<=rt?it+5e3:-1}}else it<=s&&(o.expiredLanes|=nt);et&=~nt}if($=Uc(o,o===U?W:0),s=F$1,$===0)a!==null&&(a!==Zf&&Pf(a),o.callbackNode=null,o.callbackPriority=0);else{if(a!==null){if(o.callbackPriority===s)return;a!==Zf&&Pf(a)}s===15?(a=Lj.bind(null,o),ag===null?(ag=[a],bg=Of(Uf,jg)):ag.push(a),a=Zf):s===14?a=hg(99,Lj.bind(null,o)):(a=Tc(s),a=hg(a,Nj.bind(null,o))),o.callbackPriority=s,o.callbackNode=a}}function Nj(o){if(Fj=-1,Hj=Gj=0,X&48)throw Error(y$2(327));var s=o.callbackNode;if(Oj()&&o.callbackNode!==s)return null;var a=Uc(o,o===U?W:0);if(a===0)return null;var $=a,j=X;X|=16;var _e=Pj();(U!==o||W!==$)&&(wj(),Qj(o,$));do try{Rj();break}catch(tt){Sj(o,tt)}while(!0);if(qg(),oj.current=_e,X=j,Y!==null?$=0:(U=null,W=0,$=V),tj&Hi)Qj(o,0);else if($!==0){if($===2&&(X|=64,o.hydrate&&(o.hydrate=!1,qf(o.containerInfo)),a=Wc(o),a!==0&&($=Tj(o,a))),$===1)throw s=sj,Qj(o,0),Ii(o,a),Mj(o,O()),s;switch(o.finishedWork=o.current.alternate,o.finishedLanes=a,$){case 0:case 1:throw Error(y$2(345));case 2:Uj(o);break;case 3:if(Ii(o,a),(a&62914560)===a&&($=jj+500-O(),10<$)){if(Uc(o,0)!==0)break;if(j=o.suspendedLanes,(j&a)!==a){Hg(),o.pingedLanes|=o.suspendedLanes&j;break}o.timeoutHandle=of(Uj.bind(null,o),$);break}Uj(o);break;case 4:if(Ii(o,a),(a&4186112)===a)break;for($=o.eventTimes,j=-1;0<a;){var et=31-Vc(a);_e=1<<et,et=$[et],et>j&&(j=et),a&=~_e}if(a=j,a=O()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*nj(a/1960))-a,10<a){o.timeoutHandle=of(Uj.bind(null,o),a);break}Uj(o);break;case 5:Uj(o);break;default:throw Error(y$2(329))}}return Mj(o,O()),o.callbackNode===s?Nj.bind(null,o):null}function Ii(o,s){for(s&=~uj,s&=~Hi,o.suspendedLanes|=s,o.pingedLanes&=~s,o=o.expirationTimes;0<s;){var a=31-Vc(s),$=1<<a;o[a]=-1,s&=~$}}function Lj(o){if(X&48)throw Error(y$2(327));if(Oj(),o===U&&o.expiredLanes&W){var s=W,a=Tj(o,s);tj&Hi&&(s=Uc(o,s),a=Tj(o,s))}else s=Uc(o,0),a=Tj(o,s);if(o.tag!==0&&a===2&&(X|=64,o.hydrate&&(o.hydrate=!1,qf(o.containerInfo)),s=Wc(o),s!==0&&(a=Tj(o,s))),a===1)throw a=sj,Qj(o,0),Ii(o,s),Mj(o,O()),a;return o.finishedWork=o.current.alternate,o.finishedLanes=s,Uj(o),Mj(o,O()),null}function Vj(){if(Cj!==null){var o=Cj;Cj=null,o.forEach(function(s){s.expiredLanes|=24&s.pendingLanes,Mj(s,O())})}ig()}function Wj(o,s){var a=X;X|=1;try{return o(s)}finally{X=a,X===0&&(wj(),ig())}}function Xj(o,s){var a=X;X&=-2,X|=8;try{return o(s)}finally{X=a,X===0&&(wj(),ig())}}function ni(o,s){I$1(rj,qj),qj|=s,tj|=s}function Ki(){qj=rj.current,H$2(rj)}function Qj(o,s){o.finishedWork=null,o.finishedLanes=0;var a=o.timeoutHandle;if(a!==-1&&(o.timeoutHandle=-1,pf(a)),Y!==null)for(a=Y.return;a!==null;){var $=a;switch($.tag){case 1:$=$.type.childContextTypes,$!=null&&Gf();break;case 3:fh(),H$2(N),H$2(M),uh();break;case 5:hh($);break;case 4:fh();break;case 13:H$2(P);break;case 19:H$2(P);break;case 10:rg($);break;case 23:case 24:Ki()}a=a.return}U=o,Y=Tg(o.current,null),W=qj=tj=s,V=0,sj=null,uj=Hi=Dg=0}function Sj(o,s){do{var a=Y;try{if(qg(),vh.current=Gh,yh){for(var $=R.memoizedState;$!==null;){var j=$.queue;j!==null&&(j.pending=null),$=$.next}yh=!1}if(xh=0,T=S=R=null,zh=!1,pj.current=null,a===null||a.return===null){V=1,sj=s,Y=null;break}e:{var _e=o,et=a.return,tt=a,nt=s;if(s=W,tt.flags|=2048,tt.firstEffect=tt.lastEffect=null,nt!==null&&typeof nt=="object"&&typeof nt.then=="function"){var it=nt;if(!(tt.mode&2)){var rt=tt.alternate;rt?(tt.updateQueue=rt.updateQueue,tt.memoizedState=rt.memoizedState,tt.lanes=rt.lanes):(tt.updateQueue=null,tt.memoizedState=null)}var st=(P.current&1)!==0,ot=et;do{var at;if(at=ot.tag===13){var lt=ot.memoizedState;if(lt!==null)at=lt.dehydrated!==null;else{var ct=ot.memoizedProps;at=ct.fallback===void 0?!1:ct.unstable_avoidThisFallback!==!0?!0:!st}}if(at){var ht=ot.updateQueue;if(ht===null){var dt=new Set;dt.add(it),ot.updateQueue=dt}else ht.add(it);if(!(ot.mode&2)){if(ot.flags|=64,tt.flags|=16384,tt.flags&=-2981,tt.tag===1)if(tt.alternate===null)tt.tag=17;else{var ut=zg(-1,1);ut.tag=2,Ag(tt,ut)}tt.lanes|=1;break e}nt=void 0,tt=s;var pt=_e.pingCache;if(pt===null?(pt=_e.pingCache=new Oi,nt=new Set,pt.set(it,nt)):(nt=pt.get(it),nt===void 0&&(nt=new Set,pt.set(it,nt))),!nt.has(tt)){nt.add(tt);var ft=Yj.bind(null,_e,it,tt);it.then(ft,ft)}ot.flags|=4096,ot.lanes=s;break e}ot=ot.return}while(ot!==null);nt=Error((Ra(tt.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.

Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}V!==5&&(V=2),nt=Mi(nt,tt),ot=et;do{switch(ot.tag){case 3:_e=nt,ot.flags|=4096,s&=-s,ot.lanes|=s;var mt=Pi(ot,_e,s);Bg(ot,mt);break e;case 1:_e=nt;var gt=ot.type,bt=ot.stateNode;if(!(ot.flags&64)&&(typeof gt.getDerivedStateFromError=="function"||bt!==null&&typeof bt.componentDidCatch=="function"&&(Ti===null||!Ti.has(bt)))){ot.flags|=4096,s&=-s,ot.lanes|=s;var St=Si(ot,_e,s);Bg(ot,St);break e}}ot=ot.return}while(ot!==null)}Zj(a)}catch(Nt){s=Nt,Y===a&&a!==null&&(Y=a=a.return);continue}break}while(!0)}function Pj(){var o=oj.current;return oj.current=Gh,o===null?Gh:o}function Tj(o,s){var a=X;X|=16;var $=Pj();U===o&&W===s||Qj(o,s);do try{ak();break}catch(j){Sj(o,j)}while(!0);if(qg(),X=a,oj.current=$,Y!==null)throw Error(y$2(261));return U=null,W=0,V}function ak(){for(;Y!==null;)bk(Y)}function Rj(){for(;Y!==null&&!Qf();)bk(Y)}function bk(o){var s=ck(o.alternate,o,qj);o.memoizedProps=o.pendingProps,s===null?Zj(o):Y=s,pj.current=null}function Zj(o){var s=o;do{var a=s.alternate;if(o=s.return,s.flags&2048){if(a=Li(s),a!==null){a.flags&=2047,Y=a;return}o!==null&&(o.firstEffect=o.lastEffect=null,o.flags|=2048)}else{if(a=Gi(a,s,qj),a!==null){Y=a;return}if(a=s,a.tag!==24&&a.tag!==23||a.memoizedState===null||qj&1073741824||!(a.mode&4)){for(var $=0,j=a.child;j!==null;)$|=j.lanes|j.childLanes,j=j.sibling;a.childLanes=$}o!==null&&!(o.flags&2048)&&(o.firstEffect===null&&(o.firstEffect=s.firstEffect),s.lastEffect!==null&&(o.lastEffect!==null&&(o.lastEffect.nextEffect=s.firstEffect),o.lastEffect=s.lastEffect),1<s.flags&&(o.lastEffect!==null?o.lastEffect.nextEffect=s:o.firstEffect=s,o.lastEffect=s))}if(s=s.sibling,s!==null){Y=s;return}Y=s=o}while(s!==null);V===0&&(V=5)}function Uj(o){var s=eg();return gg(99,dk.bind(null,o,s)),null}function dk(o,s){do Oj();while(yj!==null);if(X&48)throw Error(y$2(327));var a=o.finishedWork;if(a===null)return null;if(o.finishedWork=null,o.finishedLanes=0,a===o.current)throw Error(y$2(177));o.callbackNode=null;var $=a.lanes|a.childLanes,j=$,_e=o.pendingLanes&~j;o.pendingLanes=j,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=j,o.mutableReadLanes&=j,o.entangledLanes&=j,j=o.entanglements;for(var et=o.eventTimes,tt=o.expirationTimes;0<_e;){var nt=31-Vc(_e),it=1<<nt;j[nt]=0,et[nt]=-1,tt[nt]=-1,_e&=~it}if(Cj!==null&&!($&24)&&Cj.has(o)&&Cj.delete(o),o===U&&(Y=U=null,W=0),1<a.flags?a.lastEffect!==null?(a.lastEffect.nextEffect=a,$=a.firstEffect):$=a:$=a.firstEffect,$!==null){if(j=X,X|=32,pj.current=null,kf=fd,et=Ne(),Oe(et)){if("selectionStart"in et)tt={start:et.selectionStart,end:et.selectionEnd};else e:if(tt=(tt=et.ownerDocument)&&tt.defaultView||window,(it=tt.getSelection&&tt.getSelection())&&it.rangeCount!==0){tt=it.anchorNode,_e=it.anchorOffset,nt=it.focusNode,it=it.focusOffset;try{tt.nodeType,nt.nodeType}catch{tt=null;break e}var rt=0,st=-1,ot=-1,at=0,lt=0,ct=et,ht=null;t:for(;;){for(var dt;ct!==tt||_e!==0&&ct.nodeType!==3||(st=rt+_e),ct!==nt||it!==0&&ct.nodeType!==3||(ot=rt+it),ct.nodeType===3&&(rt+=ct.nodeValue.length),(dt=ct.firstChild)!==null;)ht=ct,ct=dt;for(;;){if(ct===et)break t;if(ht===tt&&++at===_e&&(st=rt),ht===nt&&++lt===it&&(ot=rt),(dt=ct.nextSibling)!==null)break;ct=ht,ht=ct.parentNode}ct=dt}tt=st===-1||ot===-1?null:{start:st,end:ot}}else tt=null;tt=tt||{start:0,end:0}}else tt=null;lf={focusedElem:et,selectionRange:tt},fd=!1,Ij=null,Jj=!1,Z=$;do try{ek()}catch(Nt){if(Z===null)throw Error(y$2(330));Wi(Z,Nt),Z=Z.nextEffect}while(Z!==null);Ij=null,Z=$;do try{for(et=o;Z!==null;){var ut=Z.flags;if(ut&16&&pb(Z.stateNode,""),ut&128){var pt=Z.alternate;if(pt!==null){var ft=pt.ref;ft!==null&&(typeof ft=="function"?ft(null):ft.current=null)}}switch(ut&1038){case 2:fj(Z),Z.flags&=-3;break;case 6:fj(Z),Z.flags&=-3,ij(Z.alternate,Z);break;case 1024:Z.flags&=-1025;break;case 1028:Z.flags&=-1025,ij(Z.alternate,Z);break;case 4:ij(Z.alternate,Z);break;case 8:tt=Z,cj(et,tt);var mt=tt.alternate;dj(tt),mt!==null&&dj(mt)}Z=Z.nextEffect}}catch(Nt){if(Z===null)throw Error(y$2(330));Wi(Z,Nt),Z=Z.nextEffect}while(Z!==null);if(ft=lf,pt=Ne(),ut=ft.focusedElem,et=ft.selectionRange,pt!==ut&&ut&&ut.ownerDocument&&Me(ut.ownerDocument.documentElement,ut)){for(et!==null&&Oe(ut)&&(pt=et.start,ft=et.end,ft===void 0&&(ft=pt),"selectionStart"in ut?(ut.selectionStart=pt,ut.selectionEnd=Math.min(ft,ut.value.length)):(ft=(pt=ut.ownerDocument||document)&&pt.defaultView||window,ft.getSelection&&(ft=ft.getSelection(),tt=ut.textContent.length,mt=Math.min(et.start,tt),et=et.end===void 0?mt:Math.min(et.end,tt),!ft.extend&&mt>et&&(tt=et,et=mt,mt=tt),tt=Le(ut,mt),_e=Le(ut,et),tt&&_e&&(ft.rangeCount!==1||ft.anchorNode!==tt.node||ft.anchorOffset!==tt.offset||ft.focusNode!==_e.node||ft.focusOffset!==_e.offset)&&(pt=pt.createRange(),pt.setStart(tt.node,tt.offset),ft.removeAllRanges(),mt>et?(ft.addRange(pt),ft.extend(_e.node,_e.offset)):(pt.setEnd(_e.node,_e.offset),ft.addRange(pt)))))),pt=[],ft=ut;ft=ft.parentNode;)ft.nodeType===1&&pt.push({element:ft,left:ft.scrollLeft,top:ft.scrollTop});for(typeof ut.focus=="function"&&ut.focus(),ut=0;ut<pt.length;ut++)ft=pt[ut],ft.element.scrollLeft=ft.left,ft.element.scrollTop=ft.top}fd=!!kf,lf=kf=null,o.current=a,Z=$;do try{for(ut=o;Z!==null;){var gt=Z.flags;if(gt&36&&Yi(ut,Z.alternate,Z),gt&128){pt=void 0;var bt=Z.ref;if(bt!==null){var St=Z.stateNode;switch(Z.tag){case 5:pt=St;break;default:pt=St}typeof bt=="function"?bt(pt):bt.current=pt}}Z=Z.nextEffect}}catch(Nt){if(Z===null)throw Error(y$2(330));Wi(Z,Nt),Z=Z.nextEffect}while(Z!==null);Z=null,$f(),X=j}else o.current=a;if(xj)xj=!1,yj=o,zj=s;else for(Z=$;Z!==null;)s=Z.nextEffect,Z.nextEffect=null,Z.flags&8&&(gt=Z,gt.sibling=null,gt.stateNode=null),Z=s;if($=o.pendingLanes,$===0&&(Ti=null),$===1?o===Ej?Dj++:(Dj=0,Ej=o):Dj=0,a=a.stateNode,Mf&&typeof Mf.onCommitFiberRoot=="function")try{Mf.onCommitFiberRoot(Lf,a,void 0,(a.current.flags&64)===64)}catch{}if(Mj(o,O()),Qi)throw Qi=!1,o=Ri,Ri=null,o;return X&8||ig(),null}function ek(){for(;Z!==null;){var o=Z.alternate;Jj||Ij===null||(Z.flags&8?dc(Z,Ij)&&(Jj=!0):Z.tag===13&&mj(o,Z)&&dc(Z,Ij)&&(Jj=!0));var s=Z.flags;s&256&&Xi(o,Z),!(s&512)||xj||(xj=!0,hg(97,function(){return Oj(),null})),Z=Z.nextEffect}}function Oj(){if(zj!==90){var o=97<zj?97:zj;return zj=90,gg(o,fk)}return!1}function $i(o,s){Aj.push(s,o),xj||(xj=!0,hg(97,function(){return Oj(),null}))}function Zi(o,s){Bj.push(s,o),xj||(xj=!0,hg(97,function(){return Oj(),null}))}function fk(){if(yj===null)return!1;var o=yj;if(yj=null,X&48)throw Error(y$2(331));var s=X;X|=32;var a=Bj;Bj=[];for(var $=0;$<a.length;$+=2){var j=a[$],_e=a[$+1],et=j.destroy;if(j.destroy=void 0,typeof et=="function")try{et()}catch(nt){if(_e===null)throw Error(y$2(330));Wi(_e,nt)}}for(a=Aj,Aj=[],$=0;$<a.length;$+=2){j=a[$],_e=a[$+1];try{var tt=j.create;j.destroy=tt()}catch(nt){if(_e===null)throw Error(y$2(330));Wi(_e,nt)}}for(tt=o.current.firstEffect;tt!==null;)o=tt.nextEffect,tt.nextEffect=null,tt.flags&8&&(tt.sibling=null,tt.stateNode=null),tt=o;return X=s,ig(),!0}function gk(o,s,a){s=Mi(a,s),s=Pi(o,s,1),Ag(o,s),s=Hg(),o=Kj(o,1),o!==null&&($c(o,1,s),Mj(o,s))}function Wi(o,s){if(o.tag===3)gk(o,o,s);else for(var a=o.return;a!==null;){if(a.tag===3){gk(a,o,s);break}else if(a.tag===1){var $=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof $.componentDidCatch=="function"&&(Ti===null||!Ti.has($))){o=Mi(s,o);var j=Si(a,o,1);if(Ag(a,j),j=Hg(),a=Kj(a,1),a!==null)$c(a,1,j),Mj(a,j);else if(typeof $.componentDidCatch=="function"&&(Ti===null||!Ti.has($)))try{$.componentDidCatch(s,o)}catch{}break}}a=a.return}}function Yj(o,s,a){var $=o.pingCache;$!==null&&$.delete(s),s=Hg(),o.pingedLanes|=o.suspendedLanes&a,U===o&&(W&a)===a&&(V===4||V===3&&(W&62914560)===W&&500>O()-jj?Qj(o,0):uj|=a),Mj(o,s)}function lj(o,s){var a=o.stateNode;a!==null&&a.delete(s),s=0,s===0&&(s=o.mode,s&2?s&4?(Gj===0&&(Gj=tj),s=Yc(62914560&~Gj),s===0&&(s=4194304)):s=eg()===99?1:2:s=1),a=Hg(),o=Kj(o,s),o!==null&&($c(o,s,a),Mj(o,a))}var ck;ck=function(o,s,a){var $=s.lanes;if(o!==null)if(o.memoizedProps!==s.pendingProps||N.current)ug=!0;else if(a&$)ug=!!(o.flags&16384);else{switch(ug=!1,s.tag){case 3:ri(s),sh();break;case 5:gh(s);break;case 1:Ff(s.type)&&Jf(s);break;case 4:eh(s,s.stateNode.containerInfo);break;case 10:$=s.memoizedProps.value;var j=s.type._context;I$1(mg,j._currentValue),j._currentValue=$;break;case 13:if(s.memoizedState!==null)return a&s.child.childLanes?ti(o,s,a):(I$1(P,P.current&1),s=hi(o,s,a),s!==null?s.sibling:null);I$1(P,P.current&1);break;case 19:if($=(a&s.childLanes)!==0,o.flags&64){if($)return Ai(o,s,a);s.flags|=64}if(j=s.memoizedState,j!==null&&(j.rendering=null,j.tail=null,j.lastEffect=null),I$1(P,P.current),$)break;return null;case 23:case 24:return s.lanes=0,mi(o,s,a)}return hi(o,s,a)}else ug=!1;switch(s.lanes=0,s.tag){case 2:if($=s.type,o!==null&&(o.alternate=null,s.alternate=null,s.flags|=2),o=s.pendingProps,j=Ef(s,M.current),tg(s,a),j=Ch(null,s,$,o,j,a),s.flags|=1,typeof j=="object"&&j!==null&&typeof j.render=="function"&&j.$$typeof===void 0){if(s.tag=1,s.memoizedState=null,s.updateQueue=null,Ff($)){var _e=!0;Jf(s)}else _e=!1;s.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,xg(s);var et=$.getDerivedStateFromProps;typeof et=="function"&&Gg(s,$,et,o),j.updater=Kg,s.stateNode=j,j._reactInternals=s,Og(s,$,o,a),s=qi(null,s,$,!0,_e,a)}else s.tag=0,fi(null,s,j,a),s=s.child;return s;case 16:j=s.elementType;e:{switch(o!==null&&(o.alternate=null,s.alternate=null,s.flags|=2),o=s.pendingProps,_e=j._init,j=_e(j._payload),s.type=j,_e=s.tag=hk(j),o=lg(j,o),_e){case 0:s=li(null,s,j,o,a);break e;case 1:s=pi(null,s,j,o,a);break e;case 11:s=gi(null,s,j,o,a);break e;case 14:s=ii(null,s,j,lg(j.type,o),$,a);break e}throw Error(y$2(306,j,""))}return s;case 0:return $=s.type,j=s.pendingProps,j=s.elementType===$?j:lg($,j),li(o,s,$,j,a);case 1:return $=s.type,j=s.pendingProps,j=s.elementType===$?j:lg($,j),pi(o,s,$,j,a);case 3:if(ri(s),$=s.updateQueue,o===null||$===null)throw Error(y$2(282));if($=s.pendingProps,j=s.memoizedState,j=j!==null?j.element:null,yg(o,s),Cg(s,$,null,a),$=s.memoizedState.element,$===j)sh(),s=hi(o,s,a);else{if(j=s.stateNode,(_e=j.hydrate)&&(kh=rf(s.stateNode.containerInfo.firstChild),jh=s,_e=lh=!0),_e){if(o=j.mutableSourceEagerHydrationData,o!=null)for(j=0;j<o.length;j+=2)_e=o[j],_e._workInProgressVersionPrimary=o[j+1],th.push(_e);for(a=Zg(s,null,$,a),s.child=a;a;)a.flags=a.flags&-3|1024,a=a.sibling}else fi(o,s,$,a),sh();s=s.child}return s;case 5:return gh(s),o===null&&ph(s),$=s.type,j=s.pendingProps,_e=o!==null?o.memoizedProps:null,et=j.children,nf($,j)?et=null:_e!==null&&nf($,_e)&&(s.flags|=16),oi(o,s),fi(o,s,et,a),s.child;case 6:return o===null&&ph(s),null;case 13:return ti(o,s,a);case 4:return eh(s,s.stateNode.containerInfo),$=s.pendingProps,o===null?s.child=Yg(s,null,$,a):fi(o,s,$,a),s.child;case 11:return $=s.type,j=s.pendingProps,j=s.elementType===$?j:lg($,j),gi(o,s,$,j,a);case 7:return fi(o,s,s.pendingProps,a),s.child;case 8:return fi(o,s,s.pendingProps.children,a),s.child;case 12:return fi(o,s,s.pendingProps.children,a),s.child;case 10:e:{$=s.type._context,j=s.pendingProps,et=s.memoizedProps,_e=j.value;var tt=s.type._context;if(I$1(mg,tt._currentValue),tt._currentValue=_e,et!==null)if(tt=et.value,_e=He(tt,_e)?0:(typeof $._calculateChangedBits=="function"?$._calculateChangedBits(tt,_e):1073741823)|0,_e===0){if(et.children===j.children&&!N.current){s=hi(o,s,a);break e}}else for(tt=s.child,tt!==null&&(tt.return=s);tt!==null;){var nt=tt.dependencies;if(nt!==null){et=tt.child;for(var it=nt.firstContext;it!==null;){if(it.context===$&&it.observedBits&_e){tt.tag===1&&(it=zg(-1,a&-a),it.tag=2,Ag(tt,it)),tt.lanes|=a,it=tt.alternate,it!==null&&(it.lanes|=a),sg(tt.return,a),nt.lanes|=a;break}it=it.next}}else et=tt.tag===10&&tt.type===s.type?null:tt.child;if(et!==null)et.return=tt;else for(et=tt;et!==null;){if(et===s){et=null;break}if(tt=et.sibling,tt!==null){tt.return=et.return,et=tt;break}et=et.return}tt=et}fi(o,s,j.children,a),s=s.child}return s;case 9:return j=s.type,_e=s.pendingProps,$=_e.children,tg(s,a),j=vg(j,_e.unstable_observedBits),$=$(j),s.flags|=1,fi(o,s,$,a),s.child;case 14:return j=s.type,_e=lg(j,s.pendingProps),_e=lg(j.type,_e),ii(o,s,j,_e,$,a);case 15:return ki(o,s,s.type,s.pendingProps,$,a);case 17:return $=s.type,j=s.pendingProps,j=s.elementType===$?j:lg($,j),o!==null&&(o.alternate=null,s.alternate=null,s.flags|=2),s.tag=1,Ff($)?(o=!0,Jf(s)):o=!1,tg(s,a),Mg(s,$,j),Og(s,$,j,a),qi(null,s,$,!0,o,a);case 19:return Ai(o,s,a);case 23:return mi(o,s,a);case 24:return mi(o,s,a)}throw Error(y$2(156,s.tag))};function ik(o,s,a,$){this.tag=o,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=$,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function nh(o,s,a,$){return new ik(o,s,a,$)}function ji(o){return o=o.prototype,!(!o||!o.isReactComponent)}function hk(o){if(typeof o=="function")return ji(o)?1:0;if(o!=null){if(o=o.$$typeof,o===Aa)return 11;if(o===Da)return 14}return 2}function Tg(o,s){var a=o.alternate;return a===null?(a=nh(o.tag,s,o.key,o.mode),a.elementType=o.elementType,a.type=o.type,a.stateNode=o.stateNode,a.alternate=o,o.alternate=a):(a.pendingProps=s,a.type=o.type,a.flags=0,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null),a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,s=o.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},a.sibling=o.sibling,a.index=o.index,a.ref=o.ref,a}function Vg(o,s,a,$,j,_e){var et=2;if($=o,typeof o=="function")ji(o)&&(et=1);else if(typeof o=="string")et=5;else e:switch(o){case ua$1:return Xg(a.children,j,_e,s);case Ha:et=8,j|=16;break;case wa:et=8,j|=1;break;case xa:return o=nh(12,a,s,j|8),o.elementType=xa,o.type=xa,o.lanes=_e,o;case Ba:return o=nh(13,a,s,j),o.type=Ba,o.elementType=Ba,o.lanes=_e,o;case Ca:return o=nh(19,a,s,j),o.elementType=Ca,o.lanes=_e,o;case Ia:return vi(a,j,_e,s);case Ja:return o=nh(24,a,s,j),o.elementType=Ja,o.lanes=_e,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case ya:et=10;break e;case za:et=9;break e;case Aa:et=11;break e;case Da:et=14;break e;case Ea:et=16,$=null;break e;case Fa:et=22;break e}throw Error(y$2(130,o==null?o:typeof o,""))}return s=nh(et,a,s,j),s.elementType=o,s.type=$,s.lanes=_e,s}function Xg(o,s,a,$){return o=nh(7,o,$,s),o.lanes=a,o}function vi(o,s,a,$){return o=nh(23,o,$,s),o.elementType=Ia,o.lanes=a,o}function Ug(o,s,a){return o=nh(6,o,null,s),o.lanes=a,o}function Wg(o,s,a){return s=nh(4,o.children!==null?o.children:[],o.key,s),s.lanes=a,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}function jk(o,s,a){this.tag=s,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=a,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Zc(0),this.expirationTimes=Zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zc(0),this.mutableSourceEagerHydrationData=null}function kk(o,s,a){var $=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ta,key:$==null?null:""+$,children:o,containerInfo:s,implementation:a}}function lk(o,s,a,$){var j=s.current,_e=Hg(),et=Ig(j);e:if(a){a=a._reactInternals;t:{if(Zb(a)!==a||a.tag!==1)throw Error(y$2(170));var tt=a;do{switch(tt.tag){case 3:tt=tt.stateNode.context;break t;case 1:if(Ff(tt.type)){tt=tt.stateNode.__reactInternalMemoizedMergedChildContext;break t}}tt=tt.return}while(tt!==null);throw Error(y$2(171))}if(a.tag===1){var nt=a.type;if(Ff(nt)){a=If(a,nt,tt);break e}}a=tt}else a=Cf;return s.context===null?s.context=a:s.pendingContext=a,s=zg(_e,et),s.payload={element:o},$=$===void 0?null:$,$!==null&&(s.callback=$),Ag(j,s),Jg(j,et,_e),et}function mk(o){if(o=o.current,!o.child)return null;switch(o.child.tag){case 5:return o.child.stateNode;default:return o.child.stateNode}}function nk(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var a=o.retryLane;o.retryLane=a!==0&&a<s?a:s}}function ok(o,s){nk(o,s),(o=o.alternate)&&nk(o,s)}function pk(){return null}function qk(o,s,a){var $=a!=null&&a.hydrationOptions!=null&&a.hydrationOptions.mutableSources||null;if(a=new jk(o,s,a!=null&&a.hydrate===!0),s=nh(3,null,null,s===2?7:s===1?3:0),a.current=s,s.stateNode=a,xg(s),o[ff]=a.current,cf(o.nodeType===8?o.parentNode:o),$)for(o=0;o<$.length;o++){s=$[o];var j=s._getVersion;j=j(s._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[s,j]:a.mutableSourceEagerHydrationData.push(s,j)}this._internalRoot=a}qk.prototype.render=function(o){lk(o,this._internalRoot,null,null)};qk.prototype.unmount=function(){var o=this._internalRoot,s=o.containerInfo;lk(null,o,null,function(){s[ff]=null})};function rk(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function sk(o,s){if(s||(s=o?o.nodeType===9?o.documentElement:o.firstChild:null,s=!(!s||s.nodeType!==1||!s.hasAttribute("data-reactroot"))),!s)for(var a;a=o.lastChild;)o.removeChild(a);return new qk(o,0,s?{hydrate:!0}:void 0)}function tk(o,s,a,$,j){var _e=a._reactRootContainer;if(_e){var et=_e._internalRoot;if(typeof j=="function"){var tt=j;j=function(){var it=mk(et);tt.call(it)}}lk(s,et,o,j)}else{if(_e=a._reactRootContainer=sk(a,$),et=_e._internalRoot,typeof j=="function"){var nt=j;j=function(){var it=mk(et);nt.call(it)}}Xj(function(){lk(s,et,o,j)})}return mk(et)}ec=function(o){if(o.tag===13){var s=Hg();Jg(o,4,s),ok(o,4)}};fc=function(o){if(o.tag===13){var s=Hg();Jg(o,67108864,s),ok(o,67108864)}};gc=function(o){if(o.tag===13){var s=Hg(),a=Ig(o);Jg(o,a,s),ok(o,a)}};hc=function(o,s){return s()};yb=function(o,s,a){switch(s){case"input":if(ab(o,a),s=a.name,a.type==="radio"&&s!=null){for(a=o;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<a.length;s++){var $=a[s];if($!==o&&$.form===o.form){var j=Db($);if(!j)throw Error(y$2(90));Wa($),ab($,j)}}}break;case"textarea":ib(o,a);break;case"select":s=a.value,s!=null&&fb(o,!!a.multiple,s,!1)}};Gb=Wj;Hb=function(o,s,a,$,j){var _e=X;X|=4;try{return gg(98,o.bind(null,s,a,$,j))}finally{X=_e,X===0&&(wj(),ig())}};Ib=function(){!(X&49)&&(Vj(),Oj())};Jb=function(o,s){var a=X;X|=2;try{return o(s)}finally{X=a,X===0&&(wj(),ig())}};function uk(o,s){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!rk(s))throw Error(y$2(200));return kk(o,s,null,a)}var vk={Events:[Cb,ue,Db,Eb,Fb,Oj,{current:!1}]},wk={findFiberByHostInstance:wc,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},xk={bundleType:wk.bundleType,version:wk.version,rendererPackageName:wk.rendererPackageName,rendererConfig:wk.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ra.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=cc(o),o===null?null:o.stateNode},findFiberByHostInstance:wk.findFiberByHostInstance||pk,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yk=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yk.isDisabled&&yk.supportsFiber)try{Lf=yk.inject(xk),Mf=yk}catch{}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vk;reactDom_production_min.createPortal=uk;reactDom_production_min.findDOMNode=function(o){if(o==null)return null;if(o.nodeType===1)return o;var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(y$2(188)):Error(y$2(268,Object.keys(o)));return o=cc(s),o=o===null?null:o.stateNode,o};reactDom_production_min.flushSync=function(o,s){var a=X;if(a&48)return o(s);X|=1;try{if(o)return gg(99,o.bind(null,s))}finally{X=a,ig()}};reactDom_production_min.hydrate=function(o,s,a){if(!rk(s))throw Error(y$2(200));return tk(null,o,s,!0,a)};reactDom_production_min.render=function(o,s,a){if(!rk(s))throw Error(y$2(200));return tk(null,o,s,!1,a)};reactDom_production_min.unmountComponentAtNode=function(o){if(!rk(o))throw Error(y$2(40));return o._reactRootContainer?(Xj(function(){tk(null,null,o,!1,function(){o._reactRootContainer=null,o[ff]=null})}),!0):!1};reactDom_production_min.unstable_batchedUpdates=Wj;reactDom_production_min.unstable_createPortal=function(o,s){return uk(o,s,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};reactDom_production_min.unstable_renderSubtreeIntoContainer=function(o,s,a,$){if(!rk(a))throw Error(y$2(200));if(o==null||o._reactInternals===void 0)throw Error(y$2(38));return tk(o,s,a,!1,$)};reactDom_production_min.version="17.0.2";function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(o){console.error(o)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs(reactDomExports);function _setPrototypeOf$2(o,s){return _setPrototypeOf$2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function($,j){return $.__proto__=j,$},_setPrototypeOf$2(o,s)}function _inheritsLoose(o,s){o.prototype=Object.create(s.prototype),o.prototype.constructor=o,_setPrototypeOf$2(o,s)}var Subscribable=function(){function o(){this.listeners=[]}var s=o.prototype;return s.subscribe=function($){var j=this,_e=$||function(){};return this.listeners.push(_e),this.onSubscribe(),function(){j.listeners=j.listeners.filter(function(et){return et!==_e}),j.onUnsubscribe()}},s.hasListeners=function(){return this.listeners.length>0},s.onSubscribe=function(){},s.onUnsubscribe=function(){},o}();function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(o){for(var s=1;s<arguments.length;s++){var a=arguments[s];for(var $ in a)Object.prototype.hasOwnProperty.call(a,$)&&(o[$]=a[$])}return o},_extends$1.apply(this,arguments)}var isServer=typeof window>"u";function noop$5(){}function functionalUpdate(o,s){return typeof o=="function"?o(s):o}function isValidTimeout(o){return typeof o=="number"&&o>=0&&o!==1/0}function ensureQueryKeyArray(o){return Array.isArray(o)?o:[o]}function timeUntilStale(o,s){return Math.max(o+(s||0)-Date.now(),0)}function parseQueryArgs(o,s,a){return isQueryKey(o)?typeof s=="function"?_extends$1({},a,{queryKey:o,queryFn:s}):_extends$1({},s,{queryKey:o}):o}function parseMutationArgs(o,s,a){return isQueryKey(o)?typeof s=="function"?_extends$1({},a,{mutationKey:o,mutationFn:s}):_extends$1({},s,{mutationKey:o}):typeof o=="function"?_extends$1({},s,{mutationFn:o}):_extends$1({},o)}function parseFilterArgs(o,s,a){return isQueryKey(o)?[_extends$1({},s,{queryKey:o}),a]:[o||{},s]}function mapQueryStatusFilter(o,s){if(o===!0&&s===!0||o==null&&s==null)return"all";if(o===!1&&s===!1)return"none";var a=o??!s;return a?"active":"inactive"}function matchQuery(o,s){var a=o.active,$=o.exact,j=o.fetching,_e=o.inactive,et=o.predicate,tt=o.queryKey,nt=o.stale;if(isQueryKey(tt)){if($){if(s.queryHash!==hashQueryKeyByOptions(tt,s.options))return!1}else if(!partialMatchKey(s.queryKey,tt))return!1}var it=mapQueryStatusFilter(a,_e);if(it==="none")return!1;if(it!=="all"){var rt=s.isActive();if(it==="active"&&!rt||it==="inactive"&&rt)return!1}return!(typeof nt=="boolean"&&s.isStale()!==nt||typeof j=="boolean"&&s.isFetching()!==j||et&&!et(s))}function matchMutation(o,s){var a=o.exact,$=o.fetching,j=o.predicate,_e=o.mutationKey;if(isQueryKey(_e)){if(!s.options.mutationKey)return!1;if(a){if(hashQueryKey(s.options.mutationKey)!==hashQueryKey(_e))return!1}else if(!partialMatchKey(s.options.mutationKey,_e))return!1}return!(typeof $=="boolean"&&s.state.status==="loading"!==$||j&&!j(s))}function hashQueryKeyByOptions(o,s){var a=(s==null?void 0:s.queryKeyHashFn)||hashQueryKey;return a(o)}function hashQueryKey(o){var s=ensureQueryKeyArray(o);return stableValueHash(s)}function stableValueHash(o){return JSON.stringify(o,function(s,a){return isPlainObject$2(a)?Object.keys(a).sort().reduce(function($,j){return $[j]=a[j],$},{}):a})}function partialMatchKey(o,s){return partialDeepEqual(ensureQueryKeyArray(o),ensureQueryKeyArray(s))}function partialDeepEqual(o,s){return o===s?!0:typeof o!=typeof s?!1:o&&s&&typeof o=="object"&&typeof s=="object"?!Object.keys(s).some(function(a){return!partialDeepEqual(o[a],s[a])}):!1}function replaceEqualDeep(o,s){if(o===s)return o;var a=Array.isArray(o)&&Array.isArray(s);if(a||isPlainObject$2(o)&&isPlainObject$2(s)){for(var $=a?o.length:Object.keys(o).length,j=a?s:Object.keys(s),_e=j.length,et=a?[]:{},tt=0,nt=0;nt<_e;nt++){var it=a?nt:j[nt];et[it]=replaceEqualDeep(o[it],s[it]),et[it]===o[it]&&tt++}return $===_e&&tt===$?o:et}return s}function shallowEqualObjects(o,s){if(o&&!s||s&&!o)return!1;for(var a in o)if(o[a]!==s[a])return!1;return!0}function isPlainObject$2(o){if(!hasObjectPrototype(o))return!1;var s=o.constructor;if(typeof s>"u")return!0;var a=s.prototype;return!(!hasObjectPrototype(a)||!a.hasOwnProperty("isPrototypeOf"))}function hasObjectPrototype(o){return Object.prototype.toString.call(o)==="[object Object]"}function isQueryKey(o){return typeof o=="string"||Array.isArray(o)}function sleep(o){return new Promise(function(s){setTimeout(s,o)})}function scheduleMicrotask(o){Promise.resolve().then(o).catch(function(s){return setTimeout(function(){throw s})})}function getAbortController(){if(typeof AbortController=="function")return new AbortController}var FocusManager=function(o){_inheritsLoose(s,o);function s(){var $;return $=o.call(this)||this,$.setup=function(j){var _e;if(!isServer&&((_e=window)!=null&&_e.addEventListener)){var et=function(){return j()};return window.addEventListener("visibilitychange",et,!1),window.addEventListener("focus",et,!1),function(){window.removeEventListener("visibilitychange",et),window.removeEventListener("focus",et)}}},$}var a=s.prototype;return a.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},a.onUnsubscribe=function(){if(!this.hasListeners()){var j;(j=this.cleanup)==null||j.call(this),this.cleanup=void 0}},a.setEventListener=function(j){var _e,et=this;this.setup=j,(_e=this.cleanup)==null||_e.call(this),this.cleanup=j(function(tt){typeof tt=="boolean"?et.setFocused(tt):et.onFocus()})},a.setFocused=function(j){this.focused=j,j&&this.onFocus()},a.onFocus=function(){this.listeners.forEach(function(j){j()})},a.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},s}(Subscribable),focusManager=new FocusManager,OnlineManager=function(o){_inheritsLoose(s,o);function s(){var $;return $=o.call(this)||this,$.setup=function(j){var _e;if(!isServer&&((_e=window)!=null&&_e.addEventListener)){var et=function(){return j()};return window.addEventListener("online",et,!1),window.addEventListener("offline",et,!1),function(){window.removeEventListener("online",et),window.removeEventListener("offline",et)}}},$}var a=s.prototype;return a.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},a.onUnsubscribe=function(){if(!this.hasListeners()){var j;(j=this.cleanup)==null||j.call(this),this.cleanup=void 0}},a.setEventListener=function(j){var _e,et=this;this.setup=j,(_e=this.cleanup)==null||_e.call(this),this.cleanup=j(function(tt){typeof tt=="boolean"?et.setOnline(tt):et.onOnline()})},a.setOnline=function(j){this.online=j,j&&this.onOnline()},a.onOnline=function(){this.listeners.forEach(function(j){j()})},a.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},s}(Subscribable),onlineManager=new OnlineManager;function defaultRetryDelay(o){return Math.min(1e3*Math.pow(2,o),3e4)}function isCancelable(o){return typeof(o==null?void 0:o.cancel)=="function"}var CancelledError=function(s){this.revert=s==null?void 0:s.revert,this.silent=s==null?void 0:s.silent};function isCancelledError(o){return o instanceof CancelledError}var Retryer=function(s){var a=this,$=!1,j,_e,et,tt;this.abort=s.abort,this.cancel=function(ot){return j==null?void 0:j(ot)},this.cancelRetry=function(){$=!0},this.continueRetry=function(){$=!1},this.continue=function(){return _e==null?void 0:_e()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(ot,at){et=ot,tt=at});var nt=function(at){a.isResolved||(a.isResolved=!0,s.onSuccess==null||s.onSuccess(at),_e==null||_e(),et(at))},it=function(at){a.isResolved||(a.isResolved=!0,s.onError==null||s.onError(at),_e==null||_e(),tt(at))},rt=function(){return new Promise(function(at){_e=at,a.isPaused=!0,s.onPause==null||s.onPause()}).then(function(){_e=void 0,a.isPaused=!1,s.onContinue==null||s.onContinue()})},st=function ot(){if(!a.isResolved){var at;try{at=s.fn()}catch(lt){at=Promise.reject(lt)}j=function(ct){if(!a.isResolved&&(it(new CancelledError(ct)),a.abort==null||a.abort(),isCancelable(at)))try{at.cancel()}catch{}},a.isTransportCancelable=isCancelable(at),Promise.resolve(at).then(nt).catch(function(lt){var ct,ht;if(!a.isResolved){var dt=(ct=s.retry)!=null?ct:3,ut=(ht=s.retryDelay)!=null?ht:defaultRetryDelay,pt=typeof ut=="function"?ut(a.failureCount,lt):ut,ft=dt===!0||typeof dt=="number"&&a.failureCount<dt||typeof dt=="function"&&dt(a.failureCount,lt);if($||!ft){it(lt);return}a.failureCount++,s.onFail==null||s.onFail(a.failureCount,lt),sleep(pt).then(function(){if(!focusManager.isFocused()||!onlineManager.isOnline())return rt()}).then(function(){$?it(lt):ot()})}})}};st()},NotifyManager=function(){function o(){this.queue=[],this.transactions=0,this.notifyFn=function(a){a()},this.batchNotifyFn=function(a){a()}}var s=o.prototype;return s.batch=function($){var j;this.transactions++;try{j=$()}finally{this.transactions--,this.transactions||this.flush()}return j},s.schedule=function($){var j=this;this.transactions?this.queue.push($):scheduleMicrotask(function(){j.notifyFn($)})},s.batchCalls=function($){var j=this;return function(){for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];j.schedule(function(){$.apply(void 0,et)})}},s.flush=function(){var $=this,j=this.queue;this.queue=[],j.length&&scheduleMicrotask(function(){$.batchNotifyFn(function(){j.forEach(function(_e){$.notifyFn(_e)})})})},s.setNotifyFunction=function($){this.notifyFn=$},s.setBatchNotifyFunction=function($){this.batchNotifyFn=$},o}(),notifyManager=new NotifyManager,logger$6=console;function getLogger(){return logger$6}function setLogger(o){logger$6=o}var Query=function(){function o(a){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=a.defaultOptions,this.setOptions(a.options),this.observers=[],this.cache=a.cache,this.queryKey=a.queryKey,this.queryHash=a.queryHash,this.initialState=a.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=a.meta,this.scheduleGc()}var s=o.prototype;return s.setOptions=function($){var j;this.options=_extends$1({},this.defaultOptions,$),this.meta=$==null?void 0:$.meta,this.cacheTime=Math.max(this.cacheTime||0,(j=this.options.cacheTime)!=null?j:5*60*1e3)},s.setDefaultOptions=function($){this.defaultOptions=$},s.scheduleGc=function(){var $=this;this.clearGcTimeout(),isValidTimeout(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){$.optionalRemove()},this.cacheTime))},s.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},s.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},s.setData=function($,j){var _e,et,tt=this.state.data,nt=functionalUpdate($,tt);return(_e=(et=this.options).isDataEqual)!=null&&_e.call(et,tt,nt)?nt=tt:this.options.structuralSharing!==!1&&(nt=replaceEqualDeep(tt,nt)),this.dispatch({data:nt,type:"success",dataUpdatedAt:j==null?void 0:j.updatedAt}),nt},s.setState=function($,j){this.dispatch({type:"setState",state:$,setStateOptions:j})},s.cancel=function($){var j,_e=this.promise;return(j=this.retryer)==null||j.cancel($),_e?_e.then(noop$5).catch(noop$5):Promise.resolve()},s.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},s.reset=function(){this.destroy(),this.setState(this.initialState)},s.isActive=function(){return this.observers.some(function($){return $.options.enabled!==!1})},s.isFetching=function(){return this.state.isFetching},s.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function($){return $.getCurrentResult().isStale})},s.isStaleByTime=function($){return $===void 0&&($=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!timeUntilStale(this.state.dataUpdatedAt,$)},s.onFocus=function(){var $,j=this.observers.find(function(_e){return _e.shouldFetchOnWindowFocus()});j&&j.refetch(),($=this.retryer)==null||$.continue()},s.onOnline=function(){var $,j=this.observers.find(function(_e){return _e.shouldFetchOnReconnect()});j&&j.refetch(),($=this.retryer)==null||$.continue()},s.addObserver=function($){this.observers.indexOf($)===-1&&(this.observers.push($),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:$}))},s.removeObserver=function($){this.observers.indexOf($)!==-1&&(this.observers=this.observers.filter(function(j){return j!==$}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:$}))},s.getObserversCount=function(){return this.observers.length},s.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},s.fetch=function($,j){var _e=this,et,tt,nt;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(j!=null&&j.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var it;return(it=this.retryer)==null||it.continueRetry(),this.promise}}if($&&this.setOptions($),!this.options.queryFn){var rt=this.observers.find(function(ut){return ut.options.queryFn});rt&&this.setOptions(rt.options)}var st=ensureQueryKeyArray(this.queryKey),ot=getAbortController(),at={queryKey:st,pageParam:void 0,meta:this.meta};Object.defineProperty(at,"signal",{enumerable:!0,get:function(){if(ot)return _e.abortSignalConsumed=!0,ot.signal}});var lt=function(){return _e.options.queryFn?(_e.abortSignalConsumed=!1,_e.options.queryFn(at)):Promise.reject("Missing queryFn")},ct={fetchOptions:j,options:this.options,queryKey:st,state:this.state,fetchFn:lt,meta:this.meta};if((et=this.options.behavior)!=null&&et.onFetch){var ht;(ht=this.options.behavior)==null||ht.onFetch(ct)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((tt=ct.fetchOptions)==null?void 0:tt.meta)){var dt;this.dispatch({type:"fetch",meta:(dt=ct.fetchOptions)==null?void 0:dt.meta})}return this.retryer=new Retryer({fn:ct.fetchFn,abort:ot==null||(nt=ot.abort)==null?void 0:nt.bind(ot),onSuccess:function(pt){_e.setData(pt),_e.cache.config.onSuccess==null||_e.cache.config.onSuccess(pt,_e),_e.cacheTime===0&&_e.optionalRemove()},onError:function(pt){isCancelledError(pt)&&pt.silent||_e.dispatch({type:"error",error:pt}),isCancelledError(pt)||(_e.cache.config.onError==null||_e.cache.config.onError(pt,_e),getLogger().error(pt)),_e.cacheTime===0&&_e.optionalRemove()},onFail:function(){_e.dispatch({type:"failed"})},onPause:function(){_e.dispatch({type:"pause"})},onContinue:function(){_e.dispatch({type:"continue"})},retry:ct.options.retry,retryDelay:ct.options.retryDelay}),this.promise=this.retryer.promise,this.promise},s.dispatch=function($){var j=this;this.state=this.reducer(this.state,$),notifyManager.batch(function(){j.observers.forEach(function(_e){_e.onQueryUpdate($)}),j.cache.notify({query:j,type:"queryUpdated",action:$})})},s.getDefaultState=function($){var j=typeof $.initialData=="function"?$.initialData():$.initialData,_e=typeof $.initialData<"u",et=_e?typeof $.initialDataUpdatedAt=="function"?$.initialDataUpdatedAt():$.initialDataUpdatedAt:0,tt=typeof j<"u";return{data:j,dataUpdateCount:0,dataUpdatedAt:tt?et??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:tt?"success":"idle"}},s.reducer=function($,j){var _e,et;switch(j.type){case"failed":return _extends$1({},$,{fetchFailureCount:$.fetchFailureCount+1});case"pause":return _extends$1({},$,{isPaused:!0});case"continue":return _extends$1({},$,{isPaused:!1});case"fetch":return _extends$1({},$,{fetchFailureCount:0,fetchMeta:(_e=j.meta)!=null?_e:null,isFetching:!0,isPaused:!1},!$.dataUpdatedAt&&{error:null,status:"loading"});case"success":return _extends$1({},$,{data:j.data,dataUpdateCount:$.dataUpdateCount+1,dataUpdatedAt:(et=j.dataUpdatedAt)!=null?et:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var tt=j.error;return isCancelledError(tt)&&tt.revert&&this.revertState?_extends$1({},this.revertState):_extends$1({},$,{error:tt,errorUpdateCount:$.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:$.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return _extends$1({},$,{isInvalidated:!0});case"setState":return _extends$1({},$,j.state);default:return $}},o}(),QueryCache=function(o){_inheritsLoose(s,o);function s($){var j;return j=o.call(this)||this,j.config=$||{},j.queries=[],j.queriesMap={},j}var a=s.prototype;return a.build=function(j,_e,et){var tt,nt=_e.queryKey,it=(tt=_e.queryHash)!=null?tt:hashQueryKeyByOptions(nt,_e),rt=this.get(it);return rt||(rt=new Query({cache:this,queryKey:nt,queryHash:it,options:j.defaultQueryOptions(_e),state:et,defaultOptions:j.getQueryDefaults(nt),meta:_e.meta}),this.add(rt)),rt},a.add=function(j){this.queriesMap[j.queryHash]||(this.queriesMap[j.queryHash]=j,this.queries.push(j),this.notify({type:"queryAdded",query:j}))},a.remove=function(j){var _e=this.queriesMap[j.queryHash];_e&&(j.destroy(),this.queries=this.queries.filter(function(et){return et!==j}),_e===j&&delete this.queriesMap[j.queryHash],this.notify({type:"queryRemoved",query:j}))},a.clear=function(){var j=this;notifyManager.batch(function(){j.queries.forEach(function(_e){j.remove(_e)})})},a.get=function(j){return this.queriesMap[j]},a.getAll=function(){return this.queries},a.find=function(j,_e){var et=parseFilterArgs(j,_e),tt=et[0];return typeof tt.exact>"u"&&(tt.exact=!0),this.queries.find(function(nt){return matchQuery(tt,nt)})},a.findAll=function(j,_e){var et=parseFilterArgs(j,_e),tt=et[0];return Object.keys(tt).length>0?this.queries.filter(function(nt){return matchQuery(tt,nt)}):this.queries},a.notify=function(j){var _e=this;notifyManager.batch(function(){_e.listeners.forEach(function(et){et(j)})})},a.onFocus=function(){var j=this;notifyManager.batch(function(){j.queries.forEach(function(_e){_e.onFocus()})})},a.onOnline=function(){var j=this;notifyManager.batch(function(){j.queries.forEach(function(_e){_e.onOnline()})})},s}(Subscribable),Mutation=function(){function o(a){this.options=_extends$1({},a.defaultOptions,a.options),this.mutationId=a.mutationId,this.mutationCache=a.mutationCache,this.observers=[],this.state=a.state||getDefaultState(),this.meta=a.meta}var s=o.prototype;return s.setState=function($){this.dispatch({type:"setState",state:$})},s.addObserver=function($){this.observers.indexOf($)===-1&&this.observers.push($)},s.removeObserver=function($){this.observers=this.observers.filter(function(j){return j!==$})},s.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(noop$5).catch(noop$5)):Promise.resolve()},s.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},s.execute=function(){var $=this,j,_e=this.state.status==="loading",et=Promise.resolve();return _e||(this.dispatch({type:"loading",variables:this.options.variables}),et=et.then(function(){$.mutationCache.config.onMutate==null||$.mutationCache.config.onMutate($.state.variables,$)}).then(function(){return $.options.onMutate==null?void 0:$.options.onMutate($.state.variables)}).then(function(tt){tt!==$.state.context&&$.dispatch({type:"loading",context:tt,variables:$.state.variables})})),et.then(function(){return $.executeMutation()}).then(function(tt){j=tt,$.mutationCache.config.onSuccess==null||$.mutationCache.config.onSuccess(j,$.state.variables,$.state.context,$)}).then(function(){return $.options.onSuccess==null?void 0:$.options.onSuccess(j,$.state.variables,$.state.context)}).then(function(){return $.options.onSettled==null?void 0:$.options.onSettled(j,null,$.state.variables,$.state.context)}).then(function(){return $.dispatch({type:"success",data:j}),j}).catch(function(tt){return $.mutationCache.config.onError==null||$.mutationCache.config.onError(tt,$.state.variables,$.state.context,$),getLogger().error(tt),Promise.resolve().then(function(){return $.options.onError==null?void 0:$.options.onError(tt,$.state.variables,$.state.context)}).then(function(){return $.options.onSettled==null?void 0:$.options.onSettled(void 0,tt,$.state.variables,$.state.context)}).then(function(){throw $.dispatch({type:"error",error:tt}),tt})})},s.executeMutation=function(){var $=this,j;return this.retryer=new Retryer({fn:function(){return $.options.mutationFn?$.options.mutationFn($.state.variables):Promise.reject("No mutationFn found")},onFail:function(){$.dispatch({type:"failed"})},onPause:function(){$.dispatch({type:"pause"})},onContinue:function(){$.dispatch({type:"continue"})},retry:(j=this.options.retry)!=null?j:0,retryDelay:this.options.retryDelay}),this.retryer.promise},s.dispatch=function($){var j=this;this.state=reducer(this.state,$),notifyManager.batch(function(){j.observers.forEach(function(_e){_e.onMutationUpdate($)}),j.mutationCache.notify(j)})},o}();function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function reducer(o,s){switch(s.type){case"failed":return _extends$1({},o,{failureCount:o.failureCount+1});case"pause":return _extends$1({},o,{isPaused:!0});case"continue":return _extends$1({},o,{isPaused:!1});case"loading":return _extends$1({},o,{context:s.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:s.variables});case"success":return _extends$1({},o,{data:s.data,error:null,status:"success",isPaused:!1});case"error":return _extends$1({},o,{data:void 0,error:s.error,failureCount:o.failureCount+1,isPaused:!1,status:"error"});case"setState":return _extends$1({},o,s.state);default:return o}}var MutationCache=function(o){_inheritsLoose(s,o);function s($){var j;return j=o.call(this)||this,j.config=$||{},j.mutations=[],j.mutationId=0,j}var a=s.prototype;return a.build=function(j,_e,et){var tt=new Mutation({mutationCache:this,mutationId:++this.mutationId,options:j.defaultMutationOptions(_e),state:et,defaultOptions:_e.mutationKey?j.getMutationDefaults(_e.mutationKey):void 0,meta:_e.meta});return this.add(tt),tt},a.add=function(j){this.mutations.push(j),this.notify(j)},a.remove=function(j){this.mutations=this.mutations.filter(function(_e){return _e!==j}),j.cancel(),this.notify(j)},a.clear=function(){var j=this;notifyManager.batch(function(){j.mutations.forEach(function(_e){j.remove(_e)})})},a.getAll=function(){return this.mutations},a.find=function(j){return typeof j.exact>"u"&&(j.exact=!0),this.mutations.find(function(_e){return matchMutation(j,_e)})},a.findAll=function(j){return this.mutations.filter(function(_e){return matchMutation(j,_e)})},a.notify=function(j){var _e=this;notifyManager.batch(function(){_e.listeners.forEach(function(et){et(j)})})},a.onFocus=function(){this.resumePausedMutations()},a.onOnline=function(){this.resumePausedMutations()},a.resumePausedMutations=function(){var j=this.mutations.filter(function(_e){return _e.state.isPaused});return notifyManager.batch(function(){return j.reduce(function(_e,et){return _e.then(function(){return et.continue().catch(noop$5)})},Promise.resolve())})},s}(Subscribable);function infiniteQueryBehavior(){return{onFetch:function(s){s.fetchFn=function(){var a,$,j,_e,et,tt,nt=(a=s.fetchOptions)==null||($=a.meta)==null?void 0:$.refetchPage,it=(j=s.fetchOptions)==null||(_e=j.meta)==null?void 0:_e.fetchMore,rt=it==null?void 0:it.pageParam,st=(it==null?void 0:it.direction)==="forward",ot=(it==null?void 0:it.direction)==="backward",at=((et=s.state.data)==null?void 0:et.pages)||[],lt=((tt=s.state.data)==null?void 0:tt.pageParams)||[],ct=getAbortController(),ht=ct==null?void 0:ct.signal,dt=lt,ut=!1,pt=s.options.queryFn||function(){return Promise.reject("Missing queryFn")},ft=function(yt,Pt,wt,Lt){return dt=Lt?[Pt].concat(dt):[].concat(dt,[Pt]),Lt?[wt].concat(yt):[].concat(yt,[wt])},mt=function(yt,Pt,wt,Lt){if(ut)return Promise.reject("Cancelled");if(typeof wt>"u"&&!Pt&&yt.length)return Promise.resolve(yt);var vt={queryKey:s.queryKey,signal:ht,pageParam:wt,meta:s.meta},xt=pt(vt),Ut=Promise.resolve(xt).then(function(Dt){return ft(yt,wt,Dt,Lt)});if(isCancelable(xt)){var Et=Ut;Et.cancel=xt.cancel}return Ut},gt;if(!at.length)gt=mt([]);else if(st){var bt=typeof rt<"u",St=bt?rt:getNextPageParam(s.options,at);gt=mt(at,bt,St)}else if(ot){var Nt=typeof rt<"u",Rt=Nt?rt:getPreviousPageParam(s.options,at);gt=mt(at,Nt,Rt,!0)}else(function(){dt=[];var Ct=typeof s.options.getNextPageParam>"u",yt=nt&&at[0]?nt(at[0],0,at):!0;gt=yt?mt([],Ct,lt[0]):Promise.resolve(ft([],lt[0],at[0]));for(var Pt=function(vt){gt=gt.then(function(xt){var Ut=nt&&at[vt]?nt(at[vt],vt,at):!0;if(Ut){var Et=Ct?lt[vt]:getNextPageParam(s.options,xt);return mt(xt,Ct,Et)}return Promise.resolve(ft(xt,lt[vt],at[vt]))})},wt=1;wt<at.length;wt++)Pt(wt)})();var Ft=gt.then(function(Ct){return{pages:Ct,pageParams:dt}}),Ot=Ft;return Ot.cancel=function(){ut=!0,ct==null||ct.abort(),isCancelable(gt)&&gt.cancel()},Ft}}}}function getNextPageParam(o,s){return o.getNextPageParam==null?void 0:o.getNextPageParam(s[s.length-1],s)}function getPreviousPageParam(o,s){return o.getPreviousPageParam==null?void 0:o.getPreviousPageParam(s[0],s)}function hasNextPage(o,s){if(o.getNextPageParam&&Array.isArray(s)){var a=getNextPageParam(o,s);return typeof a<"u"&&a!==null&&a!==!1}}function hasPreviousPage(o,s){if(o.getPreviousPageParam&&Array.isArray(s)){var a=getPreviousPageParam(o,s);return typeof a<"u"&&a!==null&&a!==!1}}var QueryClient=function(){function o(a){a===void 0&&(a={}),this.queryCache=a.queryCache||new QueryCache,this.mutationCache=a.mutationCache||new MutationCache,this.defaultOptions=a.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var s=o.prototype;return s.mount=function(){var $=this;this.unsubscribeFocus=focusManager.subscribe(function(){focusManager.isFocused()&&onlineManager.isOnline()&&($.mutationCache.onFocus(),$.queryCache.onFocus())}),this.unsubscribeOnline=onlineManager.subscribe(function(){focusManager.isFocused()&&onlineManager.isOnline()&&($.mutationCache.onOnline(),$.queryCache.onOnline())})},s.unmount=function(){var $,j;($=this.unsubscribeFocus)==null||$.call(this),(j=this.unsubscribeOnline)==null||j.call(this)},s.isFetching=function($,j){var _e=parseFilterArgs($,j),et=_e[0];return et.fetching=!0,this.queryCache.findAll(et).length},s.isMutating=function($){return this.mutationCache.findAll(_extends$1({},$,{fetching:!0})).length},s.getQueryData=function($,j){var _e;return(_e=this.queryCache.find($,j))==null?void 0:_e.state.data},s.getQueriesData=function($){return this.getQueryCache().findAll($).map(function(j){var _e=j.queryKey,et=j.state,tt=et.data;return[_e,tt]})},s.setQueryData=function($,j,_e){var et=parseQueryArgs($),tt=this.defaultQueryOptions(et);return this.queryCache.build(this,tt).setData(j,_e)},s.setQueriesData=function($,j,_e){var et=this;return notifyManager.batch(function(){return et.getQueryCache().findAll($).map(function(tt){var nt=tt.queryKey;return[nt,et.setQueryData(nt,j,_e)]})})},s.getQueryState=function($,j){var _e;return(_e=this.queryCache.find($,j))==null?void 0:_e.state},s.removeQueries=function($,j){var _e=parseFilterArgs($,j),et=_e[0],tt=this.queryCache;notifyManager.batch(function(){tt.findAll(et).forEach(function(nt){tt.remove(nt)})})},s.resetQueries=function($,j,_e){var et=this,tt=parseFilterArgs($,j,_e),nt=tt[0],it=tt[1],rt=this.queryCache,st=_extends$1({},nt,{active:!0});return notifyManager.batch(function(){return rt.findAll(nt).forEach(function(ot){ot.reset()}),et.refetchQueries(st,it)})},s.cancelQueries=function($,j,_e){var et=this,tt=parseFilterArgs($,j,_e),nt=tt[0],it=tt[1],rt=it===void 0?{}:it;typeof rt.revert>"u"&&(rt.revert=!0);var st=notifyManager.batch(function(){return et.queryCache.findAll(nt).map(function(ot){return ot.cancel(rt)})});return Promise.all(st).then(noop$5).catch(noop$5)},s.invalidateQueries=function($,j,_e){var et,tt,nt,it=this,rt=parseFilterArgs($,j,_e),st=rt[0],ot=rt[1],at=_extends$1({},st,{active:(et=(tt=st.refetchActive)!=null?tt:st.active)!=null?et:!0,inactive:(nt=st.refetchInactive)!=null?nt:!1});return notifyManager.batch(function(){return it.queryCache.findAll(st).forEach(function(lt){lt.invalidate()}),it.refetchQueries(at,ot)})},s.refetchQueries=function($,j,_e){var et=this,tt=parseFilterArgs($,j,_e),nt=tt[0],it=tt[1],rt=notifyManager.batch(function(){return et.queryCache.findAll(nt).map(function(ot){return ot.fetch(void 0,_extends$1({},it,{meta:{refetchPage:nt==null?void 0:nt.refetchPage}}))})}),st=Promise.all(rt).then(noop$5);return it!=null&&it.throwOnError||(st=st.catch(noop$5)),st},s.fetchQuery=function($,j,_e){var et=parseQueryArgs($,j,_e),tt=this.defaultQueryOptions(et);typeof tt.retry>"u"&&(tt.retry=!1);var nt=this.queryCache.build(this,tt);return nt.isStaleByTime(tt.staleTime)?nt.fetch(tt):Promise.resolve(nt.state.data)},s.prefetchQuery=function($,j,_e){return this.fetchQuery($,j,_e).then(noop$5).catch(noop$5)},s.fetchInfiniteQuery=function($,j,_e){var et=parseQueryArgs($,j,_e);return et.behavior=infiniteQueryBehavior(),this.fetchQuery(et)},s.prefetchInfiniteQuery=function($,j,_e){return this.fetchInfiniteQuery($,j,_e).then(noop$5).catch(noop$5)},s.cancelMutations=function(){var $=this,j=notifyManager.batch(function(){return $.mutationCache.getAll().map(function(_e){return _e.cancel()})});return Promise.all(j).then(noop$5).catch(noop$5)},s.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},s.executeMutation=function($){return this.mutationCache.build(this,$).execute()},s.getQueryCache=function(){return this.queryCache},s.getMutationCache=function(){return this.mutationCache},s.getDefaultOptions=function(){return this.defaultOptions},s.setDefaultOptions=function($){this.defaultOptions=$},s.setQueryDefaults=function($,j){var _e=this.queryDefaults.find(function(et){return hashQueryKey($)===hashQueryKey(et.queryKey)});_e?_e.defaultOptions=j:this.queryDefaults.push({queryKey:$,defaultOptions:j})},s.getQueryDefaults=function($){var j;return $?(j=this.queryDefaults.find(function(_e){return partialMatchKey($,_e.queryKey)}))==null?void 0:j.defaultOptions:void 0},s.setMutationDefaults=function($,j){var _e=this.mutationDefaults.find(function(et){return hashQueryKey($)===hashQueryKey(et.mutationKey)});_e?_e.defaultOptions=j:this.mutationDefaults.push({mutationKey:$,defaultOptions:j})},s.getMutationDefaults=function($){var j;return $?(j=this.mutationDefaults.find(function(_e){return partialMatchKey($,_e.mutationKey)}))==null?void 0:j.defaultOptions:void 0},s.defaultQueryOptions=function($){if($!=null&&$._defaulted)return $;var j=_extends$1({},this.defaultOptions.queries,this.getQueryDefaults($==null?void 0:$.queryKey),$,{_defaulted:!0});return!j.queryHash&&j.queryKey&&(j.queryHash=hashQueryKeyByOptions(j.queryKey,j)),j},s.defaultQueryObserverOptions=function($){return this.defaultQueryOptions($)},s.defaultMutationOptions=function($){return $!=null&&$._defaulted?$:_extends$1({},this.defaultOptions.mutations,this.getMutationDefaults($==null?void 0:$.mutationKey),$,{_defaulted:!0})},s.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},o}(),QueryObserver=function(o){_inheritsLoose(s,o);function s($,j){var _e;return _e=o.call(this)||this,_e.client=$,_e.options=j,_e.trackedProps=[],_e.selectError=null,_e.bindMethods(),_e.setOptions(j),_e}var a=s.prototype;return a.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},a.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),shouldFetchOnMount(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},a.onUnsubscribe=function(){this.listeners.length||this.destroy()},a.shouldFetchOnReconnect=function(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnReconnect)},a.shouldFetchOnWindowFocus=function(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},a.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},a.setOptions=function(j,_e){var et=this.options,tt=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(j),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=et.queryKey),this.updateQuery();var nt=this.hasListeners();nt&&shouldFetchOptionally(this.currentQuery,tt,this.options,et)&&this.executeFetch(),this.updateResult(_e),nt&&(this.currentQuery!==tt||this.options.enabled!==et.enabled||this.options.staleTime!==et.staleTime)&&this.updateStaleTimeout();var it=this.computeRefetchInterval();nt&&(this.currentQuery!==tt||this.options.enabled!==et.enabled||it!==this.currentRefetchInterval)&&this.updateRefetchInterval(it)},a.getOptimisticResult=function(j){var _e=this.client.defaultQueryObserverOptions(j),et=this.client.getQueryCache().build(this.client,_e);return this.createResult(et,_e)},a.getCurrentResult=function(){return this.currentResult},a.trackResult=function(j,_e){var et=this,tt={},nt=function(rt){et.trackedProps.includes(rt)||et.trackedProps.push(rt)};return Object.keys(j).forEach(function(it){Object.defineProperty(tt,it,{configurable:!1,enumerable:!0,get:function(){return nt(it),j[it]}})}),(_e.useErrorBoundary||_e.suspense)&&nt("error"),tt},a.getNextResult=function(j){var _e=this;return new Promise(function(et,tt){var nt=_e.subscribe(function(it){it.isFetching||(nt(),it.isError&&(j!=null&&j.throwOnError)?tt(it.error):et(it))})})},a.getCurrentQuery=function(){return this.currentQuery},a.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},a.refetch=function(j){return this.fetch(_extends$1({},j,{meta:{refetchPage:j==null?void 0:j.refetchPage}}))},a.fetchOptimistic=function(j){var _e=this,et=this.client.defaultQueryObserverOptions(j),tt=this.client.getQueryCache().build(this.client,et);return tt.fetch().then(function(){return _e.createResult(tt,et)})},a.fetch=function(j){var _e=this;return this.executeFetch(j).then(function(){return _e.updateResult(),_e.currentResult})},a.executeFetch=function(j){this.updateQuery();var _e=this.currentQuery.fetch(this.options,j);return j!=null&&j.throwOnError||(_e=_e.catch(noop$5)),_e},a.updateStaleTimeout=function(){var j=this;if(this.clearStaleTimeout(),!(isServer||this.currentResult.isStale||!isValidTimeout(this.options.staleTime))){var _e=timeUntilStale(this.currentResult.dataUpdatedAt,this.options.staleTime),et=_e+1;this.staleTimeoutId=setTimeout(function(){j.currentResult.isStale||j.updateResult()},et)}},a.computeRefetchInterval=function(){var j;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(j=this.options.refetchInterval)!=null?j:!1},a.updateRefetchInterval=function(j){var _e=this;this.clearRefetchInterval(),this.currentRefetchInterval=j,!(isServer||this.options.enabled===!1||!isValidTimeout(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(_e.options.refetchIntervalInBackground||focusManager.isFocused())&&_e.executeFetch()},this.currentRefetchInterval))},a.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},a.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},a.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},a.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},a.createResult=function(j,_e){var et=this.currentQuery,tt=this.options,nt=this.currentResult,it=this.currentResultState,rt=this.currentResultOptions,st=j!==et,ot=st?j.state:this.currentQueryInitialState,at=st?this.currentResult:this.previousQueryResult,lt=j.state,ct=lt.dataUpdatedAt,ht=lt.error,dt=lt.errorUpdatedAt,ut=lt.isFetching,pt=lt.status,ft=!1,mt=!1,gt;if(_e.optimisticResults){var bt=this.hasListeners(),St=!bt&&shouldFetchOnMount(j,_e),Nt=bt&&shouldFetchOptionally(j,et,_e,tt);(St||Nt)&&(ut=!0,ct||(pt="loading"))}if(_e.keepPreviousData&&!lt.dataUpdateCount&&(at!=null&&at.isSuccess)&&pt!=="error")gt=at.data,ct=at.dataUpdatedAt,pt=at.status,ft=!0;else if(_e.select&&typeof lt.data<"u")if(nt&&lt.data===(it==null?void 0:it.data)&&_e.select===this.selectFn)gt=this.selectResult;else try{this.selectFn=_e.select,gt=_e.select(lt.data),_e.structuralSharing!==!1&&(gt=replaceEqualDeep(nt==null?void 0:nt.data,gt)),this.selectResult=gt,this.selectError=null}catch(Ot){getLogger().error(Ot),this.selectError=Ot}else gt=lt.data;if(typeof _e.placeholderData<"u"&&typeof gt>"u"&&(pt==="loading"||pt==="idle")){var Rt;if(nt!=null&&nt.isPlaceholderData&&_e.placeholderData===(rt==null?void 0:rt.placeholderData))Rt=nt.data;else if(Rt=typeof _e.placeholderData=="function"?_e.placeholderData():_e.placeholderData,_e.select&&typeof Rt<"u")try{Rt=_e.select(Rt),_e.structuralSharing!==!1&&(Rt=replaceEqualDeep(nt==null?void 0:nt.data,Rt)),this.selectError=null}catch(Ot){getLogger().error(Ot),this.selectError=Ot}typeof Rt<"u"&&(pt="success",gt=Rt,mt=!0)}this.selectError&&(ht=this.selectError,gt=this.selectResult,dt=Date.now(),pt="error");var Ft={status:pt,isLoading:pt==="loading",isSuccess:pt==="success",isError:pt==="error",isIdle:pt==="idle",data:gt,dataUpdatedAt:ct,error:ht,errorUpdatedAt:dt,failureCount:lt.fetchFailureCount,errorUpdateCount:lt.errorUpdateCount,isFetched:lt.dataUpdateCount>0||lt.errorUpdateCount>0,isFetchedAfterMount:lt.dataUpdateCount>ot.dataUpdateCount||lt.errorUpdateCount>ot.errorUpdateCount,isFetching:ut,isRefetching:ut&&pt!=="loading",isLoadingError:pt==="error"&&lt.dataUpdatedAt===0,isPlaceholderData:mt,isPreviousData:ft,isRefetchError:pt==="error"&&lt.dataUpdatedAt!==0,isStale:isStale(j,_e),refetch:this.refetch,remove:this.remove};return Ft},a.shouldNotifyListeners=function(j,_e){if(!_e)return!0;var et=this.options,tt=et.notifyOnChangeProps,nt=et.notifyOnChangePropsExclusions;if(!tt&&!nt||tt==="tracked"&&!this.trackedProps.length)return!0;var it=tt==="tracked"?this.trackedProps:tt;return Object.keys(j).some(function(rt){var st=rt,ot=j[st]!==_e[st],at=it==null?void 0:it.some(function(ct){return ct===rt}),lt=nt==null?void 0:nt.some(function(ct){return ct===rt});return ot&&!lt&&(!it||at)})},a.updateResult=function(j){var _e=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!shallowEqualObjects(this.currentResult,_e)){var et={cache:!0};(j==null?void 0:j.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,_e)&&(et.listeners=!0),this.notify(_extends$1({},et,j))}},a.updateQuery=function(){var j=this.client.getQueryCache().build(this.client,this.options);if(j!==this.currentQuery){var _e=this.currentQuery;this.currentQuery=j,this.currentQueryInitialState=j.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(_e==null||_e.removeObserver(this),j.addObserver(this))}},a.onQueryUpdate=function(j){var _e={};j.type==="success"?_e.onSuccess=!0:j.type==="error"&&!isCancelledError(j.error)&&(_e.onError=!0),this.updateResult(_e),this.hasListeners()&&this.updateTimers()},a.notify=function(j){var _e=this;notifyManager.batch(function(){j.onSuccess?(_e.options.onSuccess==null||_e.options.onSuccess(_e.currentResult.data),_e.options.onSettled==null||_e.options.onSettled(_e.currentResult.data,null)):j.onError&&(_e.options.onError==null||_e.options.onError(_e.currentResult.error),_e.options.onSettled==null||_e.options.onSettled(void 0,_e.currentResult.error)),j.listeners&&_e.listeners.forEach(function(et){et(_e.currentResult)}),j.cache&&_e.client.getQueryCache().notify({query:_e.currentQuery,type:"observerResultsUpdated"})})},s}(Subscribable);function shouldLoadOnMount(o,s){return s.enabled!==!1&&!o.state.dataUpdatedAt&&!(o.state.status==="error"&&s.retryOnMount===!1)}function shouldFetchOnMount(o,s){return shouldLoadOnMount(o,s)||o.state.dataUpdatedAt>0&&shouldFetchOn(o,s,s.refetchOnMount)}function shouldFetchOn(o,s,a){if(s.enabled!==!1){var $=typeof a=="function"?a(o):a;return $==="always"||$!==!1&&isStale(o,s)}return!1}function shouldFetchOptionally(o,s,a,$){return a.enabled!==!1&&(o!==s||$.enabled===!1)&&(!a.suspense||o.state.status!=="error")&&isStale(o,a)}function isStale(o,s){return o.isStaleByTime(s.staleTime)}var MutationObserver$1=function(o){_inheritsLoose(s,o);function s($,j){var _e;return _e=o.call(this)||this,_e.client=$,_e.setOptions(j),_e.bindMethods(),_e.updateResult(),_e}var a=s.prototype;return a.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},a.setOptions=function(j){this.options=this.client.defaultMutationOptions(j)},a.onUnsubscribe=function(){if(!this.listeners.length){var j;(j=this.currentMutation)==null||j.removeObserver(this)}},a.onMutationUpdate=function(j){this.updateResult();var _e={listeners:!0};j.type==="success"?_e.onSuccess=!0:j.type==="error"&&(_e.onError=!0),this.notify(_e)},a.getCurrentResult=function(){return this.currentResult},a.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},a.mutate=function(j,_e){return this.mutateOptions=_e,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,_extends$1({},this.options,{variables:typeof j<"u"?j:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},a.updateResult=function(){var j=this.currentMutation?this.currentMutation.state:getDefaultState(),_e=_extends$1({},j,{isLoading:j.status==="loading",isSuccess:j.status==="success",isError:j.status==="error",isIdle:j.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=_e},a.notify=function(j){var _e=this;notifyManager.batch(function(){_e.mutateOptions&&(j.onSuccess?(_e.mutateOptions.onSuccess==null||_e.mutateOptions.onSuccess(_e.currentResult.data,_e.currentResult.variables,_e.currentResult.context),_e.mutateOptions.onSettled==null||_e.mutateOptions.onSettled(_e.currentResult.data,null,_e.currentResult.variables,_e.currentResult.context)):j.onError&&(_e.mutateOptions.onError==null||_e.mutateOptions.onError(_e.currentResult.error,_e.currentResult.variables,_e.currentResult.context),_e.mutateOptions.onSettled==null||_e.mutateOptions.onSettled(void 0,_e.currentResult.error,_e.currentResult.variables,_e.currentResult.context))),j.listeners&&_e.listeners.forEach(function(et){et(_e.currentResult)})})},s}(Subscribable),unstable_batchedUpdates=ReactDOM.unstable_batchedUpdates;notifyManager.setBatchNotifyFunction(unstable_batchedUpdates);var logger$5=console;setLogger(logger$5);var defaultContext=React$1.createContext(void 0),QueryClientSharingContext=React$1.createContext(!1);function getQueryClientContext(o){return o&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=defaultContext),window.ReactQueryClientContext):defaultContext}var useQueryClient=function(){var s=React$1.useContext(getQueryClientContext(React$1.useContext(QueryClientSharingContext)));if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},QueryClientProvider=function(s){var a=s.client,$=s.contextSharing,j=$===void 0?!1:$,_e=s.children;React$1.useEffect(function(){return a.mount(),function(){a.unmount()}},[a]);var et=getQueryClientContext(j);return React$1.createElement(QueryClientSharingContext.Provider,{value:j},React$1.createElement(et.Provider,{value:a},_e))};function createValue(){var o=!1;return{clearReset:function(){o=!1},reset:function(){o=!0},isReset:function(){return o}}}var QueryErrorResetBoundaryContext=React$1.createContext(createValue()),useQueryErrorResetBoundary=function(){return React$1.useContext(QueryErrorResetBoundaryContext)};function shouldThrowError(o,s,a){return typeof s=="function"?s.apply(void 0,a):typeof s=="boolean"?s:!!o}function useMutation(o,s,a){var $=React$1.useRef(!1),j=React$1.useState(0),_e=j[1],et=parseMutationArgs(o,s,a),tt=useQueryClient(),nt=React$1.useRef();nt.current?nt.current.setOptions(et):nt.current=new MutationObserver$1(tt,et);var it=nt.current.getCurrentResult();React$1.useEffect(function(){$.current=!0;var st=nt.current.subscribe(notifyManager.batchCalls(function(){$.current&&_e(function(ot){return ot+1})}));return function(){$.current=!1,st()}},[]);var rt=React$1.useCallback(function(st,ot){nt.current.mutate(st,ot).catch(noop$5)},[]);if(it.error&&shouldThrowError(void 0,nt.current.options.useErrorBoundary,[it.error]))throw it.error;return _extends$1({},it,{mutate:rt,mutateAsync:it.mutate})}function useBaseQuery(o,s){var a=React$1.useRef(!1),$=React$1.useState(0),j=$[1],_e=useQueryClient(),et=useQueryErrorResetBoundary(),tt=_e.defaultQueryObserverOptions(o);tt.optimisticResults=!0,tt.onError&&(tt.onError=notifyManager.batchCalls(tt.onError)),tt.onSuccess&&(tt.onSuccess=notifyManager.batchCalls(tt.onSuccess)),tt.onSettled&&(tt.onSettled=notifyManager.batchCalls(tt.onSettled)),tt.suspense&&(typeof tt.staleTime!="number"&&(tt.staleTime=1e3),tt.cacheTime===0&&(tt.cacheTime=1)),(tt.suspense||tt.useErrorBoundary)&&(et.isReset()||(tt.retryOnMount=!1));var nt=React$1.useState(function(){return new s(_e,tt)}),it=nt[0],rt=it.getOptimisticResult(tt);if(React$1.useEffect(function(){a.current=!0,et.clearReset();var st=it.subscribe(notifyManager.batchCalls(function(){a.current&&j(function(ot){return ot+1})}));return it.updateResult(),function(){a.current=!1,st()}},[et,it]),React$1.useEffect(function(){it.setOptions(tt,{listeners:!1})},[tt,it]),tt.suspense&&rt.isLoading)throw it.fetchOptimistic(tt).then(function(st){var ot=st.data;tt.onSuccess==null||tt.onSuccess(ot),tt.onSettled==null||tt.onSettled(ot,null)}).catch(function(st){et.clearReset(),tt.onError==null||tt.onError(st),tt.onSettled==null||tt.onSettled(void 0,st)});if(rt.isError&&!et.isReset()&&!rt.isFetching&&shouldThrowError(tt.suspense,tt.useErrorBoundary,[rt.error,it.getCurrentQuery()]))throw rt.error;return tt.notifyOnChangeProps==="tracked"&&(rt=it.trackResult(rt,tt)),rt}function useQuery(o,s,a){var $=parseQueryArgs(o,s,a);return useBaseQuery($,QueryObserver)}var propTypes={exports:{}},ReactPropTypesSecret$1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret$1,ReactPropTypesSecret=ReactPropTypesSecret_1;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function o($,j,_e,et,tt,nt){if(nt!==ReactPropTypesSecret){var it=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw it.name="Invariant Violation",it}}o.isRequired=o;function s(){return o}var a={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return a.PropTypes=a,a};propTypes.exports=factoryWithThrowingShims();var propTypesExports=propTypes.exports;const PropTypes=getDefaultExportFromCjs(propTypesExports);var ReactReduxContext=React$1.createContext(null);function defaultNoopBatch(o){o()}var batch=defaultNoopBatch,setBatch=function(s){return batch=s},getBatch=function(){return batch};function createListenerCollection(){var o=getBatch(),s=null,a=null;return{clear:function(){s=null,a=null},notify:function(){o(function(){for(var j=s;j;)j.callback(),j=j.next})},get:function(){for(var j=[],_e=s;_e;)j.push(_e),_e=_e.next;return j},subscribe:function(j){var _e=!0,et=a={callback:j,next:null,prev:a};return et.prev?et.prev.next=et:s=et,function(){!_e||s===null||(_e=!1,et.next?et.next.prev=et.prev:a=et.prev,et.prev?et.prev.next=et.next:s=et.next)}}}}var nullListeners={notify:function(){},get:function(){return[]}};function createSubscription(o,s){var a,$=nullListeners;function j(st){return nt(),$.subscribe(st)}function _e(){$.notify()}function et(){rt.onStateChange&&rt.onStateChange()}function tt(){return!!a}function nt(){a||(a=s?s.addNestedSub(et):o.subscribe(et),$=createListenerCollection())}function it(){a&&(a(),a=void 0,$.clear(),$=nullListeners)}var rt={addNestedSub:j,notifyNestedSubs:_e,handleChangeWrapper:et,isSubscribed:tt,trySubscribe:nt,tryUnsubscribe:it,getListeners:function(){return $}};return rt}var useIsomorphicLayoutEffect$1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function Provider(o){var s=o.store,a=o.context,$=o.children,j=reactExports.useMemo(function(){var tt=createSubscription(s);return{store:s,subscription:tt}},[s]),_e=reactExports.useMemo(function(){return s.getState()},[s]);useIsomorphicLayoutEffect$1(function(){var tt=j.subscription;return tt.onStateChange=tt.notifyNestedSubs,tt.trySubscribe(),_e!==s.getState()&&tt.notifyNestedSubs(),function(){tt.tryUnsubscribe(),tt.onStateChange=null}},[j,_e]);var et=a||ReactReduxContext;return React$1.createElement(et.Provider,{value:j},$)}function _objectWithoutPropertiesLoose$3(o,s){if(o==null)return{};var a={},$=Object.keys(o),j,_e;for(_e=0;_e<$.length;_e++)j=$[_e],!(s.indexOf(j)>=0)&&(a[j]=o[j]);return a}var reactIs$2={exports:{}},reactIs_production_min$1={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var b$1=typeof Symbol=="function"&&Symbol.for,c$1=b$1?Symbol.for("react.element"):60103,d$1=b$1?Symbol.for("react.portal"):60106,e$1=b$1?Symbol.for("react.fragment"):60107,f$1=b$1?Symbol.for("react.strict_mode"):60108,g$1=b$1?Symbol.for("react.profiler"):60114,h$3=b$1?Symbol.for("react.provider"):60109,k$1=b$1?Symbol.for("react.context"):60110,l$1=b$1?Symbol.for("react.async_mode"):60111,m$1=b$1?Symbol.for("react.concurrent_mode"):60111,n$1=b$1?Symbol.for("react.forward_ref"):60112,p$1=b$1?Symbol.for("react.suspense"):60113,q$1=b$1?Symbol.for("react.suspense_list"):60120,r$2=b$1?Symbol.for("react.memo"):60115,t=b$1?Symbol.for("react.lazy"):60116,v$1=b$1?Symbol.for("react.block"):60121,w$1=b$1?Symbol.for("react.fundamental"):60117,x$1=b$1?Symbol.for("react.responder"):60118,y$1=b$1?Symbol.for("react.scope"):60119;function z$1(o){if(typeof o=="object"&&o!==null){var s=o.$$typeof;switch(s){case c$1:switch(o=o.type,o){case l$1:case m$1:case e$1:case g$1:case f$1:case p$1:return o;default:switch(o=o&&o.$$typeof,o){case k$1:case n$1:case t:case r$2:case h$3:return o;default:return s}}case d$1:return s}}}function A$1(o){return z$1(o)===m$1}reactIs_production_min$1.AsyncMode=l$1;reactIs_production_min$1.ConcurrentMode=m$1;reactIs_production_min$1.ContextConsumer=k$1;reactIs_production_min$1.ContextProvider=h$3;reactIs_production_min$1.Element=c$1;reactIs_production_min$1.ForwardRef=n$1;reactIs_production_min$1.Fragment=e$1;reactIs_production_min$1.Lazy=t;reactIs_production_min$1.Memo=r$2;reactIs_production_min$1.Portal=d$1;reactIs_production_min$1.Profiler=g$1;reactIs_production_min$1.StrictMode=f$1;reactIs_production_min$1.Suspense=p$1;reactIs_production_min$1.isAsyncMode=function(o){return A$1(o)||z$1(o)===l$1};reactIs_production_min$1.isConcurrentMode=A$1;reactIs_production_min$1.isContextConsumer=function(o){return z$1(o)===k$1};reactIs_production_min$1.isContextProvider=function(o){return z$1(o)===h$3};reactIs_production_min$1.isElement=function(o){return typeof o=="object"&&o!==null&&o.$$typeof===c$1};reactIs_production_min$1.isForwardRef=function(o){return z$1(o)===n$1};reactIs_production_min$1.isFragment=function(o){return z$1(o)===e$1};reactIs_production_min$1.isLazy=function(o){return z$1(o)===t};reactIs_production_min$1.isMemo=function(o){return z$1(o)===r$2};reactIs_production_min$1.isPortal=function(o){return z$1(o)===d$1};reactIs_production_min$1.isProfiler=function(o){return z$1(o)===g$1};reactIs_production_min$1.isStrictMode=function(o){return z$1(o)===f$1};reactIs_production_min$1.isSuspense=function(o){return z$1(o)===p$1};reactIs_production_min$1.isValidElementType=function(o){return typeof o=="string"||typeof o=="function"||o===e$1||o===m$1||o===g$1||o===f$1||o===p$1||o===q$1||typeof o=="object"&&o!==null&&(o.$$typeof===t||o.$$typeof===r$2||o.$$typeof===h$3||o.$$typeof===k$1||o.$$typeof===n$1||o.$$typeof===w$1||o.$$typeof===x$1||o.$$typeof===y$1||o.$$typeof===v$1)};reactIs_production_min$1.typeOf=z$1;reactIs$2.exports=reactIs_production_min$1;var reactIsExports$1=reactIs$2.exports,reactIs$1=reactIsExports$1,REACT_STATICS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KNOWN_STATICS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},FORWARD_REF_STATICS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};TYPE_STATICS[reactIs$1.ForwardRef]=FORWARD_REF_STATICS;TYPE_STATICS[reactIs$1.Memo]=MEMO_STATICS;function getStatics(o){return reactIs$1.isMemo(o)?MEMO_STATICS:TYPE_STATICS[o.$$typeof]||REACT_STATICS}var defineProperty=Object.defineProperty,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,getPrototypeOf$1=Object.getPrototypeOf,objectPrototype=Object.prototype;function hoistNonReactStatics(o,s,a){if(typeof s!="string"){if(objectPrototype){var $=getPrototypeOf$1(s);$&&$!==objectPrototype&&hoistNonReactStatics(o,$,a)}var j=getOwnPropertyNames(s);getOwnPropertySymbols&&(j=j.concat(getOwnPropertySymbols(s)));for(var _e=getStatics(o),et=getStatics(s),tt=0;tt<j.length;++tt){var nt=j[tt];if(!KNOWN_STATICS[nt]&&!(a&&a[nt])&&!(et&&et[nt])&&!(_e&&_e[nt])){var it=getOwnPropertyDescriptor(s,nt);try{defineProperty(o,nt,it)}catch{}}}}return o}var hoistNonReactStatics_cjs=hoistNonReactStatics;const hoistNonReactStatics$1=getDefaultExportFromCjs(hoistNonReactStatics_cjs);var reactIs={exports:{}},reactIs_production_min={};/** @license React v17.0.2
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var b=60103,c=60106,d=60107,e=60108,f=60114,g=60109,h$2=60110,k=60112,l=60113,m=60120,n=60115,p=60116,q=60121,r$1=60122,u=60117,v=60129,w=60131;if(typeof Symbol=="function"&&Symbol.for){var x=Symbol.for;b=x("react.element"),c=x("react.portal"),d=x("react.fragment"),e=x("react.strict_mode"),f=x("react.profiler"),g=x("react.provider"),h$2=x("react.context"),k=x("react.forward_ref"),l=x("react.suspense"),m=x("react.suspense_list"),n=x("react.memo"),p=x("react.lazy"),q=x("react.block"),r$1=x("react.server.block"),u=x("react.fundamental"),v=x("react.debug_trace_mode"),w=x("react.legacy_hidden")}function y(o){if(typeof o=="object"&&o!==null){var s=o.$$typeof;switch(s){case b:switch(o=o.type,o){case d:case f:case e:case l:case m:return o;default:switch(o=o&&o.$$typeof,o){case h$2:case k:case p:case n:case g:return o;default:return s}}case c:return s}}}var z=g,A=b,B=k,C=d,D=p,E=n,F=c,G=f,H$1=e,I=l;reactIs_production_min.ContextConsumer=h$2;reactIs_production_min.ContextProvider=z;reactIs_production_min.Element=A;reactIs_production_min.ForwardRef=B;reactIs_production_min.Fragment=C;reactIs_production_min.Lazy=D;reactIs_production_min.Memo=E;reactIs_production_min.Portal=F;reactIs_production_min.Profiler=G;reactIs_production_min.StrictMode=H$1;reactIs_production_min.Suspense=I;reactIs_production_min.isAsyncMode=function(){return!1};reactIs_production_min.isConcurrentMode=function(){return!1};reactIs_production_min.isContextConsumer=function(o){return y(o)===h$2};reactIs_production_min.isContextProvider=function(o){return y(o)===g};reactIs_production_min.isElement=function(o){return typeof o=="object"&&o!==null&&o.$$typeof===b};reactIs_production_min.isForwardRef=function(o){return y(o)===k};reactIs_production_min.isFragment=function(o){return y(o)===d};reactIs_production_min.isLazy=function(o){return y(o)===p};reactIs_production_min.isMemo=function(o){return y(o)===n};reactIs_production_min.isPortal=function(o){return y(o)===c};reactIs_production_min.isProfiler=function(o){return y(o)===f};reactIs_production_min.isStrictMode=function(o){return y(o)===e};reactIs_production_min.isSuspense=function(o){return y(o)===l};reactIs_production_min.isValidElementType=function(o){return typeof o=="string"||typeof o=="function"||o===d||o===f||o===v||o===e||o===l||o===m||o===w||typeof o=="object"&&o!==null&&(o.$$typeof===p||o.$$typeof===n||o.$$typeof===g||o.$$typeof===h$2||o.$$typeof===k||o.$$typeof===u||o.$$typeof===q||o[0]===r$1)};reactIs_production_min.typeOf=y;reactIs.exports=reactIs_production_min;var reactIsExports=reactIs.exports,_excluded$4=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],_excluded2=["reactReduxForwardedRef"],EMPTY_ARRAY$1=[],NO_SUBSCRIPTION_ARRAY=[null,null];function storeStateUpdatesReducer(o,s){var a=o[1];return[s.payload,a+1]}function useIsomorphicLayoutEffectWithArgs(o,s,a){useIsomorphicLayoutEffect$1(function(){return o.apply(void 0,s)},a)}function captureWrapperProps(o,s,a,$,j,_e,et){o.current=$,s.current=j,a.current=!1,_e.current&&(_e.current=null,et())}function subscribeUpdates(o,s,a,$,j,_e,et,tt,nt,it){if(o){var rt=!1,st=null,ot=function(){if(!rt){var ct=s.getState(),ht,dt;try{ht=$(ct,j.current)}catch(ut){dt=ut,st=ut}dt||(st=null),ht===_e.current?et.current||nt():(_e.current=ht,tt.current=ht,et.current=!0,it({type:"STORE_UPDATED",payload:{error:dt}}))}};a.onStateChange=ot,a.trySubscribe(),ot();var at=function(){if(rt=!0,a.tryUnsubscribe(),a.onStateChange=null,st)throw st};return at}}var initStateUpdates=function(){return[null,0]};function connectAdvanced(o,s){s===void 0&&(s={});var a=s,$=a.getDisplayName,j=$===void 0?function(pt){return"ConnectAdvanced("+pt+")"}:$,_e=a.methodName,et=_e===void 0?"connectAdvanced":_e,tt=a.renderCountProp,nt=tt===void 0?void 0:tt,it=a.shouldHandleStateChanges,rt=it===void 0?!0:it,st=a.storeKey,ot=st===void 0?"store":st;a.withRef;var at=a.forwardRef,lt=at===void 0?!1:at,ct=a.context,ht=ct===void 0?ReactReduxContext:ct,dt=_objectWithoutPropertiesLoose$3(a,_excluded$4),ut=ht;return function(ft){var mt=ft.displayName||ft.name||"Component",gt=j(mt),bt=_extends$1({},dt,{getDisplayName:j,methodName:et,renderCountProp:nt,shouldHandleStateChanges:rt,storeKey:ot,displayName:gt,wrappedComponentName:mt,WrappedComponent:ft}),St=dt.pure;function Nt(yt){return o(yt.dispatch,bt)}var Rt=St?reactExports.useMemo:function(yt){return yt()};function Ft(yt){var Pt=reactExports.useMemo(function(){var Vn=yt.reactReduxForwardedRef,qn=_objectWithoutPropertiesLoose$3(yt,_excluded2);return[yt.context,Vn,qn]},[yt]),wt=Pt[0],Lt=Pt[1],vt=Pt[2],xt=reactExports.useMemo(function(){return wt&&wt.Consumer&&reactIsExports.isContextConsumer(React$1.createElement(wt.Consumer,null))?wt:ut},[wt,ut]),Ut=reactExports.useContext(xt),Et=!!yt.store&&!!yt.store.getState&&!!yt.store.dispatch;Ut&&Ut.store;var Dt=Et?yt.store:Ut.store,Bt=reactExports.useMemo(function(){return Nt(Dt)},[Dt]),Wt=reactExports.useMemo(function(){if(!rt)return NO_SUBSCRIPTION_ARRAY;var Vn=createSubscription(Dt,Et?null:Ut.subscription),qn=Vn.notifyNestedSubs.bind(Vn);return[Vn,qn]},[Dt,Et,Ut]),Zt=Wt[0],sn=Wt[1],dn=reactExports.useMemo(function(){return Et?Ut:_extends$1({},Ut,{subscription:Zt})},[Et,Ut,Zt]),vn=reactExports.useReducer(storeStateUpdatesReducer,EMPTY_ARRAY$1,initStateUpdates),kn=vn[0],An=kn[0],$n=vn[1];if(An&&An.error)throw An.error;var On=reactExports.useRef(),Cn=reactExports.useRef(vt),rn=reactExports.useRef(),Fn=reactExports.useRef(!1),Ln=Rt(function(){return rn.current&&vt===Cn.current?rn.current:Bt(Dt.getState(),vt)},[Dt,An,vt]);useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[Cn,On,Fn,vt,Ln,rn,sn]),useIsomorphicLayoutEffectWithArgs(subscribeUpdates,[rt,Dt,Zt,Bt,Cn,On,Fn,rn,sn,$n],[Dt,Zt,Bt]);var Rn=reactExports.useMemo(function(){return React$1.createElement(ft,_extends$1({},Ln,{ref:Lt}))},[Lt,ft,Ln]),Gn=reactExports.useMemo(function(){return rt?React$1.createElement(xt.Provider,{value:dn},Rn):Rn},[xt,Rn,dn]);return Gn}var Ot=St?React$1.memo(Ft):Ft;if(Ot.WrappedComponent=ft,Ot.displayName=Ft.displayName=gt,lt){var Ct=React$1.forwardRef(function(Pt,wt){return React$1.createElement(Ot,_extends$1({},Pt,{reactReduxForwardedRef:wt}))});return Ct.displayName=gt,Ct.WrappedComponent=ft,hoistNonReactStatics$1(Ct,ft)}return hoistNonReactStatics$1(Ot,ft)}}function is(o,s){return o===s?o!==0||s!==0||1/o===1/s:o!==o&&s!==s}function shallowEqual(o,s){if(is(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var a=Object.keys(o),$=Object.keys(s);if(a.length!==$.length)return!1;for(var j=0;j<a.length;j++)if(!Object.prototype.hasOwnProperty.call(s,a[j])||!is(o[a[j]],s[a[j]]))return!1;return!0}function bindActionCreators$1(o,s){var a={},$=function(et){var tt=o[et];typeof tt=="function"&&(a[et]=function(){return s(tt.apply(void 0,arguments))})};for(var j in o)$(j);return a}function wrapMapToPropsConstant(o){return function(a,$){var j=o(a,$);function _e(){return j}return _e.dependsOnOwnProps=!1,_e}}function getDependsOnOwnProps(o){return o.dependsOnOwnProps!==null&&o.dependsOnOwnProps!==void 0?!!o.dependsOnOwnProps:o.length!==1}function wrapMapToPropsFunc(o,s){return function($,j){j.displayName;var _e=function(tt,nt){return _e.dependsOnOwnProps?_e.mapToProps(tt,nt):_e.mapToProps(tt)};return _e.dependsOnOwnProps=!0,_e.mapToProps=function(tt,nt){_e.mapToProps=o,_e.dependsOnOwnProps=getDependsOnOwnProps(o);var it=_e(tt,nt);return typeof it=="function"&&(_e.mapToProps=it,_e.dependsOnOwnProps=getDependsOnOwnProps(it),it=_e(tt,nt)),it},_e}}function whenMapDispatchToPropsIsFunction(o){return typeof o=="function"?wrapMapToPropsFunc(o):void 0}function whenMapDispatchToPropsIsMissing(o){return o?void 0:wrapMapToPropsConstant(function(s){return{dispatch:s}})}function whenMapDispatchToPropsIsObject(o){return o&&typeof o=="object"?wrapMapToPropsConstant(function(s){return bindActionCreators$1(o,s)}):void 0}const defaultMapDispatchToPropsFactories=[whenMapDispatchToPropsIsFunction,whenMapDispatchToPropsIsMissing,whenMapDispatchToPropsIsObject];function whenMapStateToPropsIsFunction(o){return typeof o=="function"?wrapMapToPropsFunc(o):void 0}function whenMapStateToPropsIsMissing(o){return o?void 0:wrapMapToPropsConstant(function(){return{}})}const defaultMapStateToPropsFactories=[whenMapStateToPropsIsFunction,whenMapStateToPropsIsMissing];function defaultMergeProps(o,s,a){return _extends$1({},a,o,s)}function wrapMergePropsFunc(o){return function(a,$){$.displayName;var j=$.pure,_e=$.areMergedPropsEqual,et=!1,tt;return function(it,rt,st){var ot=o(it,rt,st);return et?(!j||!_e(ot,tt))&&(tt=ot):(et=!0,tt=ot),tt}}}function whenMergePropsIsFunction(o){return typeof o=="function"?wrapMergePropsFunc(o):void 0}function whenMergePropsIsOmitted(o){return o?void 0:function(){return defaultMergeProps}}const defaultMergePropsFactories=[whenMergePropsIsFunction,whenMergePropsIsOmitted];var _excluded$3=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function impureFinalPropsSelectorFactory(o,s,a,$){return function(_e,et){return a(o(_e,et),s($,et),et)}}function pureFinalPropsSelectorFactory(o,s,a,$,j){var _e=j.areStatesEqual,et=j.areOwnPropsEqual,tt=j.areStatePropsEqual,nt=!1,it,rt,st,ot,at;function lt(pt,ft){return it=pt,rt=ft,st=o(it,rt),ot=s($,rt),at=a(st,ot,rt),nt=!0,at}function ct(){return st=o(it,rt),s.dependsOnOwnProps&&(ot=s($,rt)),at=a(st,ot,rt),at}function ht(){return o.dependsOnOwnProps&&(st=o(it,rt)),s.dependsOnOwnProps&&(ot=s($,rt)),at=a(st,ot,rt),at}function dt(){var pt=o(it,rt),ft=!tt(pt,st);return st=pt,ft&&(at=a(st,ot,rt)),at}function ut(pt,ft){var mt=!et(ft,rt),gt=!_e(pt,it,ft,rt);return it=pt,rt=ft,mt&&gt?ct():mt?ht():gt?dt():at}return function(ft,mt){return nt?ut(ft,mt):lt(ft,mt)}}function finalPropsSelectorFactory(o,s){var a=s.initMapStateToProps,$=s.initMapDispatchToProps,j=s.initMergeProps,_e=_objectWithoutPropertiesLoose$3(s,_excluded$3),et=a(o,_e),tt=$(o,_e),nt=j(o,_e),it=_e.pure?pureFinalPropsSelectorFactory:impureFinalPropsSelectorFactory;return it(et,tt,nt,o,_e)}var _excluded$2=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function match(o,s,a){for(var $=s.length-1;$>=0;$--){var j=s[$](o);if(j)return j}return function(_e,et){throw new Error("Invalid value of type "+typeof o+" for "+a+" argument when connecting component "+et.wrappedComponentName+".")}}function strictEqual(o,s){return o===s}function createConnect(o){var s={},a=s.connectHOC,$=a===void 0?connectAdvanced:a,j=s.mapStateToPropsFactories,_e=j===void 0?defaultMapStateToPropsFactories:j,et=s.mapDispatchToPropsFactories,tt=et===void 0?defaultMapDispatchToPropsFactories:et,nt=s.mergePropsFactories,it=nt===void 0?defaultMergePropsFactories:nt,rt=s.selectorFactory,st=rt===void 0?finalPropsSelectorFactory:rt;return function(at,lt,ct,ht){ht===void 0&&(ht={});var dt=ht,ut=dt.pure,pt=ut===void 0?!0:ut,ft=dt.areStatesEqual,mt=ft===void 0?strictEqual:ft,gt=dt.areOwnPropsEqual,bt=gt===void 0?shallowEqual:gt,St=dt.areStatePropsEqual,Nt=St===void 0?shallowEqual:St,Rt=dt.areMergedPropsEqual,Ft=Rt===void 0?shallowEqual:Rt,Ot=_objectWithoutPropertiesLoose$3(dt,_excluded$2),Ct=match(at,_e,"mapStateToProps"),yt=match(lt,tt,"mapDispatchToProps"),Pt=match(ct,it,"mergeProps");return $(st,_extends$1({methodName:"connect",getDisplayName:function(Lt){return"Connect("+Lt+")"},shouldHandleStateChanges:!!at,initMapStateToProps:Ct,initMapDispatchToProps:yt,initMergeProps:Pt,pure:pt,areStatesEqual:mt,areOwnPropsEqual:bt,areStatePropsEqual:Nt,areMergedPropsEqual:Ft},Ot))}}const connect=createConnect();function useReduxContext(){var o=reactExports.useContext(ReactReduxContext);return o}function createStoreHook(o){o===void 0&&(o=ReactReduxContext);var s=o===ReactReduxContext?useReduxContext:function(){return reactExports.useContext(o)};return function(){var $=s(),j=$.store;return j}}var useStore=createStoreHook();function createDispatchHook(o){o===void 0&&(o=ReactReduxContext);var s=o===ReactReduxContext?useStore:createStoreHook(o);return function(){var $=s();return $.dispatch}}var useDispatch=createDispatchHook(),refEquality=function(s,a){return s===a};function useSelectorWithStoreAndSubscription(o,s,a,$){var j=reactExports.useReducer(function(lt){return lt+1},0),_e=j[1],et=reactExports.useMemo(function(){return createSubscription(a,$)},[a,$]),tt=reactExports.useRef(),nt=reactExports.useRef(),it=reactExports.useRef(),rt=reactExports.useRef(),st=a.getState(),ot;try{if(o!==nt.current||st!==it.current||tt.current){var at=o(st);rt.current===void 0||!s(at,rt.current)?ot=at:ot=rt.current}else ot=rt.current}catch(lt){throw tt.current&&(lt.message+=`
The error may be correlated with this previous error:
`+tt.current.stack+`

`),lt}return useIsomorphicLayoutEffect$1(function(){nt.current=o,it.current=st,rt.current=ot,tt.current=void 0}),useIsomorphicLayoutEffect$1(function(){function lt(){try{var ct=a.getState();if(ct===it.current)return;var ht=nt.current(ct);if(s(ht,rt.current))return;rt.current=ht,it.current=ct}catch(dt){tt.current=dt}_e()}return et.onStateChange=lt,et.trySubscribe(),lt(),function(){return et.tryUnsubscribe()}},[a,et]),ot}function createSelectorHook(o){o===void 0&&(o=ReactReduxContext);var s=o===ReactReduxContext?useReduxContext:function(){return reactExports.useContext(o)};return function($,j){j===void 0&&(j=refEquality);var _e=s(),et=_e.store,tt=_e.subscription,nt=useSelectorWithStoreAndSubscription($,j,et,tt);return reactExports.useDebugValue(nt),nt}}var useSelector=createSelectorHook();setBatch(reactDomExports.unstable_batchedUpdates);var KEY_PREFIX="persist:",FLUSH$1="persist/FLUSH",REHYDRATE="persist/REHYDRATE",PAUSE="persist/PAUSE",PERSIST="persist/PERSIST",PURGE="persist/PURGE",REGISTER="persist/REGISTER",DEFAULT_VERSION=-1;function _typeof$4(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(a){return typeof a}:_typeof$4=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof$4(o)}function ownKeys$5(o,s){var a=Object.keys(o);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(o);s&&($=$.filter(function(j){return Object.getOwnPropertyDescriptor(o,j).enumerable})),a.push.apply(a,$)}return a}function _objectSpread$2(o){for(var s=1;s<arguments.length;s++){var a=arguments[s]!=null?arguments[s]:{};s%2?ownKeys$5(a,!0).forEach(function($){_defineProperty$6(o,$,a[$])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(a)):ownKeys$5(a).forEach(function($){Object.defineProperty(o,$,Object.getOwnPropertyDescriptor(a,$))})}return o}function _defineProperty$6(o,s,a){return s in o?Object.defineProperty(o,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[s]=a,o}function autoMergeLevel1(o,s,a,$){$.debug;var j=_objectSpread$2({},a);return o&&_typeof$4(o)==="object"&&Object.keys(o).forEach(function(_e){_e!=="_persist"&&s[_e]===a[_e]&&(j[_e]=o[_e])}),j}function createPersistoid(o){var s=o.blacklist||null,a=o.whitelist||null,$=o.transforms||[],j=o.throttle||0,_e="".concat(o.keyPrefix!==void 0?o.keyPrefix:KEY_PREFIX).concat(o.key),et=o.storage,tt;o.serialize===!1?tt=function(mt){return mt}:typeof o.serialize=="function"?tt=o.serialize:tt=defaultSerialize;var nt=o.writeFailHandler||null,it={},rt={},st=[],ot=null,at=null,lt=function(mt){Object.keys(mt).forEach(function(gt){dt(gt)&&it[gt]!==mt[gt]&&st.indexOf(gt)===-1&&st.push(gt)}),Object.keys(it).forEach(function(gt){mt[gt]===void 0&&dt(gt)&&st.indexOf(gt)===-1&&it[gt]!==void 0&&st.push(gt)}),ot===null&&(ot=setInterval(ct,j)),it=mt};function ct(){if(st.length===0){ot&&clearInterval(ot),ot=null;return}var ft=st.shift(),mt=$.reduce(function(gt,bt){return bt.in(gt,ft,it)},it[ft]);if(mt!==void 0)try{rt[ft]=tt(mt)}catch(gt){console.error("redux-persist/createPersistoid: error serializing state",gt)}else delete rt[ft];st.length===0&&ht()}function ht(){Object.keys(rt).forEach(function(ft){it[ft]===void 0&&delete rt[ft]}),at=et.setItem(_e,tt(rt)).catch(ut)}function dt(ft){return!(a&&a.indexOf(ft)===-1&&ft!=="_persist"||s&&s.indexOf(ft)!==-1)}function ut(ft){nt&&nt(ft)}var pt=function(){for(;st.length!==0;)ct();return at||Promise.resolve()};return{update:lt,flush:pt}}function defaultSerialize(o){return JSON.stringify(o)}function getStoredState(o){var s=o.transforms||[],a="".concat(o.keyPrefix!==void 0?o.keyPrefix:KEY_PREFIX).concat(o.key),$=o.storage;o.debug;var j;return o.deserialize===!1?j=function(et){return et}:typeof o.deserialize=="function"?j=o.deserialize:j=defaultDeserialize,$.getItem(a).then(function(_e){if(_e)try{var et={},tt=j(_e);return Object.keys(tt).forEach(function(nt){et[nt]=s.reduceRight(function(it,rt){return rt.out(it,nt,tt)},j(tt[nt]))}),et}catch(nt){throw nt}else return})}function defaultDeserialize(o){return JSON.parse(o)}function purgeStoredState(o){var s=o.storage,a="".concat(o.keyPrefix!==void 0?o.keyPrefix:KEY_PREFIX).concat(o.key);return s.removeItem(a,warnIfRemoveError)}function warnIfRemoveError(o){}function ownKeys$4(o,s){var a=Object.keys(o);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(o);s&&($=$.filter(function(j){return Object.getOwnPropertyDescriptor(o,j).enumerable})),a.push.apply(a,$)}return a}function _objectSpread$1(o){for(var s=1;s<arguments.length;s++){var a=arguments[s]!=null?arguments[s]:{};s%2?ownKeys$4(a,!0).forEach(function($){_defineProperty$5(o,$,a[$])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(a)):ownKeys$4(a).forEach(function($){Object.defineProperty(o,$,Object.getOwnPropertyDescriptor(a,$))})}return o}function _defineProperty$5(o,s,a){return s in o?Object.defineProperty(o,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[s]=a,o}function _objectWithoutProperties$2(o,s){if(o==null)return{};var a=_objectWithoutPropertiesLoose$2(o,s),$,j;if(Object.getOwnPropertySymbols){var _e=Object.getOwnPropertySymbols(o);for(j=0;j<_e.length;j++)$=_e[j],!(s.indexOf($)>=0)&&Object.prototype.propertyIsEnumerable.call(o,$)&&(a[$]=o[$])}return a}function _objectWithoutPropertiesLoose$2(o,s){if(o==null)return{};var a={},$=Object.keys(o),j,_e;for(_e=0;_e<$.length;_e++)j=$[_e],!(s.indexOf(j)>=0)&&(a[j]=o[j]);return a}var DEFAULT_TIMEOUT=5e3;function persistReducer(o,s){var a=o.version!==void 0?o.version:DEFAULT_VERSION;o.debug;var $=o.stateReconciler===void 0?autoMergeLevel1:o.stateReconciler,j=o.getStoredState||getStoredState,_e=o.timeout!==void 0?o.timeout:DEFAULT_TIMEOUT,et=null,tt=!1,nt=!0,it=function(st){return st._persist.rehydrated&&et&&!nt&&et.update(st),st};return function(rt,st){var ot=rt||{},at=ot._persist,lt=_objectWithoutProperties$2(ot,["_persist"]),ct=lt;if(st.type===PERSIST){var ht=!1,dt=function(St,Nt){ht||(st.rehydrate(o.key,St,Nt),ht=!0)};if(_e&&setTimeout(function(){!ht&&dt(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(o.key,'"')))},_e),nt=!1,et||(et=createPersistoid(o)),at)return _objectSpread$1({},s(ct,st),{_persist:at});if(typeof st.rehydrate!="function"||typeof st.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return st.register(o.key),j(o).then(function(bt){var St=o.migrate||function(Nt,Rt){return Promise.resolve(Nt)};St(bt,a).then(function(Nt){dt(Nt)},function(Nt){dt(void 0,Nt)})},function(bt){dt(void 0,bt)}),_objectSpread$1({},s(ct,st),{_persist:{version:a,rehydrated:!1}})}else{if(st.type===PURGE)return tt=!0,st.result(purgeStoredState(o)),_objectSpread$1({},s(ct,st),{_persist:at});if(st.type===FLUSH$1)return st.result(et&&et.flush()),_objectSpread$1({},s(ct,st),{_persist:at});if(st.type===PAUSE)nt=!0;else if(st.type===REHYDRATE){if(tt)return _objectSpread$1({},ct,{_persist:_objectSpread$1({},at,{rehydrated:!0})});if(st.key===o.key){var ut=s(ct,st),pt=st.payload,ft=$!==!1&&pt!==void 0?$(pt,rt,ut,o):ut,mt=_objectSpread$1({},ft,{_persist:_objectSpread$1({},at,{rehydrated:!0})});return it(mt)}}}if(!at)return s(rt,st);var gt=s(ct,st);return gt===ct?rt:it(_objectSpread$1({},gt,{_persist:at}))}}function _typeof$3(o){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$3(o)}function toPrimitive(o,s){if(_typeof$3(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var $=a.call(o,s||"default");if(_typeof$3($)!="object")return $;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(o)}function toPropertyKey(o){var s=toPrimitive(o,"string");return _typeof$3(s)=="symbol"?s:String(s)}function _defineProperty$4(o,s,a){return s=toPropertyKey(s),s in o?Object.defineProperty(o,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[s]=a,o}function ownKeys$3(o,s){var a=Object.keys(o);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(o);s&&($=$.filter(function(j){return Object.getOwnPropertyDescriptor(o,j).enumerable})),a.push.apply(a,$)}return a}function _objectSpread2$2(o){for(var s=1;s<arguments.length;s++){var a=arguments[s]!=null?arguments[s]:{};s%2?ownKeys$3(Object(a),!0).forEach(function($){_defineProperty$4(o,$,a[$])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(a)):ownKeys$3(Object(a)).forEach(function($){Object.defineProperty(o,$,Object.getOwnPropertyDescriptor(a,$))})}return o}function formatProdErrorMessage(o){return"Minified Redux error #"+o+"; visit https://redux.js.org/Errors?code="+o+" for the full message or use the non-minified dev environment for full errors. "}var $$observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject$1(o){if(typeof o!="object"||o===null)return!1;for(var s=o;Object.getPrototypeOf(s)!==null;)s=Object.getPrototypeOf(s);return Object.getPrototypeOf(o)===s}function createStore(o,s,a){var $;if(typeof s=="function"&&typeof a=="function"||typeof a=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage(0));if(typeof s=="function"&&typeof a>"u"&&(a=s,s=void 0),typeof a<"u"){if(typeof a!="function")throw new Error(formatProdErrorMessage(1));return a(createStore)(o,s)}if(typeof o!="function")throw new Error(formatProdErrorMessage(2));var j=o,_e=s,et=[],tt=et,nt=!1;function it(){tt===et&&(tt=et.slice())}function rt(){if(nt)throw new Error(formatProdErrorMessage(3));return _e}function st(ct){if(typeof ct!="function")throw new Error(formatProdErrorMessage(4));if(nt)throw new Error(formatProdErrorMessage(5));var ht=!0;return it(),tt.push(ct),function(){if(ht){if(nt)throw new Error(formatProdErrorMessage(6));ht=!1,it();var ut=tt.indexOf(ct);tt.splice(ut,1),et=null}}}function ot(ct){if(!isPlainObject$1(ct))throw new Error(formatProdErrorMessage(7));if(typeof ct.type>"u")throw new Error(formatProdErrorMessage(8));if(nt)throw new Error(formatProdErrorMessage(9));try{nt=!0,_e=j(_e,ct)}finally{nt=!1}for(var ht=et=tt,dt=0;dt<ht.length;dt++){var ut=ht[dt];ut()}return ct}function at(ct){if(typeof ct!="function")throw new Error(formatProdErrorMessage(10));j=ct,ot({type:ActionTypes.REPLACE})}function lt(){var ct,ht=st;return ct={subscribe:function(ut){if(typeof ut!="object"||ut===null)throw new Error(formatProdErrorMessage(11));function pt(){ut.next&&ut.next(rt())}pt();var ft=ht(pt);return{unsubscribe:ft}}},ct[$$observable]=function(){return this},ct}return ot({type:ActionTypes.INIT}),$={dispatch:ot,subscribe:st,getState:rt,replaceReducer:at},$[$$observable]=lt,$}var legacy_createStore=createStore;function assertReducerShape(o){Object.keys(o).forEach(function(s){var a=o[s],$=a(void 0,{type:ActionTypes.INIT});if(typeof $>"u")throw new Error(formatProdErrorMessage(12));if(typeof a(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage(13))})}function combineReducers(o){for(var s=Object.keys(o),a={},$=0;$<s.length;$++){var j=s[$];typeof o[j]=="function"&&(a[j]=o[j])}var _e=Object.keys(a),et;try{assertReducerShape(a)}catch(tt){et=tt}return function(nt,it){if(nt===void 0&&(nt={}),et)throw et;for(var rt=!1,st={},ot=0;ot<_e.length;ot++){var at=_e[ot],lt=a[at],ct=nt[at],ht=lt(ct,it);if(typeof ht>"u")throw it&&it.type,new Error(formatProdErrorMessage(14));st[at]=ht,rt=rt||ht!==ct}return rt=rt||_e.length!==Object.keys(nt).length,rt?st:nt}}function bindActionCreator(o,s){return function(){return s(o.apply(this,arguments))}}function bindActionCreators(o,s){if(typeof o=="function")return bindActionCreator(o,s);if(typeof o!="object"||o===null)throw new Error(formatProdErrorMessage(16));var a={};for(var $ in o){var j=o[$];typeof j=="function"&&(a[$]=bindActionCreator(j,s))}return a}function compose$2(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];return s.length===0?function($){return $}:s.length===1?s[0]:s.reduce(function($,j){return function(){return $(j.apply(void 0,arguments))}})}function applyMiddleware(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];return function($){return function(){var j=$.apply(void 0,arguments),_e=function(){throw new Error(formatProdErrorMessage(15))},et={getState:j.getState,dispatch:function(){return _e.apply(void 0,arguments)}},tt=s.map(function(nt){return nt(et)});return _e=compose$2.apply(void 0,tt)(j.dispatch),_objectSpread2$2(_objectSpread2$2({},j),{},{dispatch:_e})}}}const redux=Object.freeze(Object.defineProperty({__proto__:null,__DO_NOT_USE__ActionTypes:ActionTypes,applyMiddleware,bindActionCreators,combineReducers,compose:compose$2,createStore,legacy_createStore},Symbol.toStringTag,{value:"Module"}));function _toConsumableArray(o){return _arrayWithoutHoles(o)||_iterableToArray(o)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(o){if(Symbol.iterator in Object(o)||Object.prototype.toString.call(o)==="[object Arguments]")return Array.from(o)}function _arrayWithoutHoles(o){if(Array.isArray(o)){for(var s=0,a=new Array(o.length);s<o.length;s++)a[s]=o[s];return a}}function ownKeys$2(o,s){var a=Object.keys(o);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(o);s&&($=$.filter(function(j){return Object.getOwnPropertyDescriptor(o,j).enumerable})),a.push.apply(a,$)}return a}function _objectSpread(o){for(var s=1;s<arguments.length;s++){var a=arguments[s]!=null?arguments[s]:{};s%2?ownKeys$2(a,!0).forEach(function($){_defineProperty$3(o,$,a[$])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(a)):ownKeys$2(a).forEach(function($){Object.defineProperty(o,$,Object.getOwnPropertyDescriptor(a,$))})}return o}function _defineProperty$3(o,s,a){return s in o?Object.defineProperty(o,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[s]=a,o}var initialState$G={registry:[],bootstrapped:!1},persistorReducer=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:initialState$G,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case REGISTER:return _objectSpread({},s,{registry:[].concat(_toConsumableArray(s.registry),[a.key])});case REHYDRATE:var $=s.registry.indexOf(a.key),j=_toConsumableArray(s.registry);return j.splice($,1),_objectSpread({},s,{registry:j,bootstrapped:j.length===0});default:return s}};function persistStore(o,s,a){var $=createStore(persistorReducer,initialState$G,void 0),j=function(nt){$.dispatch({type:REGISTER,key:nt})},_e=function(nt,it,rt){var st={type:REHYDRATE,payload:it,err:rt,key:nt};o.dispatch(st),$.dispatch(st)},et=_objectSpread({},$,{purge:function(){var nt=[];return o.dispatch({type:PURGE,result:function(rt){nt.push(rt)}}),Promise.all(nt)},flush:function(){var nt=[];return o.dispatch({type:FLUSH$1,result:function(rt){nt.push(rt)}}),Promise.all(nt)},pause:function(){o.dispatch({type:PAUSE})},persist:function(){o.dispatch({type:PERSIST,register:j,rehydrate:_e})}});return et.persist(),et}function createMigrate(o,s){return function(a,$){if(!a)return Promise.resolve(void 0);var j=a._persist&&a._persist.version!==void 0?a._persist.version:DEFAULT_VERSION;if(j===$||j>$)return Promise.resolve(a);var _e=Object.keys(o).map(function(tt){return parseInt(tt)}).filter(function(tt){return $>=tt&&tt>j}).sort(function(tt,nt){return tt-nt});try{var et=_e.reduce(function(tt,nt){return o[nt](tt)},a);return Promise.resolve(et)}catch(tt){return Promise.reject(tt)}}}function _typeof$2(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(a){return typeof a}:_typeof$2=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof$2(o)}function _classCallCheck$1(o,s){if(!(o instanceof s))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(o,s){for(var a=0;a<s.length;a++){var $=s[a];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(o,$.key,$)}}function _createClass$1(o,s,a){return s&&_defineProperties$1(o.prototype,s),o}function _possibleConstructorReturn$1(o,s){return s&&(_typeof$2(s)==="object"||typeof s=="function")?s:_assertThisInitialized$2(o)}function _getPrototypeOf$1(o){return _getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},_getPrototypeOf$1(o)}function _assertThisInitialized$2(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function _inherits$1(o,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(s&&s.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),s&&_setPrototypeOf$1(o,s)}function _setPrototypeOf$1(o,s){return _setPrototypeOf$1=Object.setPrototypeOf||function($,j){return $.__proto__=j,$},_setPrototypeOf$1(o,s)}function _defineProperty$2(o,s,a){return s in o?Object.defineProperty(o,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[s]=a,o}var PersistGate=function(o){_inherits$1(s,o);function s(){var a,$;_classCallCheck$1(this,s);for(var j=arguments.length,_e=new Array(j),et=0;et<j;et++)_e[et]=arguments[et];return $=_possibleConstructorReturn$1(this,(a=_getPrototypeOf$1(s)).call.apply(a,[this].concat(_e))),_defineProperty$2(_assertThisInitialized$2($),"state",{bootstrapped:!1}),_defineProperty$2(_assertThisInitialized$2($),"_unsubscribe",void 0),_defineProperty$2(_assertThisInitialized$2($),"handlePersistorState",function(){var tt=$.props.persistor,nt=tt.getState(),it=nt.bootstrapped;it&&($.props.onBeforeLift?Promise.resolve($.props.onBeforeLift()).finally(function(){return $.setState({bootstrapped:!0})}):$.setState({bootstrapped:!0}),$._unsubscribe&&$._unsubscribe())}),$}return _createClass$1(s,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),s}(reactExports.PureComponent);_defineProperty$2(PersistGate,"defaultProps",{children:null,loading:null});const scriptRel="modulepreload",assetsURL=function(o){return"/"+o},seen={},__vitePreload=function(s,a,$){let j=Promise.resolve();if(a&&a.length>0){document.getElementsByTagName("link");const _e=document.querySelector("meta[property=csp-nonce]"),et=(_e==null?void 0:_e.nonce)||(_e==null?void 0:_e.getAttribute("nonce"));j=Promise.all(a.map(tt=>{if(tt=assetsURL(tt),tt in seen)return;seen[tt]=!0;const nt=tt.endsWith(".css"),it=nt?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${tt}"]${it}`))return;const rt=document.createElement("link");if(rt.rel=nt?"stylesheet":scriptRel,nt||(rt.as="script",rt.crossOrigin=""),rt.href=tt,et&&rt.setAttribute("nonce",et),document.head.appendChild(rt),nt)return new Promise((st,ot)=>{rt.addEventListener("load",st),rt.addEventListener("error",()=>ot(new Error(`Unable to preload CSS for ${tt}`)))})}))}return j.then(()=>s()).catch(_e=>{const et=new Event("vite:preloadError",{cancelable:!0});if(et.payload=_e,window.dispatchEvent(et),!et.defaultPrevented)throw _e})};/*! Capacitor: https://capacitorjs.com/ - MIT License */const createCapacitorPlatforms=o=>{const s=new Map;s.set("web",{name:"web"});const a=o.CapacitorPlatforms||{currentPlatform:{name:"web"},platforms:s},$=(_e,et)=>{a.platforms.set(_e,et)},j=_e=>{a.platforms.has(_e)&&(a.currentPlatform=a.platforms.get(_e))};return a.addPlatform=$,a.setPlatform=j,a},initPlatforms=o=>o.CapacitorPlatforms=createCapacitorPlatforms(o),CapacitorPlatforms=initPlatforms(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});CapacitorPlatforms.addPlatform;CapacitorPlatforms.setPlatform;var ExceptionCode;(function(o){o.Unimplemented="UNIMPLEMENTED",o.Unavailable="UNAVAILABLE"})(ExceptionCode||(ExceptionCode={}));class CapacitorException extends Error{constructor(s,a,$){super(s),this.message=s,this.code=a,this.data=$}}const getPlatformId=o=>{var s,a;return o!=null&&o.androidBridge?"android":!((a=(s=o==null?void 0:o.webkit)===null||s===void 0?void 0:s.messageHandlers)===null||a===void 0)&&a.bridge?"ios":"web"},createCapacitor=o=>{var s,a,$,j,_e;const et=o.CapacitorCustomPlatform||null,tt=o.Capacitor||{},nt=tt.Plugins=tt.Plugins||{},it=o.CapacitorPlatforms,rt=()=>et!==null?et.name:getPlatformId(o),st=((s=it==null?void 0:it.currentPlatform)===null||s===void 0?void 0:s.getPlatform)||rt,ot=()=>st()!=="web",at=((a=it==null?void 0:it.currentPlatform)===null||a===void 0?void 0:a.isNativePlatform)||ot,lt=bt=>{const St=ft.get(bt);return!!(St!=null&&St.platforms.has(st())||dt(bt))},ct=(($=it==null?void 0:it.currentPlatform)===null||$===void 0?void 0:$.isPluginAvailable)||lt,ht=bt=>{var St;return(St=tt.PluginHeaders)===null||St===void 0?void 0:St.find(Nt=>Nt.name===bt)},dt=((j=it==null?void 0:it.currentPlatform)===null||j===void 0?void 0:j.getPluginHeader)||ht,ut=bt=>o.console.error(bt),pt=(bt,St,Nt)=>Promise.reject(`${Nt} does not have an implementation of "${St}".`),ft=new Map,mt=(bt,St={})=>{const Nt=ft.get(bt);if(Nt)return console.warn(`Capacitor plugin "${bt}" already registered. Cannot register plugins twice.`),Nt.proxy;const Rt=st(),Ft=dt(bt);let Ot;const Ct=async()=>(!Ot&&Rt in St?Ot=typeof St[Rt]=="function"?Ot=await St[Rt]():Ot=St[Rt]:et!==null&&!Ot&&"web"in St&&(Ot=typeof St.web=="function"?Ot=await St.web():Ot=St.web),Ot),yt=(Ut,Et)=>{var Dt,Bt;if(Ft){const Wt=Ft==null?void 0:Ft.methods.find(Zt=>Et===Zt.name);if(Wt)return Wt.rtype==="promise"?Zt=>tt.nativePromise(bt,Et.toString(),Zt):(Zt,sn)=>tt.nativeCallback(bt,Et.toString(),Zt,sn);if(Ut)return(Dt=Ut[Et])===null||Dt===void 0?void 0:Dt.bind(Ut)}else{if(Ut)return(Bt=Ut[Et])===null||Bt===void 0?void 0:Bt.bind(Ut);throw new CapacitorException(`"${bt}" plugin is not implemented on ${Rt}`,ExceptionCode.Unimplemented)}},Pt=Ut=>{let Et;const Dt=(...Bt)=>{const Wt=Ct().then(Zt=>{const sn=yt(Zt,Ut);if(sn){const dn=sn(...Bt);return Et=dn==null?void 0:dn.remove,dn}else throw new CapacitorException(`"${bt}.${Ut}()" is not implemented on ${Rt}`,ExceptionCode.Unimplemented)});return Ut==="addListener"&&(Wt.remove=async()=>Et()),Wt};return Dt.toString=()=>`${Ut.toString()}() { [capacitor code] }`,Object.defineProperty(Dt,"name",{value:Ut,writable:!1,configurable:!1}),Dt},wt=Pt("addListener"),Lt=Pt("removeListener"),vt=(Ut,Et)=>{const Dt=wt({eventName:Ut},Et),Bt=async()=>{const Zt=await Dt;Lt({eventName:Ut,callbackId:Zt},Et)},Wt=new Promise(Zt=>Dt.then(()=>Zt({remove:Bt})));return Wt.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await Bt()},Wt},xt=new Proxy({},{get(Ut,Et){switch(Et){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return Ft?vt:wt;case"removeListener":return Lt;default:return Pt(Et)}}});return nt[bt]=xt,ft.set(bt,{name:bt,proxy:xt,platforms:new Set([...Object.keys(St),...Ft?[Rt]:[]])}),xt},gt=((_e=it==null?void 0:it.currentPlatform)===null||_e===void 0?void 0:_e.registerPlugin)||mt;return tt.convertFileSrc||(tt.convertFileSrc=bt=>bt),tt.getPlatform=st,tt.handleError=ut,tt.isNativePlatform=at,tt.isPluginAvailable=ct,tt.pluginMethodNoop=pt,tt.registerPlugin=gt,tt.Exception=CapacitorException,tt.DEBUG=!!tt.DEBUG,tt.isLoggingEnabled=!!tt.isLoggingEnabled,tt.platform=tt.getPlatform(),tt.isNative=tt.isNativePlatform(),tt},initCapacitorGlobal=o=>o.Capacitor=createCapacitor(o),Capacitor=initCapacitorGlobal(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),registerPlugin=Capacitor.registerPlugin;Capacitor.Plugins;class WebPlugin{constructor(s){this.listeners={},this.retainedEventArguments={},this.windowListeners={},s&&(console.warn(`Capacitor WebPlugin "${s.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=s)}addListener(s,a){let $=!1;this.listeners[s]||(this.listeners[s]=[],$=!0),this.listeners[s].push(a);const _e=this.windowListeners[s];_e&&!_e.registered&&this.addWindowListener(_e),$&&this.sendRetainedArgumentsForEvent(s);const et=async()=>this.removeListener(s,a);return Promise.resolve({remove:et})}async removeAllListeners(){this.listeners={};for(const s in this.windowListeners)this.removeWindowListener(this.windowListeners[s]);this.windowListeners={}}notifyListeners(s,a,$){const j=this.listeners[s];if(!j){if($){let _e=this.retainedEventArguments[s];_e||(_e=[]),_e.push(a),this.retainedEventArguments[s]=_e}return}j.forEach(_e=>_e(a))}hasListeners(s){return!!this.listeners[s].length}registerWindowListener(s,a){this.windowListeners[a]={registered:!1,windowEventName:s,pluginEventName:a,handler:$=>{this.notifyListeners(a,$)}}}unimplemented(s="not implemented"){return new Capacitor.Exception(s,ExceptionCode.Unimplemented)}unavailable(s="not available"){return new Capacitor.Exception(s,ExceptionCode.Unavailable)}async removeListener(s,a){const $=this.listeners[s];if(!$)return;const j=$.indexOf(a);this.listeners[s].splice(j,1),this.listeners[s].length||this.removeWindowListener(this.windowListeners[s])}addWindowListener(s){window.addEventListener(s.windowEventName,s.handler),s.registered=!0}removeWindowListener(s){s&&(window.removeEventListener(s.windowEventName,s.handler),s.registered=!1)}sendRetainedArgumentsForEvent(s){const a=this.retainedEventArguments[s];a&&(delete this.retainedEventArguments[s],a.forEach($=>{this.notifyListeners(s,$)}))}}const encode=o=>encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),decode=o=>o.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class CapacitorCookiesPluginWeb extends WebPlugin{async getCookies(){const s=document.cookie,a={};return s.split(";").forEach($=>{if($.length<=0)return;let[j,_e]=$.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");j=decode(j).trim(),_e=decode(_e).trim(),a[j]=_e}),a}async setCookie(s){try{const a=encode(s.key),$=encode(s.value),j=`; expires=${(s.expires||"").replace("expires=","")}`,_e=(s.path||"/").replace("path=",""),et=s.url!=null&&s.url.length>0?`domain=${s.url}`:"";document.cookie=`${a}=${$||""}${j}; path=${_e}; ${et};`}catch(a){return Promise.reject(a)}}async deleteCookie(s){try{document.cookie=`${s.key}=; Max-Age=0`}catch(a){return Promise.reject(a)}}async clearCookies(){try{const s=document.cookie.split(";")||[];for(const a of s)document.cookie=a.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(s){return Promise.reject(s)}}async clearAllCookies(){try{await this.clearCookies()}catch(s){return Promise.reject(s)}}}registerPlugin("CapacitorCookies",{web:()=>new CapacitorCookiesPluginWeb});const readBlobAsBase64=async o=>new Promise((s,a)=>{const $=new FileReader;$.onload=()=>{const j=$.result;s(j.indexOf(",")>=0?j.split(",")[1]:j)},$.onerror=j=>a(j),$.readAsDataURL(o)}),normalizeHttpHeaders=(o={})=>{const s=Object.keys(o);return Object.keys(o).map(j=>j.toLocaleLowerCase()).reduce((j,_e,et)=>(j[_e]=o[s[et]],j),{})},buildUrlParams=(o,s=!0)=>o?Object.entries(o).reduce(($,j)=>{const[_e,et]=j;let tt,nt;return Array.isArray(et)?(nt="",et.forEach(it=>{tt=s?encodeURIComponent(it):it,nt+=`${_e}=${tt}&`}),nt.slice(0,-1)):(tt=s?encodeURIComponent(et):et,nt=`${_e}=${tt}`),`${$}&${nt}`},"").substr(1):null,buildRequestInit=(o,s={})=>{const a=Object.assign({method:o.method||"GET",headers:o.headers},s),j=normalizeHttpHeaders(o.headers)["content-type"]||"";if(typeof o.data=="string")a.body=o.data;else if(j.includes("application/x-www-form-urlencoded")){const _e=new URLSearchParams;for(const[et,tt]of Object.entries(o.data||{}))_e.set(et,tt);a.body=_e.toString()}else if(j.includes("multipart/form-data")||o.data instanceof FormData){const _e=new FormData;if(o.data instanceof FormData)o.data.forEach((tt,nt)=>{_e.append(nt,tt)});else for(const tt of Object.keys(o.data))_e.append(tt,o.data[tt]);a.body=_e;const et=new Headers(a.headers);et.delete("content-type"),a.headers=et}else(j.includes("application/json")||typeof o.data=="object")&&(a.body=JSON.stringify(o.data));return a};class CapacitorHttpPluginWeb extends WebPlugin{async request(s){const a=buildRequestInit(s,s.webFetchExtra),$=buildUrlParams(s.params,s.shouldEncodeUrlParams),j=$?`${s.url}?${$}`:s.url,_e=await fetch(j,a),et=_e.headers.get("content-type")||"";let{responseType:tt="text"}=_e.ok?s:{};et.includes("application/json")&&(tt="json");let nt,it;switch(tt){case"arraybuffer":case"blob":it=await _e.blob(),nt=await readBlobAsBase64(it);break;case"json":nt=await _e.json();break;case"document":case"text":default:nt=await _e.text()}const rt={};return _e.headers.forEach((st,ot)=>{rt[ot]=st}),{data:nt,headers:rt,status:_e.status,url:_e.url}}async get(s){return this.request(Object.assign(Object.assign({},s),{method:"GET"}))}async post(s){return this.request(Object.assign(Object.assign({},s),{method:"POST"}))}async put(s){return this.request(Object.assign(Object.assign({},s),{method:"PUT"}))}async patch(s){return this.request(Object.assign(Object.assign({},s),{method:"PATCH"}))}async delete(s){return this.request(Object.assign(Object.assign({},s),{method:"DELETE"}))}}registerPlugin("CapacitorHttp",{web:()=>new CapacitorHttpPluginWeb});const SplashScreen=registerPlugin("SplashScreen",{web:()=>__vitePreload(()=>import("./web-yLtMkA6i.js"),[]).then(o=>new o.SplashScreenWeb)});var Style$1;(function(o){o.Dark="DARK",o.Light="LIGHT",o.Default="DEFAULT"})(Style$1||(Style$1={}));var Animation;(function(o){o.None="NONE",o.Slide="SLIDE",o.Fade="FADE"})(Animation||(Animation={}));const StatusBar$1=registerPlugin("StatusBar");var __extends=function(){var o=function(s,a){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,j){$.__proto__=j}||function($,j){for(var _e in j)j.hasOwnProperty(_e)&&($[_e]=j[_e])},o(s,a)};return function(s,a){o(s,a);function $(){this.constructor=s}s.prototype=a===null?Object.create(a):($.prototype=a.prototype,new $)}}(),__awaiter$2=function(o,s,a,$){function j(_e){return _e instanceof a?_e:new a(function(et){et(_e)})}return new(a||(a=Promise))(function(_e,et){function tt(rt){try{it($.next(rt))}catch(st){et(st)}}function nt(rt){try{it($.throw(rt))}catch(st){et(st)}}function it(rt){rt.done?_e(rt.value):j(rt.value).then(tt,nt)}it(($=$.apply(o,s||[])).next())})},__generator$1=function(o,s){var a={label:0,sent:function(){if(_e[0]&1)throw _e[1];return _e[1]},trys:[],ops:[]},$,j,_e,et;return et={next:tt(0),throw:tt(1),return:tt(2)},typeof Symbol=="function"&&(et[Symbol.iterator]=function(){return this}),et;function tt(it){return function(rt){return nt([it,rt])}}function nt(it){if($)throw new TypeError("Generator is already executing.");for(;a;)try{if($=1,j&&(_e=it[0]&2?j.return:it[0]?j.throw||((_e=j.return)&&_e.call(j),0):j.next)&&!(_e=_e.call(j,it[1])).done)return _e;switch(j=0,_e&&(it=[it[0]&2,_e.value]),it[0]){case 0:case 1:_e=it;break;case 4:return a.label++,{value:it[1],done:!1};case 5:a.label++,j=it[1],it=[0];continue;case 7:it=a.ops.pop(),a.trys.pop();continue;default:if(_e=a.trys,!(_e=_e.length>0&&_e[_e.length-1])&&(it[0]===6||it[0]===2)){a=0;continue}if(it[0]===3&&(!_e||it[1]>_e[0]&&it[1]<_e[3])){a.label=it[1];break}if(it[0]===6&&a.label<_e[1]){a.label=_e[1],_e=it;break}if(_e&&a.label<_e[2]){a.label=_e[2],a.ops.push(it);break}_e[2]&&a.ops.pop(),a.trys.pop();continue}it=s.call(o,a)}catch(rt){it=[6,rt],j=0}finally{$=_e=0}if(it[0]&5)throw it[1];return{value:it[0]?it[1]:void 0,done:!0}}},__spreadArrays=function(){for(var o=0,s=0,a=arguments.length;s<a;s++)o+=arguments[s].length;for(var $=Array(o),j=0,s=0;s<a;s++)for(var _e=arguments[s],et=0,tt=_e.length;et<tt;et++,j++)$[j]=_e[et];return $},queueCongestion=0,queuePending$1=!1,scopeId$1,hostTagName$1,isSvgMode$1=!1,win$3=typeof window<"u"?window:{},CSS$1=win$3.CSS,doc$1=win$3.document||{head:{}},plt$1={$flags$:0,$resourcesUrl$:"",jmp:function(o){return o()},raf:function(o){return requestAnimationFrame(o)},ael:function(o,s,a,$){return o.addEventListener(s,a,$)},rel:function(o,s,a,$){return o.removeEventListener(s,a,$)}},supportsShadowDom=function(){return(doc$1.head.attachShadow+"").indexOf("[native")>-1}(),promiseResolve$1=function(o){return Promise.resolve(o)},supportsConstructibleStylesheets=function(){try{return new CSSStyleSheet,!0}catch{}return!1}(),hostRefs$1=new WeakMap,getHostRef$1=function(o){return hostRefs$1.get(o)},registerHost$1=function(o){var s={$flags$:0,$hostElement$:o,$instanceValues$:new Map};return s.$onInstancePromise$=new Promise(function(a){return s.$onInstanceResolve$=a}),s.$onReadyPromise$=new Promise(function(a){return s.$onReadyResolve$=a}),o["s-p"]=[],o["s-rc"]=[],hostRefs$1.set(o,s)},isMemberInElement$1=function(o,s){return s in o},consoleError$1=function(o){return console.error(o)},moduleCache=new Map,loadModule=function(o,s,a){var $=o.$tagName$.replace(/-/g,"_"),j=o.$lazyBundleIds$,_e=moduleCache.get(j);return _e?_e[$]:__vitePreload(()=>import("./"+j+".entry.js"),[]).then(function(et){return moduleCache.set(j,et),et[$]},consoleError$1)},styles$1=new Map,queueDomReads$1=[],queueDomWrites$1=[],queueDomWritesLow=[],queueTask$1=function(o,s){return function(a){o.push(a),queuePending$1||(queuePending$1=!0,s&&plt$1.$flags$&4?nextTick$1(flush$2):plt$1.raf(flush$2))}},consume$1=function(o){for(var s=0;s<o.length;s++)try{o[s](performance.now())}catch(a){consoleError$1(a)}o.length=0},consumeTimeout=function(o,s){for(var a=0,$=0;a<o.length&&($=performance.now())<s;)try{o[a++]($)}catch(j){consoleError$1(j)}a===o.length?o.length=0:a!==0&&o.splice(0,a)},flush$2=function(){queueCongestion++,consume$1(queueDomReads$1);var o=(plt$1.$flags$&6)===2?performance.now()+10*Math.ceil(queueCongestion*(1/22)):1/0;consumeTimeout(queueDomWrites$1,o),consumeTimeout(queueDomWritesLow,o),queueDomWrites$1.length>0&&(queueDomWritesLow.push.apply(queueDomWritesLow,queueDomWrites$1),queueDomWrites$1.length=0),(queuePending$1=queueDomReads$1.length+queueDomWrites$1.length+queueDomWritesLow.length>0)?plt$1.raf(flush$2):queueCongestion=0},nextTick$1=function(o){return promiseResolve$1().then(o)},writeTask$1=queueTask$1(queueDomWrites$1,!0),EMPTY_OBJ$1={},isDef$1=function(o){return o!=null},isComplexType$1=function(o){return o=typeof o,o==="object"||o==="function"},patchEsm=function(){return CSS$1&&CSS$1.supports&&CSS$1.supports("color","var(--c)")?promiseResolve$1():__vitePreload(()=>import("./css-shim-8775d9ad-556f0cc2-BhxWF4GS.js"),[]).then(function(){return(plt$1.$cssShim$=win$3.__cssshim)?plt$1.$cssShim$.i():0})},HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}",createTime$1=function(o,s){return function(){}},uniqueTime=function(o,s){return function(){}},rootAppliedStyles$1=new WeakMap,registerStyle$1=function(o,s,a){var $=styles$1.get(o);supportsConstructibleStylesheets&&a?($=$||new CSSStyleSheet,$.replace(s)):$=s,styles$1.set(o,$)},addStyle$1=function(o,s,a,$){var j=getScopeId$1(s.$tagName$),_e=styles$1.get(j);if(o=o.nodeType===11?o:doc$1,_e)if(typeof _e=="string"){o=o.head||o;var et=rootAppliedStyles$1.get(o),tt=void 0;if(et||rootAppliedStyles$1.set(o,et=new Set),!et.has(j)){{if(plt$1.$cssShim$){tt=plt$1.$cssShim$.createHostStyle($,j,_e,!!(s.$flags$&10));var nt=tt["s-sc"];nt&&(j=nt,et=null)}else tt=doc$1.createElement("style"),tt.innerHTML=_e;o.insertBefore(tt,o.querySelector("link"))}et&&et.add(j)}}else o.adoptedStyleSheets.includes(_e)||(o.adoptedStyleSheets=__spreadArrays(o.adoptedStyleSheets,[_e]));return j},attachStyles$1=function(o,s,a){var $=createTime$1("attachStyles",s.$tagName$),j=addStyle$1(supportsShadowDom&&o.shadowRoot?o.shadowRoot:o.getRootNode(),s,a,o);s.$flags$&10&&(o["s-sc"]=j,o.classList.add(j+"-h")),$()},getScopeId$1=function(o,s){return"sc-"+o},h$1=function(o,s){for(var a=[],$=2;$<arguments.length;$++)a[$-2]=arguments[$];var j=null,_e=!1,et=!1,tt=[],nt=function(rt){for(var st=0;st<rt.length;st++)j=rt[st],Array.isArray(j)?nt(j):j!=null&&typeof j!="boolean"&&((_e=!isComplexType$1(j))&&(j=String(j)),_e&&et?tt[tt.length-1].$text$+=j:tt.push(_e?newVNode$1(null,j):j),et=_e)};nt(a);var it=newVNode$1(o,null);return it.$attrs$=s,tt.length>0&&(it.$children$=tt),it},newVNode$1=function(o,s){var a={$flags$:0,$tag$:o,$text$:s,$elm$:null,$children$:null};return a.$attrs$=null,a},Host$1={},isHost$1=function(o){return o&&o.$tag$===Host$1},setAccessor$1=function(o,s,a,$,j,_e){if(a!==$){var et=isMemberInElement$1(o,s),tt=s.toLowerCase();if(s==="class"){var nt=o.classList,it=parseClassList$1(a),rt=parseClassList$1($);nt.remove.apply(nt,it.filter(function(lt){return lt&&!rt.includes(lt)})),nt.add.apply(nt,rt.filter(function(lt){return lt&&!it.includes(lt)}))}else if(s==="style"){for(var st in a)(!$||$[st]==null)&&(st.includes("-")?o.style.removeProperty(st):o.style[st]="");for(var st in $)(!a||$[st]!==a[st])&&(st.includes("-")?o.style.setProperty(st,$[st]):o.style[st]=$[st])}else if(s==="ref")$&&$(o);else if(!et&&s[0]==="o"&&s[1]==="n")s[2]==="-"?s=s.slice(3):isMemberInElement$1(win$3,tt)?s=tt.slice(2):s=tt[2]+s.slice(3),a&&plt$1.rel(o,s,a,!1),$&&plt$1.ael(o,s,$,!1);else{var ot=isComplexType$1($);if((et||ot&&$!==null)&&!j)try{if(o.tagName.includes("-"))o[s]=$;else{var at=$??"";s==="list"?et=!1:(a==null||o[s]!=at)&&(o[s]=at)}}catch{}$==null||$===!1?o.removeAttribute(s):(!et||_e&4||j)&&!ot&&($=$===!0?"":$,o.setAttribute(s,$))}}},parseClassListRegex$1=/\s/,parseClassList$1=function(o){return o?o.split(parseClassListRegex$1):[]},updateElement$1=function(o,s,a,$){var j=s.$elm$.nodeType===11&&s.$elm$.host?s.$elm$.host:s.$elm$,_e=o&&o.$attrs$||EMPTY_OBJ$1,et=s.$attrs$||EMPTY_OBJ$1;for($ in _e)$ in et||setAccessor$1(j,$,_e[$],void 0,a,s.$flags$);for($ in et)setAccessor$1(j,$,_e[$],et[$],a,s.$flags$)},createElm$1=function(o,s,a,$){var j=s.$children$[a],_e=0,et,tt;if(j.$text$!==null)et=j.$elm$=doc$1.createTextNode(j.$text$);else if(et=j.$elm$=doc$1.createElement(j.$tag$),updateElement$1(null,j,isSvgMode$1),isDef$1(scopeId$1)&&et["s-si"]!==scopeId$1&&et.classList.add(et["s-si"]=scopeId$1),j.$children$)for(_e=0;_e<j.$children$.length;++_e)tt=createElm$1(o,j,_e),tt&&et.appendChild(tt);return et},addVnodes$1=function(o,s,a,$,j,_e){var et=o,tt;for(et.shadowRoot&&et.tagName===hostTagName$1&&(et=et.shadowRoot);j<=_e;++j)$[j]&&(tt=createElm$1(null,a,j),tt&&($[j].$elm$=tt,et.insertBefore(tt,s)))},removeVnodes$1=function(o,s,a,$,j){for(;s<=a;++s)($=o[s])&&(j=$.$elm$,callNodeRefs$1($),j.remove())},updateChildren$1=function(o,s,a,$){for(var j=0,_e=0,et=s.length-1,tt=s[0],nt=s[et],it=$.length-1,rt=$[0],st=$[it],ot;j<=et&&_e<=it;)tt==null?tt=s[++j]:nt==null?nt=s[--et]:rt==null?rt=$[++_e]:st==null?st=$[--it]:isSameVnode$1(tt,rt)?(patch$1(tt,rt),tt=s[++j],rt=$[++_e]):isSameVnode$1(nt,st)?(patch$1(nt,st),nt=s[--et],st=$[--it]):isSameVnode$1(tt,st)?(patch$1(tt,st),o.insertBefore(tt.$elm$,nt.$elm$.nextSibling),tt=s[++j],st=$[--it]):isSameVnode$1(nt,rt)?(patch$1(nt,rt),o.insertBefore(nt.$elm$,tt.$elm$),nt=s[--et],rt=$[++_e]):(ot=createElm$1(s&&s[_e],a,_e),rt=$[++_e],ot&&tt.$elm$.parentNode.insertBefore(ot,tt.$elm$));j>et?addVnodes$1(o,$[it+1]==null?null:$[it+1].$elm$,a,$,_e,it):_e>it&&removeVnodes$1(s,j,et)},isSameVnode$1=function(o,s){return o.$tag$===s.$tag$},patch$1=function(o,s){var a=s.$elm$=o.$elm$,$=o.$children$,j=s.$children$,_e=s.$text$;_e===null?(updateElement$1(o,s,isSvgMode$1),$!==null&&j!==null?updateChildren$1(a,$,s,j):j!==null?(o.$text$!==null&&(a.textContent=""),addVnodes$1(a,null,s,j,0,j.length-1)):$!==null&&removeVnodes$1($,0,$.length-1)):o.$text$!==_e&&(a.data=_e)},callNodeRefs$1=function(o){o.$attrs$&&o.$attrs$.ref&&o.$attrs$.ref(null),o.$children$&&o.$children$.forEach(callNodeRefs$1)},renderVdom$1=function(o,s,a,$){hostTagName$1=o.tagName;var j=s.$vnode$||newVNode$1(null,null),_e=isHost$1($)?$:h$1(null,null,$);_e.$tag$=null,_e.$flags$|=4,s.$vnode$=_e,_e.$elm$=j.$elm$=o.shadowRoot||o,scopeId$1=o["s-sc"],patch$1(j,_e)},attachToAncestor$1=function(o,s){s&&!o.$onRenderResolve$&&s["s-p"].push(new Promise(function(a){return o.$onRenderResolve$=a}))},scheduleUpdate$1=function(o,s,a,$){if(s.$flags$|=16,s.$flags$&4){s.$flags$|=512;return}var j=createTime$1("scheduleUpdate",a.$tagName$),_e=s.$ancestorComponent$,et=s.$lazyInstance$,tt=function(){return updateComponent$1(o,s,a,et,$)};attachToAncestor$1(s,_e);var nt;return $&&(s.$flags$|=256,s.$queuedListeners$&&(s.$queuedListeners$.forEach(function(it){var rt=it[0],st=it[1];return safeCall$2(et,rt,st)}),s.$queuedListeners$=null)),j(),then$1(nt,function(){return writeTask$1(tt)})},updateComponent$1=function(o,s,a,$,j){var _e=createTime$1("update",a.$tagName$),et=o["s-rc"];j&&attachStyles$1(o,a,s.$modeName$);var tt=createTime$1("render",a.$tagName$);renderVdom$1(o,s,a,callRender$1($)),plt$1.$cssShim$&&plt$1.$cssShim$.updateHost(o),s.$flags$&=-17,s.$flags$|=2,et&&(et.forEach(function(rt){return rt()}),o["s-rc"]=void 0),tt(),_e();{var nt=o["s-p"],it=function(){return postUpdateComponent$1(o,s,a)};nt.length===0?it():(Promise.all(nt).then(it),s.$flags$|=4,nt.length=0)}},callRender$1=function(o,s){try{o=o.render()}catch(a){consoleError$1(a)}return o},postUpdateComponent$1=function(o,s,a){var $=createTime$1("postUpdate",a.$tagName$),j=s.$lazyInstance$,_e=s.$ancestorComponent$;s.$flags$&64?$():(s.$flags$|=64,addHydratedFlag(o),safeCall$2(j,"componentDidLoad"),$(),s.$onReadyResolve$(o),_e||appDidLoad()),s.$onInstanceResolve$(o),s.$onRenderResolve$&&(s.$onRenderResolve$(),s.$onRenderResolve$=void 0),s.$flags$&512&&nextTick$1(function(){return scheduleUpdate$1(o,s,a,!1)}),s.$flags$&=-517},forceUpdate$1=function(o,s){{var a=getHostRef$1(o),$=a.$hostElement$.isConnected;return $&&(a.$flags$&18)===2&&scheduleUpdate$1(o,a,s,!1),$}},appDidLoad=function(o){addHydratedFlag(doc$1.documentElement),plt$1.$flags$|=2},safeCall$2=function(o,s,a){if(o&&o[s])try{return o[s](a)}catch($){consoleError$1($)}},then$1=function(o,s){return s()},addHydratedFlag=function(o){return o.classList.add("hydrated")},addEventListeners$1=function(o,s,a){s.$queuedListeners$=s.$queuedListeners$||[];var $=a.map(function(j){var _e=j[0],et=j[1],tt=j[2],nt=getHostListenerTarget$1(o,_e),it=hostListenerProxy$1(s,tt),rt=hostListenerOpts$1(_e);return plt$1.ael(nt,et,it,rt),function(){return plt$1.rel(nt,et,it,rt)}});return function(){return $.forEach(function(j){return j()})}},hostListenerProxy$1=function(o,s){return function(a){o.$flags$&256?o.$lazyInstance$[s](a):o.$queuedListeners$.push([s,a])}},getHostListenerTarget$1=function(o,s){return s&32?doc$1.body:o},hostListenerOpts$1=function(o){return(o&2)!==0},parsePropertyValue$1=function(o,s){return o!=null&&!isComplexType$1(o)?s&4?o==="false"?!1:o===""||!!o:s&2?parseFloat(o):s&1?String(o):o:o},getValue$1=function(o,s){return getHostRef$1(o).$instanceValues$.get(s)},setValue$1=function(o,s,a,$){var j=getHostRef$1(o),_e=j.$hostElement$,et=j.$instanceValues$.get(s),tt=j.$flags$,nt=j.$lazyInstance$;a=parsePropertyValue$1(a,$.$members$[s][0]),a!==et&&(!(tt&8)||et===void 0)&&(j.$instanceValues$.set(s,a),nt&&(tt&18)===2&&scheduleUpdate$1(_e,j,$,!1))},proxyComponent$1=function(o,s,a){if(s.$members$){var $=Object.entries(s.$members$),j=o.prototype;if($.forEach(function(et){var tt=et[0],nt=et[1][0];nt&31||a&2&&nt&32?Object.defineProperty(j,tt,{get:function(){return getValue$1(this,tt)},set:function(it){setValue$1(this,tt,it,s)},configurable:!0,enumerable:!0}):a&1&&nt&64&&Object.defineProperty(j,tt,{value:function(){for(var it=[],rt=0;rt<arguments.length;rt++)it[rt]=arguments[rt];var st=getHostRef$1(this);return st.$onInstancePromise$.then(function(){var ot;return(ot=st.$lazyInstance$)[tt].apply(ot,it)})}})}),a&1){var _e=new Map;j.attributeChangedCallback=function(et,tt,nt){var it=this;plt$1.jmp(function(){var rt=_e.get(et);it[rt]=nt===null&&typeof it[rt]=="boolean"?!1:nt})},o.observedAttributes=$.filter(function(et){et[0];var tt=et[1];return tt[0]&15}).map(function(et){var tt=et[0],nt=et[1],it=nt[1]||tt;return _e.set(it,tt),it})}}return o},initializeComponent$1=function(o,s,a,$,j){return __awaiter$2(void 0,void 0,void 0,function(){var _e,et,tt,nt,it,rt,st;return __generator$1(this,function(ot){switch(ot.label){case 0:return s.$flags$&32?[3,5]:(s.$flags$|=32,j=loadModule(a),j.then?(_e=uniqueTime(),[4,j]):[3,2]);case 1:j=ot.sent(),_e(),ot.label=2;case 2:j.isProxied||(proxyComponent$1(j,a,2),j.isProxied=!0),et=createTime$1("createInstance",a.$tagName$),s.$flags$|=8;try{new j(s)}catch(at){consoleError$1(at)}return s.$flags$&=-9,et(),tt=getScopeId$1(a.$tagName$),!styles$1.has(tt)&&j.style?(nt=createTime$1("registerStyles",a.$tagName$),it=j.style,a.$flags$&8?[4,__vitePreload(()=>import("./shadow-css-d7d058ec-d59cb009-m1_9rqab.js"),[]).then(function(at){return at.scopeCss(it,tt,!1)})]:[3,4]):[3,5];case 3:it=ot.sent(),ot.label=4;case 4:registerStyle$1(tt,it,!!(a.$flags$&1)),nt(),ot.label=5;case 5:return rt=s.$ancestorComponent$,st=function(){return scheduleUpdate$1(o,s,a,!0)},rt&&rt["s-rc"]?rt["s-rc"].push(st):st(),[2]}})})},connectedCallback$1=function(o,s){if(!(plt$1.$flags$&1)){var a=createTime$1("connectedCallback",s.$tagName$),$=getHostRef$1(o);if(s.$listeners$&&($.$rmListeners$=addEventListeners$1(o,$,s.$listeners$)),!($.$flags$&1)){$.$flags$|=1;for(var j=o;j=j.parentNode||j.host;)if(j["s-p"]){attachToAncestor$1($,$.$ancestorComponent$=j);break}s.$members$&&Object.entries(s.$members$).forEach(function(_e){var et=_e[0],tt=_e[1][0];if(tt&31&&o.hasOwnProperty(et)){var nt=o[et];delete o[et],o[et]=nt}}),nextTick$1(function(){return initializeComponent$1(o,$,s)})}a()}},disconnectedCallback$1=function(o){if(!(plt$1.$flags$&1)){var s=getHostRef$1(o),a=s.$lazyInstance$;s.$rmListeners$&&(s.$rmListeners$(),s.$rmListeners$=void 0),plt$1.$cssShim$&&plt$1.$cssShim$.removeHost(o),safeCall$2(a,"componentDidUnload")}},bootstrapLazy=function(o,s){s===void 0&&(s={});var a=createTime$1(),$=[],j=s.exclude||[],_e=win$3.customElements,et=doc$1.head,tt=et.querySelector("meta[charset]"),nt=doc$1.createElement("style"),it=[],rt,st=!0;Object.assign(plt$1,s),plt$1.$resourcesUrl$=new URL(s.resourcesUrl||"./",doc$1.baseURI).href,s.syncQueue&&(plt$1.$flags$|=4),o.forEach(function(ot){return ot[1].forEach(function(at){var lt={$flags$:at[0],$tagName$:at[1],$members$:at[2],$listeners$:at[3]};lt.$members$=at[2],lt.$listeners$=at[3],!supportsShadowDom&&lt.$flags$&1&&(lt.$flags$|=8);var ct=lt.$tagName$,ht=function(dt){__extends(ut,dt);function ut(pt){var ft=dt.call(this,pt)||this;return pt=ft,registerHost$1(pt),lt.$flags$&1&&(supportsShadowDom?pt.attachShadow({mode:"open"}):"shadowRoot"in pt||(pt.shadowRoot=pt)),ft}return ut.prototype.connectedCallback=function(){var pt=this;rt&&(clearTimeout(rt),rt=null),st?it.push(this):plt$1.jmp(function(){return connectedCallback$1(pt,lt)})},ut.prototype.disconnectedCallback=function(){var pt=this;plt$1.jmp(function(){return disconnectedCallback$1(pt)})},ut.prototype.forceUpdate=function(){forceUpdate$1(this,lt)},ut.prototype.componentOnReady=function(){return getHostRef$1(this).$onReadyPromise$},ut}(HTMLElement);lt.$lazyBundleIds$=ot[0],!j.includes(ct)&&!_e.get(ct)&&($.push(ct),_e.define(ct,proxyComponent$1(ht,lt,1)))})}),nt.innerHTML=$+HYDRATED_CSS,nt.setAttribute("data-styles",""),et.insertBefore(nt,tt?tt.nextSibling:et.firstChild),st=!1,it.length>0?it.forEach(function(ot){return ot.connectedCallback()}):plt$1.jmp(function(){return rt=setTimeout(appDidLoad,30)}),a()},defineCustomElements=function(o,s){return patchEsm().then(function(){bootstrapLazy([["pwa-action-sheet",[[1,"pwa-action-sheet",{header:[1],cancelable:[4],options:[16],open:[32]}]]],["pwa-camera-modal-instance",[[1,"pwa-camera-modal-instance",null,[[32,"keyup","handleBackdropKeyUp"]]]]],["pwa-camera-modal",[[1,"pwa-camera-modal",{present:[64],dismiss:[64]}]]],["pwa-toast",[[1,"pwa-toast",{message:[1],duration:[2],closing:[32]}]]],["pwa-camera",[[1,"pwa-camera",{facingMode:[1,"facing-mode"],onPhoto:[16],photo:[32],photoSrc:[32],showShutterOverlay:[32],flashIndex:[32]}]]]],s)})};(function(){if(!(window.Reflect===void 0||window.customElements===void 0)){var o=HTMLElement;window.HTMLElement=function(){return Reflect.construct(o,[],this.constructor)},HTMLElement.prototype=o.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,o)}})();const BUILD={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let scopeId,contentRef,hostTagName,useNativeShadowDom=!1,checkSlotFallbackVisibility=!1,checkSlotRelocate=!1,isSvgMode=!1,renderingRef=null,queuePending=!1;const Build={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},getAssetPath=o=>{const s=new URL(o,plt.$resourcesUrl$);return s.origin!==win$2.location.origin?s.href:s.pathname},createTime=(o,s="")=>()=>{},XLINK_NS="http://www.w3.org/1999/xlink",EMPTY_OBJ={},SVG_NS="http://www.w3.org/2000/svg",HTML_NS="http://www.w3.org/1999/xhtml",isDef=o=>o!=null,isComplexType=o=>(o=typeof o,o==="object"||o==="function");function queryNonceMetaTagContent(o){var s,a,$;return($=(a=(s=o.head)===null||s===void 0?void 0:s.querySelector('meta[name="csp-nonce"]'))===null||a===void 0?void 0:a.getAttribute("content"))!==null&&$!==void 0?$:void 0}const h=(o,s,...a)=>{let $=null,j=null,_e=null,et=!1,tt=!1;const nt=[],it=st=>{for(let ot=0;ot<st.length;ot++)$=st[ot],Array.isArray($)?it($):$!=null&&typeof $!="boolean"&&((et=typeof o!="function"&&!isComplexType($))&&($=String($)),et&&tt?nt[nt.length-1].$text$+=$:nt.push(et?newVNode(null,$):$),tt=et)};if(it(a),s){s.key&&(j=s.key),s.name&&(_e=s.name);{const st=s.className||s.class;st&&(s.class=typeof st!="object"?st:Object.keys(st).filter(ot=>st[ot]).join(" "))}}if(typeof o=="function")return o(s===null?{}:s,nt,vdomFnUtils);const rt=newVNode(o,null);return rt.$attrs$=s,nt.length>0&&(rt.$children$=nt),rt.$key$=j,rt.$name$=_e,rt},newVNode=(o,s)=>{const a={$flags$:0,$tag$:o,$text$:s,$elm$:null,$children$:null};return a.$attrs$=null,a.$key$=null,a.$name$=null,a},Host={},isHost=o=>o&&o.$tag$===Host,vdomFnUtils={forEach:(o,s)=>o.map(convertToPublic).forEach(s),map:(o,s)=>o.map(convertToPublic).map(s).map(convertToPrivate)},convertToPublic=o=>({vattrs:o.$attrs$,vchildren:o.$children$,vkey:o.$key$,vname:o.$name$,vtag:o.$tag$,vtext:o.$text$}),convertToPrivate=o=>{if(typeof o.vtag=="function"){const a=Object.assign({},o.vattrs);return o.vkey&&(a.key=o.vkey),o.vname&&(a.name=o.vname),h(o.vtag,a,...o.vchildren||[])}const s=newVNode(o.vtag,o.vtext);return s.$attrs$=o.vattrs,s.$children$=o.vchildren,s.$key$=o.vkey,s.$name$=o.vname,s},computeMode=o=>modeResolutionChain.map(s=>s(o)).find(s=>!!s),setMode=o=>modeResolutionChain.push(o),getMode=o=>getHostRef(o).$modeName$,parsePropertyValue=(o,s)=>o!=null&&!isComplexType(o)?s&4?o==="false"?!1:o===""||!!o:s&2?parseFloat(o):s&1?String(o):o:o,getElement=o=>o,createEvent=(o,s,a)=>{const $=getElement(o);return{emit:j=>emitEvent($,s,{bubbles:!!(a&4),composed:!!(a&2),cancelable:!!(a&1),detail:j})}},emitEvent=(o,s,a)=>{const $=plt.ce(s,a);return o.dispatchEvent($),$},rootAppliedStyles=new WeakMap,registerStyle=(o,s,a)=>{let $=styles.get(o);supportsConstructableStylesheets&&a?($=$||new CSSStyleSheet,typeof $=="string"?$=s:$.replaceSync(s)):$=s,styles.set(o,$)},addStyle=(o,s,a,$)=>{var j;let _e=getScopeId(s,a);const et=styles.get(_e);if(o=o.nodeType===11?o:doc,et)if(typeof et=="string"){o=o.head||o;let tt=rootAppliedStyles.get(o),nt;if(tt||rootAppliedStyles.set(o,tt=new Set),!tt.has(_e)){{nt=doc.createElement("style"),nt.innerHTML=et;const it=(j=plt.$nonce$)!==null&&j!==void 0?j:queryNonceMetaTagContent(doc);it!=null&&nt.setAttribute("nonce",it),o.insertBefore(nt,o.querySelector("link"))}tt&&tt.add(_e)}}else o.adoptedStyleSheets.includes(et)||(o.adoptedStyleSheets=[...o.adoptedStyleSheets,et]);return _e},attachStyles=o=>{const s=o.$cmpMeta$,a=o.$hostElement$,$=s.$flags$,j=createTime("attachStyles",s.$tagName$),_e=addStyle(a.shadowRoot?a.shadowRoot:a.getRootNode(),s,o.$modeName$);$&10&&(a["s-sc"]=_e,a.classList.add(_e+"-h"),$&2&&a.classList.add(_e+"-s")),j()},getScopeId=(o,s)=>"sc-"+(s&&o.$flags$&32?o.$tagName$+"-"+s:o.$tagName$),setAccessor=(o,s,a,$,j,_e)=>{if(a!==$){let et=isMemberInElement(o,s),tt=s.toLowerCase();if(s==="class"){const nt=o.classList,it=parseClassList(a),rt=parseClassList($);nt.remove(...it.filter(st=>st&&!rt.includes(st))),nt.add(...rt.filter(st=>st&&!it.includes(st)))}else if(s==="style"){for(const nt in a)(!$||$[nt]==null)&&(nt.includes("-")?o.style.removeProperty(nt):o.style[nt]="");for(const nt in $)(!a||$[nt]!==a[nt])&&(nt.includes("-")?o.style.setProperty(nt,$[nt]):o.style[nt]=$[nt])}else if(s!=="key")if(s==="ref")$&&$(o);else if(!o.__lookupSetter__(s)&&s[0]==="o"&&s[1]==="n")s[2]==="-"?s=s.slice(3):isMemberInElement(win$2,tt)?s=tt.slice(2):s=tt[2]+s.slice(3),a&&plt.rel(o,s,a,!1),$&&plt.ael(o,s,$,!1);else{const nt=isComplexType($);if((et||nt&&$!==null)&&!j)try{if(o.tagName.includes("-"))o[s]=$;else{const rt=$??"";s==="list"?et=!1:(a==null||o[s]!=rt)&&(o[s]=rt)}}catch{}let it=!1;tt!==(tt=tt.replace(/^xlink\:?/,""))&&(s=tt,it=!0),$==null||$===!1?($!==!1||o.getAttribute(s)==="")&&(it?o.removeAttributeNS(XLINK_NS,s):o.removeAttribute(s)):(!et||_e&4||j)&&!nt&&($=$===!0?"":$,it?o.setAttributeNS(XLINK_NS,s,$):o.setAttribute(s,$))}}},parseClassListRegex=/\s/,parseClassList=o=>o?o.split(parseClassListRegex):[],updateElement=(o,s,a,$)=>{const j=s.$elm$.nodeType===11&&s.$elm$.host?s.$elm$.host:s.$elm$,_e=o&&o.$attrs$||EMPTY_OBJ,et=s.$attrs$||EMPTY_OBJ;for($ in _e)$ in et||setAccessor(j,$,_e[$],void 0,a,s.$flags$);for($ in et)setAccessor(j,$,_e[$],et[$],a,s.$flags$)},createElm=(o,s,a,$)=>{const j=s.$children$[a];let _e=0,et,tt,nt;if(useNativeShadowDom||(checkSlotRelocate=!0,j.$tag$==="slot"&&(scopeId&&$.classList.add(scopeId+"-s"),j.$flags$|=j.$children$?2:1)),j.$text$!==null)et=j.$elm$=doc.createTextNode(j.$text$);else if(j.$flags$&1)et=j.$elm$=doc.createTextNode("");else{if(isSvgMode||(isSvgMode=j.$tag$==="svg"),et=j.$elm$=doc.createElementNS(isSvgMode?SVG_NS:HTML_NS,j.$flags$&2?"slot-fb":j.$tag$),isSvgMode&&j.$tag$==="foreignObject"&&(isSvgMode=!1),updateElement(null,j,isSvgMode),isDef(scopeId)&&et["s-si"]!==scopeId&&et.classList.add(et["s-si"]=scopeId),j.$children$)for(_e=0;_e<j.$children$.length;++_e)tt=createElm(o,j,_e,et),tt&&et.appendChild(tt);j.$tag$==="svg"?isSvgMode=!1:et.tagName==="foreignObject"&&(isSvgMode=!0)}return et["s-hn"]=hostTagName,j.$flags$&3&&(et["s-sr"]=!0,et["s-cr"]=contentRef,et["s-sn"]=j.$name$||"",nt=o&&o.$children$&&o.$children$[a],nt&&nt.$tag$===j.$tag$&&o.$elm$&&putBackInOriginalLocation(o.$elm$,!1)),et},putBackInOriginalLocation=(o,s)=>{plt.$flags$|=1;const a=o.childNodes;for(let $=a.length-1;$>=0;$--){const j=a[$];j["s-hn"]!==hostTagName&&j["s-ol"]&&(parentReferenceNode(j).insertBefore(j,referenceNode(j)),j["s-ol"].remove(),j["s-ol"]=void 0,checkSlotRelocate=!0),s&&putBackInOriginalLocation(j,s)}plt.$flags$&=-2},addVnodes=(o,s,a,$,j,_e)=>{let et=o["s-cr"]&&o["s-cr"].parentNode||o,tt;for(et.shadowRoot&&et.tagName===hostTagName&&(et=et.shadowRoot);j<=_e;++j)$[j]&&(tt=createElm(null,a,j,o),tt&&($[j].$elm$=tt,et.insertBefore(tt,referenceNode(s))))},removeVnodes=(o,s,a,$,j)=>{for(;s<=a;++s)($=o[s])&&(j=$.$elm$,callNodeRefs($),checkSlotFallbackVisibility=!0,j["s-ol"]?j["s-ol"].remove():putBackInOriginalLocation(j,!0),j.remove())},updateChildren=(o,s,a,$)=>{let j=0,_e=0,et=0,tt=0,nt=s.length-1,it=s[0],rt=s[nt],st=$.length-1,ot=$[0],at=$[st],lt,ct;for(;j<=nt&&_e<=st;)if(it==null)it=s[++j];else if(rt==null)rt=s[--nt];else if(ot==null)ot=$[++_e];else if(at==null)at=$[--st];else if(isSameVnode(it,ot))patch(it,ot),it=s[++j],ot=$[++_e];else if(isSameVnode(rt,at))patch(rt,at),rt=s[--nt],at=$[--st];else if(isSameVnode(it,at))(it.$tag$==="slot"||at.$tag$==="slot")&&putBackInOriginalLocation(it.$elm$.parentNode,!1),patch(it,at),o.insertBefore(it.$elm$,rt.$elm$.nextSibling),it=s[++j],at=$[--st];else if(isSameVnode(rt,ot))(it.$tag$==="slot"||at.$tag$==="slot")&&putBackInOriginalLocation(rt.$elm$.parentNode,!1),patch(rt,ot),o.insertBefore(rt.$elm$,it.$elm$),rt=s[--nt],ot=$[++_e];else{for(et=-1,tt=j;tt<=nt;++tt)if(s[tt]&&s[tt].$key$!==null&&s[tt].$key$===ot.$key$){et=tt;break}et>=0?(ct=s[et],ct.$tag$!==ot.$tag$?lt=createElm(s&&s[_e],a,et,o):(patch(ct,ot),s[et]=void 0,lt=ct.$elm$),ot=$[++_e]):(lt=createElm(s&&s[_e],a,_e,o),ot=$[++_e]),lt&&parentReferenceNode(it.$elm$).insertBefore(lt,referenceNode(it.$elm$))}j>nt?addVnodes(o,$[st+1]==null?null:$[st+1].$elm$,a,$,_e,st):_e>st&&removeVnodes(s,j,nt)},isSameVnode=(o,s)=>o.$tag$===s.$tag$?o.$tag$==="slot"?o.$name$===s.$name$:o.$key$===s.$key$:!1,referenceNode=o=>o&&o["s-ol"]||o,parentReferenceNode=o=>(o["s-ol"]?o["s-ol"]:o).parentNode,patch=(o,s)=>{const a=s.$elm$=o.$elm$,$=o.$children$,j=s.$children$,_e=s.$tag$,et=s.$text$;let tt;et===null?(isSvgMode=_e==="svg"?!0:_e==="foreignObject"?!1:isSvgMode,_e==="slot"||updateElement(o,s,isSvgMode),$!==null&&j!==null?updateChildren(a,$,s,j):j!==null?(o.$text$!==null&&(a.textContent=""),addVnodes(a,null,s,j,0,j.length-1)):$!==null&&removeVnodes($,0,$.length-1),isSvgMode&&_e==="svg"&&(isSvgMode=!1)):(tt=a["s-cr"])?tt.parentNode.textContent=et:o.$text$!==et&&(a.data=et)},updateFallbackSlotVisibility=o=>{const s=o.childNodes;let a,$,j,_e,et,tt;for($=0,j=s.length;$<j;$++)if(a=s[$],a.nodeType===1){if(a["s-sr"]){for(et=a["s-sn"],a.hidden=!1,_e=0;_e<j;_e++)if(tt=s[_e].nodeType,s[_e]["s-hn"]!==a["s-hn"]||et!==""){if(tt===1&&et===s[_e].getAttribute("slot")){a.hidden=!0;break}}else if(tt===1||tt===3&&s[_e].textContent.trim()!==""){a.hidden=!0;break}}updateFallbackSlotVisibility(a)}},relocateNodes=[],relocateSlotContent=o=>{let s,a,$,j,_e,et,tt=0;const nt=o.childNodes,it=nt.length;for(;tt<it;tt++){if(s=nt[tt],s["s-sr"]&&(a=s["s-cr"])&&a.parentNode)for($=a.parentNode.childNodes,j=s["s-sn"],et=$.length-1;et>=0;et--)a=$[et],!a["s-cn"]&&!a["s-nr"]&&a["s-hn"]!==s["s-hn"]&&(isNodeLocatedInSlot(a,j)?(_e=relocateNodes.find(rt=>rt.$nodeToRelocate$===a),checkSlotFallbackVisibility=!0,a["s-sn"]=a["s-sn"]||j,_e?_e.$slotRefNode$=s:relocateNodes.push({$slotRefNode$:s,$nodeToRelocate$:a}),a["s-sr"]&&relocateNodes.map(rt=>{isNodeLocatedInSlot(rt.$nodeToRelocate$,a["s-sn"])&&(_e=relocateNodes.find(st=>st.$nodeToRelocate$===a),_e&&!rt.$slotRefNode$&&(rt.$slotRefNode$=_e.$slotRefNode$))})):relocateNodes.some(rt=>rt.$nodeToRelocate$===a)||relocateNodes.push({$nodeToRelocate$:a}));s.nodeType===1&&relocateSlotContent(s)}},isNodeLocatedInSlot=(o,s)=>o.nodeType===1?o.getAttribute("slot")===null&&s===""||o.getAttribute("slot")===s:o["s-sn"]===s?!0:s==="",callNodeRefs=o=>{o.$attrs$&&o.$attrs$.ref&&o.$attrs$.ref(null),o.$children$&&o.$children$.map(callNodeRefs)},renderVdom=(o,s)=>{const a=o.$hostElement$,$=o.$cmpMeta$,j=o.$vnode$||newVNode(null,null),_e=isHost(s)?s:h(null,null,s);hostTagName=a.tagName,$.$attrsToReflect$&&(_e.$attrs$=_e.$attrs$||{},$.$attrsToReflect$.map(([et,tt])=>_e.$attrs$[tt]=a[et])),_e.$tag$=null,_e.$flags$|=4,o.$vnode$=_e,_e.$elm$=j.$elm$=a.shadowRoot||a,scopeId=a["s-sc"],contentRef=a["s-cr"],useNativeShadowDom=($.$flags$&1)!==0,checkSlotFallbackVisibility=!1,patch(j,_e);{if(plt.$flags$|=1,checkSlotRelocate){relocateSlotContent(_e.$elm$);let et,tt,nt,it,rt,st,ot=0;for(;ot<relocateNodes.length;ot++)et=relocateNodes[ot],tt=et.$nodeToRelocate$,tt["s-ol"]||(nt=doc.createTextNode(""),nt["s-nr"]=tt,tt.parentNode.insertBefore(tt["s-ol"]=nt,tt));for(ot=0;ot<relocateNodes.length;ot++)if(et=relocateNodes[ot],tt=et.$nodeToRelocate$,et.$slotRefNode$){for(it=et.$slotRefNode$.parentNode,rt=et.$slotRefNode$.nextSibling,nt=tt["s-ol"];nt=nt.previousSibling;)if(st=nt["s-nr"],st&&st["s-sn"]===tt["s-sn"]&&it===st.parentNode&&(st=st.nextSibling,!st||!st["s-nr"])){rt=st;break}(!rt&&it!==tt.parentNode||tt.nextSibling!==rt)&&tt!==rt&&(!tt["s-hn"]&&tt["s-ol"]&&(tt["s-hn"]=tt["s-ol"].parentNode.nodeName),it.insertBefore(tt,rt))}else tt.nodeType===1&&(tt.hidden=!0)}checkSlotFallbackVisibility&&updateFallbackSlotVisibility(_e.$elm$),plt.$flags$&=-2,relocateNodes.length=0}},attachToAncestor=(o,s)=>{},scheduleUpdate=(o,s)=>(o.$flags$|=16,attachToAncestor(o,o.$ancestorComponent$),writeTask(()=>dispatchHooks(o,s))),dispatchHooks=(o,s)=>{const a=o.$hostElement$,$=createTime("scheduleUpdate",o.$cmpMeta$.$tagName$),j=a;let _e;return s?_e=safeCall$1(j,"componentWillLoad"):_e=safeCall$1(j,"componentWillUpdate"),_e=then(_e,()=>safeCall$1(j,"componentWillRender")),$(),then(_e,()=>updateComponent(o,j,s))},updateComponent=async(o,s,a)=>{const $=o.$hostElement$,j=createTime("update",o.$cmpMeta$.$tagName$);$["s-rc"],a&&attachStyles(o);const _e=createTime("render",o.$cmpMeta$.$tagName$);callRender(o,s,$),_e(),j(),postUpdateComponent(o)},callRender=(o,s,a)=>{try{renderingRef=s,s=s.render&&s.render(),o.$flags$&=-17,o.$flags$|=2,(BUILD.hasRenderFn||BUILD.reflect)&&(BUILD.vdomRender||BUILD.reflect)&&(BUILD.hydrateServerSide||renderVdom(o,s))}catch(tt){consoleError(tt,o.$hostElement$)}return renderingRef=null,null},postUpdateComponent=o=>{const s=o.$cmpMeta$.$tagName$,a=o.$hostElement$,$=createTime("postUpdate",s),j=a;o.$ancestorComponent$,safeCall$1(j,"componentDidRender"),o.$flags$&64?(safeCall$1(j,"componentDidUpdate"),$()):(o.$flags$|=64,safeCall$1(j,"componentDidLoad"),$())},forceUpdate=o=>{{const s=getHostRef(o),a=s.$hostElement$.isConnected;return a&&(s.$flags$&18)===2&&scheduleUpdate(s,!1),a}},safeCall$1=(o,s,a)=>{if(o&&o[s])try{return o[s](a)}catch($){consoleError($)}},then=(o,s)=>o&&o.then?o.then(s):s(),getValue=(o,s)=>getHostRef(o).$instanceValues$.get(s),setValue=(o,s,a,$)=>{const j=getHostRef(o),_e=o,et=j.$instanceValues$.get(s),tt=j.$flags$,nt=_e;a=parsePropertyValue(a,$.$members$[s][0]);const it=Number.isNaN(et)&&Number.isNaN(a);if(a!==et&&!it){j.$instanceValues$.set(s,a);{if($.$watchers$&&tt&128){const st=$.$watchers$[s];st&&st.map(ot=>{try{nt[ot](a,et,s)}catch(at){consoleError(at,_e)}})}if((tt&18)===2){if(nt.componentShouldUpdate&&nt.componentShouldUpdate(a,et,s)===!1)return;scheduleUpdate(j,!1)}}}},proxyComponent=(o,s,a)=>{if(s.$members$){o.watchers&&(s.$watchers$=o.watchers);const $=Object.entries(s.$members$),j=o.prototype;$.map(([_e,[et]])=>{(et&31||et&32)&&Object.defineProperty(j,_e,{get(){return getValue(this,_e)},set(tt){setValue(this,_e,tt,s)},configurable:!0,enumerable:!0})});{const _e=new Map;j.attributeChangedCallback=function(et,tt,nt){plt.jmp(()=>{const it=_e.get(et);if(this.hasOwnProperty(it))nt=this[it],delete this[it];else if(j.hasOwnProperty(it)&&typeof this[it]=="number"&&this[it]==nt)return;this[it]=nt===null&&typeof this[it]=="boolean"?!1:nt})},o.observedAttributes=$.filter(([et,tt])=>tt[0]&15).map(([et,tt])=>{const nt=tt[1]||et;return _e.set(nt,et),tt[0]&512&&s.$attrsToReflect$.push([et,nt]),nt})}}return o},initializeComponent=async(o,s,a,$,j)=>{if(!(s.$flags$&32)&&(j=o.constructor,s.$flags$|=32,customElements.whenDefined(a.$tagName$).then(()=>s.$flags$|=128),j.style)){let et=j.style;typeof et!="string"&&(et=et[s.$modeName$=computeMode(o)]);const tt=getScopeId(a,s.$modeName$);if(!styles.has(tt)){const nt=createTime("registerStyles",a.$tagName$);registerStyle(tt,et,!!(a.$flags$&1)),nt()}}s.$ancestorComponent$,scheduleUpdate(s,!0)},fireConnectedCallback=o=>{},connectedCallback=o=>{if(!(plt.$flags$&1)){const s=getHostRef(o),a=s.$cmpMeta$,$=createTime("connectedCallback",a.$tagName$);s.$flags$&1?(addHostEventListeners(o,s,a.$listeners$),fireConnectedCallback(s.$lazyInstance$)):(s.$flags$|=1,a.$flags$&12&&setContentReference(o),a.$members$&&Object.entries(a.$members$).map(([j,[_e]])=>{if(_e&31&&o.hasOwnProperty(j)){const et=o[j];delete o[j],o[j]=et}}),initializeComponent(o,s,a)),$()}},setContentReference=o=>{const s=o["s-cr"]=doc.createComment("");s["s-cn"]=!0,o.insertBefore(s,o.firstChild)},disconnectedCallback=o=>{if(!(plt.$flags$&1)){const s=getHostRef(o);s.$rmListeners$&&(s.$rmListeners$.map(a=>a()),s.$rmListeners$=void 0)}},proxyCustomElement=(o,s)=>{const a={$flags$:s[0],$tagName$:s[1]};a.$members$=s[2],a.$listeners$=s[3],a.$watchers$=o.$watchers$,a.$attrsToReflect$=[];const $=o.prototype.connectedCallback,j=o.prototype.disconnectedCallback;return Object.assign(o.prototype,{__registerHost(){registerHost(this,a)},connectedCallback(){connectedCallback(this),$&&$.call(this)},disconnectedCallback(){disconnectedCallback(this),j&&j.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(a.$flags$&16)})}}),o.is=a.$tagName$,proxyComponent(o,a)},addHostEventListeners=(o,s,a,$)=>{a&&a.map(([j,_e,et])=>{const tt=getHostListenerTarget(o,j),nt=hostListenerProxy(s,et),it=hostListenerOpts(j);plt.ael(tt,_e,nt,it),(s.$rmListeners$=s.$rmListeners$||[]).push(()=>plt.rel(tt,_e,nt,it))})},hostListenerProxy=(o,s)=>a=>{try{BUILD.lazyLoad||o.$hostElement$[s](a)}catch($){consoleError($)}},getHostListenerTarget=(o,s)=>s&4?doc:s&8?win$2:s&16?doc.body:o,hostListenerOpts=o=>supportsListenerOptions?{passive:(o&1)!==0,capture:(o&2)!==0}:(o&2)!==0,hostRefs=new WeakMap,getHostRef=o=>hostRefs.get(o),registerHost=(o,s)=>{const a={$flags$:0,$hostElement$:o,$cmpMeta$:s,$instanceValues$:new Map};return addHostEventListeners(o,a,s.$listeners$),hostRefs.set(o,a)},isMemberInElement=(o,s)=>s in o,consoleError=(o,s)=>(0,console.error)(o,s),styles=new Map,modeResolutionChain=[],win$2=typeof window<"u"?window:{},doc=win$2.document||{head:{}},H=win$2.HTMLElement||class{},plt={$flags$:0,$resourcesUrl$:"",jmp:o=>o(),raf:o=>requestAnimationFrame(o),ael:(o,s,a,$)=>o.addEventListener(s,a,$),rel:(o,s,a,$)=>o.removeEventListener(s,a,$),ce:(o,s)=>new CustomEvent(o,s)},setPlatformHelpers=o=>{Object.assign(plt,o)},supportsListenerOptions=(()=>{let o=!1;try{doc.addEventListener("e",null,Object.defineProperty({},"passive",{get(){o=!0}}))}catch{}return o})(),promiseResolve=o=>Promise.resolve(o),supportsConstructableStylesheets=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),queueDomReads=[],queueDomWrites=[],queueTask=(o,s)=>a=>{o.push(a),queuePending||(queuePending=!0,s&&plt.$flags$&4?nextTick(flush$1):plt.raf(flush$1))},consume=o=>{for(let s=0;s<o.length;s++)try{o[s](performance.now())}catch(a){consoleError(a)}o.length=0},flush$1=()=>{consume(queueDomReads),consume(queueDomWrites),(queuePending=queueDomReads.length>0)&&plt.raf(flush$1)},nextTick=o=>promiseResolve().then(o),readTask=queueTask(queueDomReads,!1),writeTask=queueTask(queueDomWrites,!0);/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const transitionEndAsync=(o,s=0)=>new Promise(a=>{transitionEnd(o,s,a)}),transitionEnd=(o,s=0,a)=>{let $,j;const _e={passive:!0},et=500,tt=()=>{$&&$()},nt=it=>{(it===void 0||o===it.target)&&(tt(),a(it))};return o&&(o.addEventListener("webkitTransitionEnd",nt,_e),o.addEventListener("transitionend",nt,_e),j=setTimeout(nt,s+et),$=()=>{j&&(clearTimeout(j),j=void 0),o.removeEventListener("webkitTransitionEnd",nt,_e),o.removeEventListener("transitionend",nt,_e)}),tt},componentOnReady=(o,s)=>{o.componentOnReady?o.componentOnReady().then(a=>s(a)):raf(()=>s(o))},inheritAttributes$2=(o,s=[])=>{const a={};return s.forEach($=>{o.hasAttribute($)&&(o.getAttribute($)!==null&&(a[$]=o.getAttribute($)),o.removeAttribute($))}),a},ariaAttributes=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],inheritAriaAttributes=(o,s)=>inheritAttributes$2(o,ariaAttributes),addEventListener$2=(o,s,a,$)=>{var j;if(typeof window<"u"){const _e=window,et=(j=_e==null?void 0:_e.Ionic)===null||j===void 0?void 0:j.config;if(et){const tt=et.get("_ael");if(tt)return tt(o,s,a,$);if(et._ael)return et._ael(o,s,a,$)}}return o.addEventListener(s,a,$)},removeEventListener=(o,s,a,$)=>{var j;if(typeof window<"u"){const _e=window,et=(j=_e==null?void 0:_e.Ionic)===null||j===void 0?void 0:j.config;if(et){const tt=et.get("_rel");if(tt)return tt(o,s,a,$);if(et._rel)return et._rel(o,s,a,$)}}return o.removeEventListener(s,a,$)},getElementRoot=(o,s=o)=>o.shadowRoot||s,raf=o=>typeof __zone_symbol__requestAnimationFrame=="function"?__zone_symbol__requestAnimationFrame(o):typeof requestAnimationFrame=="function"?requestAnimationFrame(o):setTimeout(o),hasShadowDom=o=>!!o.shadowRoot&&!!o.attachShadow,findItemLabel=o=>{const s=o.closest("ion-item");return s?s.querySelector("ion-label"):null},focusElement=o=>{if(o.focus(),o.classList.contains("ion-focusable")){const s=o.closest("ion-app");s&&s.setFocus([o])}},getAriaLabel=(o,s)=>{let a;const $=o.getAttribute("aria-labelledby"),j=o.id;let _e=$!==null&&$.trim()!==""?$:s+"-lbl",et=$!==null&&$.trim()!==""?document.getElementById($):findItemLabel(o);return et?($===null&&(et.id=_e),a=et.textContent,et.setAttribute("aria-hidden","true")):j.trim()!==""&&(et=document.querySelector(`label[for="${j}"]`),et&&(et.id!==""?_e=et.id:et.id=_e=`${j}-lbl`,a=et.textContent)),{label:et,labelId:_e,labelText:a}},renderHiddenInput=(o,s,a,$,j)=>{{let _e=s.querySelector("input.aux-input");_e||(_e=s.ownerDocument.createElement("input"),_e.type="hidden",_e.classList.add("aux-input"),s.appendChild(_e)),_e.disabled=j,_e.name=a,_e.value=$||""}},clamp$2=(o,s,a)=>Math.max(o,Math.min(s,a)),assert=(o,s)=>{if(!o){const a="ASSERT: "+s;console.error(a);debugger;throw new Error(a)}},now$2=o=>o.timeStamp||Date.now(),pointerCoord=o=>{if(o){const s=o.changedTouches;if(s&&s.length>0){const a=s[0];return{x:a.clientX,y:a.clientY}}if(o.pageX!==void 0)return{x:o.pageX,y:o.pageY}}return{x:0,y:0}},isEndSide=o=>{const s=document.dir==="rtl";switch(o){case"start":return s;case"end":return!s;default:throw new Error(`"${o}" is not a valid value for [side]. Use "start" or "end" instead.`)}},debounceEvent=(o,s)=>{const a=o._original||o;return{_original:o,emit:debounce$1(a.emit.bind(a),s)}},debounce$1=(o,s=0)=>{let a;return(...$)=>{clearTimeout(a),a=setTimeout(o,s,...$)}},shallowEqualStringMap=(o,s)=>{if(o??(o={}),s??(s={}),o===s)return!0;const a=Object.keys(o);if(a.length!==Object.keys(s).length)return!1;for(const $ of a)if(!($ in s)||o[$]!==s[$])return!1;return!0};/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const win$1=typeof window<"u"?window:void 0;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let animationPrefix;const processKeyframes=o=>(o.forEach(s=>{for(const a in s)if(s.hasOwnProperty(a)){const $=s[a];if(a==="easing"){const j="animation-timing-function";s[j]=$,delete s[a]}else{const j=convertCamelCaseToHypen(a);j!==a&&(s[j]=$,delete s[a])}}}),o),convertCamelCaseToHypen=o=>o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),getAnimationPrefix=o=>{if(animationPrefix===void 0){const s=o.style.animationName!==void 0,a=o.style.webkitAnimationName!==void 0;animationPrefix=!s&&a?"-webkit-":""}return animationPrefix},setStyleProperty=(o,s,a)=>{const $=s.startsWith("animation")?getAnimationPrefix(o):"";o.style.setProperty($+s,a)},removeStyleProperty=(o,s)=>{const a=s.startsWith("animation")?getAnimationPrefix(o):"";o.style.removeProperty(a+s)},animationEnd=(o,s)=>{let a;const $={passive:!0},j=()=>{a&&a()},_e=et=>{o===et.target&&(j(),s(et))};return o&&(o.addEventListener("webkitAnimationEnd",_e,$),o.addEventListener("animationend",_e,$),a=()=>{o.removeEventListener("webkitAnimationEnd",_e,$),o.removeEventListener("animationend",_e,$)}),j},generateKeyframeRules=(o=[])=>o.map(s=>{const a=s.offset,$=[];for(const j in s)s.hasOwnProperty(j)&&j!=="offset"&&$.push(`${j}: ${s[j]};`);return`${a*100}% { ${$.join(" ")} }`}).join(" "),keyframeIds=[],generateKeyframeName=o=>{let s=keyframeIds.indexOf(o);return s<0&&(s=keyframeIds.push(o)-1),`ion-animation-${s}`},getStyleContainer=o=>{const s=o.getRootNode!==void 0?o.getRootNode():o;return s.head||s},createKeyframeStylesheet=(o,s,a)=>{var $;const j=getStyleContainer(a),_e=getAnimationPrefix(a),et=j.querySelector("#"+o);if(et)return et;const tt=(($=a.ownerDocument)!==null&&$!==void 0?$:document).createElement("style");return tt.id=o,tt.textContent=`@${_e}keyframes ${o} { ${s} } @${_e}keyframes ${o}-alt { ${s} }`,j.appendChild(tt),tt},addClassToArray=(o=[],s)=>{if(s!==void 0){const a=Array.isArray(s)?s:[s];return[...o,...a]}return o},createAnimation=o=>{let s,a,$,j,_e,et,tt=[],nt=[],it=[],rt=!1,st,ot={},at=[],lt=[],ct={},ht=0,dt=!1,ut=!1,pt,ft,mt,gt,bt=!0,St=!1,Nt=!0,Rt,Ft,Ot=!1;const Ct=o,yt=[],Pt=[],wt=[],Lt=[],vt=[],xt=[],Ut=[],Et=[],Dt=[],Bt=[],Wt=typeof AnimationEffect=="function"||win$1!==void 0&&typeof win$1.AnimationEffect=="function",Zt=typeof Element=="function"&&typeof Element.prototype.animate=="function"&&Wt,sn=100,dn=()=>Bt,vn=on=>(Lt.forEach(bn=>{bn.destroy(on)}),kn(on),wt.length=0,Lt.length=0,tt.length=0,Cn(),rt=!1,Nt=!0,Ft),kn=on=>{rn(),on&&Fn()},An=()=>{dt=!1,ut=!1,Nt=!0,ft=void 0,mt=void 0,gt=void 0,ht=0,St=!1,bt=!0,Ot=!1},$n=()=>ht!==0&&!Ot,On=(on,bn)=>((bn!=null&&bn.oneTimeCallback?Pt:yt).push({c:on,o:bn}),Ft),Cn=()=>(yt.length=0,Pt.length=0,Ft),rn=()=>{if(Zt)Bt.forEach(on=>{on.cancel()}),Bt.length=0;else{const on=wt.slice();raf(()=>{on.forEach(bn=>{removeStyleProperty(bn,"animation-name"),removeStyleProperty(bn,"animation-duration"),removeStyleProperty(bn,"animation-timing-function"),removeStyleProperty(bn,"animation-iteration-count"),removeStyleProperty(bn,"animation-delay"),removeStyleProperty(bn,"animation-play-state"),removeStyleProperty(bn,"animation-fill-mode"),removeStyleProperty(bn,"animation-direction")})})}},Fn=()=>{vt.forEach(on=>{on!=null&&on.parentNode&&on.parentNode.removeChild(on)}),vt.length=0},Ln=on=>(xt.push(on),Ft),Rn=on=>(Ut.push(on),Ft),Gn=on=>(Et.push(on),Ft),Vn=on=>(Dt.push(on),Ft),qn=on=>(nt=addClassToArray(nt,on),Ft),Zn=on=>(it=addClassToArray(it,on),Ft),jn=(on={})=>(ot=on,Ft),Xn=(on=[])=>{for(const bn of on)ot[bn]="";return Ft},dr=on=>(at=addClassToArray(at,on),Ft),mn=on=>(lt=addClassToArray(lt,on),Ft),Mn=(on={})=>(ct=on,Ft),Mt=(on=[])=>{for(const bn of on)ct[bn]="";return Ft},_t=()=>_e!==void 0?_e:st?st.getFill():"both",kt=()=>ft!==void 0?ft:et!==void 0?et:st?st.getDirection():"normal",Vt=()=>dt?"linear":$!==void 0?$:st?st.getEasing():"linear",qt=()=>ut?0:mt!==void 0?mt:a!==void 0?a:st?st.getDuration():0,Jt=()=>j!==void 0?j:st?st.getIterations():1,ln=()=>gt!==void 0?gt:s!==void 0?s:st?st.getDelay():0,Un=()=>tt,Yn=on=>(et=on,pr(!0),Ft),ir=on=>(_e=on,pr(!0),Ft),tr=on=>(s=on,pr(!0),Ft),nr=on=>($=on,pr(!0),Ft),Ur=on=>(!Zt&&on===0&&(on=1),a=on,pr(!0),Ft),zr=on=>(j=on,pr(!0),Ft),Vr=on=>(st=on,Ft),ro=on=>{if(on!=null)if(on.nodeType===1)wt.push(on);else if(on.length>=0)for(let bn=0;bn<on.length;bn++)wt.push(on[bn]);else console.error("Invalid addElement value");return Ft},oo=on=>{if(on!=null)if(Array.isArray(on))for(const bn of on)bn.parent(Ft),Lt.push(bn);else on.parent(Ft),Lt.push(on);return Ft},Jr=on=>{const bn=tt!==on;return tt=on,bn&&lo(tt),Ft},lo=on=>{Zt?dn().forEach(bn=>{if(bn.effect.setKeyframes)bn.effect.setKeyframes(on);else{const Pn=new KeyframeEffect(bn.effect.target,on,bn.effect.getTiming());bn.effect=Pn}}):Lr()},so=()=>{xt.forEach(rr=>rr()),Ut.forEach(rr=>rr());const on=nt,bn=it,Pn=ot;wt.forEach(rr=>{const gr=rr.classList;on.forEach(Er=>gr.add(Er)),bn.forEach(Er=>gr.remove(Er));for(const Er in Pn)Pn.hasOwnProperty(Er)&&setStyleProperty(rr,Er,Pn[Er])})},yr=()=>{Fr(),Et.forEach(gr=>gr()),Dt.forEach(gr=>gr());const on=bt?1:0,bn=at,Pn=lt,rr=ct;wt.forEach(gr=>{const Er=gr.classList;bn.forEach(xr=>Er.add(xr)),Pn.forEach(xr=>Er.remove(xr));for(const xr in rr)rr.hasOwnProperty(xr)&&setStyleProperty(gr,xr,rr[xr])}),yt.forEach(gr=>gr.c(on,Ft)),Pt.forEach(gr=>gr.c(on,Ft)),Pt.length=0,Nt=!0,bt&&(St=!0),bt=!0},Ir=()=>{ht!==0&&(ht--,ht===0&&(yr(),st&&st.animationFinish()))},Lr=(on=!0)=>{Fn();const bn=processKeyframes(tt);wt.forEach(Pn=>{if(bn.length>0){const rr=generateKeyframeRules(bn);Rt=o!==void 0?o:generateKeyframeName(rr);const gr=createKeyframeStylesheet(Rt,rr,Pn);vt.push(gr),setStyleProperty(Pn,"animation-duration",`${qt()}ms`),setStyleProperty(Pn,"animation-timing-function",Vt()),setStyleProperty(Pn,"animation-delay",`${ln()}ms`),setStyleProperty(Pn,"animation-fill-mode",_t()),setStyleProperty(Pn,"animation-direction",kt());const Er=Jt()===1/0?"infinite":Jt().toString();setStyleProperty(Pn,"animation-iteration-count",Er),setStyleProperty(Pn,"animation-play-state","paused"),on&&setStyleProperty(Pn,"animation-name",`${gr.id}-alt`),raf(()=>{setStyleProperty(Pn,"animation-name",gr.id||null)})}})},Hr=()=>{wt.forEach(on=>{const bn=on.animate(tt,{id:Ct,delay:ln(),duration:qt(),easing:Vt(),iterations:Jt(),fill:_t(),direction:kt()});bn.pause(),Bt.push(bn)}),Bt.length>0&&(Bt[0].onfinish=()=>{Ir()})},Br=(on=!0)=>{so(),tt.length>0&&(Zt?Hr():Lr(on)),rt=!0},Pr=on=>{if(on=Math.min(Math.max(on,0),.9999),Zt)Bt.forEach(bn=>{bn.currentTime=bn.effect.getComputedTiming().delay+qt()*on,bn.pause()});else{const bn=`-${qt()*on}ms`;wt.forEach(Pn=>{tt.length>0&&(setStyleProperty(Pn,"animation-delay",bn),setStyleProperty(Pn,"animation-play-state","paused"))})}},$r=on=>{Bt.forEach(bn=>{bn.effect.updateTiming({delay:ln(),duration:qt(),easing:Vt(),iterations:Jt(),fill:_t(),direction:kt()})}),on!==void 0&&Pr(on)},Gr=(on=!0,bn)=>{raf(()=>{wt.forEach(Pn=>{setStyleProperty(Pn,"animation-name",Rt||null),setStyleProperty(Pn,"animation-duration",`${qt()}ms`),setStyleProperty(Pn,"animation-timing-function",Vt()),setStyleProperty(Pn,"animation-delay",bn!==void 0?`-${bn*qt()}ms`:`${ln()}ms`),setStyleProperty(Pn,"animation-fill-mode",_t()||null),setStyleProperty(Pn,"animation-direction",kt()||null);const rr=Jt()===1/0?"infinite":Jt().toString();setStyleProperty(Pn,"animation-iteration-count",rr),on&&setStyleProperty(Pn,"animation-name",`${Rt}-alt`),raf(()=>{setStyleProperty(Pn,"animation-name",Rt||null)})})})},pr=(on=!1,bn=!0,Pn)=>(on&&Lt.forEach(rr=>{rr.update(on,bn,Pn)}),Zt?$r(Pn):Gr(bn,Pn),Ft),Wr=(on=!1,bn)=>(Lt.forEach(Pn=>{Pn.progressStart(on,bn)}),Yr(),dt=on,rt||Br(),pr(!1,!0,bn),Ft),Tr=on=>(Lt.forEach(bn=>{bn.progressStep(on)}),Pr(on),Ft),kr=(on,bn,Pn)=>(dt=!1,Lt.forEach(rr=>{rr.progressEnd(on,bn,Pn)}),Pn!==void 0&&(mt=Pn),St=!1,bt=!0,on===0?(ft=kt()==="reverse"?"normal":"reverse",ft==="reverse"&&(bt=!1),Zt?(pr(),Pr(1-bn)):(gt=(1-bn)*qt()*-1,pr(!1,!1))):on===1&&(Zt?(pr(),Pr(bn)):(gt=bn*qt()*-1,pr(!1,!1))),on!==void 0&&(On(()=>{mt=void 0,ft=void 0,gt=void 0},{oneTimeCallback:!0}),st||Ar()),Ft),Yr=()=>{rt&&(Zt?Bt.forEach(on=>{on.pause()}):wt.forEach(on=>{setStyleProperty(on,"animation-play-state","paused")}),Ot=!0)},Dr=()=>(Lt.forEach(on=>{on.pause()}),Yr(),Ft),Kr=()=>{pt=void 0,Ir()},Fr=()=>{pt&&clearTimeout(pt)},co=()=>{if(Fr(),raf(()=>{wt.forEach(on=>{tt.length>0&&setStyleProperty(on,"animation-play-state","running")})}),tt.length===0||wt.length===0)Ir();else{const on=ln()||0,bn=qt()||0,Pn=Jt()||1;isFinite(Pn)&&(pt=setTimeout(Kr,on+bn*Pn+sn)),animationEnd(wt[0],()=>{Fr(),raf(()=>{Xr(),raf(Ir)})})}},Xr=()=>{wt.forEach(on=>{removeStyleProperty(on,"animation-duration"),removeStyleProperty(on,"animation-delay"),removeStyleProperty(on,"animation-play-state")})},uo=()=>{Bt.forEach(on=>{on.play()}),(tt.length===0||wt.length===0)&&Ir()},Qr=()=>{Zt?(Pr(0),$r()):Gr()},Ar=on=>new Promise(bn=>{on!=null&&on.sync&&(ut=!0,On(()=>ut=!1,{oneTimeCallback:!0})),rt||Br(),St&&(Qr(),St=!1),Nt&&(ht=Lt.length+1,Nt=!1),On(()=>bn(),{oneTimeCallback:!0}),Lt.forEach(Pn=>{Pn.play()}),Zt?uo():co(),Ot=!1}),Nr=()=>{Lt.forEach(on=>{on.stop()}),rt&&(rn(),rt=!1),An()},Dn=(on,bn)=>{const Pn=tt[0];return Pn!==void 0&&(Pn.offset===void 0||Pn.offset===0)?Pn[on]=bn:tt=[{offset:0,[on]:bn},...tt],Ft};return Ft={parentAnimation:st,elements:wt,childAnimations:Lt,id:Ct,animationFinish:Ir,from:Dn,to:(on,bn)=>{const Pn=tt[tt.length-1];return Pn!==void 0&&(Pn.offset===void 0||Pn.offset===1)?Pn[on]=bn:tt=[...tt,{offset:1,[on]:bn}],Ft},fromTo:(on,bn,Pn)=>Dn(on,bn).to(on,Pn),parent:Vr,play:Ar,pause:Dr,stop:Nr,destroy:vn,keyframes:Jr,addAnimation:oo,addElement:ro,update:pr,fill:ir,direction:Yn,iterations:zr,duration:Ur,easing:nr,delay:tr,getWebAnimations:dn,getKeyframes:Un,getFill:_t,getDirection:kt,getDelay:ln,getIterations:Jt,getEasing:Vt,getDuration:qt,afterAddRead:Gn,afterAddWrite:Vn,afterClearStyles:Mt,afterStyles:Mn,afterRemoveClass:mn,afterAddClass:dr,beforeAddRead:Ln,beforeAddWrite:Rn,beforeClearStyles:Xn,beforeStyles:jn,beforeRemoveClass:Zn,beforeAddClass:qn,onFinish:On,isRunning:$n,progressStart:Wr,progressStep:Tr,progressEnd:kr}},LIFECYCLE_WILL_ENTER="ionViewWillEnter",LIFECYCLE_DID_ENTER="ionViewDidEnter",LIFECYCLE_WILL_LEAVE="ionViewWillLeave",LIFECYCLE_DID_LEAVE="ionViewDidLeave",LIFECYCLE_WILL_UNLOAD="ionViewWillUnload",iosTransitionAnimation=()=>__vitePreload(()=>import("./ios.transition-CysuJEQ-.js"),[]),mdTransitionAnimation=()=>__vitePreload(()=>import("./md.transition-BnhZUnjP.js"),[]),transition=o=>new Promise((s,a)=>{writeTask(()=>{beforeTransition(o),runTransition(o).then($=>{$.animation&&$.animation.destroy(),afterTransition(o),s($)},$=>{afterTransition(o),a($)})})}),beforeTransition=o=>{const s=o.enteringEl,a=o.leavingEl;setZIndex(s,a,o.direction),o.showGoBack?s.classList.add("can-go-back"):s.classList.remove("can-go-back"),setPageHidden(s,!1),s.style.setProperty("pointer-events","none"),a&&(setPageHidden(a,!1),a.style.setProperty("pointer-events","none"))},runTransition=async o=>{const s=await getAnimationBuilder(o);return s&&Build.isBrowser?animation(s,o):noAnimation(o)},afterTransition=o=>{const s=o.enteringEl,a=o.leavingEl;s.classList.remove("ion-page-invisible"),s.style.removeProperty("pointer-events"),a!==void 0&&(a.classList.remove("ion-page-invisible"),a.style.removeProperty("pointer-events"))},getAnimationBuilder=async o=>!o.leavingEl||!o.animated||o.duration===0?void 0:o.animationBuilder?o.animationBuilder:o.mode==="ios"?(await iosTransitionAnimation()).iosTransitionAnimation:(await mdTransitionAnimation()).mdTransitionAnimation,animation=async(o,s)=>{await waitForReady(s,!0);const a=o(s.baseEl,s);fireWillEvents(s.enteringEl,s.leavingEl);const $=await playTransition(a,s);return s.progressCallback&&s.progressCallback(void 0),$&&fireDidEvents(s.enteringEl,s.leavingEl),{hasCompleted:$,animation:a}},noAnimation=async o=>{const s=o.enteringEl,a=o.leavingEl;return await waitForReady(o,!1),fireWillEvents(s,a),fireDidEvents(s,a),{hasCompleted:!0}},waitForReady=async(o,s)=>{const $=(o.deepWait!==void 0?o.deepWait:s)?[deepReady(o.enteringEl),deepReady(o.leavingEl)]:[shallowReady(o.enteringEl),shallowReady(o.leavingEl)];await Promise.all($),await notifyViewReady(o.viewIsReady,o.enteringEl)},notifyViewReady=async(o,s)=>{o&&await o(s)},playTransition=(o,s)=>{const a=s.progressCallback,$=new Promise(j=>{o.onFinish(_e=>j(_e===1))});return a?(o.progressStart(!0),a(o)):o.play(),$},fireWillEvents=(o,s)=>{lifecycle(s,LIFECYCLE_WILL_LEAVE),lifecycle(o,LIFECYCLE_WILL_ENTER)},fireDidEvents=(o,s)=>{lifecycle(o,LIFECYCLE_DID_ENTER),lifecycle(s,LIFECYCLE_DID_LEAVE)},lifecycle=(o,s)=>{if(o){const a=new CustomEvent(s,{bubbles:!1,cancelable:!1});o.dispatchEvent(a)}},shallowReady=o=>o?new Promise(s=>componentOnReady(o,s)):Promise.resolve(),deepReady=async o=>{const s=o;if(s){if(s.componentOnReady!=null){if(await s.componentOnReady()!=null)return}else if(s.__registerHost!=null){await new Promise($=>raf($));return}await Promise.all(Array.from(s.children).map(deepReady))}},setPageHidden=(o,s)=>{s?(o.setAttribute("aria-hidden","true"),o.classList.add("ion-page-hidden")):(o.hidden=!1,o.removeAttribute("aria-hidden"),o.classList.remove("ion-page-hidden"))},setZIndex=(o,s,a)=>{o!==void 0&&(o.style.zIndex=a==="back"?"99":"101"),s!==void 0&&(s.style.zIndex="100")},getIonPageElement=o=>{if(o.classList.contains("ion-page"))return o;const s=o.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs");return s||o};/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const getTimeGivenProgression=(o,s,a,$,j)=>solveCubicBezier(o[1],s[1],a[1],$[1],j).map(_e=>solveCubicParametricEquation(o[0],s[0],a[0],$[0],_e)),solveCubicParametricEquation=(o,s,a,$,j)=>{const _e=3*s*Math.pow(j-1,2),et=-3*a*j+3*a+$*j,tt=o*Math.pow(j-1,3);return j*(_e+j*et)-tt},solveCubicBezier=(o,s,a,$,j)=>(o-=j,s-=j,a-=j,$-=j,solveCubicEquation($-3*a+3*s-o,3*a-6*s+3*o,3*s-3*o,o).filter(et=>et>=0&&et<=1)),solveQuadraticEquation=(o,s,a)=>{const $=s*s-4*o*a;return $<0?[]:[(-s+Math.sqrt($))/(2*o),(-s-Math.sqrt($))/(2*o)]},solveCubicEquation=(o,s,a,$)=>{if(o===0)return solveQuadraticEquation(s,a,$);s/=o,a/=o,$/=o;const j=(3*a-s*s)/3,_e=(2*s*s*s-9*s*a+27*$)/27;if(j===0)return[Math.pow(-_e,1/3)];if(_e===0)return[Math.sqrt(-j),-Math.sqrt(-j)];const et=Math.pow(_e/2,2)+Math.pow(j/3,3);if(et===0)return[Math.pow(_e/2,1/2)-s/3];if(et>0)return[Math.pow(-(_e/2)+Math.sqrt(et),1/3)-Math.pow(_e/2+Math.sqrt(et),1/3)-s/3];const tt=Math.sqrt(Math.pow(-(j/3),3)),nt=Math.acos(-(_e/(2*Math.sqrt(Math.pow(-(j/3),3))))),it=2*Math.pow(tt,1/3);return[it*Math.cos(nt/3)-s/3,it*Math.cos((nt+2*Math.PI)/3)-s/3,it*Math.cos((nt+4*Math.PI)/3)-s/3]};/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */class GestureController{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(s){var a;return new GestureDelegate(this,this.newID(),s.name,(a=s.priority)!==null&&a!==void 0?a:0,!!s.disableScroll)}createBlocker(s={}){return new BlockerDelegate(this,this.newID(),s.disable,!!s.disableScroll)}start(s,a,$){return this.canStart(s)?(this.requestedStart.set(a,$),!0):(this.requestedStart.delete(a),!1)}capture(s,a,$){if(!this.start(s,a,$))return!1;const j=this.requestedStart;let _e=-1e4;if(j.forEach(et=>{_e=Math.max(_e,et)}),_e===$){this.capturedId=a,j.clear();const et=new CustomEvent("ionGestureCaptured",{detail:{gestureName:s}});return document.dispatchEvent(et),!0}return j.delete(a),!1}release(s){this.requestedStart.delete(s),this.capturedId===s&&(this.capturedId=void 0)}disableGesture(s,a){let $=this.disabledGestures.get(s);$===void 0&&($=new Set,this.disabledGestures.set(s,$)),$.add(a)}enableGesture(s,a){const $=this.disabledGestures.get(s);$!==void 0&&$.delete(a)}disableScroll(s){this.disabledScroll.add(s),this.disabledScroll.size===1&&document.body.classList.add(BACKDROP_NO_SCROLL)}enableScroll(s){this.disabledScroll.delete(s),this.disabledScroll.size===0&&document.body.classList.remove(BACKDROP_NO_SCROLL)}canStart(s){return!(this.capturedId!==void 0||this.isDisabled(s))}isCaptured(){return this.capturedId!==void 0}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(s){const a=this.disabledGestures.get(s);return!!(a&&a.size>0)}newID(){return this.gestureId++,this.gestureId}}class GestureDelegate{constructor(s,a,$,j,_e){this.id=a,this.name=$,this.disableScroll=_e,this.priority=j*1e6+a,this.ctrl=s}canStart(){return this.ctrl?this.ctrl.canStart(this.name):!1}start(){return this.ctrl?this.ctrl.start(this.name,this.id,this.priority):!1}capture(){if(!this.ctrl)return!1;const s=this.ctrl.capture(this.name,this.id,this.priority);return s&&this.disableScroll&&this.ctrl.disableScroll(this.id),s}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class BlockerDelegate{constructor(s,a,$,j){this.id=a,this.disable=$,this.disableScroll=j,this.ctrl=s}block(){if(this.ctrl){if(this.disable)for(const s of this.disable)this.ctrl.disableGesture(s,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const s of this.disable)this.ctrl.enableGesture(s,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const BACKDROP_NO_SCROLL="backdrop-no-scroll",GESTURE_CONTROLLER=new GestureController;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const addEventListener$1=(o,s,a,$)=>{const j=supportsPassive(o)?{capture:!!$.capture,passive:!!$.passive}:!!$.capture;let _e,et;return o.__zone_symbol__addEventListener?(_e="__zone_symbol__addEventListener",et="__zone_symbol__removeEventListener"):(_e="addEventListener",et="removeEventListener"),o[_e](s,a,j),()=>{o[et](s,a,j)}},supportsPassive=o=>{if(_sPassive===void 0)try{const s=Object.defineProperty({},"passive",{get:()=>{_sPassive=!0}});o.addEventListener("optsTest",()=>{},s)}catch{_sPassive=!1}return!!_sPassive};let _sPassive;const MOUSE_WAIT=2e3,createPointerEvents=(o,s,a,$,j)=>{let _e,et,tt,nt,it,rt,st,ot=0;const at=gt=>{ot=Date.now()+MOUSE_WAIT,s(gt)&&(!et&&a&&(et=addEventListener$1(o,"touchmove",a,j)),tt||(tt=addEventListener$1(gt.target,"touchend",ct,j)),nt||(nt=addEventListener$1(gt.target,"touchcancel",ct,j)))},lt=gt=>{ot>Date.now()||s(gt)&&(!rt&&a&&(rt=addEventListener$1(getDocument(o),"mousemove",a,j)),st||(st=addEventListener$1(getDocument(o),"mouseup",ht,j)))},ct=gt=>{dt(),$&&$(gt)},ht=gt=>{ut(),$&&$(gt)},dt=()=>{et&&et(),tt&&tt(),nt&&nt(),et=tt=nt=void 0},ut=()=>{rt&&rt(),st&&st(),rt=st=void 0},pt=()=>{dt(),ut()},ft=(gt=!0)=>{gt?(_e||(_e=addEventListener$1(o,"touchstart",at,j)),it||(it=addEventListener$1(o,"mousedown",lt,j))):(_e&&_e(),it&&it(),_e=it=void 0,pt())};return{enable:ft,stop:pt,destroy:()=>{ft(!1),$=a=s=void 0}}},getDocument=o=>o instanceof Document?o:o.ownerDocument,createPanRecognizer=(o,s,a)=>{const $=a*(Math.PI/180),j=o==="x",_e=Math.cos($),et=s*s;let tt=0,nt=0,it=!1,rt=0;return{start(st,ot){tt=st,nt=ot,rt=0,it=!0},detect(st,ot){if(!it)return!1;const at=st-tt,lt=ot-nt,ct=at*at+lt*lt;if(ct<et)return!1;const ht=Math.sqrt(ct),dt=(j?at:lt)/ht;return dt>_e?rt=1:dt<-_e?rt=-1:rt=0,it=!1,!0},isGesture(){return rt!==0},getDirection(){return rt}}},createGesture=o=>{let s=!1,a=!1,$=!0,j=!1;const _e=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},o),et=_e.canStart,tt=_e.onWillStart,nt=_e.onStart,it=_e.onEnd,rt=_e.notCaptured,st=_e.onMove,ot=_e.threshold,at=_e.passive,lt=_e.blurOnStart,ct={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},ht=createPanRecognizer(_e.direction,_e.threshold,_e.maxAngle),dt=GESTURE_CONTROLLER.createGesture({name:o.gestureName,priority:o.gesturePriority,disableScroll:o.disableScroll}),ut=Ot=>{const Ct=now$1(Ot);return a||!$||(updateDetail(Ot,ct),ct.startX=ct.currentX,ct.startY=ct.currentY,ct.startTime=ct.currentTime=Ct,ct.velocityX=ct.velocityY=ct.deltaX=ct.deltaY=0,ct.event=Ot,et&&et(ct)===!1)||(dt.release(),!dt.start())?!1:(a=!0,ot===0?mt():(ht.start(ct.startX,ct.startY),!0))},pt=Ot=>{if(s){!j&&$&&(j=!0,calcGestureData(ct,Ot),requestAnimationFrame(ft));return}calcGestureData(ct,Ot),ht.detect(ct.currentX,ct.currentY)&&(!ht.isGesture()||!mt())&&Ft()},ft=()=>{s&&(j=!1,st&&st(ct))},mt=()=>dt.capture()?(s=!0,$=!1,ct.startX=ct.currentX,ct.startY=ct.currentY,ct.startTime=ct.currentTime,tt?tt(ct).then(bt):bt(),!0):!1,gt=()=>{if(typeof document<"u"){const Ot=document.activeElement;Ot!=null&&Ot.blur&&Ot.blur()}},bt=()=>{lt&&gt(),nt&&nt(ct),$=!0},St=()=>{s=!1,a=!1,j=!1,$=!0,dt.release()},Nt=Ot=>{const Ct=s,yt=$;if(St(),!!yt){if(calcGestureData(ct,Ot),Ct){it&&it(ct);return}rt&&rt(ct)}},Rt=createPointerEvents(_e.el,ut,pt,Nt,{capture:!1,passive:at}),Ft=()=>{St(),Rt.stop(),rt&&rt(ct)};return{enable(Ot=!0){Ot||(s&&Nt(void 0),St()),Rt.enable(Ot)},destroy(){dt.destroy(),Rt.destroy()}}},calcGestureData=(o,s)=>{if(!s)return;const a=o.currentX,$=o.currentY,j=o.currentTime;updateDetail(s,o);const _e=o.currentX,et=o.currentY,nt=(o.currentTime=now$1(s))-j;if(nt>0&&nt<100){const it=(_e-a)/nt,rt=(et-$)/nt;o.velocityX=it*.7+o.velocityX*.3,o.velocityY=rt*.7+o.velocityY*.3}o.deltaX=_e-o.startX,o.deltaY=et-o.startY,o.event=s},updateDetail=(o,s)=>{let a=0,$=0;if(o){const j=o.changedTouches;if(j&&j.length>0){const _e=j[0];a=_e.clientX,$=_e.clientY}else o.pageX!==void 0&&(a=o.pageX,$=o.pageY)}s.currentX=a,s.currentY=$},now$1=o=>o.timeStamp||Date.now(),index2=Object.freeze(Object.defineProperty({__proto__:null,GESTURE_CONTROLLER,createGesture},Symbol.toStringTag,{value:"Module"}));/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */class Config{constructor(){this.m=new Map}reset(s){this.m=new Map(Object.entries(s))}get(s,a){const $=this.m.get(s);return $!==void 0?$:a}getBoolean(s,a=!1){const $=this.m.get(s);return $===void 0?a:typeof $=="string"?$==="true":!!$}getNumber(s,a){const $=parseFloat(this.m.get(s));return isNaN($)?a!==void 0?a:NaN:$}set(s,a){this.m.set(s,a)}}const config$1=new Config,configFromSession=o=>{try{const s=o.sessionStorage.getItem(IONIC_SESSION_KEY);return s!==null?JSON.parse(s):{}}catch{return{}}},saveConfig=(o,s)=>{try{o.sessionStorage.setItem(IONIC_SESSION_KEY,JSON.stringify(s))}catch{return}},configFromURL=o=>{const s={};return o.location.search.slice(1).split("&").map(a=>a.split("=")).map(([a,$])=>[decodeURIComponent(a),decodeURIComponent($)]).filter(([a])=>startsWith$1(a,IONIC_PREFIX)).map(([a,$])=>[a.slice(IONIC_PREFIX.length),$]).forEach(([a,$])=>{s[a]=$}),s},startsWith$1=(o,s)=>o.substr(0,s.length)===s,IONIC_PREFIX="ionic:",IONIC_SESSION_KEY="ionic-persist-config",getPlatforms$1=o=>setupPlatforms(o),isPlatform$1=(o,s)=>(typeof o=="string"&&(s=o,o=void 0),getPlatforms$1(o).includes(s)),setupPlatforms=(o=window)=>{if(typeof o>"u")return[];o.Ionic=o.Ionic||{};let s=o.Ionic.platforms;return s==null&&(s=o.Ionic.platforms=detectPlatforms(o),s.forEach(a=>o.document.documentElement.classList.add(`plt-${a}`))),s},detectPlatforms=o=>{const s=config$1.get("platform");return Object.keys(PLATFORMS_MAP).filter(a=>{const $=s==null?void 0:s[a];return typeof $=="function"?$(o):PLATFORMS_MAP[a](o)})},isMobileWeb=o=>isMobile$1(o)&&!isHybrid(o),isIpad=o=>!!(testUserAgent(o,/iPad/i)||testUserAgent(o,/Macintosh/i)&&isMobile$1(o)),isIphone=o=>testUserAgent(o,/iPhone/i),isIOS$1=o=>testUserAgent(o,/iPhone|iPod/i)||isIpad(o),isAndroid$1=o=>testUserAgent(o,/android|sink/i),isAndroidTablet=o=>isAndroid$1(o)&&!testUserAgent(o,/mobile/i),isPhablet=o=>{const s=o.innerWidth,a=o.innerHeight,$=Math.min(s,a),j=Math.max(s,a);return $>390&&$<520&&j>620&&j<800},isTablet$1=o=>{const s=o.innerWidth,a=o.innerHeight,$=Math.min(s,a),j=Math.max(s,a);return isIpad(o)||isAndroidTablet(o)||$>460&&$<820&&j>780&&j<1400},isMobile$1=o=>matchMedia(o,"(any-pointer:coarse)"),isDesktop$1=o=>!isMobile$1(o),isHybrid=o=>isCordova(o)||isCapacitorNative(o),isCordova=o=>!!(o.cordova||o.phonegap||o.PhoneGap),isCapacitorNative=o=>{const s=o.Capacitor;return!!(s!=null&&s.isNative)},isElectron$1=o=>testUserAgent(o,/electron/i),isPWA=o=>{var s;return!!(!((s=o.matchMedia)===null||s===void 0)&&s.call(o,"(display-mode: standalone)").matches||o.navigator.standalone)},testUserAgent=(o,s)=>s.test(o.navigator.userAgent),matchMedia=(o,s)=>{var a;return(a=o.matchMedia)===null||a===void 0?void 0:a.call(o,s).matches},PLATFORMS_MAP={ipad:isIpad,iphone:isIphone,ios:isIOS$1,android:isAndroid$1,phablet:isPhablet,tablet:isTablet$1,cordova:isCordova,capacitor:isCapacitorNative,electron:isElectron$1,pwa:isPWA,mobile:isMobile$1,mobileweb:isMobileWeb,desktop:isDesktop$1,hybrid:isHybrid};let defaultMode;const getIonMode$2=o=>o&&getMode(o)||defaultMode,initialize=(o={})=>{if(typeof window>"u")return;const s=window.document,a=window,$=a.Ionic=a.Ionic||{},j={};o._ael&&(j.ael=o._ael),o._rel&&(j.rel=o._rel),o._ce&&(j.ce=o._ce),setPlatformHelpers(j);const _e=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},configFromSession(a)),{persistConfig:!1}),$.config),configFromURL(a)),o);config$1.reset(_e),config$1.getBoolean("persistConfig")&&saveConfig(a,_e),setupPlatforms(a),$.config=config$1,$.mode=defaultMode=config$1.get("mode",s.documentElement.getAttribute("mode")||(isPlatform$1(a,"ios")?"ios":"md")),config$1.set("mode",defaultMode),s.documentElement.setAttribute("mode",defaultMode),s.documentElement.classList.add(defaultMode),config$1.getBoolean("_testing")&&config$1.set("animated",!1);const et=nt=>{var it;return(it=nt.tagName)===null||it===void 0?void 0:it.startsWith("ION-")},tt=nt=>["ios","md"].includes(nt);setMode(nt=>{for(;nt;){const it=nt.mode||nt.getAttribute("mode");if(it){if(tt(it))return it;et(nt)&&console.warn('Invalid ionic mode: "'+it+'", expected: "ios" or "md"')}nt=nt.parentElement}return defaultMode})};/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const sanitizeDOMString=o=>{try{if(o instanceof IonicSafeString)return o.value;if(!isSanitizerEnabled()||typeof o!="string"||o==="")return o;if(o.includes("onload="))return"";const s=document.createDocumentFragment(),a=document.createElement("div");s.appendChild(a),a.innerHTML=o,blockedTags.forEach(et=>{const tt=s.querySelectorAll(et);for(let nt=tt.length-1;nt>=0;nt--){const it=tt[nt];it.parentNode?it.parentNode.removeChild(it):s.removeChild(it);const rt=getElementChildren(it);for(let st=0;st<rt.length;st++)sanitizeElement(rt[st])}});const $=getElementChildren(s);for(let et=0;et<$.length;et++)sanitizeElement($[et]);const j=document.createElement("div");j.appendChild(s);const _e=j.querySelector("div");return _e!==null?_e.innerHTML:j.innerHTML}catch(s){return console.error(s),""}},sanitizeElement=o=>{if(o.nodeType&&o.nodeType!==1)return;if(typeof NamedNodeMap<"u"&&!(o.attributes instanceof NamedNodeMap)){o.remove();return}for(let a=o.attributes.length-1;a>=0;a--){const $=o.attributes.item(a),j=$.name;if(!allowedAttributes.includes(j.toLowerCase())){o.removeAttribute(j);continue}const _e=$.value,et=o[j];(_e!=null&&_e.toLowerCase().includes("javascript:")||et!=null&&et.toLowerCase().includes("javascript:"))&&o.removeAttribute(j)}const s=getElementChildren(o);for(let a=0;a<s.length;a++)sanitizeElement(s[a])},getElementChildren=o=>o.children!=null?o.children:o.childNodes,isSanitizerEnabled=()=>{var o;const s=window,a=(o=s==null?void 0:s.Ionic)===null||o===void 0?void 0:o.config;return a?a.get?a.get("sanitizerEnabled",!0):a.sanitizerEnabled===!0||a.sanitizerEnabled===void 0:!0},allowedAttributes=["class","id","href","src","name","slot"],blockedTags=["script","style","iframe","meta","link","object","embed"];class IonicSafeString{constructor(s){this.value=s}}const ENABLE_HTML_CONTENT_DEFAULT=!0;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const blockHardwareBackButton=()=>{document.addEventListener("backbutton",()=>{})},startHardwareBackButton=()=>{const o=document;let s=!1;o.addEventListener("backbutton",()=>{if(s)return;let a=0,$=[];const j=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(tt,nt){$.push({priority:tt,handler:nt,id:a++})}}});o.dispatchEvent(j);const _e=async tt=>{try{if(tt!=null&&tt.handler){const nt=tt.handler(et);nt!=null&&await nt}}catch(nt){console.error(nt)}},et=()=>{if($.length>0){let tt={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};$.forEach(nt=>{nt.priority>=tt.priority&&(tt=nt)}),s=!0,$=$.filter(nt=>nt.id!==tt.id),_e(tt).then(()=>s=!1)}};et()})},OVERLAY_BACK_BUTTON_PRIORITY=100,MENU_BACK_BUTTON_PRIORITY=99,hardwareBackButton=Object.freeze(Object.defineProperty({__proto__:null,MENU_BACK_BUTTON_PRIORITY,OVERLAY_BACK_BUTTON_PRIORITY,blockHardwareBackButton,startHardwareBackButton},Symbol.toStringTag,{value:"Module"}));/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const baseAnimation=o=>createAnimation().duration(o?400:300),menuOverlayAnimation=o=>{let s,a;const $=o.width+8,j=createAnimation(),_e=createAnimation();o.isEndSide?(s=$+"px",a="0px"):(s=-$+"px",a="0px"),j.addElement(o.menuInnerEl).fromTo("transform",`translateX(${s})`,`translateX(${a})`);const tt=getIonMode$2(o)==="ios",nt=tt?.2:.25;return _e.addElement(o.backdropEl).fromTo("opacity",.01,nt),baseAnimation(tt).addAnimation([j,_e])},menuPushAnimation=o=>{let s,a;const $=getIonMode$2(o),j=o.width;o.isEndSide?(s=-j+"px",a=j+"px"):(s=j+"px",a=-j+"px");const _e=createAnimation().addElement(o.menuInnerEl).fromTo("transform",`translateX(${a})`,"translateX(0px)"),et=createAnimation().addElement(o.contentEl).fromTo("transform","translateX(0px)",`translateX(${s})`),tt=createAnimation().addElement(o.backdropEl).fromTo("opacity",.01,.32);return baseAnimation($==="ios").addAnimation([_e,et,tt])},menuRevealAnimation=o=>{const s=getIonMode$2(o),a=o.width*(o.isEndSide?-1:1)+"px",$=createAnimation().addElement(o.contentEl).fromTo("transform","translateX(0px)",`translateX(${a})`);return baseAnimation(s==="ios").addAnimation($)},createMenuController=()=>{const o=new Map,s=[],a=async St=>{const Nt=await it(St);return Nt?Nt.open():!1},$=async St=>{const Nt=await(St!==void 0?it(St):rt());return Nt!==void 0?Nt.close():!1},j=async St=>{const Nt=await it(St);return Nt?Nt.toggle():!1},_e=async(St,Nt)=>{const Rt=await it(Nt);return Rt&&(Rt.disabled=!St),Rt},et=async(St,Nt)=>{const Rt=await it(Nt);return Rt&&(Rt.swipeGesture=St),Rt},tt=async St=>{if(St!=null){const Nt=await it(St);return Nt!==void 0&&Nt.isOpen()}else return await rt()!==void 0},nt=async St=>{const Nt=await it(St);return Nt?!Nt.disabled:!1},it=async St=>{if(await bt(),St==="start"||St==="end"){const Rt=gt(Ft=>Ft.side===St&&!Ft.disabled);return Rt||gt(Ft=>Ft.side===St)}else if(St!=null)return gt(Rt=>Rt.menuId===St);const Nt=gt(Rt=>!Rt.disabled);return Nt||(s.length>0?s[0].el:void 0)},rt=async()=>(await bt(),pt()),st=async()=>(await bt(),ft()),ot=async()=>(await bt(),mt()),at=(St,Nt)=>{o.set(St,Nt)},lt=St=>{s.indexOf(St)<0&&(St.disabled||ht(St),s.push(St))},ct=St=>{const Nt=s.indexOf(St);Nt>-1&&s.splice(Nt,1)},ht=St=>{const Nt=St.side;s.filter(Rt=>Rt.side===Nt&&Rt!==St).forEach(Rt=>Rt.disabled=!0)},dt=async(St,Nt,Rt)=>{if(mt())return!1;if(Nt){const Ft=await rt();Ft&&St.el!==Ft&&await Ft.setOpen(!1,!1)}return St._setOpen(Nt,Rt)},ut=(St,Nt)=>{const Rt=o.get(St);if(!Rt)throw new Error("animation not registered");return Rt(Nt)},pt=()=>gt(St=>St._isOpen),ft=()=>s.map(St=>St.el),mt=()=>s.some(St=>St.isAnimating),gt=St=>{const Nt=s.find(St);if(Nt!==void 0)return Nt.el},bt=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(St=>new Promise(Nt=>componentOnReady(St,Nt))));return at("reveal",menuRevealAnimation),at("push",menuPushAnimation),at("overlay",menuOverlayAnimation),typeof document<"u"&&document.addEventListener("ionBackButton",St=>{const Nt=pt();Nt&&St.detail.register(MENU_BACK_BUTTON_PRIORITY,()=>Nt.close())}),{registerAnimation:at,get:it,getMenus:st,getOpen:rt,isEnabled:nt,swipeGesture:et,isAnimating:ot,isOpen:tt,enable:_e,toggle:j,close:$,open:a,_getOpenSync:pt,_createAnimation:ut,_register:lt,_unregister:ct,_setOpen:dt,_setActiveMenu:ht}},menuController=createMenuController();/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let lastId=0;const activeAnimations=new WeakMap,createController=o=>({create(s){return createOverlay(o,s)},dismiss(s,a,$){return dismissOverlay(document,s,a,o,$)},async getTop(){return getOverlay(document,o)}}),alertController=createController("ion-alert"),actionSheetController$1=createController("ion-action-sheet"),loadingController=createController("ion-loading"),popoverController=createController("ion-popover"),toastController=createController("ion-toast"),prepareOverlay=o=>{typeof document<"u"&&connectListeners(document);const s=lastId++;o.overlayIndex=s,o.hasAttribute("id")||(o.id=`ion-overlay-${s}`)},createOverlay=(o,s)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(o).then(()=>{const a=document.createElement(o);return a.classList.add("overlay-hidden"),Object.assign(a,Object.assign(Object.assign({},s),{hasController:!0})),getAppRoot(document).appendChild(a),new Promise($=>componentOnReady(a,$))}):Promise.resolve(),focusableQueryString$1='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',focusFirstDescendant=(o,s)=>{let a=o.querySelector(focusableQueryString$1);const $=a==null?void 0:a.shadowRoot;$&&(a=$.querySelector(focusableQueryString$1)||a),a?focusElement(a):s.focus()},isOverlayHidden=o=>o.classList.contains("overlay-hidden"),focusLastDescendant=(o,s)=>{const a=Array.from(o.querySelectorAll(focusableQueryString$1));let $=a.length>0?a[a.length-1]:null;const j=$==null?void 0:$.shadowRoot;j&&($=j.querySelector(focusableQueryString$1)||$),$?$.focus():s.focus()},trapKeyboardFocus=(o,s)=>{const a=getOverlay(s,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover"),$=o.target;if(!a||!$||a.classList.contains("ion-disable-focus-trap"))return;const j=()=>{if(a===$)a.lastFocus=void 0;else{const et=getElementRoot(a);if(!et.contains($))return;const tt=et.querySelector(".ion-overlay-wrapper");if(!tt)return;if(tt.contains($))a.lastFocus=$;else{const nt=a.lastFocus;focusFirstDescendant(tt,a),nt===s.activeElement&&focusLastDescendant(tt,a),a.lastFocus=s.activeElement}}},_e=()=>{if(a.contains($))a.lastFocus=$;else{const et=a.lastFocus;focusFirstDescendant(a,a),et===s.activeElement&&focusLastDescendant(a,a),a.lastFocus=s.activeElement}};a.shadowRoot?_e():j()},connectListeners=o=>{lastId===0&&(lastId=1,o.addEventListener("focus",s=>{trapKeyboardFocus(s,o)},!0),o.addEventListener("ionBackButton",s=>{const a=getOverlay(o);a!=null&&a.backdropDismiss&&s.detail.register(OVERLAY_BACK_BUTTON_PRIORITY,()=>a.dismiss(void 0,BACKDROP))}),o.addEventListener("keyup",s=>{if(s.key==="Escape"){const a=getOverlay(o);a!=null&&a.backdropDismiss&&a.dismiss(void 0,BACKDROP)}}))},dismissOverlay=(o,s,a,$,j)=>{const _e=getOverlay(o,$,j);return _e?_e.dismiss(s,a):Promise.reject("overlay does not exist")},getOverlays=(o,s)=>(s===void 0&&(s="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(o.querySelectorAll(s)).filter(a=>a.overlayIndex>0)),getOverlay=(o,s,a)=>{const $=getOverlays(o,s).filter(j=>!isOverlayHidden(j));return a===void 0?$[$.length-1]:$.find(j=>j.id===a)},setRootAriaHidden=(o=!1)=>{const a=getAppRoot(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");a&&(o?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden"))},present=async(o,s,a,$,j)=>{var _e,et;if(o.presented)return;setRootAriaHidden(!0),o.presented=!0,o.willPresent.emit(),(_e=o.willPresentShorthand)===null||_e===void 0||_e.emit();const tt=getIonMode$2(o),nt=o.enterAnimation?o.enterAnimation:config$1.get(s,tt==="ios"?a:$);await overlayAnimation(o,nt,o.el,j)&&(o.didPresent.emit(),(et=o.didPresentShorthand)===null||et===void 0||et.emit()),o.el.tagName!=="ION-TOAST"&&focusPreviousElementOnDismiss(o.el),o.keyboardClose&&(document.activeElement===null||!o.el.contains(document.activeElement))&&o.el.focus()},focusPreviousElementOnDismiss=async o=>{let s=document.activeElement;if(!s)return;const a=s==null?void 0:s.shadowRoot;a&&(s=a.querySelector(focusableQueryString$1)||s),await o.onDidDismiss(),s.focus()},dismiss=async(o,s,a,$,j,_e,et)=>{var tt,nt;if(!o.presented)return!1;setRootAriaHidden(!1),o.presented=!1;try{o.el.style.setProperty("pointer-events","none"),o.willDismiss.emit({data:s,role:a}),(tt=o.willDismissShorthand)===null||tt===void 0||tt.emit({data:s,role:a});const it=getIonMode$2(o),rt=o.leaveAnimation?o.leaveAnimation:config$1.get($,it==="ios"?j:_e);a!==GESTURE&&await overlayAnimation(o,rt,o.el,et),o.didDismiss.emit({data:s,role:a}),(nt=o.didDismissShorthand)===null||nt===void 0||nt.emit({data:s,role:a}),activeAnimations.delete(o),o.el.classList.add("overlay-hidden"),o.el.style.removeProperty("pointer-events"),o.el.lastFocus!==void 0&&(o.el.lastFocus=void 0)}catch(it){console.error(it)}return o.el.remove(),!0},getAppRoot=o=>o.querySelector("ion-app")||o.body,overlayAnimation=async(o,s,a,$)=>{a.classList.remove("overlay-hidden");const j=o.el,_e=s(j,$);(!o.animated||!config$1.getBoolean("animated",!0))&&_e.duration(0),o.keyboardClose&&_e.beforeAddWrite(()=>{const tt=a.ownerDocument.activeElement;tt!=null&&tt.matches("input,ion-input, ion-textarea")&&tt.blur()});const et=activeAnimations.get(o)||[];return activeAnimations.set(o,[...et,_e]),await _e.play(),!0},eventMethod=(o,s)=>{let a;const $=new Promise(j=>a=j);return onceEvent(o,s,j=>{a(j.detail)}),$},onceEvent=(o,s,a)=>{const $=j=>{removeEventListener(o,s,$),a(j)};addEventListener$2(o,s,$)},isCancel=o=>o==="cancel"||o===BACKDROP,defaultGate=o=>o(),safeCall=(o,s)=>{if(typeof o=="function")return config$1.get("_zoneGate",defaultGate)(()=>{try{return o(s)}catch($){throw $}})},BACKDROP="backdrop",GESTURE="gesture";/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const arrowBackSharp="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='square' stroke-miterlimit='10' stroke-width='48' d='M244 400L100 256l144-144M120 256h292' class='ionicon-fill-none'/></svg>",arrowDown="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 268l144 144 144-144M256 392V100' class='ionicon-fill-none'/></svg>",caretBackSharp="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M368 64L144 256l224 192V64z'/></svg>",caretDownSharp="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M64 144l192 224 192-224H64z'/></svg>",caretUpSharp="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M448 368L256 144 64 368h384z'/></svg>",checkmarkOutline$1="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' d='M416 128L192 384l-96-96' class='ionicon-fill-none ionicon-stroke-width'/></svg>",chevronBack="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M328 112L184 256l144 144' class='ionicon-fill-none'/></svg>",chevronDown$1="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 184l144 144 144-144' class='ionicon-fill-none'/></svg>",chevronForward$1="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M184 112l144 144-144 144' class='ionicon-fill-none'/></svg>",close$1="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z'/></svg>",closeCircle$1="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm75.31 260.69a16 16 0 11-22.62 22.62L256 278.63l-52.69 52.68a16 16 0 01-22.62-22.62L233.37 256l-52.68-52.69a16 16 0 0122.62-22.62L256 233.37l52.69-52.68a16 16 0 0122.62 22.62L278.63 256z'/></svg>",closeSharp="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M400 145.49L366.51 112 256 222.51 145.49 112 112 145.49 222.51 256 112 366.51 145.49 400 256 289.49 366.51 400 400 366.51 289.49 256 400 145.49z'/></svg>",ellipseOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><circle cx='256' cy='256' r='192' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",removeOutline$1="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' d='M400 256H112' class='ionicon-fill-none ionicon-stroke-width'/></svg>",reorderThreeOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' d='M96 256h320M96 176h320M96 336h320' class='ionicon-fill-none ionicon-stroke-width'/></svg>",reorderTwoSharp$1="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='square' stroke-linejoin='round' stroke-width='44' d='M118 304h276M118 208h276' class='ionicon-fill-none'/></svg>",searchOutline$1="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M221.09 64a157.09 157.09 0 10157.09 157.09A157.1 157.1 0 00221.09 64z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-miterlimit='10' d='M338.29 338.29L448 448' class='ionicon-fill-none ionicon-stroke-width'/></svg>",searchSharp="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M464 428L339.92 303.9a160.48 160.48 0 0030.72-94.58C370.64 120.37 298.27 48 209.32 48S48 120.37 48 209.32s72.37 161.32 161.32 161.32a160.48 160.48 0 0094.58-30.72L428 464zM209.32 319.69a110.38 110.38 0 11110.37-110.37 110.5 110.5 0 01-110.37 110.37z'/></svg>";/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */let CACHED_MAP$1;const getIconMap$1=()=>{if(typeof window>"u")return new Map;if(!CACHED_MAP$1){const o=window;o.Ionicons=o.Ionicons||{},CACHED_MAP$1=o.Ionicons.map=o.Ionicons.map||new Map}return CACHED_MAP$1},getUrl$1=o=>{let s=getSrc$1(o.src);return s||(s=getName$1(o.name,o.icon,o.mode,o.ios,o.md),s?getNamedUrl$1(s):o.icon&&(s=getSrc$1(o.icon),s||(s=getSrc$1(o.icon[o.mode]),s))?s:null)},getNamedUrl$1=o=>{const s=getIconMap$1().get(o);return s||getAssetPath(`svg/${o}.svg`)},getName$1=(o,s,a,$,j)=>(a=(a&&toLower$1(a))==="ios"?"ios":"md",$&&a==="ios"?o=toLower$1($):j&&a==="md"?o=toLower$1(j):(!o&&s&&!isSrc$1(s)&&(o=s),isStr$1(o)&&(o=toLower$1(o))),!isStr$1(o)||o.trim()===""||o.replace(/[a-z]|-|\d/gi,"")!==""?null:o),getSrc$1=o=>isStr$1(o)&&(o=o.trim(),isSrc$1(o))?o:null,isSrc$1=o=>o.length>0&&/(\/|\.)/.test(o),isStr$1=o=>typeof o=="string",toLower$1=o=>o.toLowerCase(),inheritAttributes$1=(o,s=[])=>{const a={};return s.forEach($=>{o.hasAttribute($)&&(o.getAttribute($)!==null&&(a[$]=o.getAttribute($)),o.removeAttribute($))}),a},isRTL$3=o=>o&&o.dir!==""?o.dir.toLowerCase()==="rtl":(document==null?void 0:document.dir.toLowerCase())==="rtl",validateContent$1=o=>{const s=document.createElement("div");s.innerHTML=o;for(let $=s.childNodes.length-1;$>=0;$--)s.childNodes[$].nodeName.toLowerCase()!=="svg"&&s.removeChild(s.childNodes[$]);const a=s.firstElementChild;if(a&&a.nodeName.toLowerCase()==="svg"){const $=a.getAttribute("class")||"";if(a.setAttribute("class",($+" s-ion-icon").trim()),isValid$1(a))return s.innerHTML}return""},isValid$1=o=>{if(o.nodeType===1){if(o.nodeName.toLowerCase()==="script")return!1;for(let s=0;s<o.attributes.length;s++){const a=o.attributes[s].name;if(isStr$1(a)&&a.toLowerCase().indexOf("on")===0)return!1}for(let s=0;s<o.childNodes.length;s++)if(!isValid$1(o.childNodes[s]))return!1}return!0},isSvgDataUrl$1=o=>o.startsWith("data:image/svg+xml"),isEncodedDataUrl$1=o=>o.indexOf(";utf8,")!==-1,ioniconContent$1=new Map,requests$1=new Map;let parser$1;const getSvgContent$1=(o,s)=>{let a=requests$1.get(o);if(!a)if(typeof fetch<"u"&&typeof document<"u")if(isSvgDataUrl$1(o)&&isEncodedDataUrl$1(o)){parser$1||(parser$1=new DOMParser);const j=parser$1.parseFromString(o,"text/html").querySelector("svg");return j&&ioniconContent$1.set(o,j.outerHTML),Promise.resolve()}else a=fetch(o).then($=>{if($.ok)return $.text().then(j=>{j&&s!==!1&&(j=validateContent$1(j)),ioniconContent$1.set(o,j||"")});ioniconContent$1.set(o,"")}),requests$1.set(o,a);else return ioniconContent$1.set(o,""),Promise.resolve();return a},iconCss$1=":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:32px;stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}:host(.flip-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.icon-small){font-size:18px !important}:host(.icon-large){font-size:32px !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}",Icon$2=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.iconName=null,this.inheritedAttributes={},this.isVisible=!1,this.mode=getIonMode$1(),this.lazy=!1,this.sanitize=!0,this.hasAriaHidden=()=>{const{el:o}=this;return o.hasAttribute("aria-hidden")&&o.getAttribute("aria-hidden")==="true"}}componentWillLoad(){this.inheritedAttributes=inheritAttributes$1(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}disconnectedCallback(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(o,s,a){if(this.lazy&&typeof window<"u"&&window.IntersectionObserver){const $=this.io=new window.IntersectionObserver(j=>{j[0].isIntersecting&&($.disconnect(),this.io=void 0,a())},{rootMargin:s});$.observe(o)}else a()}loadIcon(){if(this.isVisible){const s=getUrl$1(this);s&&(ioniconContent$1.has(s)?this.svgContent=ioniconContent$1.get(s):getSvgContent$1(s,this.sanitize).then(()=>this.svgContent=ioniconContent$1.get(s)))}const o=this.iconName=getName$1(this.name,this.icon,this.mode,this.ios,this.md);o&&(this.ariaLabel=o.replace(/\-/g," "))}render(){const{iconName:o,ariaLabel:s,el:a,inheritedAttributes:$}=this,j=this.mode||"md",_e=this.flipRtl||o&&(o.indexOf("arrow")>-1||o.indexOf("chevron")>-1)&&this.flipRtl!==!1;return h(Host,Object.assign({"aria-label":s!==void 0&&!this.hasAriaHidden()?s:null,role:"img",class:Object.assign(Object.assign({[j]:!0},createColorClasses$2(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":!!_e&&isRTL$3(a)})},$),this.svgContent?h("div",{class:"icon-inner",innerHTML:this.svgContent}):h("div",{class:"icon-inner"}))}static get assetsDirs(){return["svg"]}get el(){return this}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}}static get style(){return iconCss$1}},[1,"ion-icon",{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,"flip-rtl"],name:[513],src:[1],icon:[8],size:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32],ariaLabel:[32]}]),getIonMode$1=()=>typeof document<"u"&&document.documentElement.getAttribute("mode")||"md",createColorClasses$2=o=>o?{"ion-color":!0,[`ion-color-${o}`]:!0}:null;function defineCustomElement$1n(){if(typeof customElements>"u")return;["ion-icon"].forEach(s=>{switch(s){case"ion-icon":customElements.get(s)||customElements.define(s,Icon$2);break}})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const HapticEngine={getEngine(){var o;const s=window;return s.TapticEngine||((o=s.Capacitor)===null||o===void 0?void 0:o.isPluginAvailable("Haptics"))&&s.Capacitor.Plugins.Haptics},available(){var o;const s=window;return this.getEngine()?((o=s.Capacitor)===null||o===void 0?void 0:o.getPlatform())==="web"?typeof navigator<"u"&&navigator.vibrate!==void 0:!0:!1},isCordova(){return!!window.TapticEngine},isCapacitor(){return!!window.Capacitor},impact(o){const s=this.getEngine();if(!s)return;const a=this.isCapacitor()?o.style.toUpperCase():o.style;s.impact({style:a})},notification(o){const s=this.getEngine();if(!s)return;const a=this.isCapacitor()?o.style.toUpperCase():o.style;s.notification({style:a})},selection(){this.impact({style:"light"})},selectionStart(){const o=this.getEngine();o&&(this.isCapacitor()?o.selectionStart():o.gestureSelectionStart())},selectionChanged(){const o=this.getEngine();o&&(this.isCapacitor()?o.selectionChanged():o.gestureSelectionChanged())},selectionEnd(){const o=this.getEngine();o&&(this.isCapacitor()?o.selectionEnd():o.gestureSelectionEnd())}},hapticAvailable=()=>HapticEngine.available(),hapticSelection=()=>{hapticAvailable()&&HapticEngine.selection()},hapticSelectionStart=()=>{hapticAvailable()&&HapticEngine.selectionStart()},hapticSelectionChanged=()=>{hapticAvailable()&&HapticEngine.selectionChanged()},hapticSelectionEnd=()=>{hapticAvailable()&&HapticEngine.selectionEnd()},hapticImpact=o=>{hapticAvailable()&&HapticEngine.impact(o)};/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const createButtonActiveGesture=(o,s)=>{let a,$;const j=(tt,nt,it)=>{if(typeof document>"u")return;const rt=document.elementFromPoint(tt,nt);if(!rt||!s(rt)){et();return}rt!==a&&(et(),_e(rt,it))},_e=(tt,nt)=>{a=tt,$||($=a);const it=a;writeTask(()=>it.classList.add("ion-activated")),nt()},et=(tt=!1)=>{if(!a)return;const nt=a;writeTask(()=>nt.classList.remove("ion-activated")),tt&&$!==a&&a.click(),a=void 0};return createGesture({el:o,gestureName:"buttonActiveDrag",threshold:0,onStart:tt=>j(tt.currentX,tt.currentY,hapticSelectionStart),onMove:tt=>j(tt.currentX,tt.currentY,hapticSelectionChanged),onEnd:()=>{et(!0),hapticSelectionEnd(),$=void 0}})};/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const hostContext=(o,s)=>s.closest(o)!==null,createColorClasses$1=(o,s)=>typeof o=="string"&&o.length>0?Object.assign({"ion-color":!0,[`ion-color-${o}`]:!0},s):s,getClassList$1=o=>o!==void 0?(Array.isArray(o)?o:o.split(" ")).filter(a=>a!=null).map(a=>a.trim()).filter(a=>a!==""):[],getClassMap=o=>{const s={};return getClassList$1(o).forEach(a=>s[a]=!0),s},SCHEME=/^[a-z][a-z0-9+\-.]*:/,openURL=async(o,s,a,$)=>{if(o!=null&&o[0]!=="#"&&!SCHEME.test(o)){const j=document.querySelector("ion-router");if(j)return s!=null&&s.preventDefault(),j.push(o,a,$)}return!1};/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const backdropIosCss=":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}",backdropMdCss=":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}",Backdrop$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionBackdropTap=createEvent(this,"ionBackdropTap",7),this.blocker=GESTURE_CONTROLLER.createBlocker({disableScroll:!0}),this.visible=!0,this.tappable=!0,this.stopPropagation=!0}connectedCallback(){this.stopPropagation&&this.blocker.block()}disconnectedCallback(){this.blocker.unblock()}onMouseDown(o){this.emitTap(o)}emitTap(o){this.stopPropagation&&(o.preventDefault(),o.stopPropagation()),this.tappable&&this.ionBackdropTap.emit()}render(){const o=getIonMode$2(this);return h(Host,{tabindex:"-1","aria-hidden":"true",class:{[o]:!0,"backdrop-hide":!this.visible,"backdrop-no-tappable":!this.tappable}})}static get style(){return{ios:backdropIosCss,md:backdropMdCss}}},[33,"ion-backdrop",{visible:[4],tappable:[4],stopPropagation:[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]);function defineCustomElement$1m(){if(typeof customElements>"u")return;["ion-backdrop"].forEach(s=>{switch(s){case"ion-backdrop":customElements.get(s)||customElements.define(s,Backdrop$1);break}})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const rippleEffectCss=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:strict;pointer-events:none}:host(.unbounded){contain:layout size style}.ripple-effect{border-radius:50%;position:absolute;background-color:currentColor;color:inherit;contain:strict;opacity:0;-webkit-animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;will-change:transform, opacity;pointer-events:none}.fade-out{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1));-webkit-animation:150ms fadeOutAnimation forwards;animation:150ms fadeOutAnimation forwards}@-webkit-keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@-webkit-keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@-webkit-keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}@keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}",RippleEffect=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.type="bounded"}async addRipple(o,s){return new Promise(a=>{readTask(()=>{const $=this.el.getBoundingClientRect(),j=$.width,_e=$.height,et=Math.sqrt(j*j+_e*_e),tt=Math.max(_e,j),nt=this.unbounded?tt:et+PADDING,it=Math.floor(tt*INITIAL_ORIGIN_SCALE),rt=nt/it;let st=o-$.left,ot=s-$.top;this.unbounded&&(st=j*.5,ot=_e*.5);const at=st-it*.5,lt=ot-it*.5,ct=j*.5-st,ht=_e*.5-ot;writeTask(()=>{const dt=document.createElement("div");dt.classList.add("ripple-effect");const ut=dt.style;ut.top=lt+"px",ut.left=at+"px",ut.width=ut.height=it+"px",ut.setProperty("--final-scale",`${rt}`),ut.setProperty("--translate-end",`${ct}px, ${ht}px`),(this.el.shadowRoot||this.el).appendChild(dt),setTimeout(()=>{a(()=>{removeRipple(dt)})},325)})})})}get unbounded(){return this.type==="unbounded"}render(){const o=getIonMode$2(this);return h(Host,{role:"presentation",class:{[o]:!0,unbounded:this.unbounded}})}get el(){return this}static get style(){return rippleEffectCss}},[1,"ion-ripple-effect",{type:[1],addRipple:[64]}]),removeRipple=o=>{o.classList.add("fade-out"),setTimeout(()=>{o.remove()},200)},PADDING=10,INITIAL_ORIGIN_SCALE=.5;function defineCustomElement$1l(){if(typeof customElements>"u")return;["ion-ripple-effect"].forEach(s=>{switch(s){case"ion-ripple-effect":customElements.get(s)||customElements.define(s,RippleEffect);break}})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const iosEnterAnimation$5=o=>{const s=createAnimation(),a=createAnimation(),$=createAnimation();return a.addElement(o.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),$.addElement(o.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),s.addElement(o).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([a,$])},iosLeaveAnimation$5=o=>{const s=createAnimation(),a=createAnimation(),$=createAnimation();return a.addElement(o.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),$.addElement(o.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),s.addElement(o).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([a,$])},mdEnterAnimation$5=o=>{const s=createAnimation(),a=createAnimation(),$=createAnimation();return a.addElement(o.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),$.addElement(o.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),s.addElement(o).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([a,$])},mdLeaveAnimation$5=o=>{const s=createAnimation(),a=createAnimation(),$=createAnimation();return a.addElement(o.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),$.addElement(o.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),s.addElement(o).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([a,$])},actionSheetIosCss='.sc-ion-action-sheet-ios-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:100%;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-ios-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-ios{left:0;right:0;bottom:0;-webkit-transform:translate3d(0,  100%,  0);transform:translate3d(0,  100%,  0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:100%}.action-sheet-group.sc-ion-action-sheet-ios{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}.action-sheet-group.sc-ion-action-sheet-ios::-webkit-scrollbar{display:none}.action-sheet-group-cancel.sc-ion-action-sheet-ios{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-ios::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-ios{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-ios:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-ios:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--backdrop-opacity:var(--ion-backdrop-opacity, 0.4);--button-background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent;--button-background-activated:var(--ion-text-color, #000);--button-background-activated-opacity:.08;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-background-selected:var(--ion-color-step-150, var(--ion-background-color, #fff));--button-background-selected-opacity:1;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-400, #999999);text-align:center}.action-sheet-wrapper.sc-ion-action-sheet-ios{margin-left:auto;margin-right:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:var(--ion-safe-area-bottom, 0)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-wrapper.sc-ion-action-sheet-ios{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.action-sheet-container.sc-ion-action-sheet-ios{padding-left:8px;padding-right:8px;padding-top:0;padding-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-container.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.action-sheet-group.sc-ion-action-sheet-ios{border-radius:13px;margin-bottom:8px}.action-sheet-group.sc-ion-action-sheet-ios:first-child{margin-top:10px}.action-sheet-group.sc-ion-action-sheet-ios:last-child{margin-bottom:10px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-group.sc-ion-action-sheet-ios{background-color:transparent;-webkit-backdrop-filter:saturate(280%) blur(20px);backdrop-filter:saturate(280%) blur(20px)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-title.sc-ion-action-sheet-ios,.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.sc-ion-action-sheet-ios{background-color:transparent;background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8))), -webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background-image:linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%), linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4) 50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 50%);background-repeat:no-repeat;background-position:top, bottom;background-size:100% calc(100% - 1px), 100% 1px;-webkit-backdrop-filter:saturate(120%);backdrop-filter:saturate(120%)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.ion-activated.sc-ion-action-sheet-ios{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.7);background-image:none}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-cancel.sc-ion-action-sheet-ios{background:var(--button-background-selected)}}.action-sheet-title.sc-ion-action-sheet-ios{background:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, transparent)) bottom/100% 1px no-repeat transparent;background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent}.action-sheet-title.sc-ion-action-sheet-ios{padding-left:10px;padding-right:10px;padding-top:14px;padding-bottom:13px;color:var(--color, var(--ion-color-step-400, #999999));font-size:13px;font-weight:400;text-align:center}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-title.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}}.action-sheet-title.action-sheet-has-sub-title.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-sub-title.sc-ion-action-sheet-ios{padding-left:0;padding-right:0;padding-top:6px;padding-bottom:0;font-size:13px;font-weight:400}.action-sheet-button.sc-ion-action-sheet-ios{padding-left:18px;padding-right:18px;padding-top:18px;padding-bottom:18px;height:56px;font-size:20px;contain:strict}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-button.sc-ion-action-sheet-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:18px;padding-inline-start:18px;-webkit-padding-end:18px;padding-inline-end:18px}}.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{margin-right:0.3em;font-size:28px;pointer-events:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{margin-right:unset;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}.action-sheet-button.sc-ion-action-sheet-ios:last-child{background-image:none}.action-sheet-selected.sc-ion-action-sheet-ios{font-weight:bold}.action-sheet-cancel.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-cancel.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-destructive.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-activated.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-focused.sc-ion-action-sheet-ios{color:var(--ion-color-danger, #eb445a)}@media (any-hover: hover){.action-sheet-destructive.sc-ion-action-sheet-ios:hover{color:var(--ion-color-danger, #eb445a)}}',actionSheetMdCss='.sc-ion-action-sheet-md-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:100%;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-md-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-md{left:0;right:0;bottom:0;-webkit-transform:translate3d(0,  100%,  0);transform:translate3d(0,  100%,  0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-md{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:100%}.action-sheet-group.sc-ion-action-sheet-md{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}.action-sheet-group.sc-ion-action-sheet-md::-webkit-scrollbar{display:none}.action-sheet-group-cancel.sc-ion-action-sheet-md{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-md::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-md{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-md::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-md:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-md:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);--button-background:transparent;--button-background-selected:currentColor;--button-background-selected-opacity:0;--button-background-activated:transparent;--button-background-activated-opacity:0;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-color:var(--ion-color-step-850, #262626);--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54)}.action-sheet-wrapper.sc-ion-action-sheet-md{margin-left:auto;margin-right:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-wrapper.sc-ion-action-sheet-md{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.action-sheet-title.sc-ion-action-sheet-md{padding-left:16px;padding-right:16px;padding-top:20px;padding-bottom:17px;min-height:60px;color:var(--color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54));font-size:16px;text-align:start}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-title.sc-ion-action-sheet-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.action-sheet-sub-title.sc-ion-action-sheet-md{padding-left:0;padding-right:0;padding-top:16px;padding-bottom:0;font-size:14px}.action-sheet-group.sc-ion-action-sheet-md:first-child{padding-top:0}.action-sheet-group.sc-ion-action-sheet-md:last-child{padding-bottom:var(--ion-safe-area-bottom)}.action-sheet-button.sc-ion-action-sheet-md{padding-left:16px;padding-right:16px;padding-top:0;padding-bottom:0;position:relative;height:52px;font-size:16px;text-align:start;contain:strict;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-button.sc-ion-action-sheet-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.action-sheet-icon.sc-ion-action-sheet-md{margin-left:0;margin-right:32px;margin-top:0;margin-bottom:0;color:var(--color);font-size:24px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.action-sheet-icon.sc-ion-action-sheet-md{margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:32px;margin-inline-end:32px}}.action-sheet-button-inner.sc-ion-action-sheet-md{-ms-flex-pack:start;justify-content:flex-start}.action-sheet-selected.sc-ion-action-sheet-md{font-weight:bold}',ActionSheet=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.didPresent=createEvent(this,"ionActionSheetDidPresent",7),this.willPresent=createEvent(this,"ionActionSheetWillPresent",7),this.willDismiss=createEvent(this,"ionActionSheetWillDismiss",7),this.didDismiss=createEvent(this,"ionActionSheetDidDismiss",7),this.presented=!1,this.keyboardClose=!0,this.buttons=[],this.backdropDismiss=!0,this.translucent=!1,this.animated=!0,this.onBackdropTap=()=>{this.dismiss(void 0,BACKDROP)},this.dispatchCancelHandler=o=>{const s=o.detail.role;if(isCancel(s)){const a=this.getButtons().find($=>$.role==="cancel");this.callButtonHandler(a)}}}present(){return present(this,"actionSheetEnter",iosEnterAnimation$5,mdEnterAnimation$5)}connectedCallback(){prepareOverlay(this.el)}dismiss(o,s){return dismiss(this,o,s,"actionSheetLeave",iosLeaveAnimation$5,mdLeaveAnimation$5)}onDidDismiss(){return eventMethod(this.el,"ionActionSheetDidDismiss")}onWillDismiss(){return eventMethod(this.el,"ionActionSheetWillDismiss")}async buttonClick(o){const s=o.role;return isCancel(s)?this.dismiss(o.data,s):await this.callButtonHandler(o)?this.dismiss(o.data,o.role):Promise.resolve()}async callButtonHandler(o){return!(o&&await safeCall(o.handler)===!1)}getButtons(){return this.buttons.map(o=>typeof o=="string"?{text:o}:o)}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}componentDidLoad(){const{groupEl:o,wrapperEl:s}=this;this.gesture||getIonMode$2(this)==="md"||!s||!o||readTask(()=>{o.scrollHeight>o.clientHeight||(this.gesture=createButtonActiveGesture(s,$=>$.classList.contains("action-sheet-button")),this.gesture.enable(!0))})}render(){const{header:o,htmlAttributes:s,overlayIndex:a}=this,$=getIonMode$2(this),j=this.getButtons(),_e=j.find(nt=>nt.role==="cancel"),et=j.filter(nt=>nt.role!=="cancel"),tt=`action-sheet-${a}-header`;return h(Host,Object.assign({role:"dialog","aria-modal":"true","aria-labelledby":o!==void 0?tt:null,tabindex:"-1"},s,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign(Object.assign({[$]:!0},getClassMap(this.cssClass)),{"overlay-hidden":!0,"action-sheet-translucent":this.translucent}),onIonActionSheetWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),h("ion-backdrop",{tappable:this.backdropDismiss}),h("div",{tabindex:"0"}),h("div",{class:"action-sheet-wrapper ion-overlay-wrapper",ref:nt=>this.wrapperEl=nt},h("div",{class:"action-sheet-container"},h("div",{class:"action-sheet-group",ref:nt=>this.groupEl=nt},o!==void 0&&h("div",{id:tt,class:{"action-sheet-title":!0,"action-sheet-has-sub-title":this.subHeader!==void 0}},o,this.subHeader&&h("div",{class:"action-sheet-sub-title"},this.subHeader)),et.map(nt=>h("button",{type:"button",id:nt.id,class:buttonClass$2(nt),onClick:()=>this.buttonClick(nt)},h("span",{class:"action-sheet-button-inner"},nt.icon&&h("ion-icon",{icon:nt.icon,"aria-hidden":"true",lazy:!1,class:"action-sheet-icon"}),nt.text),$==="md"&&h("ion-ripple-effect",null)))),_e&&h("div",{class:"action-sheet-group action-sheet-group-cancel"},h("button",{type:"button",class:buttonClass$2(_e),onClick:()=>this.buttonClick(_e)},h("span",{class:"action-sheet-button-inner"},_e.icon&&h("ion-icon",{icon:_e.icon,"aria-hidden":"true",lazy:!1,class:"action-sheet-icon"}),_e.text),$==="md"&&h("ion-ripple-effect",null))))),h("div",{tabindex:"0"}))}get el(){return this}static get style(){return{ios:actionSheetIosCss,md:actionSheetMdCss}}},[34,"ion-action-sheet",{overlayIndex:[2,"overlay-index"],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],buttons:[16],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],header:[1],subHeader:[1,"sub-header"],translucent:[4],animated:[4],htmlAttributes:[16],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64]}]),buttonClass$2=o=>Object.assign({"action-sheet-button":!0,"ion-activatable":!0,"ion-focusable":!0,[`action-sheet-${o.role}`]:o.role!==void 0},getClassMap(o.cssClass));function defineCustomElement$1k(){if(typeof customElements>"u")return;["ion-action-sheet","ion-backdrop","ion-icon","ion-ripple-effect"].forEach(s=>{switch(s){case"ion-action-sheet":customElements.get(s)||customElements.define(s,ActionSheet);break;case"ion-backdrop":customElements.get(s)||defineCustomElement$1m();break;case"ion-icon":customElements.get(s)||defineCustomElement$1n();break;case"ion-ripple-effect":customElements.get(s)||defineCustomElement$1l();break}})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const defineCustomElement$1j=defineCustomElement$1k;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const iosEnterAnimation$4=o=>{const s=createAnimation(),a=createAnimation(),$=createAnimation();return a.addElement(o.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),$.addElement(o.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:"0.01",transform:"scale(1.1)"},{offset:1,opacity:"1",transform:"scale(1)"}]),s.addElement(o).easing("ease-in-out").duration(200).addAnimation([a,$])},iosLeaveAnimation$4=o=>{const s=createAnimation(),a=createAnimation(),$=createAnimation();return a.addElement(o.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),$.addElement(o.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:.99,transform:"scale(1)"},{offset:1,opacity:0,transform:"scale(0.9)"}]),s.addElement(o).easing("ease-in-out").duration(200).addAnimation([a,$])},mdEnterAnimation$4=o=>{const s=createAnimation(),a=createAnimation(),$=createAnimation();return a.addElement(o.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),$.addElement(o.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:"0.01",transform:"scale(0.9)"},{offset:1,opacity:"1",transform:"scale(1)"}]),s.addElement(o).easing("ease-in-out").duration(150).addAnimation([a,$])},mdLeaveAnimation$4=o=>{const s=createAnimation(),a=createAnimation(),$=createAnimation();return a.addElement(o.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),$.addElement(o.querySelector(".alert-wrapper")).fromTo("opacity",.99,0),s.addElement(o).easing("ease-in-out").duration(150).addAnimation([a,$])},alertIosCss=".sc-ion-alert-ios-h{--min-width:250px;--width:auto;--min-height:auto;--height:auto;--max-height:90%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-alert-ios-h{display:none}.alert-top.sc-ion-alert-ios-h{padding-top:50px;-ms-flex-align:start;align-items:flex-start}.alert-wrapper.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:content;opacity:0;z-index:10}.alert-title.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-sub-title.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-weight:normal}.alert-message.sc-ion-alert-ios{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior-y:contain}.alert-checkbox-group.sc-ion-alert-ios::-webkit-scrollbar,.alert-radio-group.sc-ion-alert-ios::-webkit-scrollbar,.alert-message.sc-ion-alert-ios::-webkit-scrollbar{display:none}.alert-input.sc-ion-alert-ios{padding-left:0;padding-right:0;padding-top:10px;padding-bottom:10px;width:100%;border:0;background:inherit;font:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.alert-button-group.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}.alert-button-group-vertical.sc-ion-alert-ios{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.alert-button.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;border:0;font-size:14px;line-height:20px;z-index:0}.alert-button.ion-focused.sc-ion-alert-ios,.alert-tappable.ion-focused.sc-ion-alert-ios{background:var(--ion-color-step-100, #e6e6e6)}.alert-button-inner.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.alert-input-disabled.sc-ion-alert-ios,.alert-checkbox-button-disabled.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios,.alert-radio-button-disabled.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios{cursor:default;opacity:0.5;pointer-events:none}.alert-tappable.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;width:100%;border:0;background:transparent;font-size:inherit;line-height:initial;text-align:start;-webkit-appearance:none;-moz-appearance:none;appearance:none;contain:strict}.alert-button.sc-ion-alert-ios,.alert-checkbox.sc-ion-alert-ios,.alert-input.sc-ion-alert-ios,.alert-radio.sc-ion-alert-ios{outline:none}.alert-radio-icon.sc-ion-alert-ios,.alert-checkbox-icon.sc-ion-alert-ios,.alert-checkbox-inner.sc-ion-alert-ios{-webkit-box-sizing:border-box;box-sizing:border-box}textarea.alert-input.sc-ion-alert-ios{min-height:37px;resize:none}.sc-ion-alert-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--max-width:270px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.3);font-size:14px}.alert-wrapper.sc-ion-alert-ios{border-radius:13px;-webkit-box-shadow:none;box-shadow:none;overflow:hidden}.alert-button.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios{pointer-events:none}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.alert-translucent.sc-ion-alert-ios-h .alert-wrapper.sc-ion-alert-ios{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}.alert-head.sc-ion-alert-ios{padding-left:16px;padding-right:16px;padding-top:12px;padding-bottom:7px;text-align:center}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-head.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.alert-title.sc-ion-alert-ios{margin-top:8px;color:var(--ion-text-color, #000);font-size:17px;font-weight:600}.alert-sub-title.sc-ion-alert-ios{color:var(--ion-color-step-600, #666666);font-size:14px}.alert-message.sc-ion-alert-ios,.alert-input-group.sc-ion-alert-ios{padding-left:16px;padding-right:16px;padding-top:0;padding-bottom:21px;color:var(--ion-text-color, #000);font-size:13px;text-align:center}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-message.sc-ion-alert-ios,.alert-input-group.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.alert-message.sc-ion-alert-ios{max-height:240px}.alert-message.sc-ion-alert-ios:empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:12px}.alert-input.sc-ion-alert-ios{border-radius:4px;margin-top:10px;padding-left:6px;padding-right:6px;padding-top:6px;padding-bottom:6px;border:0.55px solid var(--ion-color-step-250, #bfbfbf);background-color:var(--ion-background-color, #fff);-webkit-appearance:none;-moz-appearance:none;appearance:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-input.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:6px;padding-inline-start:6px;-webkit-padding-end:6px;padding-inline-end:6px}}.alert-input.sc-ion-alert-ios::-webkit-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-moz-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios:-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-ms-clear{display:none}.alert-radio-group.sc-ion-alert-ios,.alert-checkbox-group.sc-ion-alert-ios{-ms-scroll-chaining:none;overscroll-behavior:contain;max-height:240px;border-top:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);overflow-y:auto;-webkit-overflow-scrolling:touch}.alert-tappable.sc-ion-alert-ios{height:44px}.alert-radio-label.sc-ion-alert-ios{padding-left:13px;padding-right:13px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;-ms-flex-order:0;order:0;color:var(--ion-text-color, #000);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-radio-label.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px}}[aria-checked=true].sc-ion-alert-ios .alert-radio-label.sc-ion-alert-ios{color:var(--ion-color-primary, #3880ff)}.alert-radio-icon.sc-ion-alert-ios{position:relative;-ms-flex-order:1;order:1;min-width:30px}[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:7px;top:-7px;position:absolute;width:6px;height:12px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-color-primary, #3880ff)}[dir=rtl].sc-ion-alert-ios [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios,[dir=rtl].sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios,[dir=rtl] .sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:unset;right:unset;right:7px}.alert-checkbox-label.sc-ion-alert-ios{padding-left:13px;padding-right:13px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;color:var(--ion-text-color, #000);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-checkbox-label.sc-ion-alert-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px}}.alert-checkbox-icon.sc-ion-alert-ios{border-radius:50%;margin-left:16px;margin-right:6px;margin-top:10px;margin-bottom:10px;position:relative;width:24px;height:24px;border-width:1px;border-style:solid;border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));background-color:var(--ion-item-background, var(--ion-background-color, #fff));contain:strict}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-checkbox-icon.sc-ion-alert-ios{margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:6px;margin-inline-end:6px}}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-icon.sc-ion-alert-ios{border-color:var(--ion-color-primary, #3880ff);background-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:9px;top:4px;position:absolute;width:5px;height:12px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:1px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-background-color, #fff)}[dir=rtl].sc-ion-alert-ios [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios,[dir=rtl].sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios,[dir=rtl] .sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:unset;right:unset;right:9px}.alert-button-group.sc-ion-alert-ios{margin-right:-0.55px;-ms-flex-wrap:wrap;flex-wrap:wrap}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-button-group.sc-ion-alert-ios{margin-right:unset;-webkit-margin-end:-0.55px;margin-inline-end:-0.55px}}.alert-button.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:0;-ms-flex:1 1 auto;flex:1 1 auto;min-width:50%;height:44px;border-top:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);background-color:transparent;color:var(--ion-color-primary, #3880ff);font-size:17px;overflow:hidden}[dir=rtl].sc-ion-alert-ios .alert-button.sc-ion-alert-ios:first-child,[dir=rtl].sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:first-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:first-child{border-right:0}.alert-button.sc-ion-alert-ios:last-child{border-right:0;font-weight:bold}[dir=rtl].sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child,[dir=rtl].sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:last-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:last-child{border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}.alert-button.ion-activated.sc-ion-alert-ios{background-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1)}.alert-button-role-destructive.sc-ion-alert-ios,.alert-button-role-destructive.ion-activated.sc-ion-alert-ios,.alert-button-role-destructive.ion-focused.sc-ion-alert-ios{color:var(--ion-color-danger, #eb445a)}",alertMdCss=".sc-ion-alert-md-h{--min-width:250px;--width:auto;--min-height:auto;--height:auto;--max-height:90%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-alert-md-h{display:none}.alert-top.sc-ion-alert-md-h{padding-top:50px;-ms-flex-align:start;align-items:flex-start}.alert-wrapper.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:content;opacity:0;z-index:10}.alert-title.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-sub-title.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-weight:normal}.alert-message.sc-ion-alert-md{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior-y:contain}.alert-checkbox-group.sc-ion-alert-md::-webkit-scrollbar,.alert-radio-group.sc-ion-alert-md::-webkit-scrollbar,.alert-message.sc-ion-alert-md::-webkit-scrollbar{display:none}.alert-input.sc-ion-alert-md{padding-left:0;padding-right:0;padding-top:10px;padding-bottom:10px;width:100%;border:0;background:inherit;font:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.alert-button-group.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}.alert-button-group-vertical.sc-ion-alert-md{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.alert-button.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;border:0;font-size:14px;line-height:20px;z-index:0}.alert-button.ion-focused.sc-ion-alert-md,.alert-tappable.ion-focused.sc-ion-alert-md{background:var(--ion-color-step-100, #e6e6e6)}.alert-button-inner.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.alert-input-disabled.sc-ion-alert-md,.alert-checkbox-button-disabled.sc-ion-alert-md .alert-button-inner.sc-ion-alert-md,.alert-radio-button-disabled.sc-ion-alert-md .alert-button-inner.sc-ion-alert-md{cursor:default;opacity:0.5;pointer-events:none}.alert-tappable.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;width:100%;border:0;background:transparent;font-size:inherit;line-height:initial;text-align:start;-webkit-appearance:none;-moz-appearance:none;appearance:none;contain:strict}.alert-button.sc-ion-alert-md,.alert-checkbox.sc-ion-alert-md,.alert-input.sc-ion-alert-md,.alert-radio.sc-ion-alert-md{outline:none}.alert-radio-icon.sc-ion-alert-md,.alert-checkbox-icon.sc-ion-alert-md,.alert-checkbox-inner.sc-ion-alert-md{-webkit-box-sizing:border-box;box-sizing:border-box}textarea.alert-input.sc-ion-alert-md{min-height:37px;resize:none}.sc-ion-alert-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--max-width:280px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);font-size:14px}.alert-wrapper.sc-ion-alert-md{border-radius:4px;-webkit-box-shadow:0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12);box-shadow:0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12)}.alert-head.sc-ion-alert-md{padding-left:23px;padding-right:23px;padding-top:20px;padding-bottom:15px;text-align:start}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-head.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:23px;padding-inline-start:23px;-webkit-padding-end:23px;padding-inline-end:23px}}.alert-title.sc-ion-alert-md{color:var(--ion-text-color, #000);font-size:20px;font-weight:500}.alert-sub-title.sc-ion-alert-md{color:var(--ion-text-color, #000);font-size:16px}.alert-message.sc-ion-alert-md,.alert-input-group.sc-ion-alert-md{padding-left:24px;padding-right:24px;padding-top:20px;padding-bottom:20px;color:var(--ion-color-step-550, #737373)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-message.sc-ion-alert-md,.alert-input-group.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:24px;padding-inline-start:24px;-webkit-padding-end:24px;padding-inline-end:24px}}.alert-message.sc-ion-alert-md{max-height:266px;font-size:16px}.alert-message.sc-ion-alert-md:empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-head.sc-ion-alert-md+.alert-message.sc-ion-alert-md{padding-top:0}.alert-input.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;border-bottom:1px solid var(--ion-color-step-150, #d9d9d9);color:var(--ion-text-color, #000)}.alert-input.sc-ion-alert-md::-webkit-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-moz-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md:-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-ms-clear{display:none}.alert-input.sc-ion-alert-md:focus{margin-bottom:4px;border-bottom:2px solid var(--ion-color-primary, #3880ff)}.alert-radio-group.sc-ion-alert-md,.alert-checkbox-group.sc-ion-alert-md{position:relative;max-height:266px;border-top:1px solid var(--ion-color-step-150, #d9d9d9);border-bottom:1px solid var(--ion-color-step-150, #d9d9d9);overflow:auto}.alert-tappable.sc-ion-alert-md{position:relative;height:48px;overflow:hidden}.alert-radio-label.sc-ion-alert-md{padding-left:52px;padding-right:26px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;color:var(--ion-color-step-850, #262626);font-size:16px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-radio-label.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:52px;padding-inline-start:52px;-webkit-padding-end:26px;padding-inline-end:26px}}.alert-radio-icon.sc-ion-alert-md{left:26px;top:0;border-radius:50%;display:block;position:relative;width:20px;height:20px;border-width:2px;border-style:solid;border-color:var(--ion-color-step-550, #737373)}[dir=rtl].sc-ion-alert-md .alert-radio-icon.sc-ion-alert-md,[dir=rtl].sc-ion-alert-md-h .alert-radio-icon.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-radio-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}.alert-radio-inner.sc-ion-alert-md{left:3px;top:3px;border-radius:50%;position:absolute;width:10px;height:10px;-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--ion-color-primary, #3880ff)}[dir=rtl].sc-ion-alert-md .alert-radio-inner.sc-ion-alert-md,[dir=rtl].sc-ion-alert-md-h .alert-radio-inner.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-radio-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}[aria-checked=true].sc-ion-alert-md .alert-radio-label.sc-ion-alert-md{color:var(--ion-color-step-850, #262626)}[aria-checked=true].sc-ion-alert-md .alert-radio-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-md .alert-radio-inner.sc-ion-alert-md{-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}.alert-checkbox-label.sc-ion-alert-md{padding-left:53px;padding-right:26px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;color:var(--ion-color-step-850, #262626);font-size:16px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-checkbox-label.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:53px;padding-inline-start:53px;-webkit-padding-end:26px;padding-inline-end:26px}}.alert-checkbox-icon.sc-ion-alert-md{left:26px;top:0;border-radius:2px;position:relative;width:16px;height:16px;border-width:2px;border-style:solid;border-color:var(--ion-color-step-550, #737373);contain:strict}[dir=rtl].sc-ion-alert-md .alert-checkbox-icon.sc-ion-alert-md,[dir=rtl].sc-ion-alert-md-h .alert-checkbox-icon.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-checkbox-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}[aria-checked=true].sc-ion-alert-md .alert-checkbox-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #3880ff);background-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:3px;top:0;position:absolute;width:6px;height:10px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-color-primary-contrast, #fff)}[dir=rtl].sc-ion-alert-md [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md,[dir=rtl].sc-ion-alert-md-h [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}.alert-button-group.sc-ion-alert-md{padding-left:8px;padding-right:8px;padding-top:8px;padding-bottom:8px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse;-ms-flex-pack:end;justify-content:flex-end}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-button-group.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.alert-button.sc-ion-alert-md{border-radius:2px;margin-left:0;margin-right:8px;margin-top:0;margin-bottom:0;padding-left:10px;padding-right:10px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;color:var(--ion-color-primary, #3880ff);font-weight:500;text-align:end;text-transform:uppercase;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-button.sc-ion-alert-md{margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.alert-button.sc-ion-alert-md{padding-left:unset;padding-right:unset;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}}.alert-button-inner.sc-ion-alert-md{-ms-flex-pack:end;justify-content:flex-end}",Alert=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.didPresent=createEvent(this,"ionAlertDidPresent",7),this.willPresent=createEvent(this,"ionAlertWillPresent",7),this.willDismiss=createEvent(this,"ionAlertWillDismiss",7),this.didDismiss=createEvent(this,"ionAlertDidDismiss",7),this.customHTMLEnabled=config$1.get("innerHTMLTemplatesEnabled",ENABLE_HTML_CONTENT_DEFAULT),this.processedInputs=[],this.processedButtons=[],this.presented=!1,this.keyboardClose=!0,this.buttons=[],this.inputs=[],this.backdropDismiss=!0,this.translucent=!1,this.animated=!0,this.onBackdropTap=()=>{this.dismiss(void 0,BACKDROP)},this.dispatchCancelHandler=o=>{const s=o.detail.role;if(isCancel(s)){const a=this.processedButtons.find($=>$.role==="cancel");this.callButtonHandler(a)}}}onKeydown(o){if(!new Set(this.processedInputs.map(et=>et.type)).has("radio")||o.target&&!this.el.contains(o.target)||o.target.classList.contains("alert-button"))return;const a=this.el.querySelectorAll(".alert-radio"),$=Array.from(a).filter(et=>!et.disabled),j=$.findIndex(et=>et.id===o.target.id);let _e;if(["ArrowDown","ArrowRight"].includes(o.key)&&(_e=j===$.length-1?$[0]:$[j+1]),["ArrowUp","ArrowLeft"].includes(o.key)&&(_e=j===0?$[$.length-1]:$[j-1]),_e&&$.includes(_e)){const et=this.processedInputs.find(tt=>tt.id===(_e==null?void 0:_e.id));et&&(this.rbClick(et),_e.focus())}}buttonsChanged(){const o=this.buttons;this.processedButtons=o.map(s=>typeof s=="string"?{text:s,role:s.toLowerCase()==="cancel"?"cancel":void 0}:s)}inputsChanged(){const o=this.inputs,s=o.find(_e=>!_e.disabled),$=o.find(_e=>_e.checked&&!_e.disabled)||s,j=new Set(o.map(_e=>_e.type));j.has("checkbox")&&j.has("radio")&&console.warn(`Alert cannot mix input types: ${Array.from(j.values()).join("/")}. Please see alert docs for more info.`),this.inputType=j.values().next().value,this.processedInputs=o.map((_e,et)=>{var tt;return{type:_e.type||"text",name:_e.name||`${et}`,placeholder:_e.placeholder||"",value:_e.value,label:_e.label,checked:!!_e.checked,disabled:!!_e.disabled,id:_e.id||`alert-input-${this.overlayIndex}-${et}`,handler:_e.handler,min:_e.min,max:_e.max,cssClass:(tt=_e.cssClass)!==null&&tt!==void 0?tt:"",attributes:_e.attributes||{},tabindex:_e.type==="radio"&&_e!==$?-1:0}})}connectedCallback(){prepareOverlay(this.el)}componentWillLoad(){this.inputsChanged(),this.buttonsChanged()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}componentDidLoad(){this.gesture||getIonMode$2(this)==="md"||!this.wrapperEl||(this.gesture=createButtonActiveGesture(this.wrapperEl,o=>o.classList.contains("alert-button")),this.gesture.enable(!0))}present(){return present(this,"alertEnter",iosEnterAnimation$4,mdEnterAnimation$4)}dismiss(o,s){return dismiss(this,o,s,"alertLeave",iosLeaveAnimation$4,mdLeaveAnimation$4)}onDidDismiss(){return eventMethod(this.el,"ionAlertDidDismiss")}onWillDismiss(){return eventMethod(this.el,"ionAlertWillDismiss")}rbClick(o){for(const s of this.processedInputs)s.checked=s===o,s.tabindex=s===o?0:-1;this.activeId=o.id,safeCall(o.handler,o),forceUpdate(this)}cbClick(o){o.checked=!o.checked,safeCall(o.handler,o),forceUpdate(this)}async buttonClick(o){const s=o.role,a=this.getValues();if(isCancel(s))return this.dismiss({values:a},s);const $=await this.callButtonHandler(o,a);return $!==!1?this.dismiss(Object.assign({values:a},$),o.role):!1}async callButtonHandler(o,s){if(o!=null&&o.handler){const a=await safeCall(o.handler,s);if(a===!1)return!1;if(typeof a=="object")return a}return{}}getValues(){if(this.processedInputs.length===0)return;if(this.inputType==="radio"){const s=this.processedInputs.find(a=>!!a.checked);return s?s.value:void 0}if(this.inputType==="checkbox")return this.processedInputs.filter(s=>s.checked).map(s=>s.value);const o={};return this.processedInputs.forEach(s=>{o[s.name]=s.value||""}),o}renderAlertInputs(){switch(this.inputType){case"checkbox":return this.renderCheckbox();case"radio":return this.renderRadio();default:return this.renderInput()}}renderCheckbox(){const o=this.processedInputs,s=getIonMode$2(this);return o.length===0?null:h("div",{class:"alert-checkbox-group"},o.map(a=>h("button",{type:"button",onClick:()=>this.cbClick(a),"aria-checked":`${a.checked}`,id:a.id,disabled:a.disabled,tabIndex:a.tabindex,role:"checkbox",class:Object.assign(Object.assign({},getClassMap(a.cssClass)),{"alert-tappable":!0,"alert-checkbox":!0,"alert-checkbox-button":!0,"ion-focusable":!0,"alert-checkbox-button-disabled":a.disabled||!1})},h("div",{class:"alert-button-inner"},h("div",{class:"alert-checkbox-icon"},h("div",{class:"alert-checkbox-inner"})),h("div",{class:"alert-checkbox-label"},a.label)),s==="md"&&h("ion-ripple-effect",null))))}renderRadio(){const o=this.processedInputs;return o.length===0?null:h("div",{class:"alert-radio-group",role:"radiogroup","aria-activedescendant":this.activeId},o.map(s=>h("button",{type:"button",onClick:()=>this.rbClick(s),"aria-checked":`${s.checked}`,disabled:s.disabled,id:s.id,tabIndex:s.tabindex,class:Object.assign(Object.assign({},getClassMap(s.cssClass)),{"alert-radio-button":!0,"alert-tappable":!0,"alert-radio":!0,"ion-focusable":!0,"alert-radio-button-disabled":s.disabled||!1}),role:"radio"},h("div",{class:"alert-button-inner"},h("div",{class:"alert-radio-icon"},h("div",{class:"alert-radio-inner"})),h("div",{class:"alert-radio-label"},s.label)))))}renderInput(){const o=this.processedInputs;return o.length===0?null:h("div",{class:"alert-input-group"},o.map(s=>{var a,$,j,_e;return s.type==="textarea"?h("div",{class:"alert-input-wrapper"},h("textarea",Object.assign({placeholder:s.placeholder,value:s.value,id:s.id,tabIndex:s.tabindex},s.attributes,{disabled:($=(a=s.attributes)===null||a===void 0?void 0:a.disabled)!==null&&$!==void 0?$:s.disabled,class:inputClass(s),onInput:et=>{var tt;s.value=et.target.value,!((tt=s.attributes)===null||tt===void 0)&&tt.onInput&&s.attributes.onInput(et)}}))):h("div",{class:"alert-input-wrapper"},h("input",Object.assign({placeholder:s.placeholder,type:s.type,min:s.min,max:s.max,value:s.value,id:s.id,tabIndex:s.tabindex},s.attributes,{disabled:(_e=(j=s.attributes)===null||j===void 0?void 0:j.disabled)!==null&&_e!==void 0?_e:s.disabled,class:inputClass(s),onInput:et=>{var tt;s.value=et.target.value,!((tt=s.attributes)===null||tt===void 0)&&tt.onInput&&s.attributes.onInput(et)}})))}))}renderAlertButtons(){const o=this.processedButtons,s=getIonMode$2(this),a={"alert-button-group":!0,"alert-button-group-vertical":o.length>2};return h("div",{class:a},o.map($=>h("button",{type:"button",id:$.id,class:buttonClass$1($),tabIndex:0,onClick:()=>this.buttonClick($)},h("span",{class:"alert-button-inner"},$.text),s==="md"&&h("ion-ripple-effect",null))))}renderAlertMessage(o){const{customHTMLEnabled:s,message:a}=this;return s?h("div",{id:o,class:"alert-message",innerHTML:sanitizeDOMString(a)}):h("div",{id:o,class:"alert-message"},a)}render(){const{overlayIndex:o,header:s,subHeader:a,message:$,htmlAttributes:j}=this,_e=getIonMode$2(this),et=`alert-${o}-hdr`,tt=`alert-${o}-sub-hdr`,nt=`alert-${o}-msg`,it=this.inputs.length>0||this.buttons.length>0?"alertdialog":"alert";return h(Host,Object.assign({role:it,"aria-modal":"true","aria-labelledby":s?et:a?tt:null,"aria-describedby":$!==void 0?nt:null,tabindex:"-1"},j,{style:{zIndex:`${2e4+o}`},class:Object.assign(Object.assign({},getClassMap(this.cssClass)),{[_e]:!0,"overlay-hidden":!0,"alert-translucent":this.translucent}),onIonAlertWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),h("ion-backdrop",{tappable:this.backdropDismiss}),h("div",{tabindex:"0"}),h("div",{class:"alert-wrapper ion-overlay-wrapper",ref:st=>this.wrapperEl=st},h("div",{class:"alert-head"},s&&h("h2",{id:et,class:"alert-title"},s),a&&h("h2",{id:tt,class:"alert-sub-title"},a)),this.renderAlertMessage(nt),this.renderAlertInputs(),this.renderAlertButtons()),h("div",{tabindex:"0"}))}get el(){return this}static get watchers(){return{buttons:["buttonsChanged"],inputs:["inputsChanged"]}}static get style(){return{ios:alertIosCss,md:alertMdCss}}},[34,"ion-alert",{overlayIndex:[2,"overlay-index"],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],cssClass:[1,"css-class"],header:[1],subHeader:[1,"sub-header"],message:[1],buttons:[16],inputs:[1040],backdropDismiss:[4,"backdrop-dismiss"],translucent:[4],animated:[4],htmlAttributes:[16],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64]},[[4,"keydown","onKeydown"]]]),inputClass=o=>{var s,a,$;return Object.assign(Object.assign({"alert-input":!0,"alert-input-disabled":((a=(s=o.attributes)===null||s===void 0?void 0:s.disabled)!==null&&a!==void 0?a:o.disabled)||!1},getClassMap(o.cssClass)),getClassMap(o.attributes?($=o.attributes.class)===null||$===void 0?void 0:$.toString():""))},buttonClass$1=o=>Object.assign({"alert-button":!0,"ion-focusable":!0,"ion-activatable":!0,[`alert-button-role-${o.role}`]:o.role!==void 0},getClassMap(o.cssClass));function defineCustomElement$1i(){if(typeof customElements>"u")return;["ion-alert","ion-backdrop","ion-ripple-effect"].forEach(s=>{switch(s){case"ion-alert":customElements.get(s)||customElements.define(s,Alert);break;case"ion-backdrop":customElements.get(s)||defineCustomElement$1m();break;case"ion-ripple-effect":customElements.get(s)||defineCustomElement$1l();break}})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const defineCustomElement$1h=defineCustomElement$1i,appCss="html.plt-mobile ion-app{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html.plt-mobile ion-app [contenteditable]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}ion-app.force-statusbar-padding{--ion-safe-area-top:20px}",App$2=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost()}componentDidLoad(){rIC(async()=>{const o=isPlatform$1(window,"hybrid");if(config$1.getBoolean("_testing")||__vitePreload(()=>import("./index9-DKowLo5F.js"),[]).then(a=>a.startTapClick(config$1)),config$1.getBoolean("statusTap",o)&&__vitePreload(()=>import("./status-tap-CMxwmb6I.js"),[]).then(a=>a.startStatusTap()),config$1.getBoolean("inputShims",needInputShims())){const a=isPlatform$1(window,"ios")?"ios":"android";__vitePreload(()=>import("./input-shims-28DO47ax.js"),[]).then($=>$.startInputShims(config$1,a))}const s=await __vitePreload(()=>Promise.resolve().then(()=>hardwareBackButton),void 0);config$1.getBoolean("hardwareBackButton",o)?s.startHardwareBackButton():s.blockHardwareBackButton(),typeof window<"u"&&__vitePreload(()=>Promise.resolve().then(()=>keyboard),void 0).then(a=>a.startKeyboardAssist(window)),__vitePreload(()=>Promise.resolve().then(()=>focusVisible),void 0).then(a=>this.focusVisible=a.startFocusVisible())})}async setFocus(o){this.focusVisible&&this.focusVisible.setFocus(o)}render(){const o=getIonMode$2(this);return h(Host,{class:{[o]:!0,"ion-page":!0,"force-statusbar-padding":config$1.getBoolean("_forceStatusbarPadding")}})}get el(){return this}static get style(){return appCss}},[0,"ion-app",{setFocus:[64]}]),needInputShims=()=>!!(isPlatform$1(window,"ios")&&isPlatform$1(window,"mobile")||isPlatform$1(window,"android")&&isPlatform$1(window,"mobileweb")),rIC=o=>{"requestIdleCallback"in window?window.requestIdleCallback(o):setTimeout(o,32)};function defineCustomElement$1$Q(){if(typeof customElements>"u")return;["ion-app"].forEach(s=>{switch(s){case"ion-app":customElements.get(s)||customElements.define(s,App$2);break}})}const defineCustomElement$1g=defineCustomElement$1$Q;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const avatarIosCss=":host{border-radius:var(--border-radius);display:block}::slotted(ion-img),::slotted(img){border-radius:var(--border-radius);width:100%;height:100%;-o-object-fit:cover;object-fit:cover;overflow:hidden}:host{--border-radius:50%;width:48px;height:48px}",avatarMdCss=":host{border-radius:var(--border-radius);display:block}::slotted(ion-img),::slotted(img){border-radius:var(--border-radius);width:100%;height:100%;-o-object-fit:cover;object-fit:cover;overflow:hidden}:host{--border-radius:50%;width:64px;height:64px}",Avatar=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){return h(Host,{class:getIonMode$2(this)},h("slot",null))}static get style(){return{ios:avatarIosCss,md:avatarMdCss}}},[33,"ion-avatar"]);function defineCustomElement$1$P(){if(typeof customElements>"u")return;["ion-avatar"].forEach(s=>{switch(s){case"ion-avatar":customElements.get(s)||customElements.define(s,Avatar);break}})}const defineCustomElement$1f=defineCustomElement$1$P;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const backButtonIosCss=':host{--background:transparent;--color-focused:currentColor;--color-hover:currentColor;--icon-margin-top:0;--icon-margin-bottom:0;--icon-padding-top:0;--icon-padding-end:0;--icon-padding-bottom:0;--icon-padding-start:0;--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--min-width:auto;--min-height:auto;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--opacity:1;--ripple-color:currentColor;--transition:background-color, opacity 100ms linear;display:none;min-width:var(--min-width);min-height:var(--min-height);color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-font-kerning:none;font-kerning:none}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.show-back-button){display:block}:host(.back-button-disabled){cursor:default;opacity:0.5;pointer-events:none}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:var(--margin-start);margin-right:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;opacity:var(--opacity);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.button-native{margin-left:unset;margin-right:unset;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end)}}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}ion-icon{padding-left:var(--icon-padding-start);padding-right:var(--icon-padding-end);padding-top:var(--icon-padding-top);padding-bottom:var(--icon-padding-bottom);margin-left:var(--icon-margin-start);margin-right:var(--icon-margin-end);margin-top:var(--icon-margin-top);margin-bottom:var(--icon-margin-bottom);display:inherit;font-size:var(--icon-font-size);font-weight:var(--icon-font-weight);pointer-events:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){ion-icon{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--icon-padding-start);padding-inline-start:var(--icon-padding-start);-webkit-padding-end:var(--icon-padding-end);padding-inline-end:var(--icon-padding-end)}}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){ion-icon{margin-left:unset;margin-right:unset;-webkit-margin-start:var(--icon-margin-start);margin-inline-start:var(--icon-margin-start);-webkit-margin-end:var(--icon-margin-end);margin-inline-end:var(--icon-margin-end)}}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-hover:transparent;--background-hover-opacity:1;--background-focused:currentColor;--background-focused-opacity:.1;--border-radius:4px;--color:var(--ion-color-primary, #3880ff);--icon-margin-end:-5px;--icon-margin-start:-4px;--icon-font-size:1.85em;--min-height:32px;font-size:17px}.button-native{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:visible;z-index:99}:host(.ion-activated) .button-native{opacity:0.4}@media (any-hover: hover){:host(:hover){opacity:0.6}}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}',backButtonMdCss=':host{--background:transparent;--color-focused:currentColor;--color-hover:currentColor;--icon-margin-top:0;--icon-margin-bottom:0;--icon-padding-top:0;--icon-padding-end:0;--icon-padding-bottom:0;--icon-padding-start:0;--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--min-width:auto;--min-height:auto;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--opacity:1;--ripple-color:currentColor;--transition:background-color, opacity 100ms linear;display:none;min-width:var(--min-width);min-height:var(--min-height);color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-font-kerning:none;font-kerning:none}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.show-back-button){display:block}:host(.back-button-disabled){cursor:default;opacity:0.5;pointer-events:none}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:var(--margin-start);margin-right:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;opacity:var(--opacity);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.button-native{margin-left:unset;margin-right:unset;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end)}}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}ion-icon{padding-left:var(--icon-padding-start);padding-right:var(--icon-padding-end);padding-top:var(--icon-padding-top);padding-bottom:var(--icon-padding-bottom);margin-left:var(--icon-margin-start);margin-right:var(--icon-margin-end);margin-top:var(--icon-margin-top);margin-bottom:var(--icon-margin-bottom);display:inherit;font-size:var(--icon-font-size);font-weight:var(--icon-font-weight);pointer-events:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){ion-icon{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--icon-padding-start);padding-inline-start:var(--icon-padding-start);-webkit-padding-end:var(--icon-padding-end);padding-inline-end:var(--icon-padding-end)}}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){ion-icon{margin-left:unset;margin-right:unset;-webkit-margin-start:var(--icon-margin-start);margin-inline-start:var(--icon-margin-start);-webkit-margin-end:var(--icon-margin-end);margin-inline-end:var(--icon-margin-end)}}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--border-radius:4px;--background-focused:currentColor;--background-focused-opacity:.12;--background-hover:currentColor;--background-hover-opacity:0.04;--color:currentColor;--icon-margin-end:0;--icon-margin-start:0;--icon-font-size:24px;--icon-font-weight:normal;--min-height:32px;--min-width:44px;--padding-start:12px;--padding-end:12px;font-size:14px;font-weight:500;text-transform:uppercase}:host(.back-button-has-icon-only){--border-radius:50%;min-width:48px;height:48px}.button-native{-webkit-box-shadow:none;box-shadow:none}.button-text{padding-left:4px;padding-right:4px;padding-top:0;padding-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.button-text{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px}}ion-icon{line-height:0.67;text-align:start}@media (any-hover: hover){:host(.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}',BackButton=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inheritedAttributes={},this.disabled=!1,this.type="button",this.onClick=async o=>{const s=this.el.closest("ion-nav");return o.preventDefault(),s&&await s.canGoBack()?s.pop({animationBuilder:this.routerAnimation,skipIfBusy:!0}):openURL(this.defaultHref,o,"back",this.routerAnimation)}}componentWillLoad(){this.inheritedAttributes=inheritAriaAttributes(this.el),this.defaultHref===void 0&&(this.defaultHref=config$1.get("backButtonDefaultHref"))}get backButtonIcon(){const o=this.icon;return o??(getIonMode$2(this)==="ios"?config$1.get("backButtonIcon",chevronBack):config$1.get("backButtonIcon",arrowBackSharp))}get backButtonText(){const o=getIonMode$2(this)==="ios"?"Back":null;return this.text!=null?this.text:config$1.get("backButtonText",o)}get hasIconOnly(){return this.backButtonIcon&&!this.backButtonText}get rippleType(){return this.hasIconOnly?"unbounded":"bounded"}render(){const{color:o,defaultHref:s,disabled:a,type:$,hasIconOnly:j,backButtonIcon:_e,backButtonText:et,icon:tt,inheritedAttributes:nt}=this,it=s!==void 0,rt=getIonMode$2(this),st=nt["aria-label"]||et||"back";return h(Host,{onClick:this.onClick,class:createColorClasses$1(o,{[rt]:!0,button:!0,"back-button-disabled":a,"back-button-has-icon-only":j,"in-toolbar":hostContext("ion-toolbar",this.el),"in-toolbar-color":hostContext("ion-toolbar[color]",this.el),"ion-activatable":!0,"ion-focusable":!0,"show-back-button":it})},h("button",{type:$,disabled:a,class:"button-native",part:"native","aria-label":st},h("span",{class:"button-inner"},_e&&h("ion-icon",{part:"icon",icon:_e,"aria-hidden":"true",lazy:!1,"flip-rtl":tt===void 0}),et&&h("span",{part:"text","aria-hidden":"true",class:"button-text"},et)),rt==="md"&&h("ion-ripple-effect",{type:this.rippleType})))}get el(){return this}static get style(){return{ios:backButtonIosCss,md:backButtonMdCss}}},[33,"ion-back-button",{color:[513],defaultHref:[1025,"default-href"],disabled:[516],icon:[1],text:[1],type:[1],routerAnimation:[16]}]);function defineCustomElement$1$O(){if(typeof customElements>"u")return;["ion-back-button","ion-icon","ion-ripple-effect"].forEach(s=>{switch(s){case"ion-back-button":customElements.get(s)||customElements.define(s,BackButton);break;case"ion-icon":customElements.get(s)||defineCustomElement$1n();break;case"ion-ripple-effect":customElements.get(s)||defineCustomElement$1l();break}})}const defineCustomElement$1e=defineCustomElement$1$O;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const badgeIosCss=":host{--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff);--padding-top:3px;--padding-end:8px;--padding-bottom:3px;--padding-start:8px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:inline-block;min-width:10px;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);font-size:13px;font-weight:bold;line-height:1;text-align:center;white-space:nowrap;contain:content;vertical-align:baseline}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(:empty){display:none}:host{border-radius:10px}",badgeMdCss=":host{--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff);--padding-top:3px;--padding-end:8px;--padding-bottom:3px;--padding-start:8px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:inline-block;min-width:10px;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);font-size:13px;font-weight:bold;line-height:1;text-align:center;white-space:nowrap;contain:content;vertical-align:baseline}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(:empty){display:none}:host{--padding-top:3px;--padding-end:4px;--padding-bottom:4px;--padding-start:4px;border-radius:4px}",Badge$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){const o=getIonMode$2(this);return h(Host,{class:createColorClasses$1(this.color,{[o]:!0})},h("slot",null))}static get style(){return{ios:badgeIosCss,md:badgeMdCss}}},[33,"ion-badge",{color:[513]}]);function defineCustomElement$1$N(){if(typeof customElements>"u")return;["ion-badge"].forEach(s=>{switch(s){case"ion-badge":customElements.get(s)||customElements.define(s,Badge$1);break}})}const defineCustomElement$1d=defineCustomElement$1$N;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const printIonWarning=(o,...s)=>console.warn(`[Ionic Warning]: ${o}`,...s),printIonError=(o,...s)=>console.error(`[Ionic Error]: ${o}`,...s),printRequiredElementError=(o,...s)=>console.error(`<${o.tagName.toLowerCase()}> must be used inside ${s.join(" or ")}.`);/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const buttonIosCss=':host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #3880ff);--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;display:block;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;display:block;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted(ion-icon){font-size:1.4em;pointer-events:none}::slotted(ion-icon[slot=start]){margin-left:-0.3em;margin-right:0.3em;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}::slotted(ion-icon[slot=end]){margin-left:0.3em;margin-right:-0.2em;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em}}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}:host{--border-radius:10px;--padding-top:0;--padding-bottom:0;--padding-start:1em;--padding-end:1em;--transition:background-color, opacity 100ms linear;margin-left:2px;margin-right:2px;margin-top:4px;margin-bottom:4px;height:2.8em;font-size:16px;font-weight:500;letter-spacing:-0.03em}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px}}:host(.in-buttons){font-size:17px;font-weight:400}:host(.button-solid){--background-activated:var(--ion-color-primary-shade, #3171e0);--background-focused:var(--ion-color-primary-shade, #3171e0);--background-hover:var(--ion-color-primary-tint, #4c8dff);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1}:host(.button-outline){--border-radius:10px;--border-width:1px;--border-style:solid;--background-activated:var(--ion-color-primary, #3880ff);--background-focused:var(--ion-color-primary, #3880ff);--background-hover:transparent;--background-focused-opacity:.1;--color-activated:var(--ion-color-primary-contrast, #fff)}:host(.button-clear){--background-activated:transparent;--background-activated-opacity:0;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:transparent;--background-focused-opacity:.1;font-size:17px;font-weight:normal;letter-spacing:0}:host(.button-large){--border-radius:12px;--padding-top:0;--padding-start:1em;--padding-end:1em;--padding-bottom:0;height:2.8em;font-size:20px}:host(.button-small){--border-radius:6px;--padding-top:0;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:0;height:2.1em;font-size:13px}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-strong){font-weight:600}:host(.button-outline.ion-focused.ion-color) .button-native,:host(.button-clear.ion-focused.ion-color) .button-native{color:var(--ion-color-base)}:host(.button-outline.ion-focused.ion-color) .button-native::after,:host(.button-clear.ion-focused.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.button-clear:not(.ion-activated):hover),:host(.button-outline:not(.ion-activated):hover){opacity:0.6}:host(.button-clear.ion-color:hover) .button-native,:host(.button-outline.ion-color:hover) .button-native{color:var(--ion-color-base)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:transparent}:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}:host(:hover.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color):not(.ion-activated)) .button-native::after{background:#fff;opacity:0.1}}:host(.button-clear.ion-activated){opacity:0.4}:host(.button-outline.ion-activated.ion-color) .button-native{color:var(--ion-color-contrast)}:host(.button-outline.ion-activated.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}',buttonMdCss=`:host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #3880ff);--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;display:block;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;display:block;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted(ion-icon){font-size:1.4em;pointer-events:none}::slotted(ion-icon[slot=start]){margin-left:-0.3em;margin-right:0.3em;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}::slotted(ion-icon[slot=end]){margin-left:0.3em;margin-right:-0.2em;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em}}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}:host{--border-radius:4px;--padding-top:0;--padding-bottom:0;--padding-start:1.1em;--padding-end:1.1em;--transition:box-shadow 280ms cubic-bezier(.4, 0, .2, 1),
                background-color 15ms linear,
                color 15ms linear;margin-left:2px;margin-right:2px;margin-top:4px;margin-bottom:4px;height:36px;font-size:14px;font-weight:500;letter-spacing:0.06em;text-transform:uppercase}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px}}:host(.button-solid){--background-activated:transparent;--background-hover:var(--ion-color-primary-contrast, #fff);--background-focused:var(--ion-color-primary-contrast, #fff);--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}:host(.button-solid.ion-activated){--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12)}:host(.button-outline){--border-width:2px;--border-style:solid;--box-shadow:none;--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:var(--ion-color-primary, #3880ff);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-outline.ion-activated.ion-color) .button-native{background:transparent}:host(.button-clear){--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:var(--ion-color-primary, #3880ff);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-large){--padding-top:0;--padding-start:1em;--padding-end:1em;--padding-bottom:0;height:2.8em;font-size:20px}:host(.button-small){--padding-top:0;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:0;height:2.1em;font-size:13px}:host(.button-strong){font-weight:bold}::slotted(ion-icon[slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color.ion-focused) .button-native::after,:host(.button-outline.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}`,Button$2=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionFocus=createEvent(this,"ionFocus",7),this.ionBlur=createEvent(this,"ionBlur",7),this.inItem=!1,this.inListHeader=!1,this.inToolbar=!1,this.inheritedAttributes={},this.buttonType="button",this.disabled=!1,this.routerDirection="forward",this.strong=!1,this.type="button",this.handleClick=o=>{const{el:s}=this;if(this.type==="button")openURL(this.href,o,this.routerDirection,this.routerAnimation);else if(hasShadowDom(s)){let a=this.findForm();const{form:$}=this;if(!a&&$!==void 0){printIonWarning(typeof $=="string"?`Form with selector: "#${$}" could not be found. Verify that the id is correct and the form is rendered in the DOM.`:'The provided "form" element is invalid. Verify that the form is a HTMLFormElement and rendered in the DOM.',s);return}if(a||(a=s.closest("form")),a){o.preventDefault();const j=document.createElement("button");j.type=this.type,j.style.display="none",a.appendChild(j),j.click(),j.remove()}}},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}componentWillLoad(){this.inToolbar=!!this.el.closest("ion-buttons"),this.inListHeader=!!this.el.closest("ion-list-header"),this.inItem=!!this.el.closest("ion-item")||!!this.el.closest("ion-item-divider"),this.inheritedAttributes=inheritAriaAttributes(this.el)}get hasIconOnly(){return!!this.el.querySelector('[slot="icon-only"]')}get rippleType(){return(this.fill===void 0||this.fill==="clear")&&this.hasIconOnly&&this.inToolbar?"unbounded":"bounded"}findForm(){const{form:o}=this;if(o instanceof HTMLFormElement)return o;if(typeof o=="string"){const s=document.getElementById(o);if(s instanceof HTMLFormElement)return s}return null}render(){const o=getIonMode$2(this),{buttonType:s,type:a,disabled:$,rel:j,target:_e,size:et,href:tt,color:nt,expand:it,hasIconOnly:rt,shape:st,strong:ot,inheritedAttributes:at}=this,lt=et===void 0&&this.inItem?"small":et,ct=tt===void 0?"button":"a",ht=ct==="button"?{type:a}:{download:this.download,href:tt,rel:j,target:_e};let dt=this.fill;return dt==null&&(dt=this.inToolbar||this.inListHeader?"clear":"solid"),h(Host,{onClick:this.handleClick,"aria-disabled":$?"true":null,class:createColorClasses$1(nt,{[o]:!0,[s]:!0,[`${s}-${it}`]:it!==void 0,[`${s}-${lt}`]:lt!==void 0,[`${s}-${st}`]:st!==void 0,[`${s}-${dt}`]:!0,[`${s}-strong`]:ot,"in-toolbar":hostContext("ion-toolbar",this.el),"in-toolbar-color":hostContext("ion-toolbar[color]",this.el),"in-buttons":hostContext("ion-buttons",this.el),"button-has-icon-only":rt,"button-disabled":$,"ion-activatable":!0,"ion-focusable":!0})},h(ct,Object.assign({},ht,{class:"button-native",part:"native",disabled:$,onFocus:this.onFocus,onBlur:this.onBlur},at),h("span",{class:"button-inner"},h("slot",{name:"icon-only"}),h("slot",{name:"start"}),h("slot",null),h("slot",{name:"end"})),o==="md"&&h("ion-ripple-effect",{type:this.rippleType})))}get el(){return this}static get style(){return{ios:buttonIosCss,md:buttonMdCss}}},[33,"ion-button",{color:[513],buttonType:[1025,"button-type"],disabled:[516],expand:[513],fill:[1537],routerDirection:[1,"router-direction"],routerAnimation:[16],download:[1],href:[1],rel:[1],shape:[513],size:[513],strong:[4],target:[1],type:[1],form:[1]}]);function defineCustomElement$1c(){if(typeof customElements>"u")return;["ion-button","ion-ripple-effect"].forEach(s=>{switch(s){case"ion-button":customElements.get(s)||customElements.define(s,Button$2);break;case"ion-ripple-effect":customElements.get(s)||defineCustomElement$1l();break}})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const IonButton$1=Button$2;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const buttonsIosCss=".sc-ion-buttons-ios-h{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.sc-ion-buttons-ios-s ion-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-buttons-ios-s ion-button{--padding-start:5px;--padding-end:5px;margin-left:2px;margin-right:2px;height:32px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-ion-buttons-ios-s ion-button{margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px}}.sc-ion-buttons-ios-s ion-button:not(.button-round){--border-radius:4px}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button{--color:initial;--border-color:initial;--background-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-solid,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-solid{--background:var(--ion-color-contrast);--background-focused:#000;--background-focused-opacity:.12;--background-activated:#000;--background-activated-opacity:.12;--background-hover:var(--ion-color-base);--background-hover-opacity:0.45;--color:var(--ion-color-base);--color-focused:var(--ion-color-base)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-clear,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-clear{--color-activated:var(--ion-color-contrast);--color-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-outline,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-outline{--color-activated:var(--ion-color-base);--color-focused:var(--ion-color-contrast);--background-activated:var(--ion-color-contrast)}.sc-ion-buttons-ios-s .button-clear,.sc-ion-buttons-ios-s .button-outline{--background-activated:transparent;--background-focused:currentColor;--background-hover:transparent}.sc-ion-buttons-ios-s .button-solid:not(.ion-color){--background-focused:#000;--background-focused-opacity:.12;--background-activated:#000;--background-activated-opacity:.12}.sc-ion-buttons-ios-s ion-icon[slot=start]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;margin-right:0.3em;font-size:24px;line-height:0.67}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-ion-buttons-ios-s ion-icon[slot=start]{margin-right:unset;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}.sc-ion-buttons-ios-s ion-icon[slot=end]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;margin-left:0.4em;font-size:24px;line-height:0.67}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-ion-buttons-ios-s ion-icon[slot=end]{margin-left:unset;-webkit-margin-start:0.4em;margin-inline-start:0.4em}}.sc-ion-buttons-ios-s ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;font-size:28px;line-height:0.67}",buttonsMdCss=".sc-ion-buttons-md-h{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.sc-ion-buttons-md-s ion-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-buttons-md-s ion-button{--padding-top:0;--padding-bottom:0;--padding-start:8px;--padding-end:8px;--box-shadow:none;margin-left:2px;margin-right:2px;height:32px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-ion-buttons-md-s ion-button{margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px}}.sc-ion-buttons-md-s ion-button:not(.button-round){--border-radius:2px}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button{--color:initial;--color-focused:var(--ion-color-contrast);--color-hover:var(--ion-color-contrast);--background-activated:transparent;--background-focused:var(--ion-color-contrast);--background-hover:var(--ion-color-contrast)}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button-solid,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button-solid{--background:var(--ion-color-contrast);--background-activated:transparent;--background-focused:var(--ion-color-shade);--background-hover:var(--ion-color-base);--color:var(--ion-color-base);--color-focused:var(--ion-color-base);--color-hover:var(--ion-color-base)}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button-outline,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button-outline{--border-color:var(--ion-color-contrast)}.sc-ion-buttons-md-s .button-has-icon-only.button-clear{--padding-top:12px;--padding-end:12px;--padding-bottom:12px;--padding-start:12px;--border-radius:50%;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:48px;height:48px}.sc-ion-buttons-md-s .button{--background-hover:currentColor}.sc-ion-buttons-md-s .button-solid{--color:var(--ion-toolbar-background, var(--ion-background-color, #fff));--background:var(--ion-toolbar-color, var(--ion-text-color, #424242));--background-activated:transparent;--background-focused:currentColor}.sc-ion-buttons-md-s .button-outline{--color:initial;--background:transparent;--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--border-color:currentColor}.sc-ion-buttons-md-s .button-clear{--color:initial;--background:transparent;--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor}.sc-ion-buttons-md-s ion-icon[slot=start]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;margin-right:0.3em;font-size:1.4em}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-ion-buttons-md-s ion-icon[slot=start]{margin-right:unset;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}.sc-ion-buttons-md-s ion-icon[slot=end]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;margin-left:0.4em;font-size:1.4em}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-ion-buttons-md-s ion-icon[slot=end]{margin-left:unset;-webkit-margin-start:0.4em;margin-inline-start:0.4em}}.sc-ion-buttons-md-s ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;font-size:1.8em}",Buttons=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.collapse=!1}render(){const o=getIonMode$2(this);return h(Host,{class:{[o]:!0,"buttons-collapse":this.collapse}})}static get style(){return{ios:buttonsIosCss,md:buttonsMdCss}}},[34,"ion-buttons",{collapse:[4]}]);function defineCustomElement$1b(){if(typeof customElements>"u")return;["ion-buttons"].forEach(s=>{switch(s){case"ion-buttons":customElements.get(s)||customElements.define(s,Buttons);break}})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const defineCustomElement$1a=defineCustomElement$1b;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const cardIosCss=":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-600, #666666)));margin-left:16px;margin-right:16px;margin-top:24px;margin-bottom:24px;border-radius:8px;-webkit-transition:-webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:-webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1), -webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);font-size:14px;-webkit-box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);box-shadow:0 4px 16px rgba(0, 0, 0, 0.12)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px}}:host(.ion-activated){-webkit-transform:scale3d(0.97, 0.97, 1);transform:scale3d(0.97, 0.97, 1)}",cardMdCss=":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-550, #737373)));margin-left:10px;margin-right:10px;margin-top:10px;margin-bottom:10px;border-radius:4px;font-size:14px;-webkit-box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px}}",Card=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inheritedAriaAttributes={},this.button=!1,this.type="button",this.disabled=!1,this.routerDirection="forward"}componentWillLoad(){this.inheritedAriaAttributes=inheritAttributes$2(this.el,["aria-label"])}isClickable(){return this.href!==void 0||this.button}renderCard(o){const s=this.isClickable();if(!s)return[h("slot",null)];const{href:a,routerAnimation:$,routerDirection:j,inheritedAriaAttributes:_e}=this,et=s?a===void 0?"button":"a":"div",tt=et==="button"?{type:this.type}:{download:this.download,href:this.href,rel:this.rel,target:this.target};return h(et,Object.assign({},tt,_e,{class:"card-native",part:"native",disabled:this.disabled,onClick:nt=>openURL(a,nt,j,$)}),h("slot",null),s&&o==="md"&&h("ion-ripple-effect",null))}render(){const o=getIonMode$2(this);return h(Host,{class:createColorClasses$1(this.color,{[o]:!0,"card-disabled":this.disabled,"ion-activatable":this.isClickable()})},this.renderCard(o))}get el(){return this}static get style(){return{ios:cardIosCss,md:cardMdCss}}},[33,"ion-card",{color:[513],button:[4],type:[1],disabled:[4],download:[1],href:[1],rel:[1],routerDirection:[1,"router-direction"],routerAnimation:[16],target:[1]}]),IonCard$1=Card;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const cardContentIosCss="ion-card-content{display:block;position:relative}.card-content-ios{padding-left:20px;padding-right:20px;padding-top:20px;padding-bottom:20px;font-size:16px;line-height:1.4}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.card-content-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px}}.card-content-ios h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.card-content-ios h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.card-content-ios h3,.card-content-ios h4,.card-content-ios h5,.card-content-ios h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal}.card-content-ios p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px}ion-card-header+.card-content-ios{padding-top:0}",cardContentMdCss="ion-card-content{display:block;position:relative}.card-content-md{padding-left:16px;padding-right:16px;padding-top:13px;padding-bottom:13px;font-size:14px;line-height:1.5}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.card-content-md{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.card-content-md h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.card-content-md h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.card-content-md h3,.card-content-md h4,.card-content-md h5,.card-content-md h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal}.card-content-md p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;font-weight:normal;line-height:1.5}ion-card-header+.card-content-md{padding-top:0}",CardContent=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost()}render(){const o=getIonMode$2(this);return h(Host,{class:{[o]:!0,[`card-content-${o}`]:!0}})}static get style(){return{ios:cardContentIosCss,md:cardContentMdCss}}},[32,"ion-card-content"]);function defineCustomElement$1$M(){if(typeof customElements>"u")return;["ion-card-content"].forEach(s=>{switch(s){case"ion-card-content":customElements.get(s)||customElements.define(s,CardContent);break}})}const defineCustomElement$19=defineCustomElement$1$M;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const cardHeaderIosCss=":host{--background:transparent;--color:inherit;display:block;position:relative;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{padding-left:20px;padding-right:20px;padding-top:20px;padding-bottom:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.card-header-translucent){background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);-webkit-backdrop-filter:saturate(180%) blur(30px);backdrop-filter:saturate(180%) blur(30px)}}",cardHeaderMdCss=":host{--background:transparent;--color:inherit;display:block;position:relative;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{padding-left:16px;padding-right:16px;padding-top:16px;padding-bottom:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}::slotted(ion-card-title:not(:first-child)),::slotted(ion-card-subtitle:not(:first-child)){margin-top:8px}",CardHeader=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.translucent=!1}render(){const o=getIonMode$2(this);return h(Host,{class:createColorClasses$1(this.color,{"card-header-translucent":this.translucent,"ion-inherit-color":!0,[o]:!0})},h("slot",null))}static get style(){return{ios:cardHeaderIosCss,md:cardHeaderMdCss}}},[33,"ion-card-header",{color:[513],translucent:[4]}]);function defineCustomElement$1$L(){if(typeof customElements>"u")return;["ion-card-header"].forEach(s=>{switch(s){case"ion-card-header":customElements.get(s)||customElements.define(s,CardHeader);break}})}const defineCustomElement$18=defineCustomElement$1$L;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const cardSubtitleIosCss=":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-600, #666666);margin-left:0;margin-right:0;margin-top:0;margin-bottom:4px;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:12px;font-weight:700;letter-spacing:0.4px;text-transform:uppercase}",cardSubtitleMdCss=":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-550, #737373);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:14px;font-weight:500}",CardSubtitle=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){const o=getIonMode$2(this);return h(Host,{role:"heading","aria-level":"3",class:createColorClasses$1(this.color,{"ion-inherit-color":!0,[o]:!0})},h("slot",null))}static get style(){return{ios:cardSubtitleIosCss,md:cardSubtitleMdCss}}},[33,"ion-card-subtitle",{color:[513]}]);function defineCustomElement$1$K(){if(typeof customElements>"u")return;["ion-card-subtitle"].forEach(s=>{switch(s){case"ion-card-subtitle":customElements.get(s)||customElements.define(s,CardSubtitle);break}})}const defineCustomElement$17=defineCustomElement$1$K;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const cardTitleIosCss=":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-text-color, #000);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:28px;font-weight:700;line-height:1.2}",cardTitleMdCss=":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-850, #262626);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:20px;font-weight:500;line-height:1.2}",CardTitle=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){const o=getIonMode$2(this);return h(Host,{role:"heading","aria-level":"2",class:createColorClasses$1(this.color,{"ion-inherit-color":!0,[o]:!0})},h("slot",null))}static get style(){return{ios:cardTitleIosCss,md:cardTitleMdCss}}},[33,"ion-card-title",{color:[513]}]);function defineCustomElement$1$J(){if(typeof customElements>"u")return;["ion-card-title"].forEach(s=>{switch(s){case"ion-card-title":customElements.get(s)||customElements.define(s,CardTitle);break}})}const defineCustomElement$16=defineCustomElement$1$J;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const checkboxIosCss=":host{--background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.ion-color){--background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.checkbox-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-sizing:border-box;box-sizing:border-box}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:50%;--border-width:1px;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.23);--background:var(--ion-item-background, var(--ion-background-color, #fff));--size:26px;width:var(--size);height:var(--size)}:host(.checkbox-disabled){opacity:0.3}:host(.in-item){margin-left:0;margin-right:8px;margin-top:10px;margin-bottom:9px;display:block;position:static}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}:host(.in-item[slot=start]){margin-left:2px;margin-right:20px;margin-top:8px;margin-bottom:8px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:20px;margin-inline-end:20px}}",checkboxMdCss=":host{--background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.ion-color){--background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.checkbox-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-sizing:border-box;box-sizing:border-box}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:calc(var(--size) * .125);--border-width:2px;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.51);--checkmark-width:3;--background:var(--ion-item-background, var(--ion-background-color, #fff));--transition:background 180ms cubic-bezier(0.4, 0, 0.2, 1);--size:18px;width:var(--size);height:var(--size)}.checkbox-icon path{stroke-dasharray:30;stroke-dashoffset:30}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{stroke-dashoffset:0;-webkit-transition:stroke-dashoffset 90ms linear 90ms;transition:stroke-dashoffset 90ms linear 90ms}:host(.checkbox-disabled){opacity:0.3}:host(.in-item){margin-left:0;margin-right:0;margin-top:18px;margin-bottom:18px;display:block;position:static}:host(.in-item[slot=start]){margin-left:4px;margin-right:36px;margin-top:18px;margin-bottom:18px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px}}",Checkbox=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=createEvent(this,"ionChange",7),this.ionFocus=createEvent(this,"ionFocus",7),this.ionBlur=createEvent(this,"ionBlur",7),this.ionStyle=createEvent(this,"ionStyle",7),this.inputId=`ion-cb-${checkboxIds++}`,this.name=this.inputId,this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.value="on",this.onClick=o=>{o.preventDefault(),this.setFocus(),this.checked=!this.checked,this.indeterminate=!1},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}componentWillLoad(){this.emitStyle()}checkedChanged(o){this.ionChange.emit({checked:o,value:this.value}),this.emitStyle()}disabledChanged(){this.emitStyle()}emitStyle(){this.ionStyle.emit({"checkbox-checked":this.checked,"interactive-disabled":this.disabled})}setFocus(){this.focusEl&&this.focusEl.focus()}render(){const{color:o,checked:s,disabled:a,el:$,indeterminate:j,inputId:_e,name:et,value:tt}=this,nt=getIonMode$2(this),{label:it,labelId:rt,labelText:st}=getAriaLabel($,_e);renderHiddenInput(!0,$,et,s?tt:"",a);let ot=j?h("path",{d:"M6 12L18 12",part:"mark"}):h("path",{d:"M5.9,12.5l3.8,3.8l8.8-8.8",part:"mark"});return nt==="md"&&(ot=j?h("path",{d:"M2 12H22",part:"mark"}):h("path",{d:"M1.73,12.91 8.1,19.28 22.79,4.59",part:"mark"})),h(Host,{onClick:this.onClick,"aria-labelledby":it?rt:null,"aria-checked":`${s}`,"aria-hidden":a?"true":null,role:"checkbox",class:createColorClasses$1(o,{[nt]:!0,"in-item":hostContext("ion-item",$),"checkbox-checked":s,"checkbox-disabled":a,"checkbox-indeterminate":j,interactive:!0})},h("svg",{class:"checkbox-icon",viewBox:"0 0 24 24",part:"container"},ot),h("label",{htmlFor:_e},st),h("input",{type:"checkbox","aria-checked":`${s}`,disabled:a,id:_e,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:at=>this.focusEl=at}))}get el(){return this}static get watchers(){return{checked:["checkedChanged"],disabled:["disabledChanged"]}}static get style(){return{ios:checkboxIosCss,md:checkboxMdCss}}},[33,"ion-checkbox",{color:[513],name:[1],checked:[1028],indeterminate:[1028],disabled:[4],value:[8]}]);let checkboxIds=0;function defineCustomElement$15(){if(typeof customElements>"u")return;["ion-checkbox"].forEach(s=>{switch(s){case"ion-checkbox":customElements.get(s)||customElements.define(s,Checkbox);break}})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const defineCustomElement$14=defineCustomElement$15;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const chipCss=":host{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.12);--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.87);border-radius:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:4px;margin-right:4px;margin-top:4px;margin-bottom:4px;padding-left:12px;padding-right:12px;padding-top:7px;padding-bottom:7px;display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-align:center;align-items:center;height:32px;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);font-size:14px;cursor:pointer;overflow:hidden;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:4px;margin-inline-end:4px}}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px}}:host(.chip-disabled){cursor:default;opacity:0.4;pointer-events:none}:host(.ion-color){background:rgba(var(--ion-color-base-rgb), 0.08);color:var(--ion-color-shade)}:host(.ion-color:focus){background:rgba(var(--ion-color-base-rgb), 0.12)}:host(.ion-color.ion-activated){background:rgba(var(--ion-color-base-rgb), 0.16)}:host(.chip-outline){border-width:1px;border-style:solid}:host(.chip-outline){border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.32);background:transparent}:host(.chip-outline.ion-color){border-color:rgba(var(--ion-color-base-rgb), 0.32)}:host(.chip-outline:not(.ion-color):focus){background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.04)}:host(.chip-outline.ion-activated:not(.ion-color)){background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)}::slotted(ion-icon){font-size:20px}:host(:not(.ion-color)) ::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54)}::slotted(ion-icon:first-child){margin-left:-4px;margin-right:8px;margin-top:-4px;margin-bottom:-4px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-icon:first-child){margin-left:unset;margin-right:unset;-webkit-margin-start:-4px;margin-inline-start:-4px;-webkit-margin-end:8px;margin-inline-end:8px}}::slotted(ion-icon:last-child){margin-left:8px;margin-right:-4px;margin-top:-4px;margin-bottom:-4px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-icon:last-child){margin-left:unset;margin-right:unset;-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:-4px;margin-inline-end:-4px}}::slotted(ion-avatar){width:24px;height:24px}::slotted(ion-avatar:first-child){margin-left:-8px;margin-right:8px;margin-top:-4px;margin-bottom:-4px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-avatar:first-child){margin-left:unset;margin-right:unset;-webkit-margin-start:-8px;margin-inline-start:-8px;-webkit-margin-end:8px;margin-inline-end:8px}}::slotted(ion-avatar:last-child){margin-left:8px;margin-right:-8px;margin-top:-4px;margin-bottom:-4px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-avatar:last-child){margin-left:unset;margin-right:unset;-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:-8px;margin-inline-end:-8px}}:host(:focus){outline:none}:host(:focus){--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.16)}:host(.ion-activated){--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}@media (any-hover: hover){:host(:hover){--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.16)}:host(.ion-color:hover){background:rgba(var(--ion-color-base-rgb), 0.12)}:host(.chip-outline:not(.ion-color):hover){background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.04)}}",Chip=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.outline=!1,this.disabled=!1}render(){const o=getIonMode$2(this);return h(Host,{"aria-disabled":this.disabled?"true":null,class:createColorClasses$1(this.color,{[o]:!0,"chip-outline":this.outline,"chip-disabled":this.disabled,"ion-activatable":!0})},h("slot",null),o==="md"&&h("ion-ripple-effect",null))}static get style(){return chipCss}},[1,"ion-chip",{color:[513],outline:[4],disabled:[4]}]);function defineCustomElement$1$I(){if(typeof customElements>"u")return;["ion-chip","ion-ripple-effect"].forEach(s=>{switch(s){case"ion-chip":customElements.get(s)||customElements.define(s,Chip);break;case"ion-ripple-effect":customElements.get(s)||defineCustomElement$1l();break}})}const defineCustomElement$13=defineCustomElement$1$I;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const SIZE_TO_MEDIA={xs:"(min-width: 0px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"},matchBreakpoint=o=>{if(o===void 0||o==="")return!0;if(window.matchMedia){const s=SIZE_TO_MEDIA[o];return window.matchMedia(s).matches}return!1},colCss=":host{padding-left:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-right:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;width:100%;max-width:100%;min-height:1px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px))}}@media (min-width: 576px){:host{padding-left:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-right:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px))}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px))}}}@media (min-width: 768px){:host{padding-left:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-right:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px))}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px))}}}@media (min-width: 992px){:host{padding-left:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-right:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px))}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px))}}}@media (min-width: 1200px){:host{padding-left:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-right:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px))}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px))}}}",win=typeof window<"u"?window:void 0,SUPPORTS_VARS=win&&!!(win.CSS&&win.CSS.supports&&win.CSS.supports("--a: 0")),BREAKPOINTS=["","xs","sm","md","lg","xl"],Col=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow()}onResize(){forceUpdate(this)}getColumns(o){let s;for(const a of BREAKPOINTS){const $=matchBreakpoint(a),j=this[o+a.charAt(0).toUpperCase()+a.slice(1)];$&&j!==void 0&&(s=j)}return s}calculateSize(){const o=this.getColumns("size");if(!o||o==="")return;const s=o==="auto"?"auto":SUPPORTS_VARS?`calc(calc(${o} / var(--ion-grid-columns, 12)) * 100%)`:o/12*100+"%";return{flex:`0 0 ${s}`,width:`${s}`,"max-width":`${s}`}}calculatePosition(o,s){const a=this.getColumns(o);if(!a)return;const $=SUPPORTS_VARS?`calc(calc(${a} / var(--ion-grid-columns, 12)) * 100%)`:a>0&&a<12?a/12*100+"%":"auto";return{[s]:$}}calculateOffset(o){return this.calculatePosition("offset",o?"margin-right":"margin-left")}calculatePull(o){return this.calculatePosition("pull",o?"left":"right")}calculatePush(o){return this.calculatePosition("push",o?"right":"left")}render(){const o=document.dir==="rtl",s=getIonMode$2(this);return h(Host,{class:{[s]:!0},style:Object.assign(Object.assign(Object.assign(Object.assign({},this.calculateOffset(o)),this.calculatePull(o)),this.calculatePush(o)),this.calculateSize())},h("slot",null))}static get style(){return colCss}},[1,"ion-col",{offset:[1],offsetXs:[1,"offset-xs"],offsetSm:[1,"offset-sm"],offsetMd:[1,"offset-md"],offsetLg:[1,"offset-lg"],offsetXl:[1,"offset-xl"],pull:[1],pullXs:[1,"pull-xs"],pullSm:[1,"pull-sm"],pullMd:[1,"pull-md"],pullLg:[1,"pull-lg"],pullXl:[1,"pull-xl"],push:[1],pushXs:[1,"push-xs"],pushSm:[1,"push-sm"],pushMd:[1,"push-md"],pushLg:[1,"push-lg"],pushXl:[1,"push-xl"],size:[1],sizeXs:[1,"size-xs"],sizeSm:[1,"size-sm"],sizeMd:[1,"size-md"],sizeLg:[1,"size-lg"],sizeXl:[1,"size-xl"]},[[9,"resize","onResize"]]]);function defineCustomElement$1$H(){if(typeof customElements>"u")return;["ion-col"].forEach(s=>{switch(s){case"ion-col":customElements.get(s)||customElements.define(s,Col);break}})}const defineCustomElement$12=defineCustomElement$1$H;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const isRTL$2=o=>o&&o.dir!==""?o.dir.toLowerCase()==="rtl":(document==null?void 0:document.dir.toLowerCase())==="rtl";/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const contentCss=':host{--background:var(--ion-background-color, #fff);--color:var(--ion-text-color, #000);--padding-top:0px;--padding-bottom:0px;--padding-start:0px;--padding-end:0px;--keyboard-offset:0px;--offset-top:0px;--offset-bottom:0px;--overflow:auto;display:block;position:relative;-ms-flex:1;flex:1;width:100%;height:100%;margin:0 !important;padding:0 !important;font-family:var(--ion-font-family, inherit);contain:size style}:host(.ion-color) .inner-scroll{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.outer-content){--background:var(--ion-color-step-50, #f2f2f2)}#background-content{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);position:absolute;background:var(--background)}.inner-scroll{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:calc(var(--padding-top) + var(--offset-top));padding-bottom:calc(var(--padding-bottom) + var(--keyboard-offset) + var(--offset-bottom));position:absolute;color:var(--color);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;-ms-touch-action:pan-x pan-y pinch-zoom;touch-action:pan-x pan-y pinch-zoom}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.inner-scroll{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.scroll-y,.scroll-x{-webkit-overflow-scrolling:touch;z-index:0;will-change:scroll-position}.scroll-y{overflow-y:var(--overflow);overscroll-behavior-y:contain}.scroll-x{overflow-x:var(--overflow);overscroll-behavior-x:contain}.overscroll::before,.overscroll::after{position:absolute;width:1px;height:1px;content:""}.overscroll::before{bottom:-1px}.overscroll::after{top:-1px}:host(.content-sizing){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;contain:none}:host(.content-sizing) .inner-scroll{position:relative;top:0;bottom:0;margin-top:calc(var(--offset-top) * -1);margin-bottom:calc(var(--offset-bottom) * -1)}.transition-effect{display:none;position:absolute;width:100%;height:100vh;opacity:0;pointer-events:none}:host(.content-ltr) .transition-effect{left:-100%;}:host(.content-rtl) .transition-effect{right:-100%;}.transition-cover{position:absolute;right:0;width:100%;height:100%;background:black;opacity:0.1}.transition-shadow{display:block;position:absolute;width:10px;height:100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAgCAYAAAAIXrg4AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MTE3MDgzRkQ5QTkyMTFFOUEwNzQ5MkJFREE1NUY2MjQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MTE3MDgzRkU5QTkyMTFFOUEwNzQ5MkJFREE1NUY2MjQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoxMTcwODNGQjlBOTIxMUU5QTA3NDkyQkVEQTU1RjYyNCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDoxMTcwODNGQzlBOTIxMUU5QTA3NDkyQkVEQTU1RjYyNCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PmePEuQAAABNSURBVHjaYvz//z8DIxAwMDAwATGMhmFmPDQuOSZks0AMmoJBaQHjkPfB0Lfg/2gQjVow+HPy/yHvg9GiYjQfjMbBqAWjFgy/4hogwADYqwdzxy5BuwAAAABJRU5ErkJggg==);background-repeat:repeat-y;background-size:10px 16px}:host(.content-ltr) .transition-shadow{right:0;}:host(.content-rtl) .transition-shadow{left:0;-webkit-transform:scaleX(-1);transform:scaleX(-1)}::slotted([slot=fixed]){position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0)}',Content=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionScrollStart=createEvent(this,"ionScrollStart",7),this.ionScroll=createEvent(this,"ionScroll",7),this.ionScrollEnd=createEvent(this,"ionScrollEnd",7),this.watchDog=null,this.isScrolling=!1,this.lastScroll=0,this.queued=!1,this.cTop=-1,this.cBottom=-1,this.isMainContent=!0,this.resizeTimeout=null,this.detail={scrollTop:0,scrollLeft:0,type:"scroll",event:void 0,startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,data:void 0,isScrolling:!0},this.fullscreen=!1,this.scrollX=!1,this.scrollY=!0,this.scrollEvents=!1}connectedCallback(){this.isMainContent=this.el.closest("ion-menu, ion-popover, ion-modal")===null}disconnectedCallback(){this.onScrollEnd()}onAppLoad(){this.resize()}onResize(){this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=null),this.resizeTimeout=setTimeout(()=>{this.el.offsetParent!==null&&this.resize()},100)}shouldForceOverscroll(){const{forceOverscroll:o}=this,s=getIonMode$2(this);return o===void 0?s==="ios"&&isPlatform$1("ios"):o}resize(){this.fullscreen?readTask(()=>this.readDimensions()):(this.cTop!==0||this.cBottom!==0)&&(this.cTop=this.cBottom=0,forceUpdate(this))}readDimensions(){const o=getPageElement(this.el),s=Math.max(this.el.offsetTop,0),a=Math.max(o.offsetHeight-s-this.el.offsetHeight,0);(s!==this.cTop||a!==this.cBottom)&&(this.cTop=s,this.cBottom=a,forceUpdate(this))}onScroll(o){const s=Date.now(),a=!this.isScrolling;this.lastScroll=s,a&&this.onScrollStart(),!this.queued&&this.scrollEvents&&(this.queued=!0,readTask($=>{this.queued=!1,this.detail.event=o,updateScrollDetail(this.detail,this.scrollEl,$,a),this.ionScroll.emit(this.detail)}))}async getScrollElement(){return this.scrollEl||await new Promise(o=>componentOnReady(this.el,o)),Promise.resolve(this.scrollEl)}async getBackgroundElement(){return this.backgroundContentEl||await new Promise(o=>componentOnReady(this.el,o)),Promise.resolve(this.backgroundContentEl)}scrollToTop(o=0){return this.scrollToPoint(void 0,0,o)}async scrollToBottom(o=0){const s=await this.getScrollElement(),a=s.scrollHeight-s.clientHeight;return this.scrollToPoint(void 0,a,o)}async scrollByPoint(o,s,a){const $=await this.getScrollElement();return this.scrollToPoint(o+$.scrollLeft,s+$.scrollTop,a)}async scrollToPoint(o,s,a=0){const $=await this.getScrollElement();if(a<32){s!=null&&($.scrollTop=s),o!=null&&($.scrollLeft=o);return}let j,_e=0;const et=new Promise(ot=>j=ot),tt=$.scrollTop,nt=$.scrollLeft,it=s!=null?s-tt:0,rt=o!=null?o-nt:0,st=ot=>{const at=Math.min(1,(ot-_e)/a)-1,lt=Math.pow(at,3)+1;it!==0&&($.scrollTop=Math.floor(lt*it+tt)),rt!==0&&($.scrollLeft=Math.floor(lt*rt+nt)),lt<1?requestAnimationFrame(st):j()};return requestAnimationFrame(ot=>{_e=ot,st(ot)}),et}onScrollStart(){this.isScrolling=!0,this.ionScrollStart.emit({isScrolling:!0}),this.watchDog&&clearInterval(this.watchDog),this.watchDog=setInterval(()=>{this.lastScroll<Date.now()-120&&this.onScrollEnd()},100)}onScrollEnd(){this.watchDog&&clearInterval(this.watchDog),this.watchDog=null,this.isScrolling&&(this.isScrolling=!1,this.ionScrollEnd.emit({isScrolling:!1}))}render(){const{isMainContent:o,scrollX:s,scrollY:a,el:$}=this,j=isRTL$2($)?"rtl":"ltr",_e=getIonMode$2(this),et=this.shouldForceOverscroll(),tt=_e==="ios",nt=o?"main":"div";return this.resize(),h(Host,{class:createColorClasses$1(this.color,{[_e]:!0,"content-sizing":hostContext("ion-popover",this.el),overscroll:et,[`content-${j}`]:!0}),style:{"--offset-top":`${this.cTop}px`,"--offset-bottom":`${this.cBottom}px`}},h("div",{ref:it=>this.backgroundContentEl=it,id:"background-content",part:"background"}),h(nt,{class:{"inner-scroll":!0,"scroll-x":s,"scroll-y":a,overscroll:(s||a)&&et},ref:it=>this.scrollEl=it,onScroll:this.scrollEvents?it=>this.onScroll(it):void 0,part:"scroll"},h("slot",null)),tt?h("div",{class:"transition-effect"},h("div",{class:"transition-cover"}),h("div",{class:"transition-shadow"})):null,h("slot",{name:"fixed"}))}get el(){return this}static get style(){return contentCss}},[1,"ion-content",{color:[513],fullscreen:[4],forceOverscroll:[1028,"force-overscroll"],scrollX:[4,"scroll-x"],scrollY:[4,"scroll-y"],scrollEvents:[4,"scroll-events"],getScrollElement:[64],getBackgroundElement:[64],scrollToTop:[64],scrollToBottom:[64],scrollByPoint:[64],scrollToPoint:[64]},[[8,"appload","onAppLoad"],[9,"resize","onResize"]]]),getParentElement$1=o=>{var s;return o.parentElement?o.parentElement:!((s=o.parentNode)===null||s===void 0)&&s.host?o.parentNode.host:null},getPageElement=o=>{const s=o.closest("ion-tabs");if(s)return s;const a=o.closest("ion-app, ion-page, .ion-page, page-inner, .popover-content");return a||getParentElement$1(o)},updateScrollDetail=(o,s,a,$)=>{const j=o.currentX,_e=o.currentY,et=o.currentTime,tt=s.scrollLeft,nt=s.scrollTop,it=a-et;if($&&(o.startTime=a,o.startX=tt,o.startY=nt,o.velocityX=o.velocityY=0),o.currentTime=a,o.currentX=o.scrollLeft=tt,o.currentY=o.scrollTop=nt,o.deltaX=tt-o.startX,o.deltaY=nt-o.startY,it>0&&it<100){const rt=(tt-j)/it,st=(nt-_e)/it;o.velocityX=rt*.7+o.velocityX*.3,o.velocityY=st*.7+o.velocityY*.3}};function defineCustomElement$1$G(){if(typeof customElements>"u")return;["ion-content"].forEach(s=>{switch(s){case"ion-content":customElements.get(s)||customElements.define(s,Content);break}})}const defineCustomElement$11=defineCustomElement$1$G;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const ION_FOCUSED="ion-focused",ION_FOCUSABLE="ion-focusable",FOCUS_KEYS=["Tab","ArrowDown","Space","Escape"," ","Shift","Enter","ArrowLeft","ArrowRight","ArrowUp","Home","End"],startFocusVisible=o=>{let s=[],a=!0;const $=o?o.shadowRoot:document,j=o||document.body,_e=st=>{s.forEach(ot=>ot.classList.remove(ION_FOCUSED)),st.forEach(ot=>ot.classList.add(ION_FOCUSED)),s=st},et=()=>{a=!1,_e([])},tt=st=>{a=FOCUS_KEYS.includes(st.key),a||_e([])},nt=st=>{if(a&&st.composedPath!==void 0){const ot=st.composedPath().filter(at=>at.classList?at.classList.contains(ION_FOCUSABLE):!1);_e(ot)}},it=()=>{$.activeElement===j&&_e([])};return $.addEventListener("keydown",tt),$.addEventListener("focusin",nt),$.addEventListener("focusout",it),$.addEventListener("touchstart",et),$.addEventListener("mousedown",et),{destroy:()=>{$.removeEventListener("keydown",tt),$.removeEventListener("focusin",nt),$.removeEventListener("focusout",it),$.removeEventListener("touchstart",et),$.removeEventListener("mousedown",et)},setFocus:_e}},focusVisible=Object.freeze(Object.defineProperty({__proto__:null,startFocusVisible},Symbol.toStringTag,{value:"Module"}));/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const isSameDay=(o,s)=>o.month===s.month&&o.day===s.day&&o.year===s.year,isBefore$1=(o,s)=>o.year<s.year||o.year===s.year&&o.month<s.month||o.year===s.year&&o.month===s.month&&o.day!==null&&o.day<s.day,isAfter=(o,s)=>o.year>s.year||o.year===s.year&&o.month>s.month||o.year===s.year&&o.month===s.month&&o.day!==null&&o.day>s.day,warnIfValueOutOfBounds=(o,s,a)=>{const $=Array.isArray(o)?o:[o];for(const j of $)if(s!==void 0&&isBefore$1(j,s)||a!==void 0&&isAfter(j,a)){printIonWarning(`The value provided to ion-datetime is out of bounds.

Min: ${JSON.stringify(s)}
Max: ${JSON.stringify(a)}
Value: ${JSON.stringify(o)}`);break}},isLeapYear=o=>o%4===0&&o%100!==0||o%400===0,is24Hour=(o,s)=>{if(s!==void 0)return s==="h23";const a=new Intl.DateTimeFormat(o,{hour:"numeric"}),$=a.resolvedOptions();if($.hourCycle!==void 0)return $.hourCycle==="h23";const j=new Date("5/18/2021 00:00"),et=a.formatToParts(j).find(tt=>tt.type==="hour");if(!et)throw new Error("Hour value not found from DateTimeFormat");return et.value==="00"},getNumDaysInMonth=(o,s)=>o===4||o===6||o===9||o===11?30:o===2?isLeapYear(s)?29:28:31,isMonthFirstLocale=(o,s={month:"numeric",year:"numeric"})=>new Intl.DateTimeFormat(o,s).formatToParts(new Date)[0].type==="month",isLocaleDayPeriodRTL=o=>new Intl.DateTimeFormat(o,{hour:"numeric"}).formatToParts(new Date)[0].type==="dayPeriod",ISO_8601_REGEXP=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,TIME_REGEXP=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,convertToArrayOfNumbers=o=>{if(o===void 0)return;let s=o;typeof o=="string"&&(s=o.replace(/\[|\]|\s/g,"").split(","));let a;return Array.isArray(s)?a=s.map($=>parseInt($,10)).filter(isFinite):a=[s],a},getPartsFromCalendarDay=o=>({month:parseInt(o.getAttribute("data-month"),10),day:parseInt(o.getAttribute("data-day"),10),year:parseInt(o.getAttribute("data-year"),10),dayOfWeek:parseInt(o.getAttribute("data-day-of-week"),10)});function parseDate(o){if(Array.isArray(o))return o.map($=>parseDate($));let s=null;if(o!=null&&o!==""&&(s=TIME_REGEXP.exec(o),s?(s.unshift(void 0,void 0),s[2]=s[3]=void 0):s=ISO_8601_REGEXP.exec(o)),s===null)return;for(let $=1;$<8;$++)s[$]=s[$]!==void 0?parseInt(s[$],10):void 0;let a=0;return s[9]&&s[10]&&(a=parseInt(s[10],10)*60,s[11]&&(a+=parseInt(s[11],10)),s[9]==="-"&&(a*=-1)),{year:s[1],month:s[2],day:s[3],hour:s[4],minute:s[5],tzOffset:a,ampm:s[4]<12?"am":"pm"}}const clampDate=(o,s,a)=>s&&isBefore$1(o,s)?s:a&&isAfter(o,a)?a:o,parseAmPm=o=>o>=12?"pm":"am",parseMaxParts=(o,s)=>{const{month:a,day:$,year:j,hour:_e,minute:et}=parseDate(o),tt=j??s.year,nt=a??12;return{month:nt,day:$??getNumDaysInMonth(nt,tt),year:tt,hour:_e??23,minute:et??59}},parseMinParts=(o,s)=>{const{month:a,day:$,year:j,hour:_e,minute:et}=parseDate(o);return{month:a??1,day:$??1,year:j??s.year,hour:_e??0,minute:et??0}},twoDigit=o=>("0"+(o!==void 0?Math.abs(o):"0")).slice(-2),fourDigit=o=>("000"+(o!==void 0?Math.abs(o):"0")).slice(-4);function convertDataToISO(o){if(Array.isArray(o))return o.map(a=>convertDataToISO(a));let s="";return o.year!==void 0?(s=fourDigit(o.year),o.month!==void 0&&(s+="-"+twoDigit(o.month),o.day!==void 0&&(s+="-"+twoDigit(o.day),o.hour!==void 0&&(s+=`T${twoDigit(o.hour)}:${twoDigit(o.minute)}:00`,o.tzOffset===void 0?s+="Z":s+=(o.tzOffset>0?"+":"-")+twoDigit(Math.floor(Math.abs(o.tzOffset/60)))+":"+twoDigit(o.tzOffset%60))))):o.hour!==void 0&&(s=twoDigit(o.hour)+":"+twoDigit(o.minute)),s}const convert12HourTo24Hour=(o,s)=>s===void 0?o:s==="am"?o===12?0:o:o===12?12:o+12,getStartOfWeek=o=>{const{dayOfWeek:s}=o;if(s==null)throw new Error("No day of week provided");return subtractDays(o,s)},getEndOfWeek=o=>{const{dayOfWeek:s}=o;if(s==null)throw new Error("No day of week provided");return addDays$1(o,6-s)},getNextDay=o=>addDays$1(o,1),getPreviousDay=o=>subtractDays(o,1),getPreviousWeek=o=>subtractDays(o,7),getNextWeek=o=>addDays$1(o,7),subtractDays=(o,s)=>{const{month:a,day:$,year:j}=o;if($===null)throw new Error("No day provided");const _e={month:a,day:$,year:j};if(_e.day=$-s,_e.day<1&&(_e.month-=1),_e.month<1&&(_e.month=12,_e.year-=1),_e.day<1){const et=getNumDaysInMonth(_e.month,_e.year);_e.day=et+_e.day}return _e},addDays$1=(o,s)=>{const{month:a,day:$,year:j}=o;if($===null)throw new Error("No day provided");const _e={month:a,day:$,year:j},et=getNumDaysInMonth(a,j);return _e.day=$+s,_e.day>et&&(_e.day-=et,_e.month+=1),_e.month>12&&(_e.month=1,_e.year+=1),_e},getPreviousMonth=o=>{const s=o.month===1?12:o.month-1,a=o.month===1?o.year-1:o.year,$=getNumDaysInMonth(s,a),j=$<o.day?$:o.day;return{month:s,year:a,day:j}},getNextMonth=o=>{const s=o.month===12?1:o.month+1,a=o.month===12?o.year+1:o.year,$=getNumDaysInMonth(s,a),j=$<o.day?$:o.day;return{month:s,year:a,day:j}},changeYear=(o,s)=>{const a=o.month,$=o.year+s,j=getNumDaysInMonth(a,$),_e=j<o.day?j:o.day;return{month:a,year:$,day:_e}},getPreviousYear=o=>changeYear(o,-1),getNextYear=o=>changeYear(o,1),getInternalHourValue=(o,s,a)=>s?o:convert12HourTo24Hour(o,a),calculateHourFromAMPM=(o,s)=>{const{ampm:a,hour:$}=o;let j=$;return a==="am"&&s==="pm"?j=convert12HourTo24Hour(j,"pm"):a==="pm"&&s==="am"&&(j=Math.abs(j-12)),j},validateParts=(o,s,a)=>{const{month:$,day:j,year:_e}=o,et=Object.assign({},o),tt=getNumDaysInMonth($,_e);return j!==null&&tt<j&&(et.day=tt),s!==void 0&&isSameDay(et,s)&&et.hour!==void 0&&s.hour!==void 0&&(et.hour<s.hour?(et.hour=s.hour,et.minute=s.minute):et.hour===s.hour&&et.minute!==void 0&&s.minute!==void 0&&et.minute<s.minute&&(et.minute=s.minute)),a!==void 0&&isSameDay(o,a)&&et.hour!==void 0&&a.hour!==void 0&&(et.hour>a.hour?(et.hour=a.hour,et.minute=a.minute):et.hour===a.hour&&et.minute!==void 0&&a.minute!==void 0&&et.minute>a.minute&&(et.minute=a.minute)),et},getClosestValidDate=(o,s,a,$,j,_e)=>{const{hour:et,minute:tt,day:nt,month:it,year:rt}=o,st=Object.assign(Object.assign({},o),{dayOfWeek:void 0});return s!==void 0&&(st.month=findClosestValue(it,s)),nt!==null&&a!==void 0&&(st.day=findClosestValue(nt,a)),$!==void 0&&(st.year=findClosestValue(rt,$)),et!==void 0&&j!==void 0&&(st.hour=findClosestValue(et,j),st.ampm=parseAmPm(st.hour)),tt!==void 0&&_e!==void 0&&(st.minute=findClosestValue(tt,_e)),st},findClosestValue=(o,s)=>{let a=s[0],$=Math.abs(a-o);for(let j=1;j<s.length;j++){const _e=s[j],et=Math.abs(_e-o);et<$&&(a=_e,$=et)}return a},getFormattedDayPeriod=o=>o===void 0?"":o.toUpperCase(),getLocalizedTime=(o,s,a)=>{const $={hour:s.hour,minute:s.minute};return $.hour===void 0||$.minute===void 0?"Invalid Time":new Intl.DateTimeFormat(o,{hour:"numeric",minute:"numeric",timeZone:"UTC",hourCycle:a?"h23":"h12"}).format(new Date(convertDataToISO(Object.assign(Object.assign({year:2023,day:1,month:1},$),{tzOffset:void 0}))))},addTimePadding=o=>{const s=o.toString();return s.length>1?s:`0${s}`},getFormattedHour=(o,s)=>s?addTimePadding(o):o===0?"12":o.toString(),generateDayAriaLabel=(o,s,a)=>{if(a.day===null)return null;const $=new Date(`${a.month}/${a.day}/${a.year} GMT+0000`),j=new Intl.DateTimeFormat(o,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format($);return s?`Today, ${j}`:j},getMonthAndDay=(o,s)=>{const a=new Date(`${s.month}/${s.day}/${s.year} GMT+0000`);return new Intl.DateTimeFormat(o,{weekday:"short",month:"short",day:"numeric",timeZone:"UTC"}).format(a)},getMonthAndYear=(o,s)=>{const a=new Date(`${s.month}/${s.day}/${s.year} GMT+0000`);return new Intl.DateTimeFormat(o,{month:"long",year:"numeric",timeZone:"UTC"}).format(a)},getMonthDayAndYear=(o,s)=>getLocalizedDateTime(o,s,{month:"short",day:"numeric",year:"numeric"}),getDay=(o,s)=>getLocalizedDateTimeParts(o,s,{day:"numeric"}).find(a=>a.type==="day").value,getYear=(o,s)=>getLocalizedDateTime(o,s,{year:"numeric"}),getNormalizedDate=o=>{const s=o.hour!==void 0&&o.minute!==void 0?` ${o.hour}:${o.minute}`:"";return new Date(`${o.month}/${o.day}/${o.year}${s} GMT+0000`)},getLocalizedDateTime=(o,s,a)=>{const $=getNormalizedDate(s);return getDateTimeFormat(o,a).format($)},getLocalizedDateTimeParts=(o,s,a)=>{const $=getNormalizedDate(s);return getDateTimeFormat(o,a).formatToParts($)},getDateTimeFormat=(o,s)=>new Intl.DateTimeFormat(o,Object.assign(Object.assign({},s),{timeZone:"UTC"})),getTodayLabel=o=>{if("RelativeTimeFormat"in Intl){const s=new Intl.RelativeTimeFormat(o,{numeric:"auto"}).format(0,"day");return s.charAt(0).toUpperCase()+s.slice(1)}else return"Today"},removeDateTzOffset=o=>{const s=o.getTimezoneOffset();return o.setMinutes(o.getMinutes()-s),o},DATE_AM=removeDateTzOffset(new Date("2022T01:00")),DATE_PM=removeDateTzOffset(new Date("2022T13:00")),getLocalizedDayPeriod=(o,s)=>{const a=s==="am"?DATE_AM:DATE_PM,$=new Intl.DateTimeFormat(o,{hour:"numeric",timeZone:"UTC"}).formatToParts(a).find(j=>j.type==="dayPeriod");return $?$.value:getFormattedDayPeriod(s)},formatValue=o=>Array.isArray(o)?o.join(","):o,getToday=()=>removeDateTzOffset(new Date).toISOString(),minutes=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],hour12=[0,1,2,3,4,5,6,7,8,9,10,11],hour23=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],getDaysOfWeek=(o,s,a=0)=>{const $=s==="ios"?"short":"narrow",j=new Intl.DateTimeFormat(o,{weekday:$}),_e=new Date("11/01/2020"),et=[];for(let tt=a;tt<a+7;tt++){const nt=new Date(_e);nt.setDate(nt.getDate()+tt),et.push(j.format(nt))}return et},getDaysOfMonth=(o,s,a)=>{const $=getNumDaysInMonth(o,s),j=new Date(`${o}/1/${s}`).getDay(),_e=j>=a?j-(a+1):6-(a-j);let et=[];for(let tt=1;tt<=$;tt++)et.push({day:tt,dayOfWeek:(_e+tt)%7});for(let tt=0;tt<=_e;tt++)et=[{day:null,dayOfWeek:null},...et];return et},generateTime=(o,s="h12",a,$,j,_e)=>{const et=s==="h23";let tt=et?hour23:hour12,nt=minutes,it=!0,rt=!0;if(j&&(tt=tt.filter(st=>j.includes(st))),_e&&(nt=nt.filter(st=>_e.includes(st))),a)if(isSameDay(o,a)){if(a.hour!==void 0&&(tt=tt.filter(st=>{const ot=o.ampm==="pm"?(st+12)%24:st;return(et?st:ot)>=a.hour}),it=a.hour<13),a.minute!==void 0){let st=!1;a.hour!==void 0&&o.hour!==void 0&&o.hour>a.hour&&(st=!0),nt=nt.filter(ot=>st?!0:ot>=a.minute)}}else isBefore$1(o,a)&&(tt=[],nt=[],it=rt=!1);return $&&(isSameDay(o,$)?($.hour!==void 0&&(tt=tt.filter(st=>{const ot=o.ampm==="pm"?(st+12)%24:st;return(et?st:ot)<=$.hour}),rt=$.hour>=12),$.minute!==void 0&&o.hour===$.hour&&(nt=nt.filter(st=>st<=$.minute))):isAfter(o,$)&&(tt=[],nt=[],it=rt=!1)),{hours:tt,minutes:nt,am:it,pm:rt}},generateMonths=o=>[getPreviousMonth(o),{month:o.month,year:o.year,day:o.day},getNextMonth(o)],getMonthColumnData=(o,s,a,$,j,_e={month:"long"})=>{const{year:et}=s,tt=[];if(j!==void 0){let nt=j;($==null?void 0:$.month)!==void 0&&(nt=nt.filter(it=>it<=$.month)),(a==null?void 0:a.month)!==void 0&&(nt=nt.filter(it=>it>=a.month)),nt.forEach(it=>{const rt=new Date(`${it}/1/${et} GMT+0000`),st=new Intl.DateTimeFormat(o,Object.assign(Object.assign({},_e),{timeZone:"UTC"})).format(rt);tt.push({text:st,value:it})})}else{const nt=$&&$.year===et?$.month:12,it=a&&a.year===et?a.month:1;for(let rt=it;rt<=nt;rt++){const st=new Date(`${rt}/1/${et} GMT+0000`),ot=new Intl.DateTimeFormat(o,Object.assign(Object.assign({},_e),{timeZone:"UTC"})).format(st);tt.push({text:ot,value:rt})}}return tt},getDayColumnData=(o,s,a,$,j,_e={day:"numeric"})=>{const{month:et,year:tt}=s,nt=[],it=getNumDaysInMonth(et,tt),rt=($==null?void 0:$.day)!==null&&($==null?void 0:$.day)!==void 0&&$.year===tt&&$.month===et?$.day:it,st=(a==null?void 0:a.day)!==null&&(a==null?void 0:a.day)!==void 0&&a.year===tt&&a.month===et?a.day:1;if(j!==void 0){let ot=j;ot=ot.filter(at=>at>=st&&at<=rt),ot.forEach(at=>{const lt=new Date(`${et}/${at}/${tt} GMT+0000`),ct=new Intl.DateTimeFormat(o,Object.assign(Object.assign({},_e),{timeZone:"UTC"})).format(lt);nt.push({text:ct,value:at})})}else for(let ot=st;ot<=rt;ot++){const at=new Date(`${et}/${ot}/${tt} GMT+0000`),lt=new Intl.DateTimeFormat(o,Object.assign(Object.assign({},_e),{timeZone:"UTC"})).format(at);nt.push({text:lt,value:ot})}return nt},getYearColumnData=(o,s,a,$,j)=>{var _e,et;let tt=[];if(j!==void 0)tt=j,($==null?void 0:$.year)!==void 0&&(tt=tt.filter(nt=>nt<=$.year)),(a==null?void 0:a.year)!==void 0&&(tt=tt.filter(nt=>nt>=a.year));else{const{year:nt}=s,it=(_e=$==null?void 0:$.year)!==null&&_e!==void 0?_e:nt,rt=(et=a==null?void 0:a.year)!==null&&et!==void 0?et:nt-100;for(let st=it;st>=rt;st--)tt.push(st)}return tt.map(nt=>({text:getYear(o,{year:nt,month:s.month,day:s.day}),value:nt}))},getAllMonthsInRange=(o,s)=>o.month===s.month&&o.year===s.year?[o]:[o,...getAllMonthsInRange(getNextMonth(o),s)],getCombinedDateColumnData=(o,s,a,$,j,_e)=>{let et=[],tt=[],nt=getAllMonthsInRange(a,$);return _e&&(nt=nt.filter(({month:it})=>_e.includes(it))),nt.forEach(it=>{const rt={month:it.month,day:null,year:it.year},st=getDayColumnData(o,rt,a,$,j,{month:"short",day:"numeric",weekday:"short"}),ot=[],at=[];st.forEach(lt=>{const ct=isSameDay(Object.assign(Object.assign({},rt),{day:lt.value}),s);at.push({text:ct?getTodayLabel(o):lt.text,value:`${rt.year}-${rt.month}-${lt.value}`}),ot.push({month:rt.month,year:rt.year,day:lt.value})}),tt=[...tt,...ot],et=[...et,...at]}),{parts:tt,items:et}},getTimeColumnsData=(o,s,a,$,j,_e,et)=>{const tt=is24Hour(o,a),{hours:nt,minutes:it,am:rt,pm:st}=generateTime(s,tt?"h23":"h12",$,j,_e,et),ot=nt.map(ct=>({text:getFormattedHour(ct,tt),value:getInternalHourValue(ct,tt,s.ampm)})),at=it.map(ct=>({text:addTimePadding(ct),value:ct})),lt=[];return rt&&!tt&&lt.push({text:getLocalizedDayPeriod(o,"am"),value:"am"}),st&&!tt&&lt.push({text:getLocalizedDayPeriod(o,"pm"),value:"pm"}),{minutesData:at,hoursData:ot,dayPeriodData:lt}};/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const noteIosCss=":host{color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-350, #a6a6a6)}",noteMdCss=":host{color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-600, #666666);font-size:14px}",Note=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){const o=getIonMode$2(this);return h(Host,{class:createColorClasses$1(this.color,{[o]:!0})},h("slot",null))}static get style(){return{ios:noteIosCss,md:noteMdCss}}},[33,"ion-note",{color:[513]}]);function defineCustomElement$10(){if(typeof customElements>"u")return;["ion-note"].forEach(s=>{switch(s){case"ion-note":customElements.get(s)||customElements.define(s,Note);break}})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const itemIosCss=':host{--border-radius:0px;--border-width:0px;--border-style:solid;--padding-top:0px;--padding-bottom:0px;--padding-end:0px;--padding-start:0px;--inner-border-width:0px;--inner-padding-top:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;--inner-padding-end:0px;--inner-box-shadow:none;--show-full-highlight:0;--show-inset-highlight:0;--detail-icon-color:initial;--detail-icon-font-size:20px;--detail-icon-opacity:0.25;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:initial;text-decoration:none;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner{border-color:var(--ion-color-shade)}:host(.ion-activated) .item-native{color:var(--color-activated)}:host(.ion-activated) .item-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-color.ion-activated) .item-native{color:var(--ion-color-contrast)}:host(.ion-focused) .item-native{color:var(--color-focused)}:host(.ion-focused) .item-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-color.ion-focused) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .item-native::after{background:var(--ion-color-contrast)}@media (any-hover: hover){:host(.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--color-hover)}:host(.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--ion-color-contrast)}}:host(.item-interactive-disabled:not(.item-multiple-inputs)){cursor:default;pointer-events:none}:host(.item-disabled){cursor:default;opacity:0.3;pointer-events:none}.item-native{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:1}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-native{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.item-native::-moz-focus-inner{border:0}.item-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:var(--transition);transition:var(--transition);z-index:-1}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.item-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--inner-padding-start);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);-webkit-box-shadow:var(--inner-box-shadow);box-shadow:var(--inner-box-shadow);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-inner{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--inner-padding-start);padding-inline-start:var(--inner-padding-start);-webkit-padding-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-inline-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end))}}.item-bottom{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--inner-padding-end);padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-bottom{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--inner-padding-end);padding-inline-end:var(--inner-padding-end)}}.item-detail-icon{color:var(--detail-icon-color);font-size:var(--detail-icon-font-size);opacity:var(--detail-icon-opacity)}::slotted(ion-icon){font-size:1.6em}::slotted(ion-button){--margin-top:0;--margin-bottom:0;--margin-start:0;--margin-end:0;z-index:1}::slotted(ion-label:not([slot=end])){-ms-flex:1;flex:1}:host(.item-input){-ms-flex-align:center;align-items:center}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;text-overflow:ellipsis;overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.item-label-stacked),:host(.item-label-floating){-ms-flex-align:start;align-items:start}:host(.item-label-stacked) .input-wrapper,:host(.item-label-floating) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column}.item-highlight,.item-inner-highlight{left:0;right:0;top:0;bottom:0;border-radius:inherit;position:absolute;width:100%;height:100%;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:transform 200ms, border-bottom-width 200ms;transition:transform 200ms, border-bottom-width 200ms, -webkit-transform 200ms;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus),:host(.item-interactive.ion-touched.ion-invalid){--full-highlight-height:calc(var(--highlight-height) * var(--show-full-highlight));--inset-highlight-height:calc(var(--highlight-height) * var(--show-inset-highlight))}:host(.ion-focused) .item-highlight,:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-highlight,:host(.item-has-focus) .item-inner-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.ion-focused) .item-highlight,:host(.item-has-focus) .item-highlight{border-width:var(--full-highlight-height);opacity:var(--show-full-highlight)}:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-inner-highlight{border-bottom-width:var(--inset-highlight-height);opacity:var(--show-inset-highlight)}:host(.ion-focused.item-fill-solid) .item-highlight,:host(.item-has-focus.item-fill-solid) .item-highlight{border-width:calc(var(--full-highlight-height) - 1px)}:host(.ion-focused) .item-inner-highlight,:host(.ion-focused:not(.item-fill-outline)) .item-highlight,:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus:not(.item-fill-outline)) .item-highlight{border-top:none;border-right:none;border-left:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus){--highlight-background:var(--highlight-color-focused)}:host(.item-interactive.ion-valid){--highlight-background:var(--highlight-color-valid)}:host(.item-interactive.ion-invalid){--highlight-background:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=helper]){display:none}::slotted([slot=error]){display:none;color:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=error]){display:block}:host(:not(.item-label)) ::slotted(ion-select){--padding-start:0;max-width:none}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0;-ms-flex-item-align:stretch;align-self:stretch;width:100%;max-width:100%}:host(:not(.item-label)) ::slotted(ion-datetime){--padding-start:0}:host(.item-label-stacked) ::slotted(ion-datetime),:host(.item-label-floating) ::slotted(ion-datetime){--padding-start:0;width:100%}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio),:host(.item-multiple-inputs) ::slotted(ion-select){position:relative}:host(.item-textarea){-ms-flex-align:stretch;align-items:stretch}::slotted(ion-reorder[slot]){margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted([slot=helper]),::slotted([slot=error]),.item-counter{padding-top:5px;font-size:12px;z-index:1}.item-counter{margin-left:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-counter{margin-left:unset;-webkit-margin-start:auto;margin-inline-start:auto}}@media (prefers-reduced-motion: reduce){.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}}:host{--min-height:44px;--transition:background-color 200ms linear, opacity 200ms linear;--padding-start:20px;--inner-padding-end:10px;--inner-border-width:0px 0px 0.55px 0px;--background:var(--ion-item-background, var(--ion-background-color, #fff));--background-activated:#000;--background-focused:#000;--background-hover:currentColor;--background-activated-opacity:.12;--background-focused-opacity:.15;--background-hover-opacity:.04;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--color:var(--ion-item-color, var(--ion-text-color, #000));--highlight-height:0px;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--bottom-padding-start:0px;font-size:17px}:host(.ion-activated){--transition:none}:host(.ion-color.ion-focused) .item-native::after{background:#000;opacity:0.15}:host(.ion-color.ion-activated) .item-native::after{background:#000;opacity:0.12}:host(.item-interactive){--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-full){--border-width:0px 0px 0.55px 0px;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-inset){--inner-border-width:0px 0px 0.55px 0px;--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0px;--show-full-highlight:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0px;--show-inset-highlight:0}.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus) .item-highlight{border-top:none;border-right:none;border-left:none}::slotted([slot=start]){margin-left:0;margin-right:20px;margin-top:2px;margin-bottom:2px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:20px;margin-inline-end:20px}}::slotted([slot=end]){margin-left:10px;margin-right:10px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px}}::slotted(ion-icon[slot=start]),::slotted(ion-icon[slot=end]){margin-top:7px;margin-bottom:7px}::slotted(ion-toggle[slot=start]),::slotted(ion-toggle[slot=end]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host(.item-label-stacked) ::slotted([slot=end]),:host(.item-label-floating) ::slotted([slot=end]){margin-top:7px;margin-bottom:7px}::slotted(.button-small){--padding-top:0px;--padding-bottom:0px;--padding-start:.5em;--padding-end:.5em;height:24px;font-size:13px}::slotted(ion-avatar){width:36px;height:36px}::slotted(ion-thumbnail){--size:56px}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:10px;margin-right:10px;margin-top:10px;margin-bottom:10px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px}}:host(.item-radio) ::slotted(ion-label),:host(.item-toggle) ::slotted(ion-label){margin-left:0px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.item-radio) ::slotted(ion-label),:host(.item-toggle) ::slotted(ion-label){margin-left:unset;-webkit-margin-start:0px;margin-inline-start:0px}}::slotted(ion-label){margin-left:0;margin-right:8px;margin-top:10px;margin-bottom:10px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}:host(.item-label-floating),:host(.item-label-stacked){--min-height:68px}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0px}:host(.item-label-fixed) ::slotted(ion-select),:host(.item-label-fixed) ::slotted(ion-datetime){--padding-start:0}',itemMdCss=':host{--border-radius:0px;--border-width:0px;--border-style:solid;--padding-top:0px;--padding-bottom:0px;--padding-end:0px;--padding-start:0px;--inner-border-width:0px;--inner-padding-top:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;--inner-padding-end:0px;--inner-box-shadow:none;--show-full-highlight:0;--show-inset-highlight:0;--detail-icon-color:initial;--detail-icon-font-size:20px;--detail-icon-opacity:0.25;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:initial;text-decoration:none;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner{border-color:var(--ion-color-shade)}:host(.ion-activated) .item-native{color:var(--color-activated)}:host(.ion-activated) .item-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-color.ion-activated) .item-native{color:var(--ion-color-contrast)}:host(.ion-focused) .item-native{color:var(--color-focused)}:host(.ion-focused) .item-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-color.ion-focused) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .item-native::after{background:var(--ion-color-contrast)}@media (any-hover: hover){:host(.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--color-hover)}:host(.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--ion-color-contrast)}}:host(.item-interactive-disabled:not(.item-multiple-inputs)){cursor:default;pointer-events:none}:host(.item-disabled){cursor:default;opacity:0.3;pointer-events:none}.item-native{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:1}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-native{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.item-native::-moz-focus-inner{border:0}.item-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:var(--transition);transition:var(--transition);z-index:-1}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.item-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--inner-padding-start);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);-webkit-box-shadow:var(--inner-box-shadow);box-shadow:var(--inner-box-shadow);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-inner{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--inner-padding-start);padding-inline-start:var(--inner-padding-start);-webkit-padding-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-inline-end:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end))}}.item-bottom{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:var(--inner-padding-end);padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-bottom{padding-left:unset;padding-right:unset;-webkit-padding-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-inline-start:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));-webkit-padding-end:var(--inner-padding-end);padding-inline-end:var(--inner-padding-end)}}.item-detail-icon{color:var(--detail-icon-color);font-size:var(--detail-icon-font-size);opacity:var(--detail-icon-opacity)}::slotted(ion-icon){font-size:1.6em}::slotted(ion-button){--margin-top:0;--margin-bottom:0;--margin-start:0;--margin-end:0;z-index:1}::slotted(ion-label:not([slot=end])){-ms-flex:1;flex:1}:host(.item-input){-ms-flex-align:center;align-items:center}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;text-overflow:ellipsis;overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.item-label-stacked),:host(.item-label-floating){-ms-flex-align:start;align-items:start}:host(.item-label-stacked) .input-wrapper,:host(.item-label-floating) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column}.item-highlight,.item-inner-highlight{left:0;right:0;top:0;bottom:0;border-radius:inherit;position:absolute;width:100%;height:100%;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:transform 200ms, border-bottom-width 200ms;transition:transform 200ms, border-bottom-width 200ms, -webkit-transform 200ms;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus),:host(.item-interactive.ion-touched.ion-invalid){--full-highlight-height:calc(var(--highlight-height) * var(--show-full-highlight));--inset-highlight-height:calc(var(--highlight-height) * var(--show-inset-highlight))}:host(.ion-focused) .item-highlight,:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-highlight,:host(.item-has-focus) .item-inner-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.ion-focused) .item-highlight,:host(.item-has-focus) .item-highlight{border-width:var(--full-highlight-height);opacity:var(--show-full-highlight)}:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-inner-highlight{border-bottom-width:var(--inset-highlight-height);opacity:var(--show-inset-highlight)}:host(.ion-focused.item-fill-solid) .item-highlight,:host(.item-has-focus.item-fill-solid) .item-highlight{border-width:calc(var(--full-highlight-height) - 1px)}:host(.ion-focused) .item-inner-highlight,:host(.ion-focused:not(.item-fill-outline)) .item-highlight,:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus:not(.item-fill-outline)) .item-highlight{border-top:none;border-right:none;border-left:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus){--highlight-background:var(--highlight-color-focused)}:host(.item-interactive.ion-valid){--highlight-background:var(--highlight-color-valid)}:host(.item-interactive.ion-invalid){--highlight-background:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=helper]){display:none}::slotted([slot=error]){display:none;color:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=error]){display:block}:host(:not(.item-label)) ::slotted(ion-select){--padding-start:0;max-width:none}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0;-ms-flex-item-align:stretch;align-self:stretch;width:100%;max-width:100%}:host(:not(.item-label)) ::slotted(ion-datetime){--padding-start:0}:host(.item-label-stacked) ::slotted(ion-datetime),:host(.item-label-floating) ::slotted(ion-datetime){--padding-start:0;width:100%}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio),:host(.item-multiple-inputs) ::slotted(ion-select){position:relative}:host(.item-textarea){-ms-flex-align:stretch;align-items:stretch}::slotted(ion-reorder[slot]){margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted([slot=helper]),::slotted([slot=error]),.item-counter{padding-top:5px;font-size:12px;z-index:1}.item-counter{margin-left:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-counter{margin-left:unset;-webkit-margin-start:auto;margin-inline-start:auto}}@media (prefers-reduced-motion: reduce){.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}}:host{--min-height:48px;--background:var(--ion-item-background, var(--ion-background-color, #fff));--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--color:var(--ion-item-color, var(--ion-text-color, #000));--transition:opacity 15ms linear, background-color 15ms linear;--padding-start:16px;--inner-padding-end:16px;--inner-border-width:0 0 1px 0;--highlight-height:1px;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);font-size:16px;font-weight:normal;text-transform:none}:host(.item-fill-outline){--highlight-height:2px}:host(.item-fill-none.item-interactive.ion-focus) .item-highlight,:host(.item-fill-none.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-none.item-interactive.ion-touched.ion-invalid) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-width:0 0 var(--full-highlight-height) 0;border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-none.item-interactive.ion-focus) .item-native,:host(.item-fill-none.item-interactive.item-has-focus) .item-native,:host(.item-fill-none.item-interactive.ion-touched.ion-invalid) .item-native{border-bottom-color:var(--highlight-background)}:host(.item-fill-outline.item-interactive.ion-focus) .item-highlight,:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1)}:host(.item-fill-outline.item-interactive.ion-focus) .item-highlight,:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-outline.item-interactive.ion-touched.ion-invalid) .item-highlight{border-width:var(--full-highlight-height);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-outline.item-interactive.ion-touched.ion-invalid) .item-native{border-color:var(--highlight-background)}:host(.item-fill-solid.item-interactive.ion-focus) .item-highlight,:host(.item-fill-solid.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-solid.item-interactive.ion-touched.ion-invalid) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-width:0 0 var(--full-highlight-height) 0;border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-solid.item-interactive.ion-focus) .item-native,:host(.item-fill-solid.item-interactive.item-has-focus) .item-native,:host(.item-fill-solid.item-interactive.ion-touched.ion-invalid) .item-native{border-bottom-color:var(--highlight-background)}:host(.ion-color.ion-activated) .item-native::after{background:transparent}:host(.item-has-focus) .item-native{caret-color:var(--highlight-background)}:host(.item-interactive){--border-width:0 0 1px 0;--inner-border-width:0;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-full){--border-width:0 0 1px 0;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-inset){--inner-border-width:0 0 1px 0;--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0;--show-full-highlight:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0;--show-inset-highlight:0}:host(.item-fill-outline) .item-highlight{--position-offset:calc(-1 * var(--border-width));left:var(--position-offset);top:var(--position-offset);width:calc(100% + 2 * var(--border-width));height:calc(100% + 2 * var(--border-width));-webkit-transition:none;transition:none}:host-context([dir=rtl]):host(.item-fill-outline) .item-highlight,:host-context([dir=rtl]).item-fill-outline .item-highlight{left:unset;right:unset;right:var(--position-offset)}:host(.item-fill-outline.ion-focused) .item-native,:host(.item-fill-outline.item-has-focus) .item-native{border-color:transparent}:host(.item-multi-line) ::slotted([slot=start]),:host(.item-multi-line) ::slotted([slot=end]){margin-top:16px;margin-bottom:16px;-ms-flex-item-align:start;align-self:flex-start}::slotted([slot=start]){margin-right:32px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-right:unset;-webkit-margin-end:32px;margin-inline-end:32px}}::slotted([slot=end]){margin-left:32px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;-webkit-margin-start:32px;margin-inline-start:32px}}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);font-size:24px}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) ::slotted(ion-icon){color:var(--ion-color-contrast)}::slotted(ion-icon[slot]){margin-top:12px;margin-bottom:12px}::slotted(ion-icon[slot=start]){margin-right:32px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=start]){margin-right:unset;-webkit-margin-end:32px;margin-inline-end:32px}}::slotted(ion-icon[slot=end]){margin-left:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-icon[slot=end]){margin-left:unset;-webkit-margin-start:16px;margin-inline-start:16px}}:host(.item-fill-solid) ::slotted(ion-icon[slot=start]),:host(.item-fill-outline) ::slotted(ion-icon[slot=start]){margin-right:8px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.item-fill-solid) ::slotted(ion-icon[slot=start]),:host(.item-fill-outline) ::slotted(ion-icon[slot=start]){margin-right:unset;-webkit-margin-end:8px;margin-inline-end:8px}}::slotted(ion-toggle[slot=start]),::slotted(ion-toggle[slot=end]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}::slotted(ion-note){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-ms-flex-item-align:start;align-self:flex-start;font-size:11px}::slotted(ion-note[slot]:not([slot=helper]):not([slot=error])){padding-left:0;padding-right:0;padding-top:18px;padding-bottom:10px}::slotted(ion-note[slot=start]){padding-right:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-note[slot=start]){padding-right:unset;-webkit-padding-end:16px;padding-inline-end:16px}}::slotted(ion-note[slot=end]){padding-left:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-note[slot=end]){padding-left:unset;-webkit-padding-start:16px;padding-inline-start:16px}}::slotted(ion-avatar){width:40px;height:40px}::slotted(ion-thumbnail){--size:56px}::slotted(ion-avatar),::slotted(ion-thumbnail){margin-top:8px;margin-bottom:8px}::slotted(ion-avatar[slot=start]),::slotted(ion-thumbnail[slot=start]){margin-right:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-avatar[slot=start]),::slotted(ion-thumbnail[slot=start]){margin-right:unset;-webkit-margin-end:16px;margin-inline-end:16px}}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){margin-left:unset;-webkit-margin-start:16px;margin-inline-start:16px}}::slotted(ion-label){margin-left:0;margin-right:0;margin-top:10px;margin-bottom:10px}:host(.item-label-stacked) ::slotted([slot=end]),:host(.item-label-floating) ::slotted([slot=end]){margin-top:7px;margin-bottom:7px}:host(.item-label-fixed) ::slotted(ion-select),:host(.item-label-fixed) ::slotted(ion-datetime){--padding-start:8px}:host(.item-toggle) ::slotted(ion-label),:host(.item-radio) ::slotted(ion-label){margin-left:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.item-toggle) ::slotted(ion-label),:host(.item-radio) ::slotted(ion-label){margin-left:unset;-webkit-margin-start:0;margin-inline-start:0}}::slotted(.button-small){--padding-top:0;--padding-bottom:0;--padding-start:.6em;--padding-end:.6em;height:25px;font-size:12px}:host(.item-label-floating),:host(.item-label-stacked){--min-height:55px}:host(.item-label-stacked) ::slotted(ion-select),:host(.item-label-floating) ::slotted(ion-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0}:host(.ion-focused:not(.ion-color)) ::slotted(.label-stacked),:host(.ion-focused:not(.ion-color)) ::slotted(.label-floating),:host(.item-has-focus:not(.ion-color)) ::slotted(.label-stacked),:host(.item-has-focus:not(.ion-color)) ::slotted(.label-floating){color:var(--ion-color-primary, #3880ff)}:host(.ion-color){--highlight-color-focused:var(--ion-color-contrast)}:host(.item-label-color){--highlight-color-focused:var(--ion-color-base)}:host(.item-fill-solid.ion-color),:host(.item-fill-outline.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.item-fill-solid){--background:var(--ion-color-step-50, #f2f2f2);--background-hover:var(--ion-color-step-100, #e6e6e6);--background-focused:var(--ion-color-step-150, #d9d9d9);--border-width:0 0 1px 0;--inner-border-width:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.item-fill-solid),:host-context([dir=rtl]).item-fill-solid{border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host(.item-fill-solid) .item-native{--border-color:var(--ion-color-step-500, gray)}:host(.item-fill-solid.ion-focused) .item-native,:host(.item-fill-solid.item-has-focus) .item-native{--background:var(--background-focused)}:host(.item-fill-solid.item-shape-round){border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.item-fill-solid.item-shape-round),:host-context([dir=rtl]).item-fill-solid.item-shape-round{border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}@media (any-hover: hover){:host(.item-fill-solid:hover) .item-native{--background:var(--background-hover);--border-color:var(--ion-color-step-750, #404040)}}:host(.item-fill-outline){--ripple-color:transparent;--background-focused:transparent;--background-hover:transparent;--border-color:var(--ion-color-step-500, gray);--border-width:1px;border:none;overflow:visible}:host(.item-fill-outline) .item-native{--native-padding-left:16px;border-radius:4px}:host(.item-fill-outline.item-shape-round) .item-native{--inner-padding-start:16px;border-radius:28px}:host(.item-fill-outline.item-shape-round) .item-bottom{padding-left:32px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.item-fill-outline.item-shape-round) .item-bottom{padding-left:unset;-webkit-padding-start:32px;padding-inline-start:32px}}:host(.item-fill-outline.item-label-floating.ion-focused) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.ion-focused) .item-native ::slotted(ion-textarea:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-focus) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-focus) .item-native ::slotted(ion-textarea:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-value) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-value) .item-native ::slotted(ion-textarea:not(:first-child)){-webkit-transform:translateY(-14px);transform:translateY(-14px)}@media (any-hover: hover){:host(.item-fill-outline:hover) .item-native{--border-color:var(--ion-color-step-750, #404040)}}.item-counter{letter-spacing:0.0333333333em}',Item=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.labelColorStyles={},this.itemStyles=new Map,this.inheritedAriaAttributes={},this.multipleInputs=!1,this.focusable=!0,this.button=!1,this.detailIcon=chevronForward$1,this.disabled=!1,this.counter=!1,this.routerDirection="forward",this.type="button"}counterFormatterChanged(){this.updateCounterOutput(this.getFirstInput())}handleIonChange(o){this.counter&&o.target===this.getFirstInput()&&this.updateCounterOutput(o.target)}labelColorChanged(o){const{color:s}=this;s===void 0&&(this.labelColorStyles=o.detail)}itemStyle(o){o.stopPropagation();const s=o.target.tagName,a=o.detail,$={},j=this.itemStyles.get(s)||{};let _e=!1;Object.keys(a).forEach(et=>{if(a[et]){const tt=`item-${et}`;j[tt]||(_e=!0),$[tt]=!0}}),!_e&&Object.keys($).length!==Object.keys(j).length&&(_e=!0),_e&&(this.itemStyles.set(s,$),forceUpdate(this))}connectedCallback(){this.counter&&this.updateCounterOutput(this.getFirstInput()),this.hasStartEl()}componentDidUpdate(){const o=this.getFirstInput();o!==void 0&&!this.clickListener&&(this.clickListener=s=>this.delegateFocus(s,o),this.el.addEventListener("click",this.clickListener))}disconnectedCallback(){this.getFirstInput()!==void 0&&this.clickListener&&(this.el.removeEventListener("click",this.clickListener),this.clickListener=void 0)}componentWillLoad(){this.inheritedAriaAttributes=inheritAttributes$2(this.el,["aria-label"])}componentDidLoad(){raf(()=>{this.setMultipleInputs(),this.focusable=this.isFocusable()})}setMultipleInputs(){const o=this.el.querySelectorAll("ion-checkbox, ion-datetime, ion-select, ion-radio"),s=this.el.querySelectorAll("ion-input, ion-range, ion-searchbar, ion-segment, ion-textarea, ion-toggle"),a=this.el.querySelectorAll("ion-anchor, ion-button, a, button");this.multipleInputs=o.length+s.length>1||o.length+a.length>1||o.length>0&&this.isClickable()}hasCover(){return this.el.querySelectorAll("ion-checkbox, ion-datetime, ion-select, ion-radio").length===1&&!this.multipleInputs}isClickable(){return this.href!==void 0||this.button}canActivate(){return this.isClickable()||this.hasCover()}isFocusable(){const o=this.el.querySelector(".ion-focusable");return this.canActivate()||o!==null}getFirstInput(){return this.el.querySelectorAll("ion-input, ion-textarea")[0]}delegateFocus(o,s){const a=o.target.tagName==="ION-ITEM";let $=!1;document.activeElement&&($=s.querySelector("input, textarea")===document.activeElement),a&&($||!this.multipleInputs)&&(s.fireFocusEvents=!1,s.setBlur(),s.setFocus(),raf(()=>{s.fireFocusEvents=!0}))}updateCounterOutput(o){var s,a;const{counter:$,counterFormatter:j,defaultCounterFormatter:_e}=this;if($&&!this.multipleInputs&&(o==null?void 0:o.maxlength)!==void 0){const et=(a=(s=o==null?void 0:o.value)===null||s===void 0?void 0:s.toString().length)!==null&&a!==void 0?a:0;if(j===void 0)this.counterString=_e(et,o.maxlength);else try{this.counterString=j(et,o.maxlength)}catch(tt){printIonError("Exception in provided `counterFormatter`.",tt),this.counterString=_e(et,o.maxlength)}}}defaultCounterFormatter(o,s){return`${o} / ${s}`}hasStartEl(){this.el.querySelector('[slot="start"]')!==null&&this.el.classList.add("item-has-start-slot")}render(){const{counterString:o,detail:s,detailIcon:a,download:$,fill:j,labelColorStyles:_e,lines:et,disabled:tt,href:nt,rel:it,shape:rt,target:st,routerAnimation:ot,routerDirection:at,inheritedAriaAttributes:lt}=this,ct={},ht=getIonMode$2(this),dt=this.isClickable(),ut=this.canActivate(),pt=dt?nt===void 0?"button":"a":"div",ft=pt==="button"?{type:this.type}:{download:$,href:nt,rel:it,target:st},mt=dt?{onClick:Rt=>{openURL(nt,Rt,at,ot)}}:{},gt=s!==void 0?s:ht==="ios"&&dt;this.itemStyles.forEach(Rt=>{Object.assign(ct,Rt)});const bt=tt||ct["item-interactive-disabled"]?"true":null,St=j||"none",Nt=hostContext("ion-list",this.el);return h(Host,{"aria-disabled":bt,class:Object.assign(Object.assign(Object.assign({},ct),_e),createColorClasses$1(this.color,{item:!0,[ht]:!0,"item-lines-default":et===void 0,[`item-lines-${et}`]:et!==void 0,[`item-fill-${St}`]:!0,[`item-shape-${rt}`]:rt!==void 0,"item-disabled":tt,"in-list":Nt,"item-multiple-inputs":this.multipleInputs,"ion-activatable":ut,"ion-focusable":this.focusable,"item-rtl":document.dir==="rtl"})),role:Nt?"listitem":null},h(pt,Object.assign({},ft,lt,{class:"item-native",part:"native",disabled:tt},mt),h("slot",{name:"start"}),h("div",{class:"item-inner"},h("div",{class:"input-wrapper"},h("slot",null)),h("slot",{name:"end"}),gt&&h("ion-icon",{icon:a,lazy:!1,class:"item-detail-icon",part:"detail-icon","aria-hidden":"true","flip-rtl":a===chevronForward$1}),h("div",{class:"item-inner-highlight"})),ut&&ht==="md"&&h("ion-ripple-effect",null),h("div",{class:"item-highlight"})),h("div",{class:"item-bottom"},h("slot",{name:"error"}),h("slot",{name:"helper"}),o&&h("ion-note",{class:"item-counter"},o)))}static get delegatesFocus(){return!0}get el(){return this}static get watchers(){return{counterFormatter:["counterFormatterChanged"]}}static get style(){return{ios:itemIosCss,md:itemMdCss}}},[49,"ion-item",{color:[513],button:[4],detail:[4],detailIcon:[1,"detail-icon"],disabled:[4],download:[1],fill:[1],shape:[1],href:[1],rel:[1],lines:[1],counter:[4],routerAnimation:[16],routerDirection:[1,"router-direction"],target:[1],type:[1],counterFormatter:[16],multipleInputs:[32],focusable:[32],counterString:[32]},[[0,"ionChange","handleIonChange"],[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]]);function defineCustomElement$$(){if(typeof customElements>"u")return;["ion-item","ion-icon","ion-note","ion-ripple-effect"].forEach(s=>{switch(s){case"ion-item":customElements.get(s)||customElements.define(s,Item);break;case"ion-icon":customElements.get(s)||defineCustomElement$1n();break;case"ion-note":customElements.get(s)||defineCustomElement$10();break;case"ion-ripple-effect":customElements.get(s)||defineCustomElement$1l();break}})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const labelIosCss=".item.sc-ion-label-ios-h,.item .sc-ion-label-ios-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-label-ios-h{color:var(--ion-color-base)}.ion-text-wrap.sc-ion-label-ios-h,[text-wrap].sc-ion-label-ios-h{white-space:normal}.item-interactive-disabled.sc-ion-label-ios-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-ios-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-ios-h,.item-input .sc-ion-label-ios-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-ios-h,.item-textarea .sc-ion-label-ios-h{-ms-flex-item-align:baseline;align-self:baseline}.label-fixed.sc-ion-label-ios-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-ios-h,.label-floating.sc-ion-label-ios-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-ios-h{-webkit-transition:none;transition:none}.sc-ion-label-ios-s h1,.sc-ion-label-ios-s h2,.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-ios-h,[text-wrap].sc-ion-label-ios-h{font-size:14px;line-height:1.5}.label-stacked.sc-ion-label-ios-h{margin-bottom:4px;font-size:14px}.label-floating.sc-ion-label-ios-h{margin-bottom:0;-webkit-transform:translate(0, 29px);transform:translate(0, 29px);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform 150ms ease-in-out;transition:-webkit-transform 150ms ease-in-out;transition:transform 150ms ease-in-out;transition:transform 150ms ease-in-out, -webkit-transform 150ms ease-in-out}[dir=rtl].sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl] .sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl].label-floating.sc-ion-label-ios-h,[dir=rtl] .label-floating.sc-ion-label-ios-h{-webkit-transform-origin:right top;transform-origin:right top}.item-textarea.label-floating.sc-ion-label-ios-h,.item-textarea .label-floating.sc-ion-label-ios-h{-webkit-transform:translate(0, 28px);transform:translate(0, 28px)}.item-has-focus.label-floating.sc-ion-label-ios-h,.item-has-focus .label-floating.sc-ion-label-ios-h,.item-has-placeholder.sc-ion-label-ios-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-ios-h,.item-has-value.label-floating.sc-ion-label-ios-h,.item-has-value .label-floating.sc-ion-label-ios-h{-webkit-transform:scale(0.82);transform:scale(0.82)}.sc-ion-label-ios-s h1{margin-left:0;margin-right:0;margin-top:3px;margin-bottom:2px;font-size:22px;font-weight:normal}.sc-ion-label-ios-s h2{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:17px;font-weight:normal}.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{margin-left:0;margin-right:0;margin-top:0;margin-bottom:3px;font-size:14px;font-weight:normal;line-height:normal}.sc-ion-label-ios-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;line-height:normal;text-overflow:inherit;overflow:inherit}.sc-ion-label-ios-s>p{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.4)}.sc-ion-label-ios-h.in-item-color.sc-ion-label-ios-s>p{color:inherit}.sc-ion-label-ios-s h2:last-child,.sc-ion-label-ios-s h3:last-child,.sc-ion-label-ios-s h4:last-child,.sc-ion-label-ios-s h5:last-child,.sc-ion-label-ios-s h6:last-child,.sc-ion-label-ios-s p:last-child{margin-bottom:0}",labelMdCss='.item.sc-ion-label-md-h,.item .sc-ion-label-md-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-label-md-h{color:var(--ion-color-base)}.ion-text-wrap.sc-ion-label-md-h,[text-wrap].sc-ion-label-md-h{white-space:normal}.item-interactive-disabled.sc-ion-label-md-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-md-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-md-h,.item-input .sc-ion-label-md-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-md-h,.item-textarea .sc-ion-label-md-h{-ms-flex-item-align:baseline;align-self:baseline}.label-fixed.sc-ion-label-md-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-md-h{-webkit-transition:none;transition:none}.sc-ion-label-md-s h1,.sc-ion-label-md-s h2,.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-md-h,[text-wrap].sc-ion-label-md-h{line-height:1.5}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-transform-origin:top left;transform-origin:top left}.label-stacked.label-rtl.sc-ion-label-md-h,.label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform-origin:top right;transform-origin:top right}.label-stacked.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.label-floating.sc-ion-label-md-h{-webkit-transform:translateY(96%);transform:translateY(96%);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1)}.ion-focused.label-floating.sc-ion-label-md-h,.ion-focused .label-floating.sc-ion-label-md-h,.item-has-focus.label-floating.sc-ion-label-md-h,.item-has-focus .label-floating.sc-ion-label-md-h,.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-has-value.label-floating.sc-ion-label-md-h,.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(-6px) scale(0.75);transform:translateY(-6px) scale(0.75);position:relative;max-width:-webkit-min-content;max-width:-moz-min-content;max-width:min-content;background-color:var(--ion-item-background, var(--ion-background-color, #fff));overflow:visible;z-index:3}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{position:absolute;width:4px;height:100%;background-color:var(--ion-item-background, var(--ion-background-color, #fff));content:""}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before{left:calc(-1 * 4px)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{right:calc(-1 * 4px)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.sc-ion-label-md-h{-webkit-transform:translateX(-32px) translateY(-6px) scale(0.75);transform:translateX(-32px) translateY(-6px) scale(0.75)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating.label-rtl,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75);transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75)}.ion-focused.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-primary, #3880ff)}.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-contrast)}.item-fill-solid.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-base)}.ion-invalid.ion-touched.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--highlight-color-invalid)}.sc-ion-label-md-s h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.sc-ion-label-md-s h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal;line-height:normal}.sc-ion-label-md-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;line-height:20px;text-overflow:inherit;overflow:inherit}.sc-ion-label-md-s>p{color:var(--ion-color-step-600, #666666)}.sc-ion-label-md-h.in-item-color.sc-ion-label-md-s>p{color:inherit}',Label=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.ionColor=createEvent(this,"ionColor",7),this.ionStyle=createEvent(this,"ionStyle",7),this.inRange=!1,this.noAnimate=!1}componentWillLoad(){this.inRange=!!this.el.closest("ion-range"),this.noAnimate=this.position==="floating",this.emitStyle(),this.emitColor()}componentDidLoad(){this.noAnimate&&setTimeout(()=>{this.noAnimate=!1},1e3)}colorChanged(){this.emitColor()}positionChanged(){this.emitStyle()}emitColor(){const{color:o}=this;this.ionColor.emit({"item-label-color":o!==void 0,[`ion-color-${o}`]:o!==void 0})}emitStyle(){const{inRange:o,position:s}=this;o||this.ionStyle.emit({label:!0,[`label-${s}`]:s!==void 0})}render(){const o=this.position,s=getIonMode$2(this);return h(Host,{class:createColorClasses$1(this.color,{[s]:!0,"in-item-color":hostContext("ion-item.ion-color",this.el),[`label-${o}`]:o!==void 0,"label-no-animate":this.noAnimate,"label-rtl":document.dir==="rtl"})})}get el(){return this}static get watchers(){return{color:["colorChanged"],position:["positionChanged"]}}static get style(){return{ios:labelIosCss,md:labelMdCss}}},[34,"ion-label",{color:[513],position:[1],noAnimate:[32]}]);function defineCustomElement$_(){if(typeof customElements>"u")return;["ion-label"].forEach(s=>{switch(s){case"ion-label":customElements.get(s)||customElements.define(s,Label);break}})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const pickerColumnInternalIosCss=":host{padding-left:16px;padding-right:16px;padding-top:0px;padding-bottom:0px;height:200px;outline:none;font-size:22px;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none;text-align:center}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host::-webkit-scrollbar{display:none}:host .picker-item{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden;scroll-snap-align:center}:host .picker-item-empty,:host .picker-item.picker-item-disabled{scroll-snap-align:none;cursor:default}:host .picker-item.picker-item-disabled{opacity:0.4}:host(.picker-column-active) .picker-item.picker-item-active{color:var(--ion-color-base)}@media (any-hover: hover){:host(:focus){outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}",pickerColumnInternalMdCss=":host{padding-left:16px;padding-right:16px;padding-top:0px;padding-bottom:0px;height:200px;outline:none;font-size:22px;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none;text-align:center}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host::-webkit-scrollbar{display:none}:host .picker-item{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden;scroll-snap-align:center}:host .picker-item-empty,:host .picker-item.picker-item-disabled{scroll-snap-align:none;cursor:default}:host .picker-item.picker-item-disabled{opacity:0.4}:host(.picker-column-active) .picker-item.picker-item-active{color:var(--ion-color-base)}@media (any-hover: hover){:host(:focus){outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}:host .picker-item-active{color:var(--ion-color-base)}",PickerColumnInternal=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=createEvent(this,"ionChange",7),this.isScrolling=!1,this.isColumnVisible=!1,this.canExitInputMode=!0,this.isActive=!1,this.items=[],this.color="primary",this.numericInput=!1,this.centerPickerItemInView=(o,s=!0,a=!0)=>{const{el:$,isColumnVisible:j}=this;if(j){const _e=o.offsetTop-3*o.clientHeight+o.clientHeight/2;$.scrollTop!==_e&&(this.canExitInputMode=a,$.scroll({top:_e,left:0,behavior:s?"smooth":void 0}))}},this.inputModeChange=o=>{if(!this.numericInput)return;const{useInputMode:s,inputModeColumn:a}=o.detail,$=a===void 0||a===this.el;if(!s||!$){this.setInputModeActive(!1);return}this.setInputModeActive(!0)},this.setInputModeActive=o=>{if(this.isScrolling){this.scrollEndCallback=()=>{this.isActive=o};return}this.isActive=o},this.initializeScrollListener=()=>{const{el:o}=this;let s,a=this.activeItem;const $=()=>{raf(()=>{s&&(clearTimeout(s),s=void 0),this.isScrolling||(hapticSelectionStart(),this.isScrolling=!0);const j=o.getBoundingClientRect(),_e=j.x+j.width/2,et=j.y+j.height/2,tt=o.shadowRoot.elementFromPoint(_e,et);a!==null&&a.classList.remove(PICKER_COL_ACTIVE),!(tt===null||tt.disabled)&&(tt!==a&&(hapticSelectionChanged(),this.canExitInputMode&&this.exitInputMode()),a=tt,tt.classList.add(PICKER_COL_ACTIVE),s=setTimeout(()=>{this.isScrolling=!1,hapticSelectionEnd();const{scrollEndCallback:nt}=this;nt&&(nt(),this.scrollEndCallback=void 0),this.canExitInputMode=!0;const it=tt.getAttribute("data-index");if(it===null)return;const rt=parseInt(it,10),st=this.items[rt];st.value!==this.value&&this.setValue(st.value)},250))})};raf(()=>{o.addEventListener("scroll",$),this.destroyScrollListener=()=>{o.removeEventListener("scroll",$)}})},this.exitInputMode=()=>{const{parentEl:o}=this;o!=null&&(o.exitInputMode(),this.el.classList.remove("picker-column-active"))}}valueChange(){this.isColumnVisible&&this.scrollActiveItemIntoView()}componentWillLoad(){const o=a=>{var $;if(a[0].isIntersecting){this.isColumnVisible=!0;const _e=getElementRoot(this.el).querySelector(`.${PICKER_COL_ACTIVE}`);_e==null||_e.classList.remove(PICKER_COL_ACTIVE),this.scrollActiveItemIntoView(),($=this.activeItem)===null||$===void 0||$.classList.add(PICKER_COL_ACTIVE),this.initializeScrollListener()}else this.isColumnVisible=!1,this.destroyScrollListener&&(this.destroyScrollListener(),this.destroyScrollListener=void 0)};new IntersectionObserver(o,{threshold:.001}).observe(this.el);const s=this.parentEl=this.el.closest("ion-picker-internal");s!==null&&s.addEventListener("ionInputModeChange",a=>this.inputModeChange(a))}componentDidRender(){var o;const{activeItem:s,items:a,isColumnVisible:$,value:j}=this;$&&(s?this.scrollActiveItemIntoView():((o=a[0])===null||o===void 0?void 0:o.value)!==j&&this.setValue(a[0].value))}async scrollActiveItemIntoView(){const o=this.activeItem;o&&this.centerPickerItemInView(o,!1,!1)}async setValue(o){const{items:s}=this;this.value=o;const a=s.find($=>$.value===o&&$.disabled!==!0);a&&this.ionChange.emit(a)}get activeItem(){return getElementRoot(this.el).querySelector(`.picker-item[data-value="${this.value}"]:not([disabled])`)}render(){const{items:o,color:s,isActive:a,numericInput:$}=this,j=getIonMode$2(this);return h(Host,{tabindex:0,class:createColorClasses$1(s,{[j]:!0,"picker-column-active":a,"picker-column-numeric-input":$})},h("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "),h("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "),h("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "),o.map((_e,et)=>h("button",{tabindex:"-1",class:{"picker-item":!0,"picker-item-disabled":_e.disabled||!1},"data-value":_e.value,"data-index":et,onClick:tt=>{this.centerPickerItemInView(tt.target,!0)},disabled:_e.disabled},_e.text)),h("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "),h("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "),h("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "))}get el(){return this}static get watchers(){return{value:["valueChange"]}}static get style(){return{ios:pickerColumnInternalIosCss,md:pickerColumnInternalMdCss}}},[33,"ion-picker-column-internal",{items:[16],value:[1032],color:[513],numericInput:[4,"numeric-input"],isActive:[32],scrollActiveItemIntoView:[64],setValue:[64]}]),PICKER_COL_ACTIVE="picker-item-active";function defineCustomElement$Z(){if(typeof customElements>"u")return;["ion-picker-column-internal"].forEach(s=>{switch(s){case"ion-picker-column-internal":customElements.get(s)||customElements.define(s,PickerColumnInternal);break}})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const pickerInternalIosCss=":host{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:200px;direction:ltr;z-index:0}:host .picker-before,:host .picker-after{position:absolute;width:100%;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:1;pointer-events:none}:host .picker-before{left:0;top:0;height:83px}:host-context([dir=rtl]){left:unset;right:unset;right:0}:host .picker-after{left:0;top:116px;height:84px}:host-context([dir=rtl]){left:unset;right:unset;right:0}:host .picker-highlight{border-radius:8px;left:0;right:0;top:50%;bottom:0;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;position:absolute;width:calc(100% - 16px);height:34px;-webkit-transform:translateY(-50%);transform:translateY(-50%);z-index:-1}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host .picker-highlight{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}:host input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host ::slotted(ion-picker-column-internal:first-of-type){text-align:start}:host ::slotted(ion-picker-column-internal:last-of-type){text-align:end}:host ::slotted(ion-picker-column-internal:only-child){text-align:center}:host .picker-before{background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, var(--background, var(--ion-background-color, #fff))), to(rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8)));background:linear-gradient(to bottom, var(--background, var(--ion-background-color, #fff)) 20%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%)}:host .picker-after{background:-webkit-gradient(linear, left bottom, left top, color-stop(20%, var(--background, var(--ion-background-color, #fff))), to(rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8)));background:linear-gradient(to top, var(--background, var(--ion-background-color, #fff)) 20%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%)}:host .picker-highlight{background:var(--ion-color-step-150, #eeeeef)}",pickerInternalMdCss=":host{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:200px;direction:ltr;z-index:0}:host .picker-before,:host .picker-after{position:absolute;width:100%;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:1;pointer-events:none}:host .picker-before{left:0;top:0;height:83px}:host-context([dir=rtl]){left:unset;right:unset;right:0}:host .picker-after{left:0;top:116px;height:84px}:host-context([dir=rtl]){left:unset;right:unset;right:0}:host .picker-highlight{border-radius:8px;left:0;right:0;top:50%;bottom:0;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;position:absolute;width:calc(100% - 16px);height:34px;-webkit-transform:translateY(-50%);transform:translateY(-50%);z-index:-1}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host .picker-highlight{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}:host input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host ::slotted(ion-picker-column-internal:first-of-type){text-align:start}:host ::slotted(ion-picker-column-internal:last-of-type){text-align:end}:host ::slotted(ion-picker-column-internal:only-child){text-align:center}:host .picker-before{background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, var(--background, var(--ion-background-color, #fff))), color-stop(90%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0)));background:linear-gradient(to bottom, var(--background, var(--ion-background-color, #fff)) 20%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0) 90%)}:host .picker-after{background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, var(--background, var(--ion-background-color, #fff))), color-stop(90%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0)));background:linear-gradient(to top, var(--background, var(--ion-background-color, #fff)) 30%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0) 90%)}",PickerInternal=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionInputModeChange=createEvent(this,"ionInputModeChange",7),this.useInputMode=!1,this.isInHighlightBounds=o=>{const{highlightEl:s}=this;if(!s)return!1;const a=s.getBoundingClientRect(),$=o.clientX<a.left||o.clientX>a.right,j=o.clientY<a.top||o.clientY>a.bottom;return!($||j)},this.onFocusOut=o=>{const{relatedTarget:s}=o;(!s||s.tagName!=="ION-PICKER-COLUMN-INTERNAL"&&s!==this.inputEl)&&this.exitInputMode()},this.onFocusIn=o=>{const{target:s}=o;if(s.tagName==="ION-PICKER-COLUMN-INTERNAL"&&!this.actionOnClick){const a=s;a.numericInput?this.enterInputMode(a,!1):this.exitInputMode()}},this.onClick=()=>{const{actionOnClick:o}=this;o&&(o(),this.actionOnClick=void 0)},this.onPointerDown=o=>{const{useInputMode:s,inputModeColumn:a,el:$}=this;if(this.isInHighlightBounds(o)){if(s)o.target.tagName==="ION-PICKER-COLUMN-INTERNAL"?a&&a===o.target?this.actionOnClick=()=>{this.enterInputMode()}:this.actionOnClick=()=>{this.enterInputMode(o.target)}:this.actionOnClick=()=>{this.exitInputMode()};else{const _e=$.querySelectorAll("ion-picker-column-internal.picker-column-numeric-input").length===1?o.target:void 0;this.actionOnClick=()=>{this.enterInputMode(_e)}}return}this.actionOnClick=()=>{this.exitInputMode()}},this.enterInputMode=(o,s=!0)=>{const{inputEl:a,el:$}=this;!a||!$.querySelector("ion-picker-column-internal.picker-column-numeric-input")||(this.useInputMode=!0,this.inputModeColumn=o,s?(this.destroyKeypressListener&&(this.destroyKeypressListener(),this.destroyKeypressListener=void 0),a.focus()):($.addEventListener("keypress",this.onKeyPress),this.destroyKeypressListener=()=>{$.removeEventListener("keypress",this.onKeyPress)}),this.emitInputModeChange())},this.onKeyPress=o=>{const{inputEl:s}=this;if(!s)return;const a=parseInt(o.key,10);Number.isNaN(a)||(s.value+=o.key,this.onInputChange())},this.selectSingleColumn=()=>{const{inputEl:o,inputModeColumn:s,singleColumnSearchTimeout:a}=this;if(!o||!s)return;const $=s.items.filter(_e=>_e.disabled!==!0);if(a&&clearTimeout(a),this.singleColumnSearchTimeout=setTimeout(()=>{o.value="",this.singleColumnSearchTimeout=void 0},1e3),o.value.length>=3){const _e=o.value.length-2,et=o.value.substring(_e);o.value=et,this.selectSingleColumn();return}const j=$.find(({text:_e})=>_e.replace(/^0+(?=[1-9])|0+(?=0$)/,"")===o.value);if(j){s.setValue(j.value);return}if(o.value.length===2){const _e=o.value.substring(o.value.length-1);o.value=_e,this.selectSingleColumn()}},this.searchColumn=(o,s,a="start")=>{const $=a==="start"?/^0+/:/0$/,j=o.items.find(({text:_e,disabled:et})=>et!==!0&&_e.replace($,"")===s);j&&o.setValue(j.value)},this.selectMultiColumn=()=>{const{inputEl:o,el:s}=this;if(!o)return;const a=Array.from(s.querySelectorAll("ion-picker-column-internal")).filter(tt=>tt.numericInput),$=a[0],j=a[1];let _e=o.value,et;switch(_e.length){case 1:this.searchColumn($,_e);break;case 2:const tt=o.value.substring(0,1);_e=tt==="0"||tt==="1"?o.value:tt,this.searchColumn($,_e),_e.length===1&&(et=o.value.substring(o.value.length-1),this.searchColumn(j,et,"end"));break;case 3:const nt=o.value.substring(0,1);_e=nt==="0"||nt==="1"?o.value.substring(0,2):nt,this.searchColumn($,_e),et=_e.length===1?o.value.substring(1):o.value.substring(2),this.searchColumn(j,et,"end");break;case 4:const it=o.value.substring(0,1);_e=it==="0"||it==="1"?o.value.substring(0,2):it,this.searchColumn($,_e);const rt=_e.length===1?o.value.substring(1,o.value.length):o.value.substring(2,o.value.length);this.searchColumn(j,rt,"end");break;default:const st=o.value.length-4,ot=o.value.substring(st);o.value=ot,this.selectMultiColumn();break}},this.onInputChange=()=>{const{useInputMode:o,inputEl:s,inputModeColumn:a}=this;!o||!s||(a?this.selectSingleColumn():this.selectMultiColumn())},this.emitInputModeChange=()=>{const{useInputMode:o,inputModeColumn:s}=this;this.ionInputModeChange.emit({useInputMode:o,inputModeColumn:s})}}preventTouchStartPropagation(o){o.stopPropagation()}componentWillLoad(){getElementRoot(this.el).addEventListener("focusin",this.onFocusIn),getElementRoot(this.el).addEventListener("focusout",this.onFocusOut)}async exitInputMode(){const{inputEl:o,useInputMode:s}=this;!s||!o||(this.useInputMode=!1,this.inputModeColumn=void 0,o.blur(),o.value="",this.destroyKeypressListener&&(this.destroyKeypressListener(),this.destroyKeypressListener=void 0),this.emitInputModeChange())}render(){return h(Host,{onPointerDown:o=>this.onPointerDown(o),onClick:()=>this.onClick()},h("input",{"aria-hidden":"true",tabindex:-1,inputmode:"numeric",type:"number",ref:o=>this.inputEl=o,onInput:()=>this.onInputChange(),onBlur:()=>this.exitInputMode()}),h("div",{class:"picker-before"}),h("div",{class:"picker-after"}),h("div",{class:"picker-highlight",ref:o=>this.highlightEl=o}),h("slot",null))}get el(){return this}static get style(){return{ios:pickerInternalIosCss,md:pickerInternalMdCss}}},[33,"ion-picker-internal",{exitInputMode:[64]},[[1,"touchstart","preventTouchStartPropagation"]]]);function defineCustomElement$Y(){if(typeof customElements>"u")return;["ion-picker-internal"].forEach(s=>{switch(s){case"ion-picker-internal":customElements.get(s)||customElements.define(s,PickerInternal);break}})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const attachComponent=async(o,s,a,$,j,_e)=>{var et;if(o)return o.attachViewToDom(s,a,j,$);if(!_e&&typeof a!="string"&&!(a instanceof HTMLElement))throw new Error("framework delegate is missing");const tt=typeof a=="string"?(et=s.ownerDocument)===null||et===void 0?void 0:et.createElement(a):a;return $&&$.forEach(nt=>tt.classList.add(nt)),j&&Object.assign(tt,j),s.appendChild(tt),await new Promise(nt=>componentOnReady(tt,nt)),tt},detachComponent=(o,s)=>{if(s){if(o){const a=s.parentElement;return o.removeViewFromDom(a,s)}s.remove()}return Promise.resolve()},CoreDelegate=()=>{let o,s;return{attachViewToDom:async(j,_e,et={},tt=[])=>{var nt,it;if(o=j,_e){const st=typeof _e=="string"?(nt=o.ownerDocument)===null||nt===void 0?void 0:nt.createElement(_e):_e;tt.forEach(ot=>st.classList.add(ot)),Object.assign(st,et),o.appendChild(st),await new Promise(ot=>componentOnReady(st,ot))}else if(o.children.length>0&&!o.children[0].classList.contains("ion-delegate-host")){const ot=(it=o.ownerDocument)===null||it===void 0?void 0:it.createElement("div");ot.classList.add("ion-delegate-host"),tt.forEach(at=>ot.classList.add(at)),ot.append(...o.children),o.appendChild(ot)}const rt=document.querySelector("ion-app")||document.body;return s=document.createComment("ionic teleport"),o.parentNode.insertBefore(s,o),rt.appendChild(o),o},removeViewFromDom:()=>(o&&s&&(s.parentNode.insertBefore(o,s),s.remove()),Promise.resolve())}};/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const getArrowDimensions=o=>{if(!o)return{arrowWidth:0,arrowHeight:0};const{width:s,height:a}=o.getBoundingClientRect();return{arrowWidth:s,arrowHeight:a}},getPopoverDimensions=(o,s,a)=>{const $=s.getBoundingClientRect(),j=$.height;let _e=$.width;return o==="cover"&&a&&(_e=a.getBoundingClientRect().width),{contentWidth:_e,contentHeight:j}},configureDismissInteraction=(o,s,a,$)=>{let j=[];const et=getElementRoot($).querySelector(".popover-content");switch(s){case"hover":j=[{eventName:"mouseenter",callback:tt=>{document.elementFromPoint(tt.clientX,tt.clientY)!==o&&a.dismiss(void 0,void 0,!1)}}];break;case"context-menu":case"click":default:j=[{eventName:"click",callback:tt=>{if(tt.target.closest("[data-ion-popover-trigger]")===o){tt.stopPropagation();return}a.dismiss(void 0,void 0,!1)}}];break}return j.forEach(({eventName:tt,callback:nt})=>et.addEventListener(tt,nt)),()=>{j.forEach(({eventName:tt,callback:nt})=>et.removeEventListener(tt,nt))}},configureTriggerInteraction=(o,s,a)=>{let $=[];switch(s){case"hover":let j;$=[{eventName:"mouseenter",callback:async _e=>{_e.stopPropagation(),j&&clearTimeout(j),j=setTimeout(()=>{raf(()=>{a.presentFromTrigger(_e),j=void 0})},100)}},{eventName:"mouseleave",callback:_e=>{j&&clearTimeout(j);const et=_e.relatedTarget;et&&et.closest("ion-popover")!==a&&a.dismiss(void 0,void 0,!1)}},{eventName:"click",callback:_e=>_e.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:_e=>a.presentFromTrigger(_e,!0)}];break;case"context-menu":$=[{eventName:"contextmenu",callback:_e=>{_e.preventDefault(),a.presentFromTrigger(_e)}},{eventName:"click",callback:_e=>_e.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:_e=>a.presentFromTrigger(_e,!0)}];break;case"click":default:$=[{eventName:"click",callback:_e=>a.presentFromTrigger(_e)},{eventName:"ionPopoverActivateTrigger",callback:_e=>a.presentFromTrigger(_e,!0)}];break}return $.forEach(({eventName:j,callback:_e})=>o.addEventListener(j,_e)),o.setAttribute("data-ion-popover-trigger","true"),()=>{$.forEach(({eventName:j,callback:_e})=>o.removeEventListener(j,_e)),o.removeAttribute("data-ion-popover-trigger")}},getIndexOfItem=(o,s)=>!s||s.tagName!=="ION-ITEM"?-1:o.findIndex(a=>a===s),getNextItem=(o,s)=>{const a=getIndexOfItem(o,s);return o[a+1]},getPrevItem=(o,s)=>{const a=getIndexOfItem(o,s);return o[a-1]},focusItem=o=>{const a=getElementRoot(o).querySelector("button");a&&raf(()=>a.focus())},isTriggerElement=o=>o.hasAttribute("data-ion-popover-trigger"),configureKeyboardInteraction=o=>{const s=async a=>{var $;const j=document.activeElement;let _e=[];const et=($=a.target)===null||$===void 0?void 0:$.tagName;if(!(et!=="ION-POPOVER"&&et!=="ION-ITEM")){try{_e=Array.from(o.querySelectorAll("ion-item:not(ion-popover ion-popover *):not([disabled])"))}catch{}switch(a.key){case"ArrowLeft":await o.getParentPopover()&&o.dismiss(void 0,void 0,!1);break;case"ArrowDown":a.preventDefault();const nt=getNextItem(_e,j);nt!==void 0&&focusItem(nt);break;case"ArrowUp":a.preventDefault();const it=getPrevItem(_e,j);it!==void 0&&focusItem(it);break;case"Home":a.preventDefault();const rt=_e[0];rt!==void 0&&focusItem(rt);break;case"End":a.preventDefault();const st=_e[_e.length-1];st!==void 0&&focusItem(st);break;case"ArrowRight":case" ":case"Enter":if(j&&isTriggerElement(j)){const ot=new CustomEvent("ionPopoverActivateTrigger");j.dispatchEvent(ot)}break}}};return o.addEventListener("keydown",s),()=>o.removeEventListener("keydown",s)},getPopoverPosition=(o,s,a,$,j,_e,et,tt,nt,it,rt)=>{var st;let ot={top:0,left:0,width:0,height:0};switch(_e){case"event":if(!rt)return nt;const mt=rt;ot={top:mt.clientY,left:mt.clientX,width:1,height:1};break;case"trigger":default:const gt=rt,bt=it||((st=gt==null?void 0:gt.detail)===null||st===void 0?void 0:st.ionShadowTarget)||(gt==null?void 0:gt.target);if(!bt)return nt;const St=bt.getBoundingClientRect();ot={top:St.top,left:St.left,width:St.width,height:St.height};break}const at=calculatePopoverSide(et,ot,s,a,$,j,o),lt=calculatePopoverAlign(tt,et,ot,s,a),ct=at.top+lt.top,ht=at.left+lt.left,{arrowTop:dt,arrowLeft:ut}=calculateArrowPosition(et,$,j,ct,ht,s,a,o),{originX:pt,originY:ft}=calculatePopoverOrigin(et,tt,o);return{top:ct,left:ht,referenceCoordinates:ot,arrowTop:dt,arrowLeft:ut,originX:pt,originY:ft}},calculatePopoverOrigin=(o,s,a)=>{switch(o){case"top":return{originX:getOriginXAlignment(s),originY:"bottom"};case"bottom":return{originX:getOriginXAlignment(s),originY:"top"};case"left":return{originX:"right",originY:getOriginYAlignment(s)};case"right":return{originX:"left",originY:getOriginYAlignment(s)};case"start":return{originX:a?"left":"right",originY:getOriginYAlignment(s)};case"end":return{originX:a?"right":"left",originY:getOriginYAlignment(s)}}},getOriginXAlignment=o=>{switch(o){case"start":return"left";case"center":return"center";case"end":return"right"}},getOriginYAlignment=o=>{switch(o){case"start":return"top";case"center":return"center";case"end":return"bottom"}},calculateArrowPosition=(o,s,a,$,j,_e,et,tt)=>{const nt={arrowTop:$+et/2-s/2,arrowLeft:j+_e-s/2},it={arrowTop:$+et/2-s/2,arrowLeft:j-s*1.5};switch(o){case"top":return{arrowTop:$+et,arrowLeft:j+_e/2-s/2};case"bottom":return{arrowTop:$-a,arrowLeft:j+_e/2-s/2};case"left":return nt;case"right":return it;case"start":return tt?it:nt;case"end":return tt?nt:it;default:return{arrowTop:0,arrowLeft:0}}},calculatePopoverSide=(o,s,a,$,j,_e,et)=>{const tt={top:s.top,left:s.left-a-j},nt={top:s.top,left:s.left+s.width+j};switch(o){case"top":return{top:s.top-$-_e,left:s.left};case"right":return nt;case"bottom":return{top:s.top+s.height+_e,left:s.left};case"left":return tt;case"start":return et?nt:tt;case"end":return et?tt:nt}},calculatePopoverAlign=(o,s,a,$,j)=>{switch(o){case"center":return calculatePopoverCenterAlign(s,a,$,j);case"end":return calculatePopoverEndAlign(s,a,$,j);case"start":default:return{top:0,left:0}}},calculatePopoverEndAlign=(o,s,a,$)=>{switch(o){case"start":case"end":case"left":case"right":return{top:-($-s.height),left:0};case"top":case"bottom":default:return{top:0,left:-(a-s.width)}}},calculatePopoverCenterAlign=(o,s,a,$)=>{switch(o){case"start":case"end":case"left":case"right":return{top:-($/2-s.height/2),left:0};case"top":case"bottom":default:return{top:0,left:-(a/2-s.width/2)}}},calculateWindowAdjustment=(o,s,a,$,j,_e,et,tt,nt,it,rt,st,ot=0,at=0,lt=0)=>{let ct=ot;const ht=at;let dt=a,ut=s,pt,ft=it,mt=rt,gt=!1,bt=!1;const St=st?st.top+st.height:_e/2-tt/2,Nt=st?st.height:0;let Rt=!1;return dt<$+nt?(dt=$,gt=!0,ft="left"):et+$+dt+nt>j&&(bt=!0,dt=j-et-$,ft="right"),St+Nt+tt>_e&&(o==="top"||o==="bottom")&&(St-tt>0?(ut=Math.max(12,St-tt-Nt-(lt-1)),ct=ut+tt,mt="bottom",Rt=!0):pt=$),{top:ut,left:dt,bottom:pt,originX:ft,originY:mt,checkSafeAreaLeft:gt,checkSafeAreaRight:bt,arrowTop:ct,arrowLeft:ht,addPopoverBottomClass:Rt}},shouldShowArrow=(o,s=!1,a,$)=>!(!a&&!$||o!=="top"&&o!=="bottom"&&s),POPOVER_IOS_BODY_PADDING=5,iosEnterAnimation$3=(o,s)=>{var a;const{event:$,size:j,trigger:_e,reference:et,side:tt,align:nt}=s,it=o.ownerDocument,rt=it.dir==="rtl",st=it.defaultView.innerWidth,ot=it.defaultView.innerHeight,at=getElementRoot(o),lt=at.querySelector(".popover-content"),ct=at.querySelector(".popover-arrow"),ht=_e||((a=$==null?void 0:$.detail)===null||a===void 0?void 0:a.ionShadowTarget)||($==null?void 0:$.target),{contentWidth:dt,contentHeight:ut}=getPopoverDimensions(j,lt,ht),{arrowWidth:pt,arrowHeight:ft}=getArrowDimensions(ct),mt={top:ot/2-ut/2,left:st/2-dt/2,originX:rt?"right":"left",originY:"top"},gt=getPopoverPosition(rt,dt,ut,pt,ft,et,tt,nt,mt,_e,$),bt=j==="cover"?0:POPOVER_IOS_BODY_PADDING,St=j==="cover"?0:25,{originX:Nt,originY:Rt,top:Ft,left:Ot,bottom:Ct,checkSafeAreaLeft:yt,checkSafeAreaRight:Pt,arrowTop:wt,arrowLeft:Lt,addPopoverBottomClass:vt}=calculateWindowAdjustment(tt,gt.top,gt.left,bt,st,ot,dt,ut,St,gt.originX,gt.originY,gt.referenceCoordinates,gt.arrowTop,gt.arrowLeft,ft),xt=createAnimation(),Ut=createAnimation(),Et=createAnimation();return Ut.addElement(at.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),Et.addElement(at.querySelector(".popover-wrapper")).fromTo("opacity",.01,1),xt.easing("ease").duration(100).beforeAddWrite(()=>{j==="cover"&&o.style.setProperty("--width",`${dt}px`),vt&&o.classList.add("popover-bottom"),Ct!==void 0&&lt.style.setProperty("bottom",`${Ct}px`);const Dt=" + var(--ion-safe-area-left, 0)",Bt=" - var(--ion-safe-area-right, 0)";let Wt=`${Ot}px`;if(yt&&(Wt=`${Ot}px${Dt}`),Pt&&(Wt=`${Ot}px${Bt}`),lt.style.setProperty("top",`calc(${Ft}px + var(--offset-y, 0))`),lt.style.setProperty("left",`calc(${Wt} + var(--offset-x, 0))`),lt.style.setProperty("transform-origin",`${Rt} ${Nt}`),ct!==null){const Zt=gt.top!==Ft||gt.left!==Ot;shouldShowArrow(tt,Zt,$,_e)?(ct.style.setProperty("top",`calc(${wt}px + var(--offset-y, 0))`),ct.style.setProperty("left",`calc(${Lt}px + var(--offset-x, 0))`)):ct.style.setProperty("display","none")}}).addAnimation([Ut,Et])},iosLeaveAnimation$3=o=>{const s=getElementRoot(o),a=s.querySelector(".popover-content"),$=s.querySelector(".popover-arrow"),j=createAnimation(),_e=createAnimation(),et=createAnimation();return _e.addElement(s.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),et.addElement(s.querySelector(".popover-wrapper")).fromTo("opacity",.99,0),j.easing("ease").afterAddWrite(()=>{o.style.removeProperty("--width"),o.classList.remove("popover-bottom"),a.style.removeProperty("top"),a.style.removeProperty("left"),a.style.removeProperty("bottom"),a.style.removeProperty("transform-origin"),$&&($.style.removeProperty("top"),$.style.removeProperty("left"),$.style.removeProperty("display"))}).duration(300).addAnimation([_e,et])},POPOVER_MD_BODY_PADDING=12,mdEnterAnimation$3=(o,s)=>{var a;const{event:$,size:j,trigger:_e,reference:et,side:tt,align:nt}=s,it=o.ownerDocument,rt=it.dir==="rtl",st=it.defaultView.innerWidth,ot=it.defaultView.innerHeight,at=getElementRoot(o),lt=at.querySelector(".popover-content"),ct=_e||((a=$==null?void 0:$.detail)===null||a===void 0?void 0:a.ionShadowTarget)||($==null?void 0:$.target),{contentWidth:ht,contentHeight:dt}=getPopoverDimensions(j,lt,ct),ut={top:ot/2-dt/2,left:st/2-ht/2,originX:rt?"right":"left",originY:"top"},pt=getPopoverPosition(rt,ht,dt,0,0,et,tt,nt,ut,_e,$),ft=j==="cover"?0:POPOVER_MD_BODY_PADDING,{originX:mt,originY:gt,top:bt,left:St,bottom:Nt}=calculateWindowAdjustment(tt,pt.top,pt.left,ft,st,ot,ht,dt,0,pt.originX,pt.originY,pt.referenceCoordinates),Rt=createAnimation(),Ft=createAnimation(),Ot=createAnimation(),Ct=createAnimation(),yt=createAnimation();return Ft.addElement(at.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),Ot.addElement(at.querySelector(".popover-wrapper")).duration(150).fromTo("opacity",.01,1),Ct.addElement(lt).beforeStyles({top:`calc(${bt}px + var(--offset-y, 0px))`,left:`calc(${St}px + var(--offset-x, 0px))`,"transform-origin":`${gt} ${mt}`}).beforeAddWrite(()=>{Nt!==void 0&&lt.style.setProperty("bottom",`${Nt}px`)}).fromTo("transform","scale(0.8)","scale(1)"),yt.addElement(at.querySelector(".popover-viewport")).fromTo("opacity",.01,1),Rt.easing("cubic-bezier(0.36,0.66,0.04,1)").duration(300).beforeAddWrite(()=>{j==="cover"&&o.style.setProperty("--width",`${ht}px`),gt==="bottom"&&o.classList.add("popover-bottom")}).addAnimation([Ft,Ot,Ct,yt])},mdLeaveAnimation$3=o=>{const s=getElementRoot(o),a=s.querySelector(".popover-content"),$=createAnimation(),j=createAnimation(),_e=createAnimation();return j.addElement(s.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),_e.addElement(s.querySelector(".popover-wrapper")).fromTo("opacity",.99,0),$.easing("ease").afterAddWrite(()=>{o.style.removeProperty("--width"),o.classList.remove("popover-bottom"),a.style.removeProperty("top"),a.style.removeProperty("left"),a.style.removeProperty("bottom"),a.style.removeProperty("transform-origin")}).duration(150).addAnimation([j,_e])},popoverIosCss=':host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{opacity:0;z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}.popover-viewport{--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}:host{--width:200px;--max-height:90%;--box-shadow:none;--backdrop-opacity:var(--ion-backdrop-opacity, 0.08)}:host(.popover-desktop){--box-shadow:0px 4px 16px 0px rgba(0, 0, 0, 0.12)}.popover-content{border-radius:10px}:host(.popover-desktop) .popover-content{border:0.5px solid var(--ion-color-step-100, #e6e6e6)}.popover-arrow{display:block;position:absolute;width:20px;height:10px;overflow:hidden}.popover-arrow::after{left:3px;top:3px;border-radius:3px;position:absolute;width:14px;height:14px;-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--background);content:"";z-index:10}[dir=rtl] .popover-arrow::after,:host-context([dir=rtl]) .popover-arrow::after{left:unset;right:unset;right:3px}:host(.popover-bottom) .popover-arrow{top:auto;bottom:-10px}:host(.popover-bottom) .popover-arrow::after{top:-6px}:host(.popover-side-left) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host(.popover-side-right) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host(.popover-side-top) .popover-arrow{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host(.popover-side-start) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host-context([dir=rtl]):host(.popover-side-start) .popover-arrow,:host-context([dir=rtl]).popover-side-start .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host(.popover-side-end) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host-context([dir=rtl]):host(.popover-side-end) .popover-arrow,:host-context([dir=rtl]).popover-side-end .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.popover-translucent) .popover-content,:host(.popover-translucent) .popover-arrow::after{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}',popoverMdCss=":host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{opacity:0;z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}.popover-viewport{--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}:host{--width:250px;--max-height:90%;--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}.popover-content{border-radius:4px;-webkit-transform-origin:left top;transform-origin:left top}[dir=rtl] .popover-content,:host-context([dir=rtl]) .popover-content{-webkit-transform-origin:right top;transform-origin:right top}.popover-viewport{-webkit-transition-delay:100ms;transition-delay:100ms}",Popover=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=createEvent(this,"ionPopoverDidPresent",7),this.willPresent=createEvent(this,"ionPopoverWillPresent",7),this.willDismiss=createEvent(this,"ionPopoverWillDismiss",7),this.didDismiss=createEvent(this,"ionPopoverDidDismiss",7),this.didPresentShorthand=createEvent(this,"didPresent",7),this.willPresentShorthand=createEvent(this,"willPresent",7),this.willDismissShorthand=createEvent(this,"willDismiss",7),this.didDismissShorthand=createEvent(this,"didDismiss",7),this.ionMount=createEvent(this,"ionMount",7),this.parentPopover=null,this.popoverIndex=popoverIds++,this.coreDelegate=CoreDelegate(),this.inline=!1,this.focusDescendantOnPresent=!1,this.presented=!1,this.hasController=!1,this.keyboardClose=!0,this.backdropDismiss=!0,this.showBackdrop=!0,this.translucent=!1,this.animated=!0,this.triggerAction="click",this.size="auto",this.dismissOnSelect=!1,this.reference="trigger",this.side="bottom",this.arrow=!0,this.isOpen=!1,this.keyboardEvents=!1,this.keepContentsMounted=!1,this.onBackdropTap=()=>{this.dismiss(void 0,BACKDROP)},this.onLifecycle=o=>{const s=this.usersElement,a=LIFECYCLE_MAP$1[o.type];if(s&&a){const $=new CustomEvent(a,{bubbles:!1,cancelable:!1,detail:o.detail});s.dispatchEvent($)}},this.configureTriggerInteraction=()=>{const{trigger:o,triggerAction:s,el:a,destroyTriggerInteraction:$}=this;if($&&$(),o===void 0)return;const j=this.triggerEl=o!==void 0?document.getElementById(o):null;if(!j){printIonWarning(`A trigger element with the ID "${o}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on ion-popover.`,this.el);return}this.destroyTriggerInteraction=configureTriggerInteraction(j,s,a)},this.configureKeyboardInteraction=()=>{const{destroyKeyboardInteraction:o,el:s}=this;o&&o(),this.destroyKeyboardInteraction=configureKeyboardInteraction(s)},this.configureDismissInteraction=()=>{const{destroyDismissInteraction:o,parentPopover:s,triggerAction:a,triggerEl:$,el:j}=this;!s||!$||(o&&o(),this.destroyDismissInteraction=configureDismissInteraction($,a,j,s))}}onTriggerChange(){this.configureTriggerInteraction()}onIsOpenChange(o,s){o===!0&&s===!1?this.present():o===!1&&s===!0&&this.dismiss()}connectedCallback(){const{configureTriggerInteraction:o,el:s}=this;prepareOverlay(s),o()}disconnectedCallback(){const{destroyTriggerInteraction:o}=this;o&&o()}componentWillLoad(){this.popoverId=this.el.hasAttribute("id")?this.el.getAttribute("id"):`ion-popover-${this.popoverIndex}`,this.parentPopover=this.el.closest(`ion-popover:not(#${this.popoverId})`),this.alignment===void 0&&(this.alignment=getIonMode$2(this)==="ios"?"center":"start")}componentDidLoad(){const{parentPopover:o,isOpen:s}=this;s===!0&&raf(()=>this.present()),o&&addEventListener$2(o,"ionPopoverWillDismiss",()=>{this.dismiss(void 0,void 0,!1)})}async presentFromTrigger(o,s=!1){this.focusDescendantOnPresent=s,await this.present(o),this.focusDescendantOnPresent=!1}getDelegate(o=!1){if(this.workingDelegate&&!o)return{delegate:this.workingDelegate,inline:this.inline};const s=this.el.parentNode,a=this.inline=s!==null&&!this.hasController,$=this.workingDelegate=a?this.delegate||this.coreDelegate:this.delegate;return{inline:a,delegate:$}}async present(o){if(this.presented)return;this.currentTransition!==void 0&&await this.currentTransition;const{inline:s,delegate:a}=this.getDelegate(!0);return this.usersElement=await attachComponent(a,this.el,this.component,["popover-viewport"],this.componentProps,s),await deepReady(this.usersElement),this.keyboardEvents||this.configureKeyboardInteraction(),this.configureDismissInteraction(),this.ionMount.emit(),new Promise($=>{raf(()=>{raf(async()=>{this.currentTransition=present(this,"popoverEnter",iosEnterAnimation$3,mdEnterAnimation$3,{event:o||this.event,size:this.size,trigger:this.triggerEl,reference:this.reference,side:this.side,align:this.alignment}),await this.currentTransition,this.currentTransition=void 0,this.focusDescendantOnPresent&&focusFirstDescendant(this.el,this.el),$()})})})}async dismiss(o,s,a=!0){this.currentTransition!==void 0&&await this.currentTransition;const{destroyKeyboardInteraction:$,destroyDismissInteraction:j}=this;a&&this.parentPopover&&this.parentPopover.dismiss(o,s,a),this.currentTransition=dismiss(this,o,s,"popoverLeave",iosLeaveAnimation$3,mdLeaveAnimation$3,this.event);const _e=await this.currentTransition;if(_e){$&&($(),this.destroyKeyboardInteraction=void 0),j&&(j(),this.destroyDismissInteraction=void 0);const{delegate:et}=this.getDelegate();await detachComponent(et,this.usersElement)}return this.currentTransition=void 0,_e}async getParentPopover(){return this.parentPopover}onDidDismiss(){return eventMethod(this.el,"ionPopoverDidDismiss")}onWillDismiss(){return eventMethod(this.el,"ionPopoverWillDismiss")}render(){const o=getIonMode$2(this),{onLifecycle:s,popoverId:a,parentPopover:$,dismissOnSelect:j,side:_e,arrow:et,htmlAttributes:tt}=this,nt=isPlatform$1("desktop"),it=et&&!$;return h(Host,Object.assign({"aria-modal":"true","no-router":!0,tabindex:"-1"},tt,{style:{zIndex:`${2e4+this.overlayIndex}`},id:a,class:Object.assign(Object.assign({},getClassMap(this.cssClass)),{[o]:!0,"popover-translucent":this.translucent,"overlay-hidden":!0,"popover-desktop":nt,[`popover-side-${_e}`]:!0,"popover-nested":!!$}),onIonPopoverDidPresent:s,onIonPopoverWillPresent:s,onIonPopoverWillDismiss:s,onIonPopoverDidDismiss:s,onIonBackdropTap:this.onBackdropTap}),!$&&h("ion-backdrop",{tappable:this.backdropDismiss,visible:this.showBackdrop,part:"backdrop"}),h("div",{class:"popover-wrapper ion-overlay-wrapper",onClick:j?()=>this.dismiss():void 0},it&&h("div",{class:"popover-arrow",part:"arrow"}),h("div",{class:"popover-content",part:"content"},h("slot",null))))}get el(){return this}static get watchers(){return{trigger:["onTriggerChange"],triggerAction:["onTriggerChange"],isOpen:["onIsOpenChange"]}}static get style(){return{ios:popoverIosCss,md:popoverMdCss}}},[33,"ion-popover",{hasController:[4,"has-controller"],delegate:[16],overlayIndex:[2,"overlay-index"],enterAnimation:[16],leaveAnimation:[16],component:[1],componentProps:[16],keyboardClose:[4,"keyboard-close"],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],event:[8],showBackdrop:[4,"show-backdrop"],translucent:[4],animated:[4],htmlAttributes:[16],triggerAction:[1,"trigger-action"],trigger:[1],size:[1],dismissOnSelect:[4,"dismiss-on-select"],reference:[1],side:[1],alignment:[1025],arrow:[4],isOpen:[4,"is-open"],keyboardEvents:[4,"keyboard-events"],keepContentsMounted:[4,"keep-contents-mounted"],presented:[32],presentFromTrigger:[64],present:[64],dismiss:[64],getParentPopover:[64],onDidDismiss:[64],onWillDismiss:[64]}]),LIFECYCLE_MAP$1={ionPopoverDidPresent:"ionViewDidEnter",ionPopoverWillPresent:"ionViewWillEnter",ionPopoverWillDismiss:"ionViewWillLeave",ionPopoverDidDismiss:"ionViewDidLeave"};let popoverIds=0;function defineCustomElement$X(){if(typeof customElements>"u")return;["ion-popover","ion-backdrop"].forEach(s=>{switch(s){case"ion-popover":customElements.get(s)||customElements.define(s,Popover);break;case"ion-backdrop":customElements.get(s)||defineCustomElement$1m();break}})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const isYearDisabled=(o,s,a)=>!!(s&&s.year>o||a&&a.year<o),isDayDisabled=(o,s,a,$)=>!!(o.day===null||$!==void 0&&!$.includes(o.day)||s&&isBefore$1(o,s)||a&&isAfter(o,a)),getCalendarDayState=(o,s,a,$,j,_e,et)=>{const nt=(Array.isArray(a)?a:[a]).find(st=>isSameDay(s,st))!==void 0,it=isSameDay(s,$);return{disabled:isDayDisabled(s,j,_e,et),isActive:nt,isToday:it,ariaSelected:nt?"true":null,ariaLabel:generateDayAriaLabel(o,it,s),text:s.day!=null?getDay(o,s):null}},isMonthDisabled=(o,{minParts:s,maxParts:a})=>!!(isYearDisabled(o.year,s,a)||s&&isBefore$1(o,s)||a&&isAfter(o,a)),isPrevMonthDisabled=(o,s,a)=>{const $=Object.assign(Object.assign({},getPreviousMonth(o)),{day:null});return isMonthDisabled($,{minParts:s,maxParts:a})},isNextMonthDisabled=(o,s)=>{const a=Object.assign(Object.assign({},getNextMonth(o)),{day:null});return isMonthDisabled(a,{maxParts:s})},getHighlightStyles=(o,s,a)=>{if(Array.isArray(o)){const $=s.split("T")[0],j=o.find(_e=>_e.date===$);if(j)return{textColor:j.textColor,backgroundColor:j.backgroundColor}}else try{return o(s)}catch($){printIonError("Exception thrown from provided `highlightedDates` callback. Please check your function and try again.",a,$)}},datetimeIosCss=":host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}ion-picker-column-internal{min-width:26px}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}@supports (background: -webkit-named-image(apple-pay-logo-black)) and (not (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{left:-99999px;position:absolute;visibility:hidden;pointer-events:none}:host-context([dir=rtl]):host(.show-month-and-year) .calendar-next-prev,:host-context([dir=rtl]).show-month-and-year .calendar-next-prev,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-days-of-week,:host-context([dir=rtl]).show-month-and-year .calendar-days-of-week,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-body,:host-context([dir=rtl]).show-month-and-year .calendar-body,:host-context([dir=rtl]):host(.show-month-and-year) .datetime-time,:host-context([dir=rtl]).show-month-and-year .datetime-time{left:unset;right:unset;right:-99999px}}@supports (not (background: -webkit-named-image(apple-pay-logo-black))) or ((background: -webkit-named-image(apple-pay-logo-black)) and (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-readonly),:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled){opacity:0.4}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--background:translucent}:host .calendar-action-buttons ion-item ion-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .calendar-action-buttons ion-item ion-icon{padding-left:4px;padding-right:0;padding-top:0;padding-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host .calendar-action-buttons ion-item ion-icon{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0}}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day{padding-left:0px;padding-right:0px;padding-top:0px;padding-bottom:0px;margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host .calendar-day{padding-left:unset;padding-right:unset;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px}}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host .calendar-day{margin-left:unset;margin-right:unset;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px}}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day-highlight{border-radius:32px;padding-left:4px;padding-right:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:32px;height:32px;z-index:-1}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.calendar-day-highlight{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px}}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{border-radius:8px;padding-left:12px;padding-right:12px;padding-top:6px;padding-bottom:6px;display:-ms-flexbox;display:flex;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host .time-body{padding-left:unset;padding-right:unset;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px}}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons ion-item{--color:var(--ion-color-base)}:host{--background:var(--ion-color-light, #ffffff);--background-rgb:var(--ion-color-light-rgb);--title-color:var(--ion-color-step-600, #666666)}:host(.datetime-presentation-date-time:not(.datetime-prefer-wheel)),:host(.datetime-presentation-time-date:not(.datetime-prefer-wheel)),:host(.datetime-presentation-date:not(.datetime-prefer-wheel)){min-height:350px}:host .datetime-header{padding-left:16px;padding-right:16px;padding-top:16px;padding-bottom:16px;border-bottom:0.55px solid var(--ion-color-step-200, #cccccc);font-size:14px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host .datetime-header{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host .datetime-header .datetime-title{color:var(--title-color)}:host .datetime-header .datetime-selected-date{margin-top:10px}:host .calendar-action-buttons ion-item{--padding-start:16px;--background-hover:transparent;--background-activated:transparent;font-size:16px;font-weight:600}:host .calendar-action-buttons ion-item ion-icon,:host .calendar-action-buttons ion-buttons ion-button{color:var(--ion-color-base)}:host .calendar-action-buttons ion-buttons{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:0}:host .calendar-action-buttons ion-buttons ion-button{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host .calendar-days-of-week{padding-left:8px;padding-right:8px;padding-top:0;padding-bottom:0;color:var(--ion-color-step-300, #b3b3b3);font-size:12px;font-weight:600;line-height:24px;text-transform:uppercase}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host .calendar-days-of-week{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}:host .calendar-body .calendar-month .calendar-month-grid{padding-left:8px;padding-right:8px;padding-top:8px;padding-bottom:8px;height:calc(100% - 16px)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host .calendar-body .calendar-month .calendar-month-grid{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}:host .calendar-day{font-size:20px}.calendar-day:focus .calendar-day-highlight,.calendar-day.calendar-day-active .calendar-day-highlight{opacity:0.2}.calendar-day.calendar-day-active .calendar-day-highlight{background:var(--ion-color-base)}.calendar-day:focus .calendar-day-highlight{background:var(--ion-color-base) !important}:host .calendar-day.calendar-day-today{color:var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-base);font-weight:600}:host .calendar-day.calendar-day-today.calendar-day-active{color:var(--ion-color-contrast)}.calendar-day.calendar-day-today.calendar-day-active .calendar-day-highlight{background:var(--ion-color-base);opacity:1}:host .datetime-time{padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:16px;font-size:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host .datetime-time{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host .datetime-time .time-header{font-weight:600}:host .datetime-buttons{padding-left:8px;padding-right:8px;padding-top:8px;padding-bottom:8px;border-top:0.55px solid var(--ion-color-step-200, #cccccc)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host .datetime-buttons{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}:host .datetime-buttons ::slotted(ion-buttons),:host .datetime-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}:host .datetime-action-buttons{width:100%}",datetimeMdCss=":host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}ion-picker-column-internal{min-width:26px}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}@supports (background: -webkit-named-image(apple-pay-logo-black)) and (not (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{left:-99999px;position:absolute;visibility:hidden;pointer-events:none}:host-context([dir=rtl]):host(.show-month-and-year) .calendar-next-prev,:host-context([dir=rtl]).show-month-and-year .calendar-next-prev,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-days-of-week,:host-context([dir=rtl]).show-month-and-year .calendar-days-of-week,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-body,:host-context([dir=rtl]).show-month-and-year .calendar-body,:host-context([dir=rtl]):host(.show-month-and-year) .datetime-time,:host-context([dir=rtl]).show-month-and-year .datetime-time{left:unset;right:unset;right:-99999px}}@supports (not (background: -webkit-named-image(apple-pay-logo-black))) or ((background: -webkit-named-image(apple-pay-logo-black)) and (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-readonly),:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled){opacity:0.4}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--background:translucent}:host .calendar-action-buttons ion-item ion-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .calendar-action-buttons ion-item ion-icon{padding-left:4px;padding-right:0;padding-top:0;padding-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host .calendar-action-buttons ion-item ion-icon{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0}}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day{padding-left:0px;padding-right:0px;padding-top:0px;padding-bottom:0px;margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host .calendar-day{padding-left:unset;padding-right:unset;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px}}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host .calendar-day{margin-left:unset;margin-right:unset;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px}}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day-highlight{border-radius:32px;padding-left:4px;padding-right:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:32px;height:32px;z-index:-1}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.calendar-day-highlight{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px}}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{border-radius:8px;padding-left:12px;padding-right:12px;padding-top:6px;padding-bottom:6px;display:-ms-flexbox;display:flex;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host .time-body{padding-left:unset;padding-right:unset;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px}}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons ion-item{--color:var(--ion-color-base)}:host{--background:var(--ion-color-step-100, #ffffff);--title-color:var(--ion-color-contrast)}:host .datetime-header{padding-left:20px;padding-right:20px;padding-top:20px;padding-bottom:20px;background:var(--ion-color-base);color:var(--title-color)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host .datetime-header{padding-left:unset;padding-right:unset;-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px}}:host .datetime-header .datetime-title{font-size:12px;text-transform:uppercase}:host .datetime-header .datetime-selected-date{margin-top:30px;font-size:34px}:host .datetime-calendar .calendar-action-buttons ion-item{--padding-start:20px}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{color:var(--ion-color-step-650, #595959)}:host .calendar-days-of-week{padding-left:10px;padding-right:10px;padding-top:0px;padding-bottom:0px;color:var(--ion-color-step-500, gray);font-size:14px;line-height:36px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host .calendar-days-of-week{padding-left:unset;padding-right:unset;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}}:host .calendar-body .calendar-month .calendar-month-grid{padding-left:10px;padding-right:10px;padding-top:4px;padding-bottom:4px;grid-template-rows:repeat(6, 1fr)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host .calendar-body .calendar-month .calendar-month-grid{padding-left:unset;padding-right:unset;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}}:host .calendar-day{padding-left:0px;padding-right:0;padding-top:13px;padding-bottom:13px;font-size:14px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host .calendar-day{padding-left:unset;padding-right:unset;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0;padding-inline-end:0}}.calendar-day:focus .calendar-day-highlight{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .calendar-day.calendar-day-today{color:var(--ion-color-base)}.calendar-day.calendar-day-today .calendar-day-highlight{border:1px solid var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-contrast)}.calendar-day.calendar-day-active .calendar-day-highlight{border:1px solid var(--ion-color-base);background:var(--ion-color-base)}:host .datetime-time{padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host .datetime-time{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host .time-header{color:var(--ion-color-step-650, #595959)}:host(.datetime-presentation-month) .datetime-year,:host(.datetime-presentation-year) .datetime-year,:host(.datetime-presentation-month-year) .datetime-year{margin-top:20px;margin-bottom:20px}:host .datetime-buttons{padding-left:10px;padding-right:10px;padding-top:10px;padding-bottom:10px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host .datetime-buttons{padding-left:unset;padding-right:unset;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}}:host .datetime-view-buttons ion-button{color:var(--ion-color-step-800, #333333)}",Datetime=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionCancel=createEvent(this,"ionCancel",7),this.ionChange=createEvent(this,"ionChange",7),this.ionFocus=createEvent(this,"ionFocus",7),this.ionBlur=createEvent(this,"ionBlur",7),this.ionStyle=createEvent(this,"ionStyle",7),this.ionRender=createEvent(this,"ionRender",7),this.inputId=`ion-dt-${datetimeIds++}`,this.prevPresentation=null,this.activePartsClone=[],this.showMonthAndYear=!1,this.activeParts=[],this.workingParts={month:5,day:28,year:2021,hour:13,minute:52,ampm:"pm"},this.isPresented=!1,this.isTimePopoverOpen=!1,this.color="primary",this.name=this.inputId,this.disabled=!1,this.readonly=!1,this.presentation="date-time",this.cancelText="Cancel",this.doneText="Done",this.clearText="Clear",this.locale="default",this.firstDayOfWeek=0,this.multiple=!1,this.showDefaultTitle=!1,this.showDefaultButtons=!1,this.showClearButton=!1,this.showDefaultTimeLabel=!0,this.size="fixed",this.preferWheel=!1,this.getActivePartsWithFallback=()=>{var o;const{defaultParts:s}=this;return(o=this.getActivePart())!==null&&o!==void 0?o:s},this.getActivePart=()=>{const{activePartsClone:o}=this;return Array.isArray(o)?o[0]:o},this.closeParentOverlay=()=>{const o=this.el.closest("ion-modal, ion-popover");o&&o.dismiss()},this.setWorkingParts=o=>{this.workingParts=Object.assign({},o)},this.setActiveParts=(o,s=!1)=>{const{multiple:a,minParts:$,maxParts:j,activePartsClone:_e}=this,et=validateParts(o,$,j);if(this.setWorkingParts(et),a){const nt=Array.isArray(_e)?_e:[_e];s?this.activeParts=nt.filter(it=>!isSameDay(it,et)):this.activeParts=[...nt,et]}else this.activeParts=Object.assign({},et);this.el.querySelector('[slot="buttons"]')!==null||this.showDefaultButtons||this.confirm()},this.initializeKeyboardListeners=()=>{const o=this.calendarBodyRef;if(!o)return;const s=this.el.shadowRoot,a=o.querySelector(".calendar-month:nth-of-type(2)"),$=_e=>{var et;!((et=_e[0].oldValue)===null||et===void 0)&&et.includes("ion-focused")||!o.classList.contains("ion-focused")||this.focusWorkingDay(a)},j=new MutationObserver($);j.observe(o,{attributeFilter:["class"],attributeOldValue:!0}),this.destroyKeyboardMO=()=>{j==null||j.disconnect()},o.addEventListener("keydown",_e=>{const et=s.activeElement;if(!et||!et.classList.contains("calendar-day"))return;const tt=getPartsFromCalendarDay(et);let nt;switch(_e.key){case"ArrowDown":_e.preventDefault(),nt=getNextWeek(tt);break;case"ArrowUp":_e.preventDefault(),nt=getPreviousWeek(tt);break;case"ArrowRight":_e.preventDefault(),nt=getNextDay(tt);break;case"ArrowLeft":_e.preventDefault(),nt=getPreviousDay(tt);break;case"Home":_e.preventDefault(),nt=getStartOfWeek(tt);break;case"End":_e.preventDefault(),nt=getEndOfWeek(tt);break;case"PageUp":_e.preventDefault(),nt=_e.shiftKey?getPreviousYear(tt):getPreviousMonth(tt);break;case"PageDown":_e.preventDefault(),nt=_e.shiftKey?getNextYear(tt):getNextMonth(tt);break;default:return}isDayDisabled(nt,this.minParts,this.maxParts)||(this.setWorkingParts(Object.assign(Object.assign({},this.workingParts),nt)),requestAnimationFrame(()=>this.focusWorkingDay(a)))})},this.focusWorkingDay=o=>{const s=o.querySelectorAll(".calendar-day-padding"),{day:a}=this.workingParts;if(a===null)return;const $=o.querySelector(`.calendar-day:nth-of-type(${s.length+a})`);$&&$.focus()},this.processMinParts=()=>{const{min:o,defaultParts:s}=this;if(o===void 0){this.minParts=void 0;return}this.minParts=parseMinParts(o,s)},this.processMaxParts=()=>{const{max:o,defaultParts:s}=this;if(o===void 0){this.maxParts=void 0;return}this.maxParts=parseMaxParts(o,s)},this.initializeCalendarListener=()=>{const o=this.calendarBodyRef;if(!o)return;const s=o.querySelectorAll(".calendar-month"),a=s[0],$=s[1],j=s[2],et=getIonMode$2(this)==="ios"&&typeof navigator<"u"&&navigator.maxTouchPoints>1;writeTask(()=>{o.scrollLeft=a.clientWidth*(isRTL$2(this.el)?-1:1);const tt=ot=>{const at=o.getBoundingClientRect(),ct=this.el.shadowRoot.elementFromPoint(at.x+at.width/2,at.y+at.height/2);if(!ct)return;const ht=ct.closest(".calendar-month");if(!ht)return;const dt=ht.getBoundingClientRect();if(!(Math.abs(dt.x-at.x)>2))return ht===a?getPreviousMonth(ot):ht===j?getNextMonth(ot):void 0},nt=()=>{et&&(o.style.removeProperty("pointer-events"),rt=!1);const ot=tt(this.workingParts);if(!ot)return;const{month:at,day:lt,year:ct}=ot;isMonthDisabled({month:at,year:ct,day:null},{minParts:Object.assign(Object.assign({},this.minParts),{day:null}),maxParts:Object.assign(Object.assign({},this.maxParts),{day:null})})||(o.style.setProperty("overflow","hidden"),writeTask(()=>{this.setWorkingParts(Object.assign(Object.assign({},this.workingParts),{month:at,day:lt,year:ct})),o.scrollLeft=$.clientWidth*(isRTL$2(this.el)?-1:1),o.style.removeProperty("overflow")}))};let it,rt=!1;const st=()=>{it&&clearTimeout(it),!rt&&et&&(o.style.setProperty("pointer-events","none"),rt=!0),it=setTimeout(nt,50)};o.addEventListener("scroll",st),this.destroyCalendarListener=()=>{o.removeEventListener("scroll",st)}})},this.destroyInteractionListeners=()=>{const{destroyCalendarListener:o,destroyKeyboardMO:s}=this;o!==void 0&&o(),s!==void 0&&s()},this.processValue=o=>{const s=o!==""&&o!==null&&o!==void 0;let a=s?parseDate(o):this.defaultParts;const{minParts:$,maxParts:j,multiple:_e}=this;!_e&&Array.isArray(o)&&(this.value=o[0],a=a[0]),s&&warnIfValueOutOfBounds(a,$,j);const et=Array.isArray(a)?a[0]:a,{month:tt,day:nt,year:it,hour:rt,minute:st,tzOffset:ot}=clampDate(et,$,j),at=parseAmPm(rt);this.setWorkingParts({month:tt,day:nt,year:it,hour:rt,minute:st,tzOffset:ot,ampm:at}),s?Array.isArray(a)?this.activeParts=[...a]:this.activeParts={month:tt,day:nt,year:it,hour:rt,minute:st,tzOffset:ot,ampm:at}:this.activeParts=[]},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.hasValue=()=>this.value!=null&&this.value!=="",this.nextMonth=()=>{const o=this.calendarBodyRef;if(!o)return;const s=o.querySelector(".calendar-month:last-of-type");if(!s)return;const a=s.offsetWidth*2;o.scrollTo({top:0,left:a*(isRTL$2(this.el)?-1:1),behavior:"smooth"})},this.prevMonth=()=>{const o=this.calendarBodyRef;!o||!o.querySelector(".calendar-month:first-of-type")||o.scrollTo({top:0,left:0,behavior:"smooth"})},this.toggleMonthAndYearView=()=>{this.showMonthAndYear=!this.showMonthAndYear}}disabledChanged(){this.emitStyle()}minChanged(){this.processMinParts()}maxChanged(){this.processMaxParts()}yearValuesChanged(){this.parsedYearValues=convertToArrayOfNumbers(this.yearValues)}monthValuesChanged(){this.parsedMonthValues=convertToArrayOfNumbers(this.monthValues)}dayValuesChanged(){this.parsedDayValues=convertToArrayOfNumbers(this.dayValues)}hourValuesChanged(){this.parsedHourValues=convertToArrayOfNumbers(this.hourValues)}minuteValuesChanged(){this.parsedMinuteValues=convertToArrayOfNumbers(this.minuteValues)}activePartsChanged(){this.activePartsClone=this.activeParts}valueChanged(){const{value:o,minParts:s,maxParts:a,workingParts:$,multiple:j}=this;if(this.hasValue()){if(!j&&Array.isArray(o)){this.value=o[0];return}const _e=parseDate(o);if(_e)if(warnIfValueOutOfBounds(_e,s,a),Array.isArray(_e))this.activePartsClone=[..._e];else{const{month:et,day:tt,year:nt,hour:it,minute:rt}=_e,st=it!=null?it>=12?"pm":"am":void 0;this.activePartsClone=Object.assign(Object.assign({},this.activeParts),{month:et,day:tt,year:nt,hour:it,minute:rt,ampm:st}),this.setWorkingParts(Object.assign(Object.assign({},$),{ampm:st}))}else printIonWarning(`Unable to parse date string: ${o}. Please provide a valid ISO 8601 datetime string.`)}this.emitStyle(),this.ionChange.emit({value:o})}async confirm(o=!1){const{isCalendarPicker:s,activeParts:a}=this;if(a!==void 0||!s){const $=Array.isArray(a);if($&&a.length===0)this.value=void 0;else{if($){const j=convertDataToISO(a).map(_e=>new Date(_e));for(let _e=0;_e<j.length;_e++)a[_e].tzOffset=j[_e].getTimezoneOffset()*-1}else{const j=new Date(convertDataToISO(a));a.tzOffset=j.getTimezoneOffset()*-1}this.value=convertDataToISO(a)}}o&&this.closeParentOverlay()}async reset(o){this.processValue(o)}async cancel(o=!1){this.ionCancel.emit(),o&&this.closeParentOverlay()}get isCalendarPicker(){const{presentation:o}=this;return o==="date"||o==="date-time"||o==="time-date"}connectedCallback(){this.clearFocusVisible=startFocusVisible(this.el).destroy}disconnectedCallback(){this.clearFocusVisible&&(this.clearFocusVisible(),this.clearFocusVisible=void 0)}initializeListeners(){this.initializeCalendarListener(),this.initializeKeyboardListeners()}componentDidLoad(){const o=_e=>{_e[0].isIntersecting&&(this.initializeListeners(),writeTask(()=>{this.el.classList.add("datetime-ready")}))},s=new IntersectionObserver(o,{threshold:.01});raf(()=>s==null?void 0:s.observe(this.el));const a=_e=>{_e[0].isIntersecting||(this.destroyInteractionListeners(),this.showMonthAndYear=!1,writeTask(()=>{this.el.classList.remove("datetime-ready")}))},$=new IntersectionObserver(a,{threshold:0});raf(()=>$==null?void 0:$.observe(this.el));const j=getElementRoot(this.el);j.addEventListener("ionFocus",_e=>_e.stopPropagation()),j.addEventListener("ionBlur",_e=>_e.stopPropagation())}componentDidRender(){const{presentation:o,prevPresentation:s,calendarBodyRef:a,minParts:$,preferWheel:j}=this,_e=!j&&["date-time","time-date","date"].includes(o);if($!==void 0&&_e&&a){const et=a.querySelector(".calendar-month:nth-of-type(1)");et&&(a.scrollLeft=et.clientWidth*(isRTL$2(this.el)?-1:1))}if(s===null){this.prevPresentation=o;return}o!==s&&(this.prevPresentation=o,this.destroyInteractionListeners(),this.initializeListeners(),this.showMonthAndYear=!1,raf(()=>{this.ionRender.emit()}))}componentWillLoad(){const{el:o,highlightedDates:s,multiple:a,presentation:$,preferWheel:j}=this;a&&($!=="date"&&printIonWarning('Multiple date selection is only supported for presentation="date".',o),j&&printIonWarning('Multiple date selection is not supported with preferWheel="true".',o)),s!==void 0&&($!=="date"&&$!=="date-time"&&$!=="time-date"&&printIonWarning("The highlightedDates property is only supported with the date, date-time, and time-date presentations.",o),j&&printIonWarning('The highlightedDates property is not supported with preferWheel="true".',o)),this.processMinParts(),this.processMaxParts();const _e=this.parsedHourValues=convertToArrayOfNumbers(this.hourValues),et=this.parsedMinuteValues=convertToArrayOfNumbers(this.minuteValues),tt=this.parsedMonthValues=convertToArrayOfNumbers(this.monthValues),nt=this.parsedYearValues=convertToArrayOfNumbers(this.yearValues),it=this.parsedDayValues=convertToArrayOfNumbers(this.dayValues),rt=this.todayParts=parseDate(getToday());this.defaultParts=getClosestValidDate(rt,tt,it,nt,_e,et),this.processValue(this.value),this.emitStyle()}emitStyle(){this.ionStyle.emit({interactive:!0,datetime:!0,"interactive-disabled":this.disabled})}renderFooter(){const{showDefaultButtons:o,showClearButton:s}=this;if(!(this.el.querySelector('[slot="buttons"]')!==null)&&!o&&!s)return;const $=()=>{this.reset(),this.value=void 0};return h("div",{class:"datetime-footer"},h("div",{class:"datetime-buttons"},h("div",{class:{"datetime-action-buttons":!0,"has-clear-button":this.showClearButton}},h("slot",{name:"buttons"},h("ion-buttons",null,o&&h("ion-button",{id:"cancel-button",color:this.color,onClick:()=>this.cancel(!0)},this.cancelText),h("div",null,s&&h("ion-button",{id:"clear-button",color:this.color,onClick:()=>$()},this.clearText),o&&h("ion-button",{id:"confirm-button",color:this.color,onClick:()=>this.confirm(!0)},this.doneText)))))))}renderWheelPicker(o=this.presentation){const s=o==="time-date"?[this.renderTimePickerColumns(o),this.renderDatePickerColumns(o)]:[this.renderDatePickerColumns(o),this.renderTimePickerColumns(o)];return h("ion-picker-internal",null,s)}renderDatePickerColumns(o){return o==="date-time"||o==="time-date"?this.renderCombinedDatePickerColumn():this.renderIndividualDatePickerColumns(o)}renderCombinedDatePickerColumn(){const{defaultParts:o,workingParts:s,locale:a,minParts:$,maxParts:j,todayParts:_e,isDateEnabled:et}=this,tt=this.getActivePartsWithFallback(),nt=generateMonths(s),it=nt[nt.length-1];nt[0].day=1,it.day=getNumDaysInMonth(it.month,it.year);const rt=$!==void 0&&isAfter($,nt[0])?$:nt[0],st=j!==void 0&&isBefore$1(j,it)?j:it,ot=getCombinedDateColumnData(a,_e,rt,st,this.parsedDayValues,this.parsedMonthValues);let at=ot.items;const lt=ot.parts;et&&(at=at.map((ht,dt)=>{const ut=lt[dt];let pt;try{pt=!et(convertDataToISO(ut))}catch(ft){printIonError("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",ft)}return Object.assign(Object.assign({},ht),{disabled:pt})}));const ct=s.day!==null?`${s.year}-${s.month}-${s.day}`:`${o.year}-${o.month}-${o.day}`;return h("ion-picker-column-internal",{class:"date-column",color:this.color,items:at,value:ct,onIonChange:ht=>{this.destroyCalendarListener&&this.destroyCalendarListener();const{value:dt}=ht.detail,ut=lt.find(({month:pt,day:ft,year:mt})=>dt===`${mt}-${pt}-${ft}`);this.setWorkingParts(Object.assign(Object.assign({},s),ut)),this.setActiveParts(Object.assign(Object.assign({},tt),ut)),this.initializeCalendarListener(),ht.stopPropagation()}})}renderIndividualDatePickerColumns(o){const{workingParts:s,isDateEnabled:a}=this,j=o!=="year"&&o!=="time"?getMonthColumnData(this.locale,s,this.minParts,this.maxParts,this.parsedMonthValues):[];let et=o==="date"?getDayColumnData(this.locale,s,this.minParts,this.maxParts,this.parsedDayValues):[];a&&(et=et.map(st=>{const{value:ot}=st,at=typeof ot=="string"?parseInt(ot):ot,lt={month:s.month,day:at,year:s.year};let ct;try{ct=!a(convertDataToISO(lt))}catch(ht){printIonError("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",ht)}return Object.assign(Object.assign({},st),{disabled:ct})}));const nt=o!=="month"&&o!=="time"?getYearColumnData(this.locale,this.defaultParts,this.minParts,this.maxParts,this.parsedYearValues):[],it=isMonthFirstLocale(this.locale,{month:"numeric",day:"numeric"});let rt=[];return it?rt=[this.renderMonthPickerColumn(j),this.renderDayPickerColumn(et),this.renderYearPickerColumn(nt)]:rt=[this.renderDayPickerColumn(et),this.renderMonthPickerColumn(j),this.renderYearPickerColumn(nt)],rt}renderDayPickerColumn(o){var s;if(o.length===0)return[];const{workingParts:a}=this,$=this.getActivePartsWithFallback();return h("ion-picker-column-internal",{class:"day-column",color:this.color,items:o,value:(s=a.day!==null?a.day:this.defaultParts.day)!==null&&s!==void 0?s:void 0,onIonChange:j=>{this.destroyCalendarListener&&this.destroyCalendarListener(),this.setWorkingParts(Object.assign(Object.assign({},a),{day:j.detail.value})),this.setActiveParts(Object.assign(Object.assign({},$),{day:j.detail.value})),this.initializeCalendarListener(),j.stopPropagation()}})}renderMonthPickerColumn(o){if(o.length===0)return[];const{workingParts:s}=this,a=this.getActivePartsWithFallback();return h("ion-picker-column-internal",{class:"month-column",color:this.color,items:o,value:s.month,onIonChange:$=>{this.destroyCalendarListener&&this.destroyCalendarListener(),this.setWorkingParts(Object.assign(Object.assign({},s),{month:$.detail.value})),this.setActiveParts(Object.assign(Object.assign({},a),{month:$.detail.value})),this.initializeCalendarListener(),$.stopPropagation()}})}renderYearPickerColumn(o){if(o.length===0)return[];const{workingParts:s}=this,a=this.getActivePartsWithFallback();return h("ion-picker-column-internal",{class:"year-column",color:this.color,items:o,value:s.year,onIonChange:$=>{this.destroyCalendarListener&&this.destroyCalendarListener(),this.setWorkingParts(Object.assign(Object.assign({},s),{year:$.detail.value})),this.setActiveParts(Object.assign(Object.assign({},a),{year:$.detail.value})),this.initializeCalendarListener(),$.stopPropagation()}})}renderTimePickerColumns(o){if(["date","month","month-year","year"].includes(o))return[];const a=this.getActivePart()!==void 0,{hoursData:$,minutesData:j,dayPeriodData:_e}=getTimeColumnsData(this.locale,this.workingParts,this.hourCycle,a?this.minParts:void 0,a?this.maxParts:void 0,this.parsedHourValues,this.parsedMinuteValues);return[this.renderHourPickerColumn($),this.renderMinutePickerColumn(j),this.renderDayPeriodPickerColumn(_e)]}renderHourPickerColumn(o){const{workingParts:s}=this;if(o.length===0)return[];const a=this.getActivePartsWithFallback();return h("ion-picker-column-internal",{color:this.color,value:a.hour,items:o,numericInput:!0,onIonChange:$=>{this.setWorkingParts(Object.assign(Object.assign({},s),{hour:$.detail.value})),this.setActiveParts(Object.assign(Object.assign({},a),{hour:$.detail.value})),$.stopPropagation()}})}renderMinutePickerColumn(o){const{workingParts:s}=this;if(o.length===0)return[];const a=this.getActivePartsWithFallback();return h("ion-picker-column-internal",{color:this.color,value:a.minute,items:o,numericInput:!0,onIonChange:$=>{this.setWorkingParts(Object.assign(Object.assign({},s),{minute:$.detail.value})),this.setActiveParts(Object.assign(Object.assign({},a),{minute:$.detail.value})),$.stopPropagation()}})}renderDayPeriodPickerColumn(o){const{workingParts:s}=this;if(o.length===0)return[];const a=this.getActivePartsWithFallback(),$=isLocaleDayPeriodRTL(this.locale);return h("ion-picker-column-internal",{style:$?{order:"-1"}:{},color:this.color,value:a.ampm,items:o,onIonChange:j=>{const _e=calculateHourFromAMPM(s,j.detail.value);this.setWorkingParts(Object.assign(Object.assign({},s),{ampm:j.detail.value,hour:_e})),this.setActiveParts(Object.assign(Object.assign({},a),{ampm:j.detail.value,hour:_e})),j.stopPropagation()}})}renderWheelView(o){const{locale:s}=this,$=isMonthFirstLocale(s)?"month-first":"year-first";return h("div",{class:{[`wheel-order-${$}`]:!0}},this.renderWheelPicker(o))}renderCalendarHeader(o){const s=o==="ios"?chevronDown$1:caretUpSharp,a=o==="ios"?chevronForward$1:caretDownSharp,$=isPrevMonthDisabled(this.workingParts,this.minParts,this.maxParts),j=isNextMonthDisabled(this.workingParts,this.maxParts),_e=this.el.getAttribute("dir")||void 0;return h("div",{class:"calendar-header"},h("div",{class:"calendar-action-buttons"},h("div",{class:"calendar-month-year"},h("ion-item",{button:!0,detail:!1,lines:"none",onClick:()=>this.toggleMonthAndYearView()},h("ion-label",null,getMonthAndYear(this.locale,this.workingParts),h("ion-icon",{"aria-hidden":"true",icon:this.showMonthAndYear?s:a,lazy:!1,flipRtl:!0})))),h("div",{class:"calendar-next-prev"},h("ion-buttons",null,h("ion-button",{"aria-label":"previous month",disabled:$,onClick:()=>this.prevMonth()},h("ion-icon",{dir:_e,"aria-hidden":"true",slot:"icon-only",icon:chevronBack,lazy:!1,flipRtl:!0})),h("ion-button",{"aria-label":"next month",disabled:j,onClick:()=>this.nextMonth()},h("ion-icon",{dir:_e,"aria-hidden":"true",slot:"icon-only",icon:chevronForward$1,lazy:!1,flipRtl:!0}))))),h("div",{class:"calendar-days-of-week","aria-hidden":"true"},getDaysOfWeek(this.locale,o,this.firstDayOfWeek%7).map(et=>h("div",{class:"day-of-week"},et))))}renderMonth(o,s){const a=this.parsedYearValues===void 0||this.parsedYearValues.includes(s),$=this.parsedMonthValues===void 0||this.parsedMonthValues.includes(o),j=!a||!$,_e=isMonthDisabled({month:o,year:s,day:null},{minParts:Object.assign(Object.assign({},this.minParts),{day:null}),maxParts:Object.assign(Object.assign({},this.maxParts),{day:null})}),et=this.workingParts.month===o&&this.workingParts.year===s,tt=this.getActivePartsWithFallback();return h("div",{"aria-hidden":et?null:"true",class:{"calendar-month":!0,"calendar-month-disabled":!et&&_e}},h("div",{class:"calendar-month-grid"},getDaysOfMonth(o,s,this.firstDayOfWeek%7).map((nt,it)=>{const{day:rt,dayOfWeek:st}=nt,{el:ot,highlightedDates:at,isDateEnabled:lt,multiple:ct}=this,ht={month:o,day:rt,year:s},dt=rt===null,{isActive:ut,isToday:pt,ariaLabel:ft,ariaSelected:mt,disabled:gt,text:bt}=getCalendarDayState(this.locale,ht,this.activePartsClone,this.todayParts,this.minParts,this.maxParts,this.parsedDayValues),St=convertDataToISO(ht);let Nt=j||gt;if(!Nt&&lt!==void 0)try{Nt=!lt(St)}catch(Ft){printIonError("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",ot,Ft)}let Rt;return at!==void 0&&!ut&&rt!==null&&(Rt=getHighlightStyles(at,St,ot)),h("button",{tabindex:"-1","data-day":rt,"data-month":o,"data-year":s,"data-index":it,"data-day-of-week":st,disabled:Nt,class:{"calendar-day-padding":dt,"calendar-day":!0,"calendar-day-active":ut,"calendar-day-today":pt},style:Rt&&{color:Rt.textColor},"aria-hidden":dt?"true":null,"aria-selected":mt,"aria-label":ft,onClick:()=>{dt||(this.setWorkingParts(Object.assign(Object.assign({},this.workingParts),{month:o,day:rt,year:s})),ct?this.setActiveParts({month:o,day:rt,year:s},ut):this.setActiveParts(Object.assign(Object.assign({},tt),{month:o,day:rt,year:s})))}},h("div",{class:"calendar-day-highlight",style:{backgroundColor:Rt==null?void 0:Rt.backgroundColor}}),bt)})))}renderCalendarBody(){return h("div",{class:"calendar-body ion-focusable",ref:o=>this.calendarBodyRef=o,tabindex:"0"},generateMonths(this.workingParts).map(({month:o,year:s})=>this.renderMonth(o,s)))}renderCalendar(o){return h("div",{class:"datetime-calendar",key:"datetime-calendar"},this.renderCalendarHeader(o),this.renderCalendarBody())}renderTimeLabel(){if(!(!(this.el.querySelector('[slot="time-label"]')!==null)&&!this.showDefaultTimeLabel))return h("slot",{name:"time-label"},"Time")}renderTimeOverlay(){const o=is24Hour(this.locale,this.hourCycle),s=this.getActivePartsWithFallback();return[h("div",{class:"time-header"},this.renderTimeLabel()),h("button",{class:{"time-body":!0,"time-body-active":this.isTimePopoverOpen},"aria-expanded":"false","aria-haspopup":"true",onClick:async a=>{const{popoverRef:$}=this;$&&(this.isTimePopoverOpen=!0,$.present(new CustomEvent("ionShadowTarget",{detail:{ionShadowTarget:a.target}})),await $.onWillDismiss(),this.isTimePopoverOpen=!1)}},getLocalizedTime(this.locale,s,o)),h("ion-popover",{alignment:"center",translucent:!0,overlayIndex:1,arrow:!1,onWillPresent:a=>{a.target.querySelectorAll("ion-picker-column-internal").forEach(j=>j.scrollActiveItemIntoView())},style:{"--offset-y":"-10px","--min-width":"fit-content"},keyboardEvents:!0,ref:a=>this.popoverRef=a},this.renderWheelPicker("time"))]}getHeaderSelectedDateText(){const{activeParts:o,multiple:s,titleSelectedDatesFormatter:a}=this,$=Array.isArray(o);let j;if(s&&$&&o.length!==1){if(j=`${o.length} days`,a!==void 0)try{j=a(convertDataToISO(o))}catch(_e){printIonError("Exception in provided `titleSelectedDatesFormatter`: ",_e)}}else j=getMonthAndDay(this.locale,this.getActivePartsWithFallback());return j}renderHeader(o=!0){if(!(!(this.el.querySelector('[slot="title"]')!==null)&&!this.showDefaultTitle))return h("div",{class:"datetime-header"},h("div",{class:"datetime-title"},h("slot",{name:"title"},"Select Date")),o&&h("div",{class:"datetime-selected-date"},this.getHeaderSelectedDateText()))}renderTime(){const{presentation:o}=this;return h("div",{class:"datetime-time"},o==="time"?this.renderWheelPicker():this.renderTimeOverlay())}renderCalendarViewMonthYearPicker(){return h("div",{class:"datetime-year"},this.renderWheelView("month-year"))}renderDatetime(o){const{presentation:s,preferWheel:a}=this;if(a&&(s==="date"||s==="date-time"||s==="time-date"))return[this.renderHeader(!1),this.renderWheelView(),this.renderFooter()];switch(s){case"date-time":return[this.renderHeader(),this.renderCalendar(o),this.renderCalendarViewMonthYearPicker(),this.renderTime(),this.renderFooter()];case"time-date":return[this.renderHeader(),this.renderTime(),this.renderCalendar(o),this.renderCalendarViewMonthYearPicker(),this.renderFooter()];case"time":return[this.renderHeader(!1),this.renderTime(),this.renderFooter()];case"month":case"month-year":case"year":return[this.renderHeader(!1),this.renderWheelView(),this.renderFooter()];default:return[this.renderHeader(),this.renderCalendar(o),this.renderCalendarViewMonthYearPicker(),this.renderFooter()]}}render(){const{name:o,value:s,disabled:a,el:$,color:j,isPresented:_e,readonly:et,showMonthAndYear:tt,preferWheel:nt,presentation:it,size:rt}=this,st=getIonMode$2(this),ot=it==="year"||it==="month"||it==="month-year",at=tt||ot,lt=tt&&!ot,ct=it==="date"||it==="date-time"||it==="time-date",ht=ct&&nt,dt=ct&&!nt;return renderHiddenInput(!0,$,o,formatValue(s),a),h(Host,{"aria-disabled":a?"true":null,onFocus:this.onFocus,onBlur:this.onBlur,class:Object.assign({},createColorClasses$1(j,{[st]:!0,"datetime-presented":_e,"datetime-readonly":et,"datetime-disabled":a,"show-month-and-year":at,"month-year-picker-open":lt,[`datetime-presentation-${it}`]:!0,[`datetime-size-${rt}`]:!0,"datetime-prefer-wheel":ht,"datetime-grid":dt}))},this.renderDatetime(st))}get el(){return this}static get watchers(){return{disabled:["disabledChanged"],min:["minChanged"],max:["maxChanged"],yearValues:["yearValuesChanged"],monthValues:["monthValuesChanged"],dayValues:["dayValuesChanged"],hourValues:["hourValuesChanged"],minuteValues:["minuteValuesChanged"],activeParts:["activePartsChanged"],value:["valueChanged"]}}static get style(){return{ios:datetimeIosCss,md:datetimeMdCss}}},[33,"ion-datetime",{color:[1],name:[1],disabled:[4],readonly:[4],isDateEnabled:[16],min:[1025],max:[1025],presentation:[1],cancelText:[1,"cancel-text"],doneText:[1,"done-text"],clearText:[1,"clear-text"],yearValues:[8,"year-values"],monthValues:[8,"month-values"],dayValues:[8,"day-values"],hourValues:[8,"hour-values"],minuteValues:[8,"minute-values"],locale:[1],firstDayOfWeek:[2,"first-day-of-week"],titleSelectedDatesFormatter:[16],multiple:[4],highlightedDates:[16],value:[1025],showDefaultTitle:[4,"show-default-title"],showDefaultButtons:[4,"show-default-buttons"],showClearButton:[4,"show-clear-button"],showDefaultTimeLabel:[4,"show-default-time-label"],hourCycle:[1,"hour-cycle"],size:[1],preferWheel:[4,"prefer-wheel"],showMonthAndYear:[32],activeParts:[32],workingParts:[32],isPresented:[32],isTimePopoverOpen:[32],confirm:[64],reset:[64],cancel:[64]}]);let datetimeIds=0;function defineCustomElement$1$F(){if(typeof customElements>"u")return;["ion-datetime","ion-backdrop","ion-button","ion-buttons","ion-icon","ion-item","ion-label","ion-note","ion-picker-column-internal","ion-picker-internal","ion-popover","ion-ripple-effect"].forEach(s=>{switch(s){case"ion-datetime":customElements.get(s)||customElements.define(s,Datetime);break;case"ion-backdrop":customElements.get(s)||defineCustomElement$1m();break;case"ion-button":customElements.get(s)||defineCustomElement$1c();break;case"ion-buttons":customElements.get(s)||defineCustomElement$1b();break;case"ion-icon":customElements.get(s)||defineCustomElement$1n();break;case"ion-item":customElements.get(s)||defineCustomElement$$();break;case"ion-label":customElements.get(s)||defineCustomElement$_();break;case"ion-note":customElements.get(s)||defineCustomElement$10();break;case"ion-picker-column-internal":customElements.get(s)||defineCustomElement$Z();break;case"ion-picker-internal":customElements.get(s)||defineCustomElement$Y();break;case"ion-popover":customElements.get(s)||defineCustomElement$X();break;case"ion-ripple-effect":customElements.get(s)||defineCustomElement$1l();break}})}const defineCustomElement$W=defineCustomElement$1$F;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const iosDatetimeButtonCss=":host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host button{border-radius:8px;padding-left:12px;padding-right:12px;padding-top:6px;padding-bottom:6px;margin-left:2px;margin-right:2px;margin-top:0px;margin-bottom:0px;position:relative;-webkit-transition:150ms color ease-in-out;transition:150ms color ease-in-out;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host button{padding-left:unset;padding-right:unset;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px}}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host button{margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px}}:host(.time-active) #time-button,:host(.date-active) #date-button{color:var(--ion-color-base)}:host(.datetime-button-disabled){pointer-events:none}:host(.datetime-button-disabled) button{opacity:0.4}",mdDatetimeButtonCss=":host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host button{border-radius:8px;padding-left:12px;padding-right:12px;padding-top:6px;padding-bottom:6px;margin-left:2px;margin-right:2px;margin-top:0px;margin-bottom:0px;position:relative;-webkit-transition:150ms color ease-in-out;transition:150ms color ease-in-out;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host button{padding-left:unset;padding-right:unset;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px}}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host button{margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px}}:host(.time-active) #time-button,:host(.date-active) #date-button{color:var(--ion-color-base)}:host(.datetime-button-disabled){pointer-events:none}:host(.datetime-button-disabled) button{opacity:0.4}",DatetimeButton=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.datetimeEl=null,this.overlayEl=null,this.datetimePresentation="date-time",this.datetimeActive=!1,this.color="primary",this.disabled=!1,this.getParsedDateValues=o=>o===""||o===void 0||o===null?[]:Array.isArray(o)?o:[o],this.setDateTimeText=()=>{const{datetimeEl:o,datetimePresentation:s}=this;if(!o)return;const{value:a,locale:$,hourCycle:j,preferWheel:_e,multiple:et,titleSelectedDatesFormatter:tt}=o,nt=this.getParsedDateValues(a),it=parseDate(nt.length>0?nt:[getToday()]),rt=it[0],st=is24Hour($,j);switch(it.forEach(ot=>{ot.tzOffset=void 0}),this.dateText=this.timeText=void 0,s){case"date-time":case"time-date":const ot=getMonthDayAndYear($,rt),at=getLocalizedTime($,rt,st);_e?this.dateText=`${ot} ${at}`:(this.dateText=ot,this.timeText=at);break;case"date":if(et&&nt.length!==1){let lt=`${nt.length} days`;if(tt!==void 0)try{lt=tt(nt)}catch(ct){printIonError("Exception in provided `titleSelectedDatesFormatter`: ",ct)}this.dateText=lt}else this.dateText=getMonthDayAndYear($,rt);break;case"time":this.timeText=getLocalizedTime($,rt,st);break;case"month-year":this.dateText=getMonthAndYear($,rt);break;case"month":this.dateText=getLocalizedDateTime($,rt,{month:"long"});break;case"year":this.dateText=getLocalizedDateTime($,rt,{year:"numeric"});break}},this.waitForDatetimeChanges=async()=>{const{datetimeEl:o}=this;return o?new Promise(s=>{addEventListener$2(o,"ionRender",s,{once:!0})}):Promise.resolve()},this.handleDateClick=async o=>{const{datetimeEl:s,datetimePresentation:a}=this;if(!s)return;let $=!1;switch(a){case"date-time":case"time-date":const j=s.presentation!=="date";!s.preferWheel&&j&&(s.presentation="date",$=!0);break}this.selectedButton="date",this.presentOverlay(o,$,this.dateTargetEl)},this.handleTimeClick=o=>{const{datetimeEl:s,datetimePresentation:a}=this;if(!s)return;let $=!1;switch(a){case"date-time":case"time-date":s.presentation!=="time"&&(s.presentation="time",$=!0);break}this.selectedButton="time",this.presentOverlay(o,$,this.timeTargetEl)},this.presentOverlay=async(o,s,a)=>{const{overlayEl:$}=this;$&&($.tagName==="ION-POPOVER"?(s&&await this.waitForDatetimeChanges(),$.present(Object.assign(Object.assign({},o),{detail:{ionShadowTarget:a}}))):$.present())}}async componentWillLoad(){const{datetime:o}=this;if(!o){printIonError("An ID associated with an ion-datetime instance is required for ion-datetime-button to function properly.",this.el);return}const s=this.datetimeEl=document.getElementById(o);if(!s){printIonError(`No ion-datetime instance found for ID '${o}'.`,this.el);return}new IntersectionObserver(j=>{const _e=j[0];this.datetimeActive=_e.isIntersecting},{threshold:.01}).observe(s);const $=this.overlayEl=s.closest("ion-modal, ion-popover");$&&$.classList.add("ion-datetime-button-overlay"),componentOnReady(s,()=>{const j=this.datetimePresentation=s.presentation||"date-time";switch(this.setDateTimeText(),addEventListener$2(s,"ionChange",this.setDateTimeText),j){case"date-time":case"date":case"month-year":case"month":case"year":this.selectedButton="date";break;case"time-date":case"time":this.selectedButton="time";break}})}render(){const{color:o,dateText:s,timeText:a,selectedButton:$,datetimeActive:j,disabled:_e}=this,et=getIonMode$2(this);return h(Host,{class:createColorClasses$1(o,{[et]:!0,[`${$}-active`]:j,"datetime-button-disabled":_e})},s&&h("button",{class:"ion-activatable",id:"date-button","aria-expanded":j?"true":"false",onClick:this.handleDateClick,disabled:_e,part:"native",ref:tt=>this.dateTargetEl=tt},h("slot",{name:"date-target"},s),et==="md"&&h("ion-ripple-effect",null)),a&&h("button",{class:"ion-activatable",id:"time-button","aria-expanded":j?"true":"false",onClick:this.handleTimeClick,disabled:_e,part:"native",ref:tt=>this.timeTargetEl=tt},h("slot",{name:"time-target"},a),et==="md"&&h("ion-ripple-effect",null)))}get el(){return this}static get style(){return{ios:iosDatetimeButtonCss,md:mdDatetimeButtonCss}}},[33,"ion-datetime-button",{color:[513],disabled:[516],datetime:[1],datetimePresentation:[32],dateText:[32],timeText:[32],datetimeActive:[32],selectedButton:[32]}]);function defineCustomElement$1$E(){if(typeof customElements>"u")return;["ion-datetime-button","ion-ripple-effect"].forEach(s=>{switch(s){case"ion-datetime-button":customElements.get(s)||customElements.define(s,DatetimeButton);break;case"ion-ripple-effect":customElements.get(s)||defineCustomElement$1l();break}})}const defineCustomElement$V=defineCustomElement$1$E;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const fabCss=":host{position:absolute;z-index:999}:host(.fab-horizontal-center){left:50%;margin-left:-28px}:host-context([dir=rtl]):host(.fab-horizontal-center),:host-context([dir=rtl]).fab-horizontal-center{left:unset;right:unset;right:50%}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.fab-horizontal-center){margin-left:unset;-webkit-margin-start:-28px;margin-inline-start:-28px}}:host(.fab-horizontal-start){left:calc(10px + var(--ion-safe-area-left, 0px))}:host-context([dir=rtl]):host(.fab-horizontal-start),:host-context([dir=rtl]).fab-horizontal-start{left:unset;right:unset;right:calc(10px + var(--ion-safe-area-left, 0px))}:host(.fab-horizontal-end){right:calc(10px + var(--ion-safe-area-right, 0px))}:host-context([dir=rtl]):host(.fab-horizontal-end),:host-context([dir=rtl]).fab-horizontal-end{left:unset;right:unset;left:calc(10px + var(--ion-safe-area-right, 0px))}:host(.fab-vertical-top){top:10px}:host(.fab-vertical-top.fab-edge){top:-28px}:host(.fab-vertical-bottom){bottom:10px}:host(.fab-vertical-bottom.fab-edge){bottom:-28px}:host(.fab-vertical-center){margin-top:-28px;top:50%}",Fab=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.edge=!1,this.activated=!1}activatedChanged(){const o=this.activated,s=this.getFab();s&&(s.activated=o),Array.from(this.el.querySelectorAll("ion-fab-list")).forEach(a=>{a.activated=o})}componentDidLoad(){this.activated&&this.activatedChanged()}async close(){this.activated=!1}getFab(){return this.el.querySelector("ion-fab-button")}async toggle(){!!this.el.querySelector("ion-fab-list")&&(this.activated=!this.activated)}render(){const{horizontal:o,vertical:s,edge:a}=this,$=getIonMode$2(this);return h(Host,{class:{[$]:!0,[`fab-horizontal-${o}`]:o!==void 0,[`fab-vertical-${s}`]:s!==void 0,"fab-edge":a}},h("slot",null))}get el(){return this}static get watchers(){return{activated:["activatedChanged"]}}static get style(){return fabCss}},[1,"ion-fab",{horizontal:[1],vertical:[1],edge:[4],activated:[1028],close:[64],toggle:[64]}]);function defineCustomElement$1$D(){if(typeof customElements>"u")return;["ion-fab"].forEach(s=>{switch(s){case"ion-fab":customElements.get(s)||customElements.define(s,Fab);break}})}const defineCustomElement$U=defineCustomElement$1$D;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const fabButtonIosCss=':host{--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--background-hover:var(--ion-color-primary-contrast, #fff);--background-hover-opacity:.08;--transition:background-color, opacity 100ms linear;--ripple-color:currentColor;--border-radius:50%;--border-width:0;--border-style:none;--border-color:initial;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:56px;height:56px;font-size:14px;text-align:center;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;-webkit-transform:var(--transform);transform:var(--transform);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);background-clip:padding-box;color:var(--color);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:strict;cursor:pointer;overflow:hidden;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}::slotted(ion-icon){line-height:1}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{left:0;right:0;top:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;z-index:1}:host(.fab-button-disabled){cursor:default;opacity:0.5;pointer-events:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-activated) .button-native{color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}::slotted(ion-icon){line-height:1}:host(.fab-button-small){margin-left:8px;margin-right:8px;margin-top:8px;margin-bottom:8px;width:40px;height:40px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.fab-button-small){margin-left:unset;margin-right:unset;-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px}}.close-icon{margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;left:0;right:0;top:0;position:absolute;height:100%;-webkit-transform:scale(0.4) rotateZ(-45deg);transform:scale(0.4) rotateZ(-45deg);-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;font-size:var(--close-icon-font-size);opacity:0;z-index:1}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.close-icon{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}:host(.fab-button-close-active) .close-icon{-webkit-transform:scale(1) rotateZ(0deg);transform:scale(1) rotateZ(0deg);opacity:1}:host(.fab-button-close-active) .button-inner{-webkit-transform:scale(0.4) rotateZ(45deg);transform:scale(0.4) rotateZ(45deg);opacity:0}ion-ripple-effect{color:var(--ripple-color)}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.fab-button-translucent) .button-native{-webkit-backdrop-filter:var(--backdrop-filter);backdrop-filter:var(--backdrop-filter)}}:host(.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{--background:var(--ion-color-primary, #3880ff);--background-activated:var(--ion-color-primary-shade, #3171e0);--background-focused:var(--ion-color-primary-shade, #3171e0);--background-hover:var(--ion-color-primary-tint, #4c8dff);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1;--color:var(--ion-color-primary-contrast, #fff);--box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);--transition:0.2s transform cubic-bezier(0.25, 1.11, 0.78, 1.59);--close-icon-font-size:28px}:host(.ion-activated){--box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);--transform:scale(1.1);--transition:0.2s transform ease-out}::slotted(ion-icon){font-size:28px}:host(.fab-button-in-list){--background:var(--ion-color-light, #f4f5f8);--background-activated:var(--ion-color-light-shade, #d7d8da);--background-focused:var(--background-activated);--background-hover:var(--ion-color-light-tint, #f5f6f9);--color:var(--ion-color-light-contrast, #000);--color-activated:var(--ion-color-light-contrast, #000);--color-focused:var(--color-activated);--transition:transform 200ms ease 10ms, opacity 200ms ease 10ms}:host(.fab-button-in-list) ::slotted(ion-icon){font-size:18px}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}:host(.ion-color.ion-focused) .button-native,:host(.ion-color.ion-activated) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .button-native::after,:host(.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-contrast)}:host(.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.fab-button-translucent){--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.9);--background-hover:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.8);--background-focused:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.82);--backdrop-filter:saturate(180%) blur(20px)}:host(.fab-button-translucent-in-list){--background:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.9);--background-hover:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.8);--background-focused:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.82)}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){@media (any-hover: hover){:host(.fab-button-translucent.ion-color:hover) .button-native{background:rgba(var(--ion-color-base-rgb), 0.8)}}:host(.ion-color.fab-button-translucent) .button-native{background:rgba(var(--ion-color-base-rgb), 0.9)}:host(.ion-color.ion-focused.fab-button-translucent) .button-native,:host(.ion-color.ion-activated.fab-button-translucent) .button-native{background:var(--ion-color-base)}}',fabButtonMdCss=':host{--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--background-hover:var(--ion-color-primary-contrast, #fff);--background-hover-opacity:.08;--transition:background-color, opacity 100ms linear;--ripple-color:currentColor;--border-radius:50%;--border-width:0;--border-style:none;--border-color:initial;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:56px;height:56px;font-size:14px;text-align:center;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;-webkit-transform:var(--transform);transform:var(--transform);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);background-clip:padding-box;color:var(--color);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:strict;cursor:pointer;overflow:hidden;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}::slotted(ion-icon){line-height:1}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{left:0;right:0;top:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;z-index:1}:host(.fab-button-disabled){cursor:default;opacity:0.5;pointer-events:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-activated) .button-native{color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}::slotted(ion-icon){line-height:1}:host(.fab-button-small){margin-left:8px;margin-right:8px;margin-top:8px;margin-bottom:8px;width:40px;height:40px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.fab-button-small){margin-left:unset;margin-right:unset;-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px}}.close-icon{margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;left:0;right:0;top:0;position:absolute;height:100%;-webkit-transform:scale(0.4) rotateZ(-45deg);transform:scale(0.4) rotateZ(-45deg);-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;font-size:var(--close-icon-font-size);opacity:0;z-index:1}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.close-icon{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}:host(.fab-button-close-active) .close-icon{-webkit-transform:scale(1) rotateZ(0deg);transform:scale(1) rotateZ(0deg);opacity:1}:host(.fab-button-close-active) .button-inner{-webkit-transform:scale(0.4) rotateZ(45deg);transform:scale(0.4) rotateZ(45deg);opacity:0}ion-ripple-effect{color:var(--ripple-color)}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.fab-button-translucent) .button-native{-webkit-backdrop-filter:var(--backdrop-filter);backdrop-filter:var(--backdrop-filter)}}:host(.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{--background:var(--ion-color-primary, #3880ff);--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--color:var(--ion-color-primary-contrast, #fff);--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), background-color 280ms cubic-bezier(0.4, 0, 0.2, 1), color 280ms cubic-bezier(0.4, 0, 0.2, 1), opacity 15ms linear 30ms, transform 270ms cubic-bezier(0, 0, 0.2, 1) 0ms;--close-icon-font-size:24px}:host(.ion-activated){--box-shadow:0 7px 8px -4px rgba(0, 0, 0, 0.2), 0 12px 17px 2px rgba(0, 0, 0, 0.14), 0 5px 22px 4px rgba(0, 0, 0, 0.12)}::slotted(ion-icon){font-size:24px}:host(.fab-button-in-list){--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);--color-activated:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);--color-focused:var(--color-activated);--background:var(--ion-color-light, #f4f5f8);--background-activated:transparent;--background-focused:var(--ion-color-light-shade, #d7d8da);--background-hover:var(--ion-color-light-tint, #f5f6f9)}:host(.fab-button-in-list) ::slotted(ion-icon){font-size:18px}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.ion-color.ion-activated) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activated) .button-native::after{background:transparent}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-contrast)}:host(.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}}',FabButton=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionFocus=createEvent(this,"ionFocus",7),this.ionBlur=createEvent(this,"ionBlur",7),this.fab=null,this.inheritedAttributes={},this.activated=!1,this.disabled=!1,this.routerDirection="forward",this.show=!1,this.translucent=!1,this.type="button",this.closeIcon=close$1,this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.onClick=()=>{const{fab:o}=this;o&&o.toggle()}}connectedCallback(){this.fab=this.el.closest("ion-fab")}componentWillLoad(){this.inheritedAttributes=inheritAriaAttributes(this.el)}render(){const{el:o,disabled:s,color:a,href:$,activated:j,show:_e,translucent:et,size:tt,inheritedAttributes:nt}=this,it=hostContext("ion-fab-list",o),rt=getIonMode$2(this),st=$===void 0?"button":"a",ot=st==="button"?{type:this.type}:{download:this.download,href:$,rel:this.rel,target:this.target};return h(Host,{onClick:this.onClick,"aria-disabled":s?"true":null,class:createColorClasses$1(a,{[rt]:!0,"fab-button-in-list":it,"fab-button-translucent-in-list":it&&et,"fab-button-close-active":j,"fab-button-show":_e,"fab-button-disabled":s,"fab-button-translucent":et,"ion-activatable":!0,"ion-focusable":!0,[`fab-button-${tt}`]:tt!==void 0})},h(st,Object.assign({},ot,{class:"button-native",part:"native",disabled:s,onFocus:this.onFocus,onBlur:this.onBlur,onClick:at=>openURL($,at,this.routerDirection,this.routerAnimation)},nt),h("ion-icon",{"aria-hidden":"true",icon:this.closeIcon,part:"close-icon",class:"close-icon",lazy:!1}),h("span",{class:"button-inner"},h("slot",null)),rt==="md"&&h("ion-ripple-effect",null)))}get el(){return this}static get style(){return{ios:fabButtonIosCss,md:fabButtonMdCss}}},[33,"ion-fab-button",{color:[513],activated:[4],disabled:[4],download:[1],href:[1],rel:[1],routerDirection:[1,"router-direction"],routerAnimation:[16],target:[1],show:[4],translucent:[4],type:[1],size:[1],closeIcon:[1,"close-icon"]}]),IonFabButton$1=FabButton;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const ION_CONTENT_TAG_NAME="ION-CONTENT",ION_CONTENT_ELEMENT_SELECTOR="ion-content",ION_CONTENT_CLASS_SELECTOR=".ion-content-scroll-host",ION_CONTENT_SELECTOR=`${ION_CONTENT_ELEMENT_SELECTOR}, ${ION_CONTENT_CLASS_SELECTOR}`,isIonContent=o=>o.tagName===ION_CONTENT_TAG_NAME,getScrollElement=async o=>isIonContent(o)?(await new Promise(s=>componentOnReady(o,s)),o.getScrollElement()):o,findIonContent=o=>{const s=o.querySelector(ION_CONTENT_CLASS_SELECTOR);return s||o.querySelector(ION_CONTENT_SELECTOR)},findClosestIonContent=o=>o.closest(ION_CONTENT_SELECTOR),scrollToTop=(o,s)=>isIonContent(o)?o.scrollToTop(s):Promise.resolve(o.scrollTo({top:0,left:0,behavior:"smooth"})),scrollByPoint=(o,s,a,$)=>isIonContent(o)?o.scrollByPoint(s,a,$):Promise.resolve(o.scrollBy({top:a,left:s,behavior:$>0?"smooth":"auto"})),printIonContentErrorMsg=o=>printRequiredElementError(o,ION_CONTENT_ELEMENT_SELECTOR),disableContentScrollY=o=>{if(isIonContent(o)){const s=o,a=s.scrollY;return s.scrollY=!1,a}else return o.style.setProperty("overflow","hidden"),!0},resetContentScrollY=(o,s)=>{isIonContent(o)?o.scrollY=s:o.style.removeProperty("overflow")};/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const createKeyboardController=o=>{let s,a,$;const j=()=>{s=()=>{$=!0,o&&o(!0)},a=()=>{$=!1,o&&o(!1)},win$1==null||win$1.addEventListener("keyboardWillShow",s),win$1==null||win$1.addEventListener("keyboardWillHide",a)},_e=()=>{win$1==null||win$1.removeEventListener("keyboardWillShow",s),win$1==null||win$1.removeEventListener("keyboardWillHide",a),s=a=void 0},et=()=>$;return j(),{init:j,destroy:_e,isKeyboardVisible:et}};/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const handleFooterFade=(o,s)=>{readTask(()=>{const a=o.scrollTop,$=o.scrollHeight-o.clientHeight,j=10,_e=$-j,et=a-_e,tt=clamp$2(0,1-et/j,1);writeTask(()=>{s.style.setProperty("--opacity-scale",tt.toString())})})},footerIosCss="ion-footer{display:block;position:relative;-ms-flex-order:1;order:1;width:100%;z-index:10}ion-footer.footer-toolbar-padding ion-toolbar:last-of-type{padding-bottom:var(--ion-safe-area-bottom, 0)}.footer-ios ion-toolbar:first-of-type{--border-width:0.55px 0 0}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.footer-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.footer-translucent-ios ion-toolbar{--opacity:.8}}.footer-ios.ion-no-border ion-toolbar:first-of-type{--border-width:0}.footer-collapse-fade ion-toolbar{--opacity-scale:inherit}",footerMdCss='ion-footer{display:block;position:relative;-ms-flex-order:1;order:1;width:100%;z-index:10}ion-footer.footer-toolbar-padding ion-toolbar:last-of-type{padding-bottom:var(--ion-safe-area-bottom, 0)}.footer-md::before{left:0;top:-2px;bottom:auto;background-position:left 0 top 0;position:absolute;width:100%;height:2px;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAHBAMAAADzDtBxAAAAD1BMVEUAAAAAAAAAAAAAAAAAAABPDueNAAAABXRSTlMUCS0gBIh/TXEAAAAaSURBVAjXYxCEAgY4UIICBmMogMsgFLtAAQCNSwXZKOdPxgAAAABJRU5ErkJggg==");background-repeat:repeat-x;content:""}[dir=rtl] .footer-md::before,:host-context([dir=rtl]) .footer-md::before{left:unset;right:unset;right:0}[dir=rtl] .footer-md::before,:host-context([dir=rtl]) .footer-md::before{background-position:right 0 top 0}.footer-md.ion-no-border::before{display:none}',Footer=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.keyboardCtrl=null,this.keyboardVisible=!1,this.translucent=!1,this.checkCollapsibleFooter=()=>{if(getIonMode$2(this)!=="ios")return;const{collapse:s}=this,a=s==="fade";if(this.destroyCollapsibleFooter(),a){const $=this.el.closest("ion-app,ion-page,.ion-page,page-inner"),j=$?findIonContent($):null;if(!j){printIonContentErrorMsg(this.el);return}this.setupFadeFooter(j)}},this.setupFadeFooter=async o=>{const s=this.scrollEl=await getScrollElement(o);this.contentScrollCallback=()=>{handleFooterFade(s,this.el)},s.addEventListener("scroll",this.contentScrollCallback),handleFooterFade(s,this.el)}}componentDidLoad(){this.checkCollapsibleFooter()}componentDidUpdate(){this.checkCollapsibleFooter()}connectedCallback(){this.keyboardCtrl=createKeyboardController(o=>{this.keyboardVisible=o})}disconnectedCallback(){this.keyboardCtrl&&this.keyboardCtrl.destroy()}destroyCollapsibleFooter(){this.scrollEl&&this.contentScrollCallback&&(this.scrollEl.removeEventListener("scroll",this.contentScrollCallback),this.contentScrollCallback=void 0)}render(){const{translucent:o,collapse:s}=this,a=getIonMode$2(this),$=this.el.closest("ion-tabs"),j=$==null?void 0:$.querySelector(":scope > ion-tab-bar");return h(Host,{role:"contentinfo",class:{[a]:!0,[`footer-${a}`]:!0,"footer-translucent":o,[`footer-translucent-${a}`]:o,"footer-toolbar-padding":!this.keyboardVisible&&(!j||j.slot!=="bottom"),[`footer-collapse-${s}`]:s!==void 0}},a==="ios"&&o&&h("div",{class:"footer-background"}),h("slot",null))}get el(){return this}static get style(){return{ios:footerIosCss,md:footerMdCss}}},[36,"ion-footer",{collapse:[1],translucent:[4],keyboardVisible:[32]}]);function defineCustomElement$1$C(){if(typeof customElements>"u")return;["ion-footer"].forEach(s=>{switch(s){case"ion-footer":customElements.get(s)||customElements.define(s,Footer);break}})}const defineCustomElement$T=defineCustomElement$1$C;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const gridCss=":host{padding-left:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-right:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));margin-left:auto;margin-right:auto;display:block;-ms-flex:1;flex:1}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px))}}@media (min-width: 576px){:host{padding-left:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-right:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px))}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px))}}}@media (min-width: 768px){:host{padding-left:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-right:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px))}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px))}}}@media (min-width: 992px){:host{padding-left:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-right:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px))}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px))}}}@media (min-width: 1200px){:host{padding-left:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-right:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px))}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px))}}}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}:host(.grid-fixed){width:var(--ion-grid-width-xs, var(--ion-grid-width, 100%));max-width:100%}@media (min-width: 576px){:host(.grid-fixed){width:var(--ion-grid-width-sm, var(--ion-grid-width, 540px))}}@media (min-width: 768px){:host(.grid-fixed){width:var(--ion-grid-width-md, var(--ion-grid-width, 720px))}}@media (min-width: 992px){:host(.grid-fixed){width:var(--ion-grid-width-lg, var(--ion-grid-width, 960px))}}@media (min-width: 1200px){:host(.grid-fixed){width:var(--ion-grid-width-xl, var(--ion-grid-width, 1140px))}}:host(.ion-no-padding){--ion-grid-column-padding:0;--ion-grid-column-padding-xs:0;--ion-grid-column-padding-sm:0;--ion-grid-column-padding-md:0;--ion-grid-column-padding-lg:0;--ion-grid-column-padding-xl:0}",Grid=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.fixed=!1}render(){const o=getIonMode$2(this);return h(Host,{class:{[o]:!0,"grid-fixed":this.fixed}},h("slot",null))}static get style(){return gridCss}},[1,"ion-grid",{fixed:[4]}]);function defineCustomElement$1$B(){if(typeof customElements>"u")return;["ion-grid"].forEach(s=>{switch(s){case"ion-grid":customElements.get(s)||customElements.define(s,Grid);break}})}const defineCustomElement$S=defineCustomElement$1$B;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const TRANSITION="all 0.2s ease-in-out",cloneElement=o=>{const s=document.querySelector(`${o}.ion-cloned-element`);if(s!==null)return s;const a=document.createElement(o);return a.classList.add("ion-cloned-element"),a.style.setProperty("display","none"),document.body.appendChild(a),a},createHeaderIndex=o=>{if(!o)return;const s=o.querySelectorAll("ion-toolbar");return{el:o,toolbars:Array.from(s).map(a=>{const $=a.querySelector("ion-title");return{el:a,background:a.shadowRoot.querySelector(".toolbar-background"),ionTitleEl:$,innerTitleEl:$?$.shadowRoot.querySelector(".toolbar-title"):null,ionButtonsEl:Array.from(a.querySelectorAll("ion-buttons"))}})}},handleContentScroll=(o,s,a)=>{readTask(()=>{const $=o.scrollTop,j=clamp$2(1,1+-$/500,1.1);a.querySelector("ion-refresher.refresher-native")===null&&writeTask(()=>{scaleLargeTitles(s.toolbars,j)})})},setToolbarBackgroundOpacity=(o,s)=>{o.collapse!=="fade"&&(s===void 0?o.style.removeProperty("--opacity-scale"):o.style.setProperty("--opacity-scale",s.toString()))},handleToolbarBorderIntersection=(o,s,a)=>{if(!o[0].isIntersecting)return;const $=o[0].intersectionRatio>.9||a<=0?0:(1-o[0].intersectionRatio)*100/75;setToolbarBackgroundOpacity(s.el,$===1?void 0:$)},handleToolbarIntersection=(o,s,a,$)=>{writeTask(()=>{const j=$.scrollTop;handleToolbarBorderIntersection(o,s,j);const _e=o[0],et=_e.intersectionRect,tt=et.width*et.height,nt=_e.rootBounds.width*_e.rootBounds.height,it=tt===0&&nt===0,rt=Math.abs(et.left-_e.boundingClientRect.left),st=Math.abs(et.right-_e.boundingClientRect.right),ot=tt>0&&(rt>=5||st>=5);it||ot||(_e.isIntersecting?(setHeaderActive(s,!1),setHeaderActive(a)):(et.x===0&&et.y===0||et.width!==0&&et.height!==0)&&j>0&&(setHeaderActive(s),setHeaderActive(a,!1),setToolbarBackgroundOpacity(s.el)))})},setHeaderActive=(o,s=!0)=>{const a=o.el;s?(a.classList.remove("header-collapse-condense-inactive"),a.removeAttribute("aria-hidden")):(a.classList.add("header-collapse-condense-inactive"),a.setAttribute("aria-hidden","true"))},scaleLargeTitles=(o=[],s=1,a=!1)=>{o.forEach($=>{const j=$.ionTitleEl,_e=$.innerTitleEl;!j||j.size!=="large"||(_e.style.transition=a?TRANSITION:"",_e.style.transform=`scale3d(${s}, ${s}, 1)`)})},handleHeaderFade=(o,s,a)=>{readTask(()=>{const $=o.scrollTop,j=s.clientHeight,_e=a?a.clientHeight:0;if(a!==null&&$<_e){s.style.setProperty("--opacity-scale","0"),o.style.setProperty("clip-path",`inset(${j}px 0px 0px 0px)`);return}const et=$-_e,nt=clamp$2(0,et/10,1);writeTask(()=>{o.style.removeProperty("clip-path"),s.style.setProperty("--opacity-scale",nt.toString())})})},headerIosCss="ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-ios ion-toolbar:last-of-type{--border-width:0 0 0.55px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.header-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.header-translucent-ios ion-toolbar{--opacity:.8}.header-collapse-condense-inactive .header-background{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}}.header-ios.ion-no-border ion-toolbar:last-of-type{--border-width:0}.header-collapse-fade ion-toolbar{--opacity-scale:inherit}.header-collapse-condense{z-index:9}.header-collapse-condense ion-toolbar{position:-webkit-sticky;position:sticky;top:0}.header-collapse-condense ion-toolbar:first-of-type{padding-top:7px;z-index:1}.header-collapse-condense ion-toolbar{--background:var(--ion-background-color, #fff);z-index:0}.header-collapse-condense ion-toolbar:last-of-type{--border-width:0px}.header-collapse-condense ion-toolbar ion-searchbar{height:48px;padding-top:0px;padding-bottom:13px}.header-collapse-main{--opacity-scale:1}.header-collapse-main ion-toolbar{--opacity-scale:inherit}.header-collapse-main ion-toolbar.in-toolbar ion-title,.header-collapse-main ion-toolbar.in-toolbar ion-buttons{-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-buttons.buttons-collapse{opacity:0;pointer-events:none}.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-buttons.buttons-collapse{visibility:hidden}",headerMdCss='ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-md::after{left:0;bottom:-5px;background-position:left 0 top -2px;position:absolute;width:100%;height:5px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAHBAMAAADzDtBxAAAAD1BMVEUAAAAAAAAAAAAAAAAAAABPDueNAAAABXRSTlMUCS0gBIh/TXEAAAAaSURBVAjXYxCEAgY4UIICBmMogMsgFLtAAQCNSwXZKOdPxgAAAABJRU5ErkJggg==);background-repeat:repeat-x;content:""}[dir=rtl] .header-md::after,:host-context([dir=rtl]) .header-md::after{left:unset;right:unset;right:0}[dir=rtl] .header-md::after,:host-context([dir=rtl]) .header-md::after{background-position:right 0 top -2px}.header-collapse-condense{display:none}.header-md.ion-no-border::after{display:none}',Header=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.inheritedAttributes={},this.translucent=!1,this.setupFadeHeader=async(o,s)=>{const a=this.scrollEl=await getScrollElement(o);this.contentScrollCallback=()=>{handleHeaderFade(this.scrollEl,this.el,s)},a.addEventListener("scroll",this.contentScrollCallback),handleHeaderFade(this.scrollEl,this.el,s)}}componentWillLoad(){this.inheritedAttributes=inheritAriaAttributes(this.el)}componentDidLoad(){this.checkCollapsibleHeader()}componentDidUpdate(){this.checkCollapsibleHeader()}disconnectedCallback(){this.destroyCollapsibleHeader()}async checkCollapsibleHeader(){if(getIonMode$2(this)!=="ios")return;const{collapse:s}=this,a=s==="condense",$=s==="fade";if(this.destroyCollapsibleHeader(),a){const j=this.el.closest("ion-app,ion-page,.ion-page,page-inner"),_e=j?findIonContent(j):null;writeTask(()=>{const et=cloneElement("ion-title");et.size="large",cloneElement("ion-back-button")}),await this.setupCondenseHeader(_e,j)}else if($){const j=this.el.closest("ion-app,ion-page,.ion-page,page-inner"),_e=j?findIonContent(j):null;if(!_e){printIonContentErrorMsg(this.el);return}const et=_e.querySelector('ion-header[collapse="condense"]');await this.setupFadeHeader(_e,et)}}destroyCollapsibleHeader(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=void 0),this.scrollEl&&this.contentScrollCallback&&(this.scrollEl.removeEventListener("scroll",this.contentScrollCallback),this.contentScrollCallback=void 0),this.collapsibleMainHeader&&(this.collapsibleMainHeader.classList.remove("header-collapse-main"),this.collapsibleMainHeader=void 0)}async setupCondenseHeader(o,s){if(!o||!s){printIonContentErrorMsg(this.el);return}if(typeof IntersectionObserver>"u")return;this.scrollEl=await getScrollElement(o);const a=s.querySelectorAll("ion-header");if(this.collapsibleMainHeader=Array.from(a).find(et=>et.collapse!=="condense"),!this.collapsibleMainHeader)return;const $=createHeaderIndex(this.collapsibleMainHeader),j=createHeaderIndex(this.el);if(!$||!j)return;setHeaderActive($,!1),setToolbarBackgroundOpacity($.el,0);const _e=et=>{handleToolbarIntersection(et,$,j,this.scrollEl)};this.intersectionObserver=new IntersectionObserver(_e,{root:o,threshold:[.25,.3,.4,.5,.6,.7,.8,.9,1]}),this.intersectionObserver.observe(j.toolbars[j.toolbars.length-1].el),this.contentScrollCallback=()=>{handleContentScroll(this.scrollEl,j,o)},this.scrollEl.addEventListener("scroll",this.contentScrollCallback),writeTask(()=>{this.collapsibleMainHeader!==void 0&&this.collapsibleMainHeader.classList.add("header-collapse-main")})}render(){const{translucent:o,inheritedAttributes:s}=this,a=getIonMode$2(this),$=this.collapse||"none",j=hostContext("ion-menu",this.el)?"none":"banner";return h(Host,Object.assign({role:j,class:{[a]:!0,[`header-${a}`]:!0,"header-translucent":this.translucent,[`header-collapse-${$}`]:!0,[`header-translucent-${a}`]:this.translucent}},s),a==="ios"&&o&&h("div",{class:"header-background"}),h("slot",null))}get el(){return this}static get style(){return{ios:headerIosCss,md:headerMdCss}}},[36,"ion-header",{collapse:[1],translucent:[4]}]);function defineCustomElement$1$A(){if(typeof customElements>"u")return;["ion-header"].forEach(s=>{switch(s){case"ion-header":customElements.get(s)||customElements.define(s,Header);break}})}const defineCustomElement$R=defineCustomElement$1$A;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const infiniteScrollCss="ion-infinite-scroll{display:none;width:100%}.infinite-scroll-enabled{display:block}",InfiniteScroll=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.ionInfinite=createEvent(this,"ionInfinite",7),this.thrPx=0,this.thrPc=0,this.didFire=!1,this.isBusy=!1,this.isLoading=!1,this.threshold="15%",this.disabled=!1,this.position="bottom",this.onScroll=()=>{const o=this.scrollEl;if(!o||!this.canStart())return 1;const s=this.el.offsetHeight;if(s===0)return 2;const a=o.scrollTop,$=o.scrollHeight,j=o.offsetHeight,_e=this.thrPc!==0?j*this.thrPc:this.thrPx;if((this.position==="bottom"?$-s-a-_e-j:a-s-_e)<0){if(!this.didFire)return this.isLoading=!0,this.didFire=!0,this.ionInfinite.emit(),3}else this.didFire=!1;return 4}}thresholdChanged(){const o=this.threshold;o.lastIndexOf("%")>-1?(this.thrPx=0,this.thrPc=parseFloat(o)/100):(this.thrPx=parseFloat(o),this.thrPc=0)}disabledChanged(){const o=this.disabled;o&&(this.isLoading=!1,this.isBusy=!1),this.enableScrollEvents(!o)}async connectedCallback(){const o=findClosestIonContent(this.el);if(!o){printIonContentErrorMsg(this.el);return}this.scrollEl=await getScrollElement(o),this.thresholdChanged(),this.disabledChanged(),this.position==="top"&&writeTask(()=>{this.scrollEl&&(this.scrollEl.scrollTop=this.scrollEl.scrollHeight-this.scrollEl.clientHeight)})}disconnectedCallback(){this.enableScrollEvents(!1),this.scrollEl=void 0}async complete(){const o=this.scrollEl;if(!(!this.isLoading||!o)&&(this.isLoading=!1,this.position==="top")){this.isBusy=!0;const s=o.scrollHeight-o.scrollTop;requestAnimationFrame(()=>{readTask(()=>{const $=o.scrollHeight-s;requestAnimationFrame(()=>{writeTask(()=>{o.scrollTop=$,this.isBusy=!1})})})})}}canStart(){return!this.disabled&&!this.isBusy&&!!this.scrollEl&&!this.isLoading}enableScrollEvents(o){this.scrollEl&&(o?this.scrollEl.addEventListener("scroll",this.onScroll):this.scrollEl.removeEventListener("scroll",this.onScroll))}render(){const o=getIonMode$2(this),s=this.disabled;return h(Host,{class:{[o]:!0,"infinite-scroll-loading":this.isLoading,"infinite-scroll-enabled":!s}})}get el(){return this}static get watchers(){return{threshold:["thresholdChanged"],disabled:["disabledChanged"]}}static get style(){return infiniteScrollCss}},[0,"ion-infinite-scroll",{threshold:[1],disabled:[4],position:[1],isLoading:[32],complete:[64]}]);function defineCustomElement$1$z(){if(typeof customElements>"u")return;["ion-infinite-scroll"].forEach(s=>{switch(s){case"ion-infinite-scroll":customElements.get(s)||customElements.define(s,InfiniteScroll);break}})}const defineCustomElement$Q=defineCustomElement$1$z;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const spinners={bubbles:{dur:1e3,circles:9,fn:(o,s,a)=>{const $=`${o*s/a-o}ms`,j=2*Math.PI*s/a;return{r:5,style:{top:`${9*Math.sin(j)}px`,left:`${9*Math.cos(j)}px`,"animation-delay":$}}}},circles:{dur:1e3,circles:8,fn:(o,s,a)=>{const $=s/a,j=`${o*$-o}ms`,_e=2*Math.PI*$;return{r:5,style:{top:`${9*Math.sin(_e)}px`,left:`${9*Math.cos(_e)}px`,"animation-delay":j}}}},circular:{dur:1400,elmDuration:!0,circles:1,fn:()=>({r:20,cx:48,cy:48,fill:"none",viewBox:"24 24 48 48",transform:"translate(0,0)",style:{}})},crescent:{dur:750,circles:1,fn:()=>({r:26,style:{}})},dots:{dur:750,circles:3,fn:(o,s)=>{const a=-(110*s)+"ms";return{r:6,style:{left:`${9-9*s}px`,"animation-delay":a}}}},lines:{dur:1e3,lines:8,fn:(o,s,a)=>{const $=`rotate(${360/a*s+(s<a/2?180:-180)}deg)`,j=`${o*s/a-o}ms`;return{y1:14,y2:26,style:{transform:$,"animation-delay":j}}}},"lines-small":{dur:1e3,lines:8,fn:(o,s,a)=>{const $=`rotate(${360/a*s+(s<a/2?180:-180)}deg)`,j=`${o*s/a-o}ms`;return{y1:12,y2:20,style:{transform:$,"animation-delay":j}}}},"lines-sharp":{dur:1e3,lines:12,fn:(o,s,a)=>{const $=`rotate(${30*s+(s<6?180:-180)}deg)`,j=`${o*s/a-o}ms`;return{y1:17,y2:29,style:{transform:$,"animation-delay":j}}}},"lines-sharp-small":{dur:1e3,lines:12,fn:(o,s,a)=>{const $=`rotate(${30*s+(s<6?180:-180)}deg)`,j=`${o*s/a-o}ms`;return{y1:12,y2:20,style:{transform:$,"animation-delay":j}}}}},SPINNERS=spinners,spinnerCss=":host{display:inline-block;position:relative;width:28px;height:28px;color:var(--color);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.ion-color){color:var(--ion-color-base)}svg{-webkit-transform-origin:center;transform-origin:center;position:absolute;top:0;left:0;width:100%;height:100%;-webkit-transform:translateZ(0);transform:translateZ(0)}[dir=rtl] svg,:host-context([dir=rtl]) svg{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}:host(.spinner-lines) line,:host(.spinner-lines-small) line{stroke-width:7px}:host(.spinner-lines-sharp) line,:host(.spinner-lines-sharp-small) line{stroke-width:4px}:host(.spinner-lines) line,:host(.spinner-lines-small) line,:host(.spinner-lines-sharp) line,:host(.spinner-lines-sharp-small) line{stroke-linecap:round;stroke:currentColor}:host(.spinner-lines) svg,:host(.spinner-lines-small) svg,:host(.spinner-lines-sharp) svg,:host(.spinner-lines-sharp-small) svg{-webkit-animation:spinner-fade-out 1s linear infinite;animation:spinner-fade-out 1s linear infinite}:host(.spinner-bubbles) svg{-webkit-animation:spinner-scale-out 1s linear infinite;animation:spinner-scale-out 1s linear infinite;fill:currentColor}:host(.spinner-circles) svg{-webkit-animation:spinner-fade-out 1s linear infinite;animation:spinner-fade-out 1s linear infinite;fill:currentColor}:host(.spinner-crescent) circle{fill:transparent;stroke-width:4px;stroke-dasharray:128px;stroke-dashoffset:82px;stroke:currentColor}:host(.spinner-crescent) svg{-webkit-animation:spinner-rotate 1s linear infinite;animation:spinner-rotate 1s linear infinite}:host(.spinner-dots) circle{stroke-width:0;fill:currentColor}:host(.spinner-dots) svg{-webkit-animation:spinner-dots 1s linear infinite;animation:spinner-dots 1s linear infinite}:host(.spinner-circular) svg{-webkit-animation:spinner-circular linear infinite;animation:spinner-circular linear infinite}:host(.spinner-circular) circle{-webkit-animation:spinner-circular-inner ease-in-out infinite;animation:spinner-circular-inner ease-in-out infinite;stroke:currentColor;stroke-dasharray:80px, 200px;stroke-dashoffset:0px;stroke-width:5.6;fill:none}:host(.spinner-paused),:host(.spinner-paused) svg,:host(.spinner-paused) circle{-webkit-animation-play-state:paused;animation-play-state:paused}@-webkit-keyframes spinner-fade-out{0%{opacity:1}100%{opacity:0}}@keyframes spinner-fade-out{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes spinner-scale-out{0%{-webkit-transform:scale(1, 1);transform:scale(1, 1)}100%{-webkit-transform:scale(0, 0);transform:scale(0, 0)}}@keyframes spinner-scale-out{0%{-webkit-transform:scale(1, 1);transform:scale(1, 1)}100%{-webkit-transform:scale(0, 0);transform:scale(0, 0)}}@-webkit-keyframes spinner-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spinner-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spinner-dots{0%{-webkit-transform:scale(1, 1);transform:scale(1, 1);opacity:0.9}50%{-webkit-transform:scale(0.4, 0.4);transform:scale(0.4, 0.4);opacity:0.3}100%{-webkit-transform:scale(1, 1);transform:scale(1, 1);opacity:0.9}}@keyframes spinner-dots{0%{-webkit-transform:scale(1, 1);transform:scale(1, 1);opacity:0.9}50%{-webkit-transform:scale(0.4, 0.4);transform:scale(0.4, 0.4);opacity:0.3}100%{-webkit-transform:scale(1, 1);transform:scale(1, 1);opacity:0.9}}@-webkit-keyframes spinner-circular{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spinner-circular{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spinner-circular-inner{0%{stroke-dasharray:1px, 200px;stroke-dashoffset:0px}50%{stroke-dasharray:100px, 200px;stroke-dashoffset:-15px}100%{stroke-dasharray:100px, 200px;stroke-dashoffset:-125px}}@keyframes spinner-circular-inner{0%{stroke-dasharray:1px, 200px;stroke-dashoffset:0px}50%{stroke-dasharray:100px, 200px;stroke-dashoffset:-15px}100%{stroke-dasharray:100px, 200px;stroke-dashoffset:-125px}}",Spinner=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.paused=!1}getName(){const o=this.name||config$1.get("spinner"),s=getIonMode$2(this);return o||(s==="ios"?"lines":"circular")}render(){var o;const s=this,a=getIonMode$2(s),$=s.getName(),j=(o=SPINNERS[$])!==null&&o!==void 0?o:SPINNERS.lines,_e=typeof s.duration=="number"&&s.duration>10?s.duration:j.dur,et=[];if(j.circles!==void 0)for(let tt=0;tt<j.circles;tt++)et.push(buildCircle(j,_e,tt,j.circles));else if(j.lines!==void 0)for(let tt=0;tt<j.lines;tt++)et.push(buildLine(j,_e,tt,j.lines));return h(Host,{class:createColorClasses$1(s.color,{[a]:!0,[`spinner-${$}`]:!0,"spinner-paused":s.paused||config$1.getBoolean("_testing")}),role:"progressbar",style:j.elmDuration?{animationDuration:_e+"ms"}:{}},et)}static get style(){return spinnerCss}},[1,"ion-spinner",{color:[513],duration:[2],name:[1],paused:[4]}]),buildCircle=(o,s,a,$)=>{const j=o.fn(s,a,$);return j.style["animation-duration"]=s+"ms",h("svg",{viewBox:j.viewBox||"0 0 64 64",style:j.style},h("circle",{transform:j.transform||"translate(32,32)",cx:j.cx,cy:j.cy,r:j.r,style:o.elmDuration?{animationDuration:s+"ms"}:{}}))},buildLine=(o,s,a,$)=>{const j=o.fn(s,a,$);return j.style["animation-duration"]=s+"ms",h("svg",{viewBox:j.viewBox||"0 0 64 64",style:j.style},h("line",{transform:"translate(32,32)",y1:j.y1,y2:j.y2}))};function defineCustomElement$P(){if(typeof customElements>"u")return;["ion-spinner"].forEach(s=>{switch(s){case"ion-spinner":customElements.get(s)||customElements.define(s,Spinner);break}})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const infiniteScrollContentIosCss="ion-infinite-scroll-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:84px;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.infinite-loading{margin-left:0;margin-right:0;margin-top:0;margin-bottom:32px;display:none;width:100%}.infinite-loading-text{margin-left:32px;margin-right:32px;margin-top:4px;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.infinite-loading-text{margin-left:unset;margin-right:unset;-webkit-margin-start:32px;margin-inline-start:32px;-webkit-margin-end:32px;margin-inline-end:32px}}.infinite-scroll-loading ion-infinite-scroll-content>.infinite-loading{display:block}.infinite-scroll-content-ios .infinite-loading-text{color:var(--ion-color-step-600, #666666)}.infinite-scroll-content-ios .infinite-loading-spinner .spinner-lines-ios line,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-lines-small-ios line,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-crescent circle{stroke:var(--ion-color-step-600, #666666)}.infinite-scroll-content-ios .infinite-loading-spinner .spinner-bubbles circle,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-circles circle,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-dots circle{fill:var(--ion-color-step-600, #666666)}",infiniteScrollContentMdCss="ion-infinite-scroll-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:84px;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.infinite-loading{margin-left:0;margin-right:0;margin-top:0;margin-bottom:32px;display:none;width:100%}.infinite-loading-text{margin-left:32px;margin-right:32px;margin-top:4px;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.infinite-loading-text{margin-left:unset;margin-right:unset;-webkit-margin-start:32px;margin-inline-start:32px;-webkit-margin-end:32px;margin-inline-end:32px}}.infinite-scroll-loading ion-infinite-scroll-content>.infinite-loading{display:block}.infinite-scroll-content-md .infinite-loading-text{color:var(--ion-color-step-600, #666666)}.infinite-scroll-content-md .infinite-loading-spinner .spinner-lines-md line,.infinite-scroll-content-md .infinite-loading-spinner .spinner-lines-small-md line,.infinite-scroll-content-md .infinite-loading-spinner .spinner-crescent circle{stroke:var(--ion-color-step-600, #666666)}.infinite-scroll-content-md .infinite-loading-spinner .spinner-bubbles circle,.infinite-scroll-content-md .infinite-loading-spinner .spinner-circles circle,.infinite-scroll-content-md .infinite-loading-spinner .spinner-dots circle{fill:var(--ion-color-step-600, #666666)}",InfiniteScrollContent=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.customHTMLEnabled=config$1.get("innerHTMLTemplatesEnabled",ENABLE_HTML_CONTENT_DEFAULT)}componentDidLoad(){if(this.loadingSpinner===void 0){const o=getIonMode$2(this);this.loadingSpinner=config$1.get("infiniteLoadingSpinner",config$1.get("spinner",o==="ios"?"lines":"crescent"))}}renderLoadingText(){const{customHTMLEnabled:o,loadingText:s}=this;return o?h("div",{class:"infinite-loading-text",innerHTML:sanitizeDOMString(s)}):h("div",{class:"infinite-loading-text"},this.loadingText)}render(){const o=getIonMode$2(this);return h(Host,{class:{[o]:!0,[`infinite-scroll-content-${o}`]:!0}},h("div",{class:"infinite-loading"},this.loadingSpinner&&h("div",{class:"infinite-loading-spinner"},h("ion-spinner",{name:this.loadingSpinner})),this.loadingText!==void 0&&this.renderLoadingText()))}static get style(){return{ios:infiniteScrollContentIosCss,md:infiniteScrollContentMdCss}}},[32,"ion-infinite-scroll-content",{loadingSpinner:[1025,"loading-spinner"],loadingText:[1,"loading-text"]}]);function defineCustomElement$1$y(){if(typeof customElements>"u")return;["ion-infinite-scroll-content","ion-spinner"].forEach(s=>{switch(s){case"ion-infinite-scroll-content":customElements.get(s)||customElements.define(s,InfiniteScrollContent);break;case"ion-spinner":customElements.get(s)||defineCustomElement$P();break}})}const defineCustomElement$O=defineCustomElement$1$y;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const inputIosCss=".sc-ion-input-ios-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:.5;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--background:transparent;--color:initial;display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;width:100%;padding:0 !important;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2}ion-item.sc-ion-input-ios-h:not(.item-label),ion-item:not(.item-label) .sc-ion-input-ios-h{--padding-start:0}.ion-color.sc-ion-input-ios-h{color:var(--ion-color-base)}.native-input.sc-ion-input-ios{border-radius:var(--border-radius);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:inline-block;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.native-input.sc-ion-input-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.native-input.sc-ion-input-ios::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios:-webkit-autofill{background-color:transparent}.native-input.sc-ion-input-ios:invalid{-webkit-box-shadow:none;box-shadow:none}.native-input.sc-ion-input-ios::-ms-clear{display:none}.native-input[disabled].sc-ion-input-ios:not(.cloned-input){opacity:0.4}.cloned-input.sc-ion-input-ios{left:0;top:0;position:absolute;pointer-events:none}[dir=rtl].sc-ion-input-ios .cloned-input.sc-ion-input-ios,[dir=rtl].sc-ion-input-ios-h .cloned-input.sc-ion-input-ios,[dir=rtl] .sc-ion-input-ios-h .cloned-input.sc-ion-input-ios{left:unset;right:unset;right:0}.cloned-input.sc-ion-input-ios:disabled{opacity:1}.input-clear-icon.sc-ion-input-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;background-position:center;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:30px;height:30px;border:0;outline:none;background-color:transparent;background-repeat:no-repeat;color:var(--ion-color-step-600, #666666);visibility:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}.in-item-color.sc-ion-input-ios-h .input-clear-icon.sc-ion-input-ios{color:inherit}.input-clear-icon.sc-ion-input-ios:focus{opacity:0.5}.has-value.sc-ion-input-ios-h .input-clear-icon.sc-ion-input-ios{visibility:visible}.has-focus.sc-ion-input-ios-h{pointer-events:none}.has-focus.sc-ion-input-ios-h input.sc-ion-input-ios,.has-focus.sc-ion-input-ios-h a.sc-ion-input-ios,.has-focus.sc-ion-input-ios-h button.sc-ion-input-ios{pointer-events:auto}.item-label-floating.item-has-placeholder.sc-ion-input-ios-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-input-ios-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-input-ios-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-input-ios-h{-webkit-transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.sc-ion-input-ios-h{--padding-top:10px;--padding-end:10px;--padding-bottom:10px;--padding-start:0;font-size:inherit}.item-label-stacked.sc-ion-input-ios-h,.item-label-stacked .sc-ion-input-ios-h,.item-label-floating.sc-ion-input-ios-h,.item-label-floating .sc-ion-input-ios-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0px}.input-clear-icon.sc-ion-input-ios ion-icon.sc-ion-input-ios{width:18px;height:18px}",inputMdCss=".sc-ion-input-md-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:.5;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--background:transparent;--color:initial;display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;width:100%;padding:0 !important;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2}ion-item.sc-ion-input-md-h:not(.item-label),ion-item:not(.item-label) .sc-ion-input-md-h{--padding-start:0}.ion-color.sc-ion-input-md-h{color:var(--ion-color-base)}.native-input.sc-ion-input-md{border-radius:var(--border-radius);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:inline-block;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.native-input.sc-ion-input-md{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.native-input.sc-ion-input-md::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md:-webkit-autofill{background-color:transparent}.native-input.sc-ion-input-md:invalid{-webkit-box-shadow:none;box-shadow:none}.native-input.sc-ion-input-md::-ms-clear{display:none}.native-input[disabled].sc-ion-input-md:not(.cloned-input){opacity:0.4}.cloned-input.sc-ion-input-md{left:0;top:0;position:absolute;pointer-events:none}[dir=rtl].sc-ion-input-md .cloned-input.sc-ion-input-md,[dir=rtl].sc-ion-input-md-h .cloned-input.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h .cloned-input.sc-ion-input-md{left:unset;right:unset;right:0}.cloned-input.sc-ion-input-md:disabled{opacity:1}.input-clear-icon.sc-ion-input-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;background-position:center;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:30px;height:30px;border:0;outline:none;background-color:transparent;background-repeat:no-repeat;color:var(--ion-color-step-600, #666666);visibility:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}.in-item-color.sc-ion-input-md-h .input-clear-icon.sc-ion-input-md{color:inherit}.input-clear-icon.sc-ion-input-md:focus{opacity:0.5}.has-value.sc-ion-input-md-h .input-clear-icon.sc-ion-input-md{visibility:visible}.has-focus.sc-ion-input-md-h{pointer-events:none}.has-focus.sc-ion-input-md-h input.sc-ion-input-md,.has-focus.sc-ion-input-md-h a.sc-ion-input-md,.has-focus.sc-ion-input-md-h button.sc-ion-input-md{pointer-events:auto}.item-label-floating.item-has-placeholder.sc-ion-input-md-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-input-md-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-input-md-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-input-md-h{-webkit-transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.sc-ion-input-md-h{--padding-top:10px;--padding-end:0;--padding-bottom:10px;--padding-start:8px;font-size:inherit}.item-label-stacked.sc-ion-input-md-h,.item-label-stacked .sc-ion-input-md-h,.item-label-floating.sc-ion-input-md-h,.item-label-floating .sc-ion-input-md-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0}.input-clear-icon.sc-ion-input-md ion-icon.sc-ion-input-md{width:22px;height:22px}",Input=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.ionInput=createEvent(this,"ionInput",7),this.ionChange=createEvent(this,"ionChange",7),this.ionBlur=createEvent(this,"ionBlur",7),this.ionFocus=createEvent(this,"ionFocus",7),this.ionStyle=createEvent(this,"ionStyle",7),this.inputId=`ion-input-${inputIds++}`,this.didBlurAfterEdit=!1,this.inheritedAttributes={},this.isComposing=!1,this.fireFocusEvents=!0,this.hasFocus=!1,this.autocapitalize="off",this.autocomplete="off",this.autocorrect="off",this.autofocus=!1,this.clearInput=!1,this.debounce=0,this.disabled=!1,this.name=this.inputId,this.readonly=!1,this.required=!1,this.spellcheck=!1,this.type="text",this.value="",this.onInput=o=>{const s=o.target;s&&(this.value=s.value||""),this.ionInput.emit(o)},this.onBlur=o=>{this.hasFocus=!1,this.focusChanged(),this.emitStyle(),this.fireFocusEvents&&this.ionBlur.emit(o)},this.onFocus=o=>{this.hasFocus=!0,this.focusChanged(),this.emitStyle(),this.fireFocusEvents&&this.ionFocus.emit(o)},this.onKeydown=o=>{this.shouldClearOnEdit()&&(this.didBlurAfterEdit&&this.hasValue()&&o.key!=="Enter"&&this.clearTextInput(),this.didBlurAfterEdit=!1)},this.onCompositionStart=()=>{this.isComposing=!0},this.onCompositionEnd=()=>{this.isComposing=!1},this.clearTextInput=o=>{this.clearInput&&!this.readonly&&!this.disabled&&o&&(o.preventDefault(),o.stopPropagation(),this.setFocus()),this.value="",this.nativeInput&&(this.nativeInput.value="")}}debounceChanged(){this.ionChange=debounceEvent(this.ionChange,this.debounce)}disabledChanged(){this.emitStyle()}placeholderChanged(){this.emitStyle()}valueChanged(){const o=this.nativeInput,s=this.getValue();o&&o.value!==s&&!this.isComposing&&(o.value=s),this.emitStyle(),this.ionChange.emit({value:this.value==null?this.value:this.value.toString()})}componentWillLoad(){this.inheritedAttributes=Object.assign(Object.assign({},inheritAriaAttributes(this.el)),inheritAttributes$2(this.el,["tabindex","title","data-form-type"]))}connectedCallback(){this.emitStyle(),this.debounceChanged(),document.dispatchEvent(new CustomEvent("ionInputDidLoad",{detail:this.el}))}componentDidLoad(){const o=this.nativeInput;o&&(o.addEventListener("compositionstart",this.onCompositionStart),o.addEventListener("compositionend",this.onCompositionEnd))}disconnectedCallback(){document.dispatchEvent(new CustomEvent("ionInputDidUnload",{detail:this.el}));const o=this.nativeInput;o&&(o.removeEventListener("compositionstart",this.onCompositionStart),o.removeEventListener("compositionend",this.onCompositionEnd))}async setFocus(){this.nativeInput&&this.nativeInput.focus()}async setBlur(){this.nativeInput&&this.nativeInput.blur()}getInputElement(){return Promise.resolve(this.nativeInput)}shouldClearOnEdit(){const{type:o,clearOnEdit:s}=this;return s===void 0?o==="password":s}getValue(){return typeof this.value=="number"?this.value.toString():(this.value||"").toString()}emitStyle(){this.ionStyle.emit({interactive:!0,input:!0,"has-placeholder":this.placeholder!==void 0,"has-value":this.hasValue(),"has-focus":this.hasFocus,"interactive-disabled":this.disabled})}focusChanged(){!this.hasFocus&&this.shouldClearOnEdit()&&this.hasValue()&&(this.didBlurAfterEdit=!0)}hasValue(){return this.getValue().length>0}render(){const o=getIonMode$2(this),s=this.getValue(),a=this.inputId+"-lbl",$=findItemLabel(this.el);return $&&($.id=a),h(Host,{"aria-disabled":this.disabled?"true":null,class:createColorClasses$1(this.color,{[o]:!0,"has-value":this.hasValue(),"has-focus":this.hasFocus,"in-item-color":hostContext("ion-item.ion-color",this.el)})},h("input",Object.assign({class:"native-input",ref:j=>this.nativeInput=j,"aria-labelledby":$?a:null,disabled:this.disabled,accept:this.accept,autoCapitalize:this.autocapitalize,autoComplete:this.autocomplete,autoCorrect:this.autocorrect,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,min:this.min,max:this.max,minLength:this.minlength,maxLength:this.maxlength,multiple:this.multiple,name:this.name,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,spellcheck:this.spellcheck,step:this.step,size:this.size,type:this.type,value:s,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeydown},this.inheritedAttributes)),this.clearInput&&!this.readonly&&!this.disabled&&h("button",{"aria-label":"reset",type:"button",class:"input-clear-icon",onPointerDown:j=>{j.preventDefault()},onClick:this.clearTextInput},h("ion-icon",{"aria-hidden":"true",icon:o==="ios"?closeCircle$1:closeSharp})))}get el(){return this}static get watchers(){return{debounce:["debounceChanged"],disabled:["disabledChanged"],placeholder:["placeholderChanged"],value:["valueChanged"]}}static get style(){return{ios:inputIosCss,md:inputMdCss}}},[34,"ion-input",{fireFocusEvents:[4,"fire-focus-events"],color:[513],accept:[1],autocapitalize:[1],autocomplete:[1],autocorrect:[1],autofocus:[4],clearInput:[4,"clear-input"],clearOnEdit:[4,"clear-on-edit"],debounce:[2],disabled:[4],enterkeyhint:[1],inputmode:[1],max:[8],maxlength:[2],min:[8],minlength:[2],multiple:[4],name:[1],pattern:[1],placeholder:[1],readonly:[4],required:[4],spellcheck:[4],step:[1],size:[2],type:[1],value:[1032],hasFocus:[32],setFocus:[64],setBlur:[64],getInputElement:[64]}]);let inputIds=0;function defineCustomElement$1$x(){if(typeof customElements>"u")return;["ion-input","ion-icon"].forEach(s=>{switch(s){case"ion-input":customElements.get(s)||customElements.define(s,Input);break;case"ion-icon":customElements.get(s)||defineCustomElement$1n();break}})}const defineCustomElement$N=defineCustomElement$1$x;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const IonItem$1=Item;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const itemGroupIosCss="ion-item-group{display:block}",itemGroupMdCss="ion-item-group{display:block}",ItemGroup=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost()}render(){const o=getIonMode$2(this);return h(Host,{role:"group",class:{[o]:!0,[`item-group-${o}`]:!0,item:!0}})}static get style(){return{ios:itemGroupIosCss,md:itemGroupMdCss}}},[32,"ion-item-group"]);function defineCustomElement$1$w(){if(typeof customElements>"u")return;["ion-item-group"].forEach(s=>{switch(s){case"ion-item-group":customElements.get(s)||customElements.define(s,ItemGroup);break}})}const defineCustomElement$M=defineCustomElement$1$w;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const itemOptionIosCss=":host{--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff);background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit)}:host(.in-list.item-options-end:last-child){padding-right:calc(0.7em + var(--ion-safe-area-right))}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-list.item-options-end:last-child){padding-right:unset;-webkit-padding-end:calc(0.7em + var(--ion-safe-area-right));padding-inline-end:calc(0.7em + var(--ion-safe-area-right))}}:host(.in-list.item-options-start:first-child){padding-left:calc(0.7em + var(--ion-safe-area-left))}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-list.item-options-start:first-child){padding-left:unset;-webkit-padding-start:calc(0.7em + var(--ion-safe-area-left));padding-inline-start:calc(0.7em + var(--ion-safe-area-left))}}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.button-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0.7em;padding-right:0.7em;padding-top:0;padding-bottom:0;display:inline-block;position:relative;width:100%;height:100%;border:0;outline:none;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:0.7em;padding-inline-start:0.7em;-webkit-padding-end:0.7em;padding-inline-end:0.7em}}.button-inner{display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.horizontal-wrapper{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%}::slotted(*){-ms-flex-negative:0;flex-shrink:0}::slotted([slot=start]){margin-left:0;margin-right:5px;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:5px;margin-inline-end:5px}}::slotted([slot=end]){margin-left:5px;margin-right:0;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:5px;margin-inline-start:5px;-webkit-margin-end:0;margin-inline-end:0}}::slotted([slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:10px;margin-right:10px;margin-top:0;margin-bottom:0;min-width:0.9em;font-size:1.8em}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=icon-only]){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px}}:host(.item-option-expandable){-ms-flex-negative:0;flex-shrink:0;-webkit-transition-duration:0;transition-duration:0;-webkit-transition-property:none;transition-property:none;-webkit-transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1);transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1)}:host(.item-option-disabled){pointer-events:none}:host(.item-option-disabled) .button-native{cursor:default;opacity:0.5;pointer-events:none}:host{font-size:16px}:host(.ion-activated){background:var(--ion-color-primary-shade, #3171e0)}:host(.ion-color.ion-activated){background:var(--ion-color-shade)}",itemOptionMdCss=":host{--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff);background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit)}:host(.in-list.item-options-end:last-child){padding-right:calc(0.7em + var(--ion-safe-area-right))}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-list.item-options-end:last-child){padding-right:unset;-webkit-padding-end:calc(0.7em + var(--ion-safe-area-right));padding-inline-end:calc(0.7em + var(--ion-safe-area-right))}}:host(.in-list.item-options-start:first-child){padding-left:calc(0.7em + var(--ion-safe-area-left))}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-list.item-options-start:first-child){padding-left:unset;-webkit-padding-start:calc(0.7em + var(--ion-safe-area-left));padding-inline-start:calc(0.7em + var(--ion-safe-area-left))}}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.button-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0.7em;padding-right:0.7em;padding-top:0;padding-bottom:0;display:inline-block;position:relative;width:100%;height:100%;border:0;outline:none;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:0.7em;padding-inline-start:0.7em;-webkit-padding-end:0.7em;padding-inline-end:0.7em}}.button-inner{display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.horizontal-wrapper{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%}::slotted(*){-ms-flex-negative:0;flex-shrink:0}::slotted([slot=start]){margin-left:0;margin-right:5px;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:5px;margin-inline-end:5px}}::slotted([slot=end]){margin-left:5px;margin-right:0;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:5px;margin-inline-start:5px;-webkit-margin-end:0;margin-inline-end:0}}::slotted([slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:10px;margin-right:10px;margin-top:0;margin-bottom:0;min-width:0.9em;font-size:1.8em}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=icon-only]){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px}}:host(.item-option-expandable){-ms-flex-negative:0;flex-shrink:0;-webkit-transition-duration:0;transition-duration:0;-webkit-transition-property:none;transition-property:none;-webkit-transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1);transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1)}:host(.item-option-disabled){pointer-events:none}:host(.item-option-disabled) .button-native{cursor:default;opacity:0.5;pointer-events:none}:host{font-size:14px;font-weight:500;text-transform:uppercase}",ItemOption=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.disabled=!1,this.expandable=!1,this.type="button",this.onClick=o=>{o.target.closest("ion-item-option")&&o.preventDefault()}}render(){const{disabled:o,expandable:s,href:a}=this,$=a===void 0?"button":"a",j=getIonMode$2(this),_e=$==="button"?{type:this.type}:{download:this.download,href:this.href,target:this.target};return h(Host,{onClick:this.onClick,class:createColorClasses$1(this.color,{[j]:!0,"item-option-disabled":o,"item-option-expandable":s,"ion-activatable":!0})},h($,Object.assign({},_e,{class:"button-native",part:"native",disabled:o}),h("span",{class:"button-inner"},h("slot",{name:"top"}),h("div",{class:"horizontal-wrapper"},h("slot",{name:"start"}),h("slot",{name:"icon-only"}),h("slot",null),h("slot",{name:"end"})),h("slot",{name:"bottom"})),j==="md"&&h("ion-ripple-effect",null)))}get el(){return this}static get style(){return{ios:itemOptionIosCss,md:itemOptionMdCss}}},[33,"ion-item-option",{color:[513],disabled:[4],download:[1],expandable:[4],href:[1],rel:[1],target:[1],type:[1]}]),IonItemOption$1=ItemOption;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const itemOptionsIosCss="ion-item-options{top:0;right:0;-ms-flex-pack:end;justify-content:flex-end;display:none;position:absolute;height:100%;font-size:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}[dir=rtl] ion-item-options,:host-context([dir=rtl]) ion-item-options{-ms-flex-pack:start;justify-content:flex-start}[dir=rtl] ion-item-options:not(.item-options-end),:host-context([dir=rtl]) ion-item-options:not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}.item-options-start{right:auto;left:0;-ms-flex-pack:start;justify-content:flex-start}[dir=rtl] .item-options-start,:host-context([dir=rtl]) .item-options-start{-ms-flex-pack:end;justify-content:flex-end}.item-options-start ion-item-option:first-child{padding-right:var(--ion-safe-area-left)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-options-start ion-item-option:first-child{padding-right:unset;-webkit-padding-end:var(--ion-safe-area-left);padding-inline-end:var(--ion-safe-area-left)}}.item-options-end ion-item-option:last-child{padding-right:var(--ion-safe-area-right)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-options-end ion-item-option:last-child{padding-right:unset;-webkit-padding-end:var(--ion-safe-area-right);padding-inline-end:var(--ion-safe-area-right)}}[dir=rtl] .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end),:host-context([dir=rtl]) .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}.item-sliding-active-slide ion-item-options{display:-ms-flexbox;display:flex;visibility:hidden}.item-sliding-active-slide.item-sliding-active-options-start .item-options-start,.item-sliding-active-slide.item-sliding-active-options-end ion-item-options:not(.item-options-start){width:100%;visibility:visible}.item-options-ios{border-bottom-width:0;border-bottom-style:solid;border-bottom-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)))}.item-options-ios.item-options-end{border-bottom-width:0.55px}.list-ios-lines-none .item-options-ios{border-bottom-width:0}.list-ios-lines-full .item-options-ios,.list-ios-lines-inset .item-options-ios.item-options-end{border-bottom-width:0.55px}",itemOptionsMdCss="ion-item-options{top:0;right:0;-ms-flex-pack:end;justify-content:flex-end;display:none;position:absolute;height:100%;font-size:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}[dir=rtl] ion-item-options,:host-context([dir=rtl]) ion-item-options{-ms-flex-pack:start;justify-content:flex-start}[dir=rtl] ion-item-options:not(.item-options-end),:host-context([dir=rtl]) ion-item-options:not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}.item-options-start{right:auto;left:0;-ms-flex-pack:start;justify-content:flex-start}[dir=rtl] .item-options-start,:host-context([dir=rtl]) .item-options-start{-ms-flex-pack:end;justify-content:flex-end}.item-options-start ion-item-option:first-child{padding-right:var(--ion-safe-area-left)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-options-start ion-item-option:first-child{padding-right:unset;-webkit-padding-end:var(--ion-safe-area-left);padding-inline-end:var(--ion-safe-area-left)}}.item-options-end ion-item-option:last-child{padding-right:var(--ion-safe-area-right)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-options-end ion-item-option:last-child{padding-right:unset;-webkit-padding-end:var(--ion-safe-area-right);padding-inline-end:var(--ion-safe-area-right)}}[dir=rtl] .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end),:host-context([dir=rtl]) .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}.item-sliding-active-slide ion-item-options{display:-ms-flexbox;display:flex;visibility:hidden}.item-sliding-active-slide.item-sliding-active-options-start .item-options-start,.item-sliding-active-slide.item-sliding-active-options-end ion-item-options:not(.item-options-start){width:100%;visibility:visible}.item-options-md{border-bottom-width:0;border-bottom-style:solid;border-bottom-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))))}.list-md-lines-none .item-options-md{border-bottom-width:0}.list-md-lines-full .item-options-md,.list-md-lines-inset .item-options-md.item-options-end{border-bottom-width:1px}",ItemOptions=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.ionSwipe=createEvent(this,"ionSwipe",7),this.side="end"}async fireSwipeEvent(){this.ionSwipe.emit({side:this.side})}render(){const o=getIonMode$2(this),s=isEndSide(this.side);return h(Host,{class:{[o]:!0,[`item-options-${o}`]:!0,"item-options-start":!s,"item-options-end":s}})}get el(){return this}static get style(){return{ios:itemOptionsIosCss,md:itemOptionsMdCss}}},[32,"ion-item-options",{side:[1],fireSwipeEvent:[64]}]);function defineCustomElement$1$v(){if(typeof customElements>"u")return;["ion-item-options"].forEach(s=>{switch(s){case"ion-item-options":customElements.get(s)||customElements.define(s,ItemOptions);break}})}const defineCustomElement$L=defineCustomElement$1$v,itemSlidingCss="ion-item-sliding{display:block;position:relative;width:100%;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ion-item-sliding .item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.item-sliding-active-slide .item{position:relative;-webkit-transition:-webkit-transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);transition:-webkit-transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);transition:transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);transition:transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1), -webkit-transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);opacity:1;z-index:2;pointer-events:none;will-change:transform}.item-sliding-active-swipe-end .item-options-end .item-option-expandable{padding-left:100%;-ms-flex-order:1;order:1;-webkit-transition-duration:0.6s;transition-duration:0.6s;-webkit-transition-property:padding-left;transition-property:padding-left}[dir=rtl] .item-sliding-active-swipe-end .item-options-end .item-option-expandable,:host-context([dir=rtl]) .item-sliding-active-swipe-end .item-options-end .item-option-expandable{-ms-flex-order:-1;order:-1}.item-sliding-active-swipe-start .item-options-start .item-option-expandable{padding-right:100%;-ms-flex-order:-1;order:-1;-webkit-transition-duration:0.6s;transition-duration:0.6s;-webkit-transition-property:padding-right;transition-property:padding-right}[dir=rtl] .item-sliding-active-swipe-start .item-options-start .item-option-expandable,:host-context([dir=rtl]) .item-sliding-active-swipe-start .item-options-start .item-option-expandable{-ms-flex-order:1;order:1}",SWIPE_MARGIN=30,ELASTIC_FACTOR=.55;let openSlidingItem;const ItemSliding=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.ionDrag=createEvent(this,"ionDrag",7),this.item=null,this.openAmount=0,this.initialOpenAmount=0,this.optsWidthRightSide=0,this.optsWidthLeftSide=0,this.sides=0,this.optsDirty=!0,this.contentEl=null,this.initialContentScrollY=!0,this.state=2,this.disabled=!1}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}async connectedCallback(){this.item=this.el.querySelector("ion-item"),this.contentEl=findClosestIonContent(this.el),await this.updateOptions(),this.gesture=(await __vitePreload(()=>Promise.resolve().then(()=>index2),void 0)).createGesture({el:this.el,gestureName:"item-swipe",gesturePriority:100,threshold:5,canStart:o=>this.canStart(o),onStart:()=>this.onStart(),onMove:o=>this.onMove(o),onEnd:o=>this.onEnd(o)}),this.disabledChanged()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.item=null,this.leftOptions=this.rightOptions=void 0,openSlidingItem===this.el&&(openSlidingItem=void 0)}getOpenAmount(){return Promise.resolve(this.openAmount)}getSlidingRatio(){return Promise.resolve(this.getSlidingRatioSync())}async open(o){var s;if((this.item=(s=this.item)!==null&&s!==void 0?s:this.el.querySelector("ion-item"))===null)return;const $=this.getOptions(o);if(!$)return;o===void 0&&(o=$===this.leftOptions?"start":"end"),o=isEndSide(o)?"end":"start";const j=this.openAmount<0,_e=this.openAmount>0;j&&$===this.leftOptions||_e&&$===this.rightOptions||(this.closeOpened(),this.state=4,requestAnimationFrame(()=>{this.calculateOptsWidth();const et=o==="end"?this.optsWidthRightSide:-this.optsWidthLeftSide;openSlidingItem=this.el,this.setOpenAmount(et,!1),this.state=o==="end"?8:16}))}async close(){this.setOpenAmount(0,!0)}async closeOpened(){return openSlidingItem!==void 0?(openSlidingItem.close(),openSlidingItem=void 0,!0):!1}getOptions(o){return o===void 0?this.leftOptions||this.rightOptions:o==="start"?this.leftOptions:this.rightOptions}async updateOptions(){const o=this.el.querySelectorAll("ion-item-options");let s=0;this.leftOptions=this.rightOptions=void 0;for(let a=0;a<o.length;a++){const $=o.item(a),j=$.componentOnReady!==void 0?await $.componentOnReady():$;(isEndSide(j.side)?"end":"start")==="start"?(this.leftOptions=j,s|=1):(this.rightOptions=j,s|=2)}this.optsDirty=!0,this.sides=s}canStart(o){if(document.dir==="rtl"?window.innerWidth-o.startX<15:o.startX<15)return!1;const $=openSlidingItem;return $&&$!==this.el&&this.closeOpened(),!!(this.rightOptions||this.leftOptions)}onStart(){this.item=this.el.querySelector("ion-item");const{contentEl:o}=this;o&&(this.initialContentScrollY=disableContentScrollY(o)),openSlidingItem=this.el,this.tmr!==void 0&&(clearTimeout(this.tmr),this.tmr=void 0),this.openAmount===0&&(this.optsDirty=!0,this.state=4),this.initialOpenAmount=this.openAmount,this.item&&(this.item.style.transition="none")}onMove(o){this.optsDirty&&this.calculateOptsWidth();let s=this.initialOpenAmount-o.deltaX;switch(this.sides){case 2:s=Math.max(0,s);break;case 1:s=Math.min(0,s);break;case 3:break;case 0:return;default:console.warn("invalid ItemSideFlags value",this.sides);break}let a;s>this.optsWidthRightSide?(a=this.optsWidthRightSide,s=a+(s-a)*ELASTIC_FACTOR):s<-this.optsWidthLeftSide&&(a=-this.optsWidthLeftSide,s=a+(s-a)*ELASTIC_FACTOR),this.setOpenAmount(s,!1)}onEnd(o){const{contentEl:s,initialContentScrollY:a}=this;s&&resetContentScrollY(s,a);const $=o.velocityX;let j=this.openAmount>0?this.optsWidthRightSide:-this.optsWidthLeftSide;const _e=this.openAmount>0==!($<0),et=Math.abs($)>.3,tt=Math.abs(this.openAmount)<Math.abs(j/2);swipeShouldReset(_e,et,tt)&&(j=0);const nt=this.state;this.setOpenAmount(j,!0),nt&32&&this.rightOptions?this.rightOptions.fireSwipeEvent():nt&64&&this.leftOptions&&this.leftOptions.fireSwipeEvent()}calculateOptsWidth(){this.optsWidthRightSide=0,this.rightOptions&&(this.rightOptions.style.display="flex",this.optsWidthRightSide=this.rightOptions.offsetWidth,this.rightOptions.style.display=""),this.optsWidthLeftSide=0,this.leftOptions&&(this.leftOptions.style.display="flex",this.optsWidthLeftSide=this.leftOptions.offsetWidth,this.leftOptions.style.display=""),this.optsDirty=!1}setOpenAmount(o,s){if(this.tmr!==void 0&&(clearTimeout(this.tmr),this.tmr=void 0),!this.item)return;const a=this.item.style;if(this.openAmount=o,s&&(a.transition=""),o>0)this.state=o>=this.optsWidthRightSide+SWIPE_MARGIN?40:8;else if(o<0)this.state=o<=-this.optsWidthLeftSide-SWIPE_MARGIN?80:16;else{this.gesture&&this.gesture.enable(!1),this.tmr=setTimeout(()=>{this.state=2,this.tmr=void 0,this.gesture&&this.gesture.enable(!this.disabled)},600),openSlidingItem=void 0,a.transform="";return}a.transform=`translate3d(${-o}px,0,0)`,this.ionDrag.emit({amount:o,ratio:this.getSlidingRatioSync()})}getSlidingRatioSync(){return this.openAmount>0?this.openAmount/this.optsWidthRightSide:this.openAmount<0?this.openAmount/this.optsWidthLeftSide:0}render(){const o=getIonMode$2(this);return h(Host,{class:{[o]:!0,"item-sliding-active-slide":this.state!==2,"item-sliding-active-options-end":(this.state&8)!==0,"item-sliding-active-options-start":(this.state&16)!==0,"item-sliding-active-swipe-end":(this.state&32)!==0,"item-sliding-active-swipe-start":(this.state&64)!==0}})}get el(){return this}static get watchers(){return{disabled:["disabledChanged"]}}static get style(){return itemSlidingCss}},[0,"ion-item-sliding",{disabled:[4],state:[32],getOpenAmount:[64],getSlidingRatio:[64],open:[64],close:[64],closeOpened:[64]}]),swipeShouldReset=(o,s,a)=>!s&&a||o&&s;function defineCustomElement$1$u(){if(typeof customElements>"u")return;["ion-item-sliding"].forEach(s=>{switch(s){case"ion-item-sliding":customElements.get(s)||customElements.define(s,ItemSliding);break}})}const defineCustomElement$K=defineCustomElement$1$u;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const defineCustomElement$J=defineCustomElement$_;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const listIosCss="ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-ios{background:var(--ion-item-background, var(--ion-background-color, #fff))}.list-ios.list-inset{margin-left:16px;margin-right:16px;margin-top:16px;margin-bottom:16px;border-radius:10px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.list-ios.list-inset{margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px}}.list-ios.list-inset ion-item:last-child{--border-width:0;--inner-border-width:0}.list-ios.list-inset+ion-list.list-inset{margin-top:0}.list-ios-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-ios-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 0.55px 0}.list-ios-lines-inset .item-lines-default{--inner-border-width:0 0 0.55px 0;--border-width:0px}ion-card .list-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",listMdCss="ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;background:var(--ion-item-background, var(--ion-background-color, #fff))}.list-md>.input:last-child::after{left:0}[dir=rtl] .list-md>.input:last-child::after,:host-context([dir=rtl]) .list-md>.input:last-child::after{left:unset;right:unset;right:0}.list-md.list-inset{margin-left:16px;margin-right:16px;margin-top:16px;margin-bottom:16px;border-radius:2px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.list-md.list-inset{margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px}}.list-md.list-inset ion-item:first-child{--border-radius:2px 2px 0 0}.list-md.list-inset ion-item:last-child{--border-radius:0 0 2px, 2px;--border-width:0;--inner-border-width:0}.list-md.list-inset+ion-list.list-inset{margin-top:0}.list-md-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-md-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 1px 0}.list-md-lines-inset .item-lines-default{--inner-border-width:0 0 1px 0;--border-width:0px}ion-card .list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",List=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.inset=!1}async closeSlidingItems(){const o=this.el.querySelector("ion-item-sliding");return o!=null&&o.closeOpened?o.closeOpened():!1}render(){const o=getIonMode$2(this),{lines:s,inset:a}=this;return h(Host,{role:"list",class:{[o]:!0,[`list-${o}`]:!0,"list-inset":a,[`list-lines-${s}`]:s!==void 0,[`list-${o}-lines-${s}`]:s!==void 0}})}get el(){return this}static get style(){return{ios:listIosCss,md:listMdCss}}},[32,"ion-list",{lines:[1],inset:[4],closeSlidingItems:[64]}]);function defineCustomElement$I(){if(typeof customElements>"u")return;["ion-list"].forEach(s=>{switch(s){case"ion-list":customElements.get(s)||customElements.define(s,List);break}})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const defineCustomElement$H=defineCustomElement$I;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const listHeaderIosCss=":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex:1 1 auto;flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-color-step-850, #262626);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));padding-left:calc(var(--ion-safe-area-left, 0px) + 20px);position:relative;-ms-flex-align:end;align-items:flex-end;font-size:22px;font-weight:700;letter-spacing:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;-webkit-padding-start:calc(var(--ion-safe-area-left, 0px) + 20px);padding-inline-start:calc(var(--ion-safe-area-left, 0px) + 20px)}}::slotted(ion-button),::slotted(ion-label){margin-top:29px;margin-bottom:6px}::slotted(ion-button){margin-left:3px;margin-right:3px;height:1.4em}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-button){margin-left:unset;margin-right:unset;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:3px;margin-inline-end:3px}}:host(.list-header-lines-full){--border-width:0 0 0.55px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 0.55px 0}",listHeaderMdCss=":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex:1 1 auto;flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-text-color, #000);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));padding-left:calc(var(--ion-safe-area-left, 0) + 16px);min-height:45px;font-size:14px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;-webkit-padding-start:calc(var(--ion-safe-area-left, 0) + 16px);padding-inline-start:calc(var(--ion-safe-area-left, 0) + 16px)}}:host(.list-header-lines-full){--border-width:0 0 1px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 1px 0}",ListHeader=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){const{lines:o}=this,s=getIonMode$2(this);return h(Host,{class:createColorClasses$1(this.color,{[s]:!0,[`list-header-lines-${o}`]:o!==void 0})},h("div",{class:"list-header-inner"},h("slot",null)))}static get style(){return{ios:listHeaderIosCss,md:listHeaderMdCss}}},[33,"ion-list-header",{color:[513],lines:[1]}]);function defineCustomElement$G(){if(typeof customElements>"u")return;["ion-list-header"].forEach(s=>{switch(s){case"ion-list-header":customElements.get(s)||customElements.define(s,ListHeader);break}})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const defineCustomElement$F=defineCustomElement$G;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const iosEnterAnimation$2=o=>{const s=createAnimation(),a=createAnimation(),$=createAnimation();return a.addElement(o.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),$.addElement(o.querySelector(".loading-wrapper")).keyframes([{offset:0,opacity:.01,transform:"scale(1.1)"},{offset:1,opacity:1,transform:"scale(1)"}]),s.addElement(o).easing("ease-in-out").duration(200).addAnimation([a,$])},iosLeaveAnimation$2=o=>{const s=createAnimation(),a=createAnimation(),$=createAnimation();return a.addElement(o.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),$.addElement(o.querySelector(".loading-wrapper")).keyframes([{offset:0,opacity:.99,transform:"scale(1)"},{offset:1,opacity:0,transform:"scale(0.9)"}]),s.addElement(o).easing("ease-in-out").duration(200).addAnimation([a,$])},mdEnterAnimation$2=o=>{const s=createAnimation(),a=createAnimation(),$=createAnimation();return a.addElement(o.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),$.addElement(o.querySelector(".loading-wrapper")).keyframes([{offset:0,opacity:.01,transform:"scale(1.1)"},{offset:1,opacity:1,transform:"scale(1)"}]),s.addElement(o).easing("ease-in-out").duration(200).addAnimation([a,$])},mdLeaveAnimation$2=o=>{const s=createAnimation(),a=createAnimation(),$=createAnimation();return a.addElement(o.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),$.addElement(o.querySelector(".loading-wrapper")).keyframes([{offset:0,opacity:.99,transform:"scale(1)"},{offset:1,opacity:0,transform:"scale(0.9)"}]),s.addElement(o).easing("ease-in-out").duration(200).addAnimation([a,$])},loadingIosCss=".sc-ion-loading-ios-h{--min-width:auto;--width:auto;--min-height:auto;--height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-loading-ios-h{display:none}.loading-wrapper.sc-ion-loading-ios{display:-ms-flexbox;display:flex;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);opacity:0;z-index:10}ion-spinner.sc-ion-loading-ios{color:var(--spinner-color)}.sc-ion-loading-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--max-width:270px;--max-height:90%;--spinner-color:var(--ion-color-step-600, #666666);--backdrop-opacity:var(--ion-backdrop-opacity, 0.3);color:var(--ion-text-color, #000);font-size:14px}.loading-wrapper.sc-ion-loading-ios{border-radius:8px;padding-left:34px;padding-right:34px;padding-top:24px;padding-bottom:24px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.loading-wrapper.sc-ion-loading-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:34px;padding-inline-start:34px;-webkit-padding-end:34px;padding-inline-end:34px}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.loading-translucent.sc-ion-loading-ios-h .loading-wrapper.sc-ion-loading-ios{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}.loading-content.sc-ion-loading-ios{font-weight:bold}.loading-spinner.sc-ion-loading-ios+.loading-content.sc-ion-loading-ios{margin-left:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.loading-spinner.sc-ion-loading-ios+.loading-content.sc-ion-loading-ios{margin-left:unset;-webkit-margin-start:16px;margin-inline-start:16px}}",loadingMdCss=".sc-ion-loading-md-h{--min-width:auto;--width:auto;--min-height:auto;--height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-loading-md-h{display:none}.loading-wrapper.sc-ion-loading-md{display:-ms-flexbox;display:flex;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);opacity:0;z-index:10}ion-spinner.sc-ion-loading-md{color:var(--spinner-color)}.sc-ion-loading-md-h{--background:var(--ion-color-step-50, #f2f2f2);--max-width:280px;--max-height:90%;--spinner-color:var(--ion-color-primary, #3880ff);--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);color:var(--ion-color-step-850, #262626);font-size:14px}.loading-wrapper.sc-ion-loading-md{border-radius:2px;padding-left:24px;padding-right:24px;padding-top:24px;padding-bottom:24px;-webkit-box-shadow:0 16px 20px rgba(0, 0, 0, 0.4);box-shadow:0 16px 20px rgba(0, 0, 0, 0.4)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.loading-wrapper.sc-ion-loading-md{padding-left:unset;padding-right:unset;-webkit-padding-start:24px;padding-inline-start:24px;-webkit-padding-end:24px;padding-inline-end:24px}}.loading-spinner.sc-ion-loading-md+.loading-content.sc-ion-loading-md{margin-left:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.loading-spinner.sc-ion-loading-md+.loading-content.sc-ion-loading-md{margin-left:unset;-webkit-margin-start:16px;margin-inline-start:16px}}",Loading=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.didPresent=createEvent(this,"ionLoadingDidPresent",7),this.willPresent=createEvent(this,"ionLoadingWillPresent",7),this.willDismiss=createEvent(this,"ionLoadingWillDismiss",7),this.didDismiss=createEvent(this,"ionLoadingDidDismiss",7),this.customHTMLEnabled=config$1.get("innerHTMLTemplatesEnabled",ENABLE_HTML_CONTENT_DEFAULT),this.presented=!1,this.keyboardClose=!0,this.duration=0,this.backdropDismiss=!1,this.showBackdrop=!0,this.translucent=!1,this.animated=!0,this.onBackdropTap=()=>{this.dismiss(void 0,BACKDROP)}}connectedCallback(){prepareOverlay(this.el)}componentWillLoad(){if(this.spinner===void 0){const o=getIonMode$2(this);this.spinner=config$1.get("loadingSpinner",config$1.get("spinner",o==="ios"?"lines":"crescent"))}}async present(){await present(this,"loadingEnter",iosEnterAnimation$2,mdEnterAnimation$2),this.duration>0&&(this.durationTimeout=setTimeout(()=>this.dismiss(),this.duration+10))}dismiss(o,s){return this.durationTimeout&&clearTimeout(this.durationTimeout),dismiss(this,o,s,"loadingLeave",iosLeaveAnimation$2,mdLeaveAnimation$2)}onDidDismiss(){return eventMethod(this.el,"ionLoadingDidDismiss")}onWillDismiss(){return eventMethod(this.el,"ionLoadingWillDismiss")}renderLoadingMessage(o){const{customHTMLEnabled:s,message:a}=this;return s?h("div",{class:"loading-content",id:o,innerHTML:sanitizeDOMString(a)}):h("div",{class:"loading-content",id:o},a)}render(){const{message:o,spinner:s,htmlAttributes:a,overlayIndex:$}=this,j=getIonMode$2(this),_e=`loading-${$}-msg`;return h(Host,Object.assign({role:"dialog","aria-modal":"true","aria-labelledby":o!==void 0?_e:null,tabindex:"-1"},a,{style:{zIndex:`${4e4+this.overlayIndex}`},onIonBackdropTap:this.onBackdropTap,class:Object.assign(Object.assign({},getClassMap(this.cssClass)),{[j]:!0,"overlay-hidden":!0,"loading-translucent":this.translucent})}),h("ion-backdrop",{visible:this.showBackdrop,tappable:this.backdropDismiss}),h("div",{tabindex:"0"}),h("div",{class:"loading-wrapper ion-overlay-wrapper"},s&&h("div",{class:"loading-spinner"},h("ion-spinner",{name:s,"aria-hidden":"true"})),o!==void 0&&this.renderLoadingMessage(_e)),h("div",{tabindex:"0"}))}get el(){return this}static get style(){return{ios:loadingIosCss,md:loadingMdCss}}},[34,"ion-loading",{overlayIndex:[2,"overlay-index"],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],message:[1],cssClass:[1,"css-class"],duration:[2],backdropDismiss:[4,"backdrop-dismiss"],showBackdrop:[4,"show-backdrop"],spinner:[1025],translucent:[4],animated:[4],htmlAttributes:[16],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64]}]);function defineCustomElement$1$t(){if(typeof customElements>"u")return;["ion-loading","ion-backdrop","ion-spinner"].forEach(s=>{switch(s){case"ion-loading":customElements.get(s)||customElements.define(s,Loading);break;case"ion-backdrop":customElements.get(s)||defineCustomElement$1m();break;case"ion-spinner":customElements.get(s)||defineCustomElement$P();break}})}const defineCustomElement$E=defineCustomElement$1$t,menuIosCss=":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);left:0;right:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{left:0;right:auto;top:0;bottom:0;-webkit-transform:translateX(-9999px);transform:translateX(-9999px);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:strict}[dir=rtl] .menu-inner,:host-context([dir=rtl]) .menu-inner{left:unset;right:unset;left:auto;right:0}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;right:auto;left:0}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;right:0;left:auto;}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{-webkit-transform:translate3d(0,  0,  0);transform:translate3d(0,  0,  0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){width:var(--width);min-width:var(--min-width);max-width:var(--max-width)}:host(.menu-pane-visible) .menu-inner{left:0;right:0;width:auto;-webkit-transform:none !important;transform:none !important;-webkit-box-shadow:none !important;box-shadow:none !important}:host(.menu-pane-visible) ion-backdrop{display:hidden !important;}:host(.menu-type-push){z-index:1000}:host(.menu-type-push) .show-backdrop{display:block}",menuMdCss=":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);left:0;right:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{left:0;right:auto;top:0;bottom:0;-webkit-transform:translateX(-9999px);transform:translateX(-9999px);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:strict}[dir=rtl] .menu-inner,:host-context([dir=rtl]) .menu-inner{left:unset;right:unset;left:auto;right:0}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;right:auto;left:0}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;right:0;left:auto;}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{-webkit-transform:translate3d(0,  0,  0);transform:translate3d(0,  0,  0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){width:var(--width);min-width:var(--min-width);max-width:var(--max-width)}:host(.menu-pane-visible) .menu-inner{left:0;right:0;width:auto;-webkit-transform:none !important;transform:none !important;-webkit-box-shadow:none !important;box-shadow:none !important}:host(.menu-pane-visible) ion-backdrop{display:hidden !important;}:host(.menu-type-overlay) .menu-inner{-webkit-box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18);box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18)}",iosEasing="cubic-bezier(0.32,0.72,0,1)",mdEasing="cubic-bezier(0.0,0.0,0.2,1)",iosEasingReverse="cubic-bezier(1, 0, 0.68, 0.28)",mdEasingReverse="cubic-bezier(0.4, 0, 0.6, 1)",focusableQueryString='[tabindex]:not([tabindex^="-"]), input:not([type=hidden]):not([tabindex^="-"]), textarea:not([tabindex^="-"]), button:not([tabindex^="-"]), select:not([tabindex^="-"]), .ion-focusable:not([tabindex^="-"])',Menu=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionWillOpen=createEvent(this,"ionWillOpen",7),this.ionWillClose=createEvent(this,"ionWillClose",7),this.ionDidOpen=createEvent(this,"ionDidOpen",7),this.ionDidClose=createEvent(this,"ionDidClose",7),this.ionMenuChange=createEvent(this,"ionMenuChange",7),this.lastOnEnd=0,this.blocker=GESTURE_CONTROLLER.createBlocker({disableScroll:!0}),this.isAnimating=!1,this._isOpen=!1,this.inheritedAttributes={},this.handleFocus=o=>{const s=getOverlay(document);s&&!s.contains(this.el)||this.trapKeyboardFocus(o,document)},this.isPaneVisible=!1,this.isEndSide=!1,this.disabled=!1,this.side="start",this.swipeGesture=!0,this.maxEdgeStart=50}typeChanged(o,s){const a=this.contentEl;a&&(s!==void 0&&a.classList.remove(`menu-content-${s}`),a.classList.add(`menu-content-${o}`),a.removeAttribute("style")),this.menuInnerEl&&this.menuInnerEl.removeAttribute("style"),this.animation=void 0}disabledChanged(){this.updateState(),this.ionMenuChange.emit({disabled:this.disabled,open:this._isOpen})}sideChanged(){this.isEndSide=isEndSide(this.side)}swipeGestureChanged(){this.updateState()}async connectedCallback(){typeof customElements<"u"&&customElements!=null&&await customElements.whenDefined("ion-menu"),this.type===void 0&&(this.type=config$1.get("menuType","overlay"));const o=this.contentId!==void 0?document.getElementById(this.contentId):null;if(o===null){console.error('Menu: must have a "content" element to listen for drag events on.');return}this.el.contains(o)&&console.error(`Menu: "contentId" should refer to the main view's ion-content, not the ion-content inside of the ion-menu.`),this.contentEl=o,o.classList.add("menu-content"),this.typeChanged(this.type,void 0),this.sideChanged(),menuController._register(this),this.gesture=(await __vitePreload(()=>Promise.resolve().then(()=>index2),void 0)).createGesture({el:document,gestureName:"menu-swipe",gesturePriority:30,threshold:10,blurOnStart:!0,canStart:s=>this.canStart(s),onWillStart:()=>this.onWillStart(),onStart:()=>this.onStart(),onMove:s=>this.onMove(s),onEnd:s=>this.onEnd(s)}),this.updateState()}componentWillLoad(){this.inheritedAttributes=inheritAriaAttributes(this.el)}async componentDidLoad(){this.ionMenuChange.emit({disabled:this.disabled,open:this._isOpen}),this.updateState()}async disconnectedCallback(){await this.close(!1),this.blocker.destroy(),menuController._unregister(this),this.animation&&this.animation.destroy(),this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.animation=void 0,this.contentEl=void 0}onSplitPaneChanged(o){this.isPaneVisible=o.detail.isPane(this.el),this.updateState()}onBackdropClick(o){this._isOpen&&this.lastOnEnd<o.timeStamp-100&&(o.composedPath&&!o.composedPath().includes(this.menuInnerEl))&&(o.preventDefault(),o.stopPropagation(),this.close())}onKeydown(o){o.key==="Escape"&&this.close()}isOpen(){return Promise.resolve(this._isOpen)}isActive(){return Promise.resolve(this._isActive())}open(o=!0){return this.setOpen(!0,o)}close(o=!0){return this.setOpen(!1,o)}toggle(o=!0){return this.setOpen(!this._isOpen,o)}setOpen(o,s=!0){return menuController._setOpen(this,o,s)}focusFirstDescendant(){const{el:o}=this,s=o.querySelector(focusableQueryString);s?s.focus():o.focus()}focusLastDescendant(){const{el:o}=this,s=Array.from(o.querySelectorAll(focusableQueryString)),a=s.length>0?s[s.length-1]:null;a?a.focus():o.focus()}trapKeyboardFocus(o,s){const a=o.target;a&&(this.el.contains(a)?this.lastFocus=a:(this.focusFirstDescendant(),this.lastFocus===s.activeElement&&this.focusLastDescendant()))}async _setOpen(o,s=!0){return!this._isActive()||this.isAnimating||o===this._isOpen?!1:(this.beforeAnimation(o),await this.loadAnimation(),await this.startAnimation(o,s),this.afterAnimation(o),!0)}async loadAnimation(){const o=this.menuInnerEl.offsetWidth;o===this.width&&this.animation!==void 0||(this.width=o,this.animation&&(this.animation.destroy(),this.animation=void 0),this.animation=await menuController._createAnimation(this.type,this),config$1.getBoolean("animated",!0)||this.animation.duration(0),this.animation.fill("both"))}async startAnimation(o,s){const a=!o,$=getIonMode$2(this),j=$==="ios"?iosEasing:mdEasing,_e=$==="ios"?iosEasingReverse:mdEasingReverse,et=this.animation.direction(a?"reverse":"normal").easing(a?_e:j).onFinish(()=>{et.getDirection()==="reverse"&&et.direction("normal")});s?await et.play():et.play({sync:!0})}_isActive(){return!this.disabled&&!this.isPaneVisible}canSwipe(){return this.swipeGesture&&!this.isAnimating&&this._isActive()}canStart(o){return!!document.querySelector("ion-modal.show-modal")||!this.canSwipe()?!1:this._isOpen?!0:menuController._getOpenSync()?!1:checkEdgeSide(window,o.currentX,this.isEndSide,this.maxEdgeStart)}onWillStart(){return this.beforeAnimation(!this._isOpen),this.loadAnimation()}onStart(){if(!this.isAnimating||!this.animation){assert(!1,"isAnimating has to be true");return}this.animation.progressStart(!0,this._isOpen?1:0)}onMove(o){if(!this.isAnimating||!this.animation){assert(!1,"isAnimating has to be true");return}const a=computeDelta(o.deltaX,this._isOpen,this.isEndSide)/this.width;this.animation.progressStep(this._isOpen?1-a:a)}onEnd(o){if(!this.isAnimating||!this.animation){assert(!1,"isAnimating has to be true");return}const s=this._isOpen,a=this.isEndSide,$=computeDelta(o.deltaX,s,a),j=this.width,_e=$/j,et=o.velocityX,tt=j/2,nt=et>=0&&(et>.2||o.deltaX>tt),it=et<=0&&(et<-.2||o.deltaX<-tt),rt=s?a?nt:it:a?it:nt;let st=!s&&rt;s&&!rt&&(st=!0),this.lastOnEnd=o.currentTime;let ot=rt?.001:-.001;const at=_e<0?.01:_e;ot+=getTimeGivenProgression([0,0],[.4,0],[.6,1],[1,1],clamp$2(0,at,.9999))[0]||0;const lt=this._isOpen?!rt:rt;this.animation.easing("cubic-bezier(0.4, 0.0, 0.6, 1)").onFinish(()=>this.afterAnimation(st),{oneTimeCallback:!0}).progressEnd(lt?1:0,this._isOpen?1-ot:ot,300)}beforeAnimation(o){assert(!this.isAnimating,"_before() should not be called while animating"),this.el.classList.add(SHOW_MENU),this.el.setAttribute("tabindex","0"),this.backdropEl&&this.backdropEl.classList.add(SHOW_BACKDROP),this.contentEl&&(this.contentEl.classList.add(MENU_CONTENT_OPEN),this.contentEl.setAttribute("aria-hidden","true")),this.blocker.block(),this.isAnimating=!0,o?this.ionWillOpen.emit():this.ionWillClose.emit()}afterAnimation(o){var s;assert(this.isAnimating,"_before() should be called while animating"),this._isOpen=o,this.isAnimating=!1,this._isOpen||this.blocker.unblock(),o?(this.ionDidOpen.emit(),((s=document.activeElement)===null||s===void 0?void 0:s.closest("ion-menu"))!==this.el&&this.el.focus(),document.addEventListener("focus",this.handleFocus,!0)):(this.el.classList.remove(SHOW_MENU),this.el.removeAttribute("tabindex"),this.contentEl&&(this.contentEl.classList.remove(MENU_CONTENT_OPEN),this.contentEl.removeAttribute("aria-hidden")),this.backdropEl&&this.backdropEl.classList.remove(SHOW_BACKDROP),this.animation&&this.animation.stop(),this.ionDidClose.emit(),document.removeEventListener("focus",this.handleFocus,!0))}updateState(){const o=this._isActive();this.gesture&&this.gesture.enable(o&&this.swipeGesture),!o&&this._isOpen&&this.forceClosing(),this.disabled||menuController._setActiveMenu(this),assert(!this.isAnimating,"can not be animating")}forceClosing(){assert(this._isOpen,"menu cannot be closed"),this.isAnimating=!0,this.animation.direction("reverse").play({sync:!0}),this.afterAnimation(!1)}render(){const{isEndSide:o,type:s,disabled:a,isPaneVisible:$,inheritedAttributes:j}=this,_e=getIonMode$2(this);return h(Host,{role:"navigation","aria-label":j["aria-label"]||"menu",class:{[_e]:!0,[`menu-type-${s}`]:!0,"menu-enabled":!a,"menu-side-end":o,"menu-side-start":!o,"menu-pane-visible":$}},h("div",{class:"menu-inner",part:"container",ref:et=>this.menuInnerEl=et},h("slot",null)),h("ion-backdrop",{ref:et=>this.backdropEl=et,class:"menu-backdrop",tappable:!1,stopPropagation:!1,part:"backdrop"}))}get el(){return this}static get watchers(){return{type:["typeChanged"],disabled:["disabledChanged"],side:["sideChanged"],swipeGesture:["swipeGestureChanged"]}}static get style(){return{ios:menuIosCss,md:menuMdCss}}},[33,"ion-menu",{contentId:[513,"content-id"],menuId:[513,"menu-id"],type:[1025],disabled:[1028],side:[513],swipeGesture:[4,"swipe-gesture"],maxEdgeStart:[2,"max-edge-start"],isPaneVisible:[32],isEndSide:[32],isOpen:[64],isActive:[64],open:[64],close:[64],toggle:[64],setOpen:[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"],[0,"keydown","onKeydown"]]]),computeDelta=(o,s,a)=>Math.max(0,s!==a?-o:o),checkEdgeSide=(o,s,a,$)=>a?s>=o.innerWidth-$:s<=$,SHOW_MENU="show-menu",SHOW_BACKDROP="show-backdrop",MENU_CONTENT_OPEN="menu-content-open";function defineCustomElement$1$s(){if(typeof customElements>"u")return;["ion-menu","ion-backdrop"].forEach(s=>{switch(s){case"ion-menu":customElements.get(s)||customElements.define(s,Menu);break;case"ion-backdrop":customElements.get(s)||defineCustomElement$1m();break}})}const defineCustomElement$D=defineCustomElement$1$s;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const KEYBOARD_DID_OPEN="ionKeyboardDidShow",KEYBOARD_DID_CLOSE="ionKeyboardDidHide",KEYBOARD_THRESHOLD=150;let previousVisualViewport={},currentVisualViewport={},keyboardOpen=!1;const resetKeyboardAssist=()=>{previousVisualViewport={},currentVisualViewport={},keyboardOpen=!1},startKeyboardAssist=o=>{startNativeListeners(o),o.visualViewport&&(currentVisualViewport=copyVisualViewport(o.visualViewport),o.visualViewport.onresize=()=>{trackViewportChanges(o),keyboardDidOpen()||keyboardDidResize(o)?setKeyboardOpen(o):keyboardDidClose(o)&&setKeyboardClose(o)})},startNativeListeners=o=>{o.addEventListener("keyboardDidShow",s=>setKeyboardOpen(o,s)),o.addEventListener("keyboardDidHide",()=>setKeyboardClose(o))},setKeyboardOpen=(o,s)=>{fireKeyboardOpenEvent(o,s),keyboardOpen=!0},setKeyboardClose=o=>{fireKeyboardCloseEvent(o),keyboardOpen=!1},keyboardDidOpen=()=>{const o=(previousVisualViewport.height-currentVisualViewport.height)*currentVisualViewport.scale;return!keyboardOpen&&previousVisualViewport.width===currentVisualViewport.width&&o>KEYBOARD_THRESHOLD},keyboardDidResize=o=>keyboardOpen&&!keyboardDidClose(o),keyboardDidClose=o=>keyboardOpen&&currentVisualViewport.height===o.innerHeight,fireKeyboardOpenEvent=(o,s)=>{const a=s?s.keyboardHeight:o.innerHeight-currentVisualViewport.height,$=new CustomEvent(KEYBOARD_DID_OPEN,{detail:{keyboardHeight:a}});o.dispatchEvent($)},fireKeyboardCloseEvent=o=>{const s=new CustomEvent(KEYBOARD_DID_CLOSE);o.dispatchEvent(s)},trackViewportChanges=o=>{previousVisualViewport=Object.assign({},currentVisualViewport),currentVisualViewport=copyVisualViewport(o.visualViewport)},copyVisualViewport=o=>({width:Math.round(o.width),height:Math.round(o.height),offsetTop:o.offsetTop,offsetLeft:o.offsetLeft,pageTop:o.pageTop,pageLeft:o.pageLeft,scale:o.scale}),keyboard=Object.freeze(Object.defineProperty({__proto__:null,KEYBOARD_DID_CLOSE,KEYBOARD_DID_OPEN,copyVisualViewport,keyboardDidClose,keyboardDidOpen,keyboardDidResize,resetKeyboardAssist,setKeyboardClose,setKeyboardOpen,startKeyboardAssist,trackViewportChanges},Symbol.toStringTag,{value:"Module"}));/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */var Style;(function(o){o.Dark="DARK",o.Light="LIGHT",o.Default="DEFAULT"})(Style||(Style={}));const StatusBar={getEngine(){var o;return((o=win$1==null?void 0:win$1.Capacitor)===null||o===void 0?void 0:o.isPluginAvailable("StatusBar"))&&(win$1==null?void 0:win$1.Capacitor.Plugins.StatusBar)},supportsDefaultStatusBarStyle(){var o;return!!(!((o=win$1==null?void 0:win$1.Capacitor)===null||o===void 0)&&o.PluginHeaders)},setStyle(o){const s=this.getEngine();s&&s.setStyle(o)},getStyle:async function(){const o=this.getEngine();if(!o)return Style.Default;const{style:s}=await o.getInfo();return s}},getBackdropValueForSheet=(o,s)=>{if(s===1)return 0;const a=1/(1-s),$=-(s*a);return o*a+$},setCardStatusBarDark=()=>{!win$1||win$1.innerWidth>=768||!StatusBar.supportsDefaultStatusBarStyle()||StatusBar.setStyle({style:Style.Dark})},setCardStatusBarDefault=(o=Style.Default)=>{!win$1||win$1.innerWidth>=768||!StatusBar.supportsDefaultStatusBarStyle()||StatusBar.setStyle({style:o})},handleCanDismiss=async(o,s)=>{typeof o.canDismiss!="function"||!await o.canDismiss(void 0,GESTURE)||(s.isRunning()?s.onFinish(()=>{o.dismiss(void 0,"handler")},{oneTimeCallback:!0}):o.dismiss(void 0,"handler"))},calculateSpringStep=o=>.00255275*2.71828**(-14.9619*o)-1.00255*2.71828**(-.0380968*o)+1,SwipeToCloseDefaults={MIN_PRESENTING_SCALE:.93},createSwipeToCloseGesture=(o,s,a,$)=>{const _e=o.offsetHeight;let et=!1,tt=!1,nt=null,it=null;const rt=.2;let st=!0,ot=0;const at=()=>nt&&isIonContent(nt)?nt.scrollY:!0,ut=createGesture({el:o,gestureName:"modalSwipeToClose",gesturePriority:39,direction:"y",threshold:10,canStart:pt=>{const ft=pt.event.target;return ft===null||!ft.closest?!0:(nt=findClosestIonContent(ft),nt?(isIonContent(nt)?it=getElementRoot(nt).querySelector(".inner-scroll"):it=nt,!!!nt.querySelector("ion-refresher")&&it.scrollTop===0):ft.closest("ion-footer")===null)},onStart:pt=>{const{deltaY:ft}=pt;st=at(),tt=o.canDismiss!==void 0&&o.canDismiss!==!0,ft>0&&nt&&disableContentScrollY(nt),s.progressStart(!0,et?1:0)},onMove:pt=>{const{deltaY:ft}=pt;ft>0&&nt&&disableContentScrollY(nt);const mt=pt.deltaY/_e,gt=mt>=0&&tt,bt=gt?rt:.9999,St=gt?calculateSpringStep(mt/bt):mt,Nt=clamp$2(1e-4,St,bt);s.progressStep(Nt),Nt>=.5&&ot<.5?setCardStatusBarDefault(a):Nt<.5&&ot>=.5&&setCardStatusBarDark(),ot=Nt},onEnd:pt=>{const ft=pt.velocityY,mt=pt.deltaY/_e,gt=mt>=0&&tt,bt=gt?rt:.9999,St=gt?calculateSpringStep(mt/bt):mt,Nt=clamp$2(1e-4,St,bt),Rt=(pt.deltaY+ft*1e3)/_e,Ft=!gt&&Rt>=.5;let Ot=Ft?-.001:.001;Ft?(s.easing("cubic-bezier(0.32, 0.72, 0, 1)"),Ot+=getTimeGivenProgression([0,0],[.32,.72],[0,1],[1,1],Nt)[0]):(s.easing("cubic-bezier(1, 0, 0.68, 0.28)"),Ot+=getTimeGivenProgression([0,0],[1,0],[.68,.28],[1,1],Nt)[0]);const Ct=computeDuration(Ft?mt*_e:(1-Nt)*_e,ft);et=Ft,ut.enable(!1),nt&&resetContentScrollY(nt,st),s.onFinish(()=>{Ft||ut.enable(!0)}).progressEnd(Ft?1:0,Ot,Ct),gt&&Nt>bt/4?handleCanDismiss(o,s):Ft&&$()}});return ut},computeDuration=(o,s)=>clamp$2(400,o/Math.abs(s*1.1),500),createSheetEnterAnimation=o=>{const{currentBreakpoint:s,backdropBreakpoint:a}=o,$=a===void 0||a<s,j=$?`calc(var(--backdrop-opacity) * ${s})`:"0",_e=createAnimation("backdropAnimation").fromTo("opacity",0,j);return $&&_e.beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),{wrapperAnimation:createAnimation("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(100%)"},{offset:1,opacity:1,transform:`translateY(${100-s*100}%)`}]),backdropAnimation:_e}},createSheetLeaveAnimation=o=>{const{currentBreakpoint:s,backdropBreakpoint:a}=o,$=`calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(s,a)})`,j=[{offset:0,opacity:$},{offset:1,opacity:0}],_e=[{offset:0,opacity:$},{offset:a,opacity:0},{offset:1,opacity:0}],et=createAnimation("backdropAnimation").keyframes(a!==0?_e:j);return{wrapperAnimation:createAnimation("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:`translateY(${100-s*100}%)`},{offset:1,opacity:1,transform:"translateY(100%)"}]),backdropAnimation:et}},createEnterAnimation$1=()=>{const o=createAnimation().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),s=createAnimation().fromTo("transform","translateY(100vh)","translateY(0vh)");return{backdropAnimation:o,wrapperAnimation:s}},iosEnterAnimation$1=(o,s)=>{const{presentingEl:a,currentBreakpoint:$}=s,j=getElementRoot(o),{wrapperAnimation:_e,backdropAnimation:et}=$!==void 0?createSheetEnterAnimation(s):createEnterAnimation$1();et.addElement(j.querySelector("ion-backdrop")),_e.addElement(j.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const tt=createAnimation("entering-base").addElement(o).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation(_e);if(a){const nt=window.innerWidth<768,it=a.tagName==="ION-MODAL"&&a.presentingElement!==void 0,rt=getElementRoot(a),st=createAnimation().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"}),ot=document.body;if(nt){const at=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",lt=it?"-10px":at,ct=SwipeToCloseDefaults.MIN_PRESENTING_SCALE,ht=`translateY(${lt}) scale(${ct})`;st.afterStyles({transform:ht}).beforeAddWrite(()=>ot.style.setProperty("background-color","black")).addElement(a).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:ht,borderRadius:"10px 10px 0 0"}]),tt.addAnimation(st)}else if(tt.addAnimation(et),!it)_e.fromTo("opacity","0","1");else{const lt=`translateY(-10px) scale(${it?SwipeToCloseDefaults.MIN_PRESENTING_SCALE:1})`;st.afterStyles({transform:lt}).addElement(rt.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:lt}]);const ct=createAnimation().afterStyles({transform:lt}).addElement(rt.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:lt}]);tt.addAnimation([st,ct])}}else tt.addAnimation(et);return tt},createLeaveAnimation$1=()=>{const o=createAnimation().fromTo("opacity","var(--backdrop-opacity)",0),s=createAnimation().fromTo("transform","translateY(0vh)","translateY(100vh)");return{backdropAnimation:o,wrapperAnimation:s}},iosLeaveAnimation$1=(o,s,a=500)=>{const{presentingEl:$,currentBreakpoint:j}=s,_e=getElementRoot(o),{wrapperAnimation:et,backdropAnimation:tt}=j!==void 0?createSheetLeaveAnimation(s):createLeaveAnimation$1();tt.addElement(_e.querySelector("ion-backdrop")),et.addElement(_e.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const nt=createAnimation("leaving-base").addElement(o).easing("cubic-bezier(0.32,0.72,0,1)").duration(a).addAnimation(et);if($){const it=window.innerWidth<768,rt=$.tagName==="ION-MODAL"&&$.presentingElement!==void 0,st=getElementRoot($),ot=createAnimation().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish(lt=>{if(lt!==1)return;$.style.setProperty("overflow",""),Array.from(at.querySelectorAll("ion-modal")).filter(ht=>ht.presentingElement!==void 0).length<=1&&at.style.setProperty("background-color","")}),at=document.body;if(it){const lt=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",ct=rt?"-10px":lt,ht=SwipeToCloseDefaults.MIN_PRESENTING_SCALE,dt=`translateY(${ct}) scale(${ht})`;ot.addElement($).keyframes([{offset:0,filter:"contrast(0.85)",transform:dt,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]),nt.addAnimation(ot)}else if(nt.addAnimation(tt),!rt)et.fromTo("opacity","1","0");else{const ct=`translateY(-10px) scale(${rt?SwipeToCloseDefaults.MIN_PRESENTING_SCALE:1})`;ot.addElement(st.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:ct},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);const ht=createAnimation().addElement(st.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:ct},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);nt.addAnimation([ot,ht])}}else nt.addAnimation(tt);return nt},createEnterAnimation=()=>{const o=createAnimation().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),s=createAnimation().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}]);return{backdropAnimation:o,wrapperAnimation:s}},mdEnterAnimation$1=(o,s)=>{const{currentBreakpoint:a}=s,$=getElementRoot(o),{wrapperAnimation:j,backdropAnimation:_e}=a!==void 0?createSheetEnterAnimation(s):createEnterAnimation();return _e.addElement($.querySelector("ion-backdrop")),j.addElement($.querySelector(".modal-wrapper")),createAnimation().addElement(o).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([_e,j])},createLeaveAnimation=()=>{const o=createAnimation().fromTo("opacity","var(--backdrop-opacity)",0),s=createAnimation().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}]);return{backdropAnimation:o,wrapperAnimation:s}},mdLeaveAnimation$1=(o,s)=>{const{currentBreakpoint:a}=s,$=getElementRoot(o),{wrapperAnimation:j,backdropAnimation:_e}=a!==void 0?createSheetLeaveAnimation(s):createLeaveAnimation();return _e.addElement($.querySelector("ion-backdrop")),j.addElement($.querySelector(".modal-wrapper")),createAnimation().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([_e,j])},createSheetGesture=(o,s,a,$,j,_e,et=[],tt,nt,it)=>{const rt=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:.01}],st=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-j,opacity:0},{offset:1,opacity:0}],ot={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:j!==0?st:rt},at=o.querySelector("ion-content"),lt=a.clientHeight;let ct=$,ht=0,dt=!1;const ut=.95,pt=_e.childAnimations.find(Pt=>Pt.id==="wrapperAnimation"),ft=_e.childAnimations.find(Pt=>Pt.id==="backdropAnimation"),mt=et[et.length-1],gt=et[0],bt=()=>{o.style.setProperty("pointer-events","auto"),s.style.setProperty("pointer-events","auto"),o.classList.remove("ion-disable-focus-trap")},St=()=>{o.style.setProperty("pointer-events","none"),s.style.setProperty("pointer-events","none"),o.classList.add("ion-disable-focus-trap")};pt&&ft&&(pt.keyframes([...ot.WRAPPER_KEYFRAMES]),ft.keyframes([...ot.BACKDROP_KEYFRAMES]),_e.progressStart(!0,1-ct),ct>j?bt():St()),at&&ct!==mt&&(at.scrollY=!1);const Nt=Pt=>{const wt=Pt.event.target.closest("ion-content");return ct=tt(),!(ct===1&&wt)},Rt=()=>{dt=o.canDismiss!==void 0&&o.canDismiss!==!0&&gt===0,at&&(at.scrollY=!1),raf(()=>{o.focus()}),_e.progressStart(!0,1-ct)},Ft=Pt=>{const wt=1-ct,Lt=et.length>1?1-et[1]:void 0,vt=wt+Pt.deltaY/lt,xt=Lt!==void 0&&vt>=Lt&&dt,Ut=xt?ut:.9999,Et=xt&&Lt!==void 0?Lt+calculateSpringStep((vt-Lt)/(Ut-Lt)):vt;ht=clamp$2(1e-4,Et,Ut),_e.progressStep(ht)},Ot=Pt=>{const wt=Pt.velocityY,Lt=(Pt.deltaY+wt*350)/lt,vt=ct-Lt,xt=et.reduce((Ut,Et)=>Math.abs(Et-vt)<Math.abs(Ut-vt)?Et:Ut);Ct({breakpoint:xt,breakpointOffset:ht,canDismiss:dt})},Ct=Pt=>{const{breakpoint:wt,canDismiss:Lt,breakpointOffset:vt}=Pt,xt=Lt&&wt===0,Ut=xt?ct:wt,Et=Ut!==0;return ct=0,pt&&ft&&(pt.keyframes([{offset:0,transform:`translateY(${vt*100}%)`},{offset:1,transform:`translateY(${(1-Ut)*100}%)`}]),ft.keyframes([{offset:0,opacity:`calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(1-vt,j)})`},{offset:1,opacity:`calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(Ut,j)})`}]),_e.progressStep(0)),yt.enable(!1),xt?handleCanDismiss(o,_e):Et||nt(),new Promise(Dt=>{_e.onFinish(()=>{Et?pt&&ft?raf(()=>{pt.keyframes([...ot.WRAPPER_KEYFRAMES]),ft.keyframes([...ot.BACKDROP_KEYFRAMES]),_e.progressStart(!0,1-Ut),ct=Ut,it(ct),at&&ct===et[et.length-1]&&(at.scrollY=!0),ct>j?bt():St(),yt.enable(!0),Dt()}):(yt.enable(!0),Dt()):Dt()},{oneTimeCallback:!0}).progressEnd(1,0,500)})},yt=createGesture({el:a,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:Nt,onStart:Rt,onMove:Ft,onEnd:Ot});return{gesture:yt,moveSheetToBreakpoint:Ct}},modalIosCss=':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;margin-left:auto;margin-right:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, #c0c0be);cursor:pointer;z-index:11}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.modal-handle{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.modal-handle::before{padding-left:4px;padding-right:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.modal-handle::before{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px}}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0,  100%,  0);transform:translate3d(0,  100%,  0)}@media screen and (max-width: 767px){@supports (width: 1px){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: 1px){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-card) .modal-wrapper,:host-context([dir=rtl]).modal-card .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-sheet) .modal-wrapper,:host-context([dir=rtl]).modal-sheet .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}',modalMdCss=':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;margin-left:auto;margin-right:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, #c0c0be);cursor:pointer;z-index:11}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.modal-handle{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.modal-handle::before{padding-left:4px;padding-right:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.modal-handle::before{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px}}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{-webkit-transform:translate3d(0,  40px,  0);transform:translate3d(0,  40px,  0);opacity:0.01}',Modal$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=createEvent(this,"ionModalDidPresent",7),this.willPresent=createEvent(this,"ionModalWillPresent",7),this.willDismiss=createEvent(this,"ionModalWillDismiss",7),this.didDismiss=createEvent(this,"ionModalDidDismiss",7),this.ionBreakpointDidChange=createEvent(this,"ionBreakpointDidChange",7),this.didPresentShorthand=createEvent(this,"didPresent",7),this.willPresentShorthand=createEvent(this,"willPresent",7),this.willDismissShorthand=createEvent(this,"willDismiss",7),this.didDismissShorthand=createEvent(this,"didDismiss",7),this.modalIndex=modalIds++,this.coreDelegate=CoreDelegate(),this.isSheetModal=!1,this.inheritedAttributes={},this.inline=!1,this.gestureAnimationDismissing=!1,this.presented=!1,this.hasController=!1,this.keyboardClose=!0,this.backdropBreakpoint=0,this.handleBehavior="none",this.backdropDismiss=!0,this.showBackdrop=!0,this.animated=!0,this.swipeToClose=!1,this.isOpen=!1,this.keepContentsMounted=!1,this.configureTriggerInteraction=()=>{const{trigger:o,el:s,destroyTriggerInteraction:a}=this;if(a&&a(),o===void 0)return;const $=o!==void 0?document.getElementById(o):null;if(!$){printIonWarning(`A trigger element with the ID "${o}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on ion-modal.`,this.el);return}const j=(_e,et)=>{const tt=()=>{et.present()};return _e.addEventListener("click",tt),()=>{_e.removeEventListener("click",tt)}};this.destroyTriggerInteraction=j($,s)},this.onHandleClick=()=>{const{sheetTransition:o,handleBehavior:s}=this;s!=="cycle"||o!==void 0||this.moveToNextBreakpoint()},this.onBackdropTap=()=>{const{sheetTransition:o}=this;o===void 0&&this.dismiss(void 0,BACKDROP)},this.onLifecycle=o=>{const s=this.usersElement,a=LIFECYCLE_MAP[o.type];if(s&&a){const $=new CustomEvent(a,{bubbles:!1,cancelable:!1,detail:o.detail});s.dispatchEvent($)}}}onIsOpenChange(o,s){o===!0&&s===!1?this.present():o===!1&&s===!0&&this.dismiss()}onTriggerChange(){this.configureTriggerInteraction()}async swipeToCloseChanged(o){this.gesture?this.gesture.enable(o):o&&this.initSwipeToClose()}breakpointsChanged(o){o!==void 0&&(this.sortedBreakpoints=o.sort((s,a)=>s-a))}connectedCallback(){const{configureTriggerInteraction:o,el:s}=this;prepareOverlay(s),o()}disconnectedCallback(){const{destroyTriggerInteraction:o}=this;o&&o()}componentWillLoad(){const{breakpoints:o,initialBreakpoint:s,swipeToClose:a,el:$}=this;this.inheritedAttributes=inheritAttributes$2($,["aria-label","role"]),this.modalId=this.el.hasAttribute("id")?this.el.getAttribute("id"):`ion-modal-${this.modalIndex}`,(this.isSheetModal=o!==void 0&&s!==void 0)&&(this.currentBreakpoint=this.initialBreakpoint),o!==void 0&&s!==void 0&&!o.includes(s)&&printIonWarning("Your breakpoints array must include the initialBreakpoint value."),a&&printIonWarning("swipeToClose has been deprecated in favor of canDismiss.\n\nIf you want a card modal to be swipeable, set canDismiss to `true`. In the next major release of Ionic, swipeToClose will be removed, and all card modals will be swipeable by default.")}componentDidLoad(){this.isOpen===!0&&raf(()=>this.present()),this.breakpointsChanged(this.breakpoints)}getDelegate(o=!1){if(this.workingDelegate&&!o)return{delegate:this.workingDelegate,inline:this.inline};const s=this.el.parentNode,a=this.inline=s!==null&&!this.hasController,$=this.workingDelegate=a?this.delegate||this.coreDelegate:this.delegate;return{inline:a,delegate:$}}async checkCanDismiss(o,s){const{canDismiss:a}=this;return a===void 0?!0:typeof a=="function"?a(o,s):a}async present(){if(this.presented)return;this.currentTransition!==void 0&&await this.currentTransition,this.currentBreakpoint=this.initialBreakpoint;const{inline:o,delegate:s}=this.getDelegate(!0);this.usersElement=await attachComponent(s,this.el,this.component,["ion-page"],this.componentProps,o),await deepReady(this.usersElement),writeTask(()=>this.el.classList.add("show-modal")),this.currentTransition=present(this,"modalEnter",iosEnterAnimation$1,mdEnterAnimation$1,{presentingEl:this.presentingElement,currentBreakpoint:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint}),typeof window<"u"&&(this.keyboardOpenCallback=()=>{this.gesture&&(this.gesture.enable(!1),raf(()=>{this.gesture&&this.gesture.enable(!0)}))},window.addEventListener(KEYBOARD_DID_OPEN,this.keyboardOpenCallback));const a=this.presentingElement!==void 0&&(this.swipeToClose||this.canDismiss!==void 0);a&&getIonMode$2(this)==="ios"&&(this.statusBarStyle=await StatusBar.getStyle(),setCardStatusBarDark()),await this.currentTransition,this.isSheetModal?this.initSheetGesture():a&&this.initSwipeToClose(),this.currentTransition=void 0}initSwipeToClose(){var o;if(getIonMode$2(this)!=="ios")return;const{el:s}=this,a=this.leaveAnimation||config$1.get("modalLeave",iosLeaveAnimation$1),$=this.animation=a(s,{presentingEl:this.presentingElement});if(!findIonContent(s)){printIonContentErrorMsg(s);return}const _e=(o=this.statusBarStyle)!==null&&o!==void 0?o:Style.Default;this.gesture=createSwipeToCloseGesture(s,$,_e,()=>{this.gestureAnimationDismissing=!0,this.animation.onFinish(async()=>{await this.dismiss(void 0,GESTURE),this.gestureAnimationDismissing=!1})}),this.gesture.enable(!0)}initSheetGesture(){const{wrapperEl:o,initialBreakpoint:s,backdropBreakpoint:a}=this;if(!o||s===void 0)return;const $=this.enterAnimation||config$1.get("modalEnter",iosEnterAnimation$1),j=this.animation=$(this.el,{presentingEl:this.presentingElement,currentBreakpoint:s,backdropBreakpoint:a});j.progressStart(!0,1);const{gesture:_e,moveSheetToBreakpoint:et}=createSheetGesture(this.el,this.backdropEl,o,s,a,j,this.sortedBreakpoints,()=>{var tt;return(tt=this.currentBreakpoint)!==null&&tt!==void 0?tt:0},()=>this.sheetOnDismiss(),tt=>{this.currentBreakpoint!==tt&&(this.currentBreakpoint=tt,this.ionBreakpointDidChange.emit({breakpoint:tt}))});this.gesture=_e,this.moveSheetToBreakpoint=et,this.gesture.enable(!0)}sheetOnDismiss(){this.gestureAnimationDismissing=!0,this.animation.onFinish(async()=>{this.currentBreakpoint=0,this.ionBreakpointDidChange.emit({breakpoint:this.currentBreakpoint}),await this.dismiss(void 0,GESTURE),this.gestureAnimationDismissing=!1})}async dismiss(o,s){var a;if(this.gestureAnimationDismissing&&s!==GESTURE||s!=="handler"&&!await this.checkCanDismiss(o,s))return!1;this.presentingElement!==void 0&&(this.swipeToClose||this.canDismiss!==void 0)&&getIonMode$2(this)==="ios"&&setCardStatusBarDefault(this.statusBarStyle),typeof window<"u"&&this.keyboardOpenCallback&&(window.removeEventListener(KEYBOARD_DID_OPEN,this.keyboardOpenCallback),this.keyboardOpenCallback=void 0),this.currentTransition!==void 0&&await this.currentTransition;const j=activeAnimations.get(this)||[];this.currentTransition=dismiss(this,o,s,"modalLeave",iosLeaveAnimation$1,mdLeaveAnimation$1,{presentingEl:this.presentingElement,currentBreakpoint:(a=this.currentBreakpoint)!==null&&a!==void 0?a:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint});const _e=await this.currentTransition;if(_e){const{delegate:et}=this.getDelegate();await detachComponent(et,this.usersElement),writeTask(()=>this.el.classList.remove("show-modal")),this.animation&&this.animation.destroy(),this.gesture&&this.gesture.destroy(),j.forEach(tt=>tt.destroy())}return this.currentBreakpoint=void 0,this.currentTransition=void 0,this.animation=void 0,_e}onDidDismiss(){return eventMethod(this.el,"ionModalDidDismiss")}onWillDismiss(){return eventMethod(this.el,"ionModalWillDismiss")}async setCurrentBreakpoint(o){if(!this.isSheetModal){printIonWarning("setCurrentBreakpoint is only supported on sheet modals.");return}if(!this.breakpoints.includes(o)){printIonWarning(`Attempted to set invalid breakpoint value ${o}. Please double check that the breakpoint value is part of your defined breakpoints.`);return}const{currentBreakpoint:s,moveSheetToBreakpoint:a,canDismiss:$,breakpoints:j}=this;s!==o&&a&&(this.sheetTransition=a({breakpoint:o,breakpointOffset:1-s,canDismiss:$!==void 0&&$!==!0&&j[0]===0}),await this.sheetTransition,this.sheetTransition=void 0)}async getCurrentBreakpoint(){return this.currentBreakpoint}async moveToNextBreakpoint(){const{breakpoints:o,currentBreakpoint:s}=this;if(!o||s==null)return!1;const a=o.filter(et=>et!==0),j=(a.indexOf(s)+1)%a.length,_e=a[j];return await this.setCurrentBreakpoint(_e),!0}render(){const{handle:o,isSheetModal:s,presentingElement:a,htmlAttributes:$,handleBehavior:j,inheritedAttributes:_e}=this,et=o!==!1&&s,tt=getIonMode$2(this),{modalId:nt}=this,it=a!==void 0&&tt==="ios",rt=j==="cycle";return h(Host,Object.assign({"no-router":!0,tabindex:"-1"},$,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign({[tt]:!0,"modal-default":!it&&!s,"modal-card":it,"modal-sheet":s,"overlay-hidden":!0},getClassMap(this.cssClass)),id:nt,onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle}),h("ion-backdrop",{ref:st=>this.backdropEl=st,visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),tt==="ios"&&h("div",{class:"modal-shadow"}),h("div",Object.assign({role:"dialog"},_e,{"aria-modal":"true",class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:st=>this.wrapperEl=st}),et&&h("button",{class:"modal-handle",tabIndex:rt?0:-1,"aria-label":"Activate to adjust the size of the dialog overlaying the screen",onClick:rt?this.onHandleClick:void 0,part:"handle"}),h("slot",null)))}get el(){return this}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["onTriggerChange"],swipeToClose:["swipeToCloseChanged"]}}static get style(){return{ios:modalIosCss,md:modalMdCss}}},[33,"ion-modal",{hasController:[4,"has-controller"],overlayIndex:[2,"overlay-index"],delegate:[16],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],breakpoints:[16],initialBreakpoint:[2,"initial-breakpoint"],backdropBreakpoint:[2,"backdrop-breakpoint"],handle:[4],handleBehavior:[1,"handle-behavior"],component:[1],componentProps:[16],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],showBackdrop:[4,"show-backdrop"],animated:[4],swipeToClose:[4,"swipe-to-close"],presentingElement:[16],htmlAttributes:[16],isOpen:[4,"is-open"],trigger:[1],keepContentsMounted:[4,"keep-contents-mounted"],canDismiss:[4,"can-dismiss"],presented:[32],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64],setCurrentBreakpoint:[64],getCurrentBreakpoint:[64]}]),LIFECYCLE_MAP={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"};let modalIds=0;function defineCustomElement$1$r(){if(typeof customElements>"u")return;["ion-modal","ion-backdrop"].forEach(s=>{switch(s){case"ion-modal":customElements.get(s)||customElements.define(s,Modal$1);break;case"ion-backdrop":customElements.get(s)||defineCustomElement$1m();break}})}const defineCustomElement$C=defineCustomElement$1$r,VIEW_STATE_NEW=1,VIEW_STATE_ATTACHED=2,VIEW_STATE_DESTROYED=3;class ViewController{constructor(s,a){this.component=s,this.params=a,this.state=VIEW_STATE_NEW}async init(s){if(this.state=VIEW_STATE_ATTACHED,!this.element){const a=this.component;this.element=await attachComponent(this.delegate,s,a,["ion-page","ion-page-invisible"],this.params)}}_destroy(){assert(this.state!==VIEW_STATE_DESTROYED,"view state must be ATTACHED");const s=this.element;s&&(this.delegate?this.delegate.removeViewFromDom(s.parentElement,s):s.remove()),this.nav=void 0,this.state=VIEW_STATE_DESTROYED}}const matches=(o,s,a)=>!o||o.component!==s?!1:shallowEqualStringMap(o.params,a),convertToView=(o,s)=>o?o instanceof ViewController?o:new ViewController(o,s):null,convertToViews=o=>o.map(s=>s instanceof ViewController?s:"component"in s?convertToView(s.component,s.componentProps===null?void 0:s.componentProps):convertToView(s,void 0)).filter(s=>s!==null),navCss=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;overflow:hidden;z-index:0}",Nav=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionNavWillLoad=createEvent(this,"ionNavWillLoad",7),this.ionNavWillChange=createEvent(this,"ionNavWillChange",3),this.ionNavDidChange=createEvent(this,"ionNavDidChange",3),this.transInstr=[],this.animationEnabled=!0,this.useRouter=!1,this.isTransitioning=!1,this.destroyed=!1,this.views=[],this.animated=!0}swipeGestureChanged(){this.gesture&&this.gesture.enable(this.swipeGesture===!0)}rootChanged(){this.root!==void 0&&(this.useRouter||this.setRoot(this.root,this.rootParams))}componentWillLoad(){if(this.useRouter=document.querySelector("ion-router")!==null&&this.el.closest("[no-router]")===null,this.swipeGesture===void 0){const o=getIonMode$2(this);this.swipeGesture=config$1.getBoolean("swipeBackEnabled",o==="ios")}this.ionNavWillLoad.emit()}async componentDidLoad(){this.rootChanged(),this.gesture=(await __vitePreload(()=>import("./swipe-back-DdziqL6Y.js"),[])).createSwipeBackGesture(this.el,this.canStart.bind(this),this.onStart.bind(this),this.onMove.bind(this),this.onEnd.bind(this)),this.swipeGestureChanged()}connectedCallback(){this.destroyed=!1}disconnectedCallback(){for(const o of this.views)lifecycle(o.element,LIFECYCLE_WILL_UNLOAD),o._destroy();this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.transInstr.length=0,this.views.length=0,this.destroyed=!0}push(o,s,a,$){return this.insert(-1,o,s,a,$)}insert(o,s,a,$,j){return this.insertPages(o,[{component:s,componentProps:a}],$,j)}insertPages(o,s,a,$){return this.queueTrns({insertStart:o,insertViews:s,opts:a},$)}pop(o,s){return this.removeIndex(-1,1,o,s)}popTo(o,s,a){const $={removeStart:-1,removeCount:-1,opts:s};return typeof o=="object"&&o.component?($.removeView=o,$.removeStart=1):typeof o=="number"&&($.removeStart=o+1),this.queueTrns($,a)}popToRoot(o,s){return this.removeIndex(1,-1,o,s)}removeIndex(o,s=1,a,$){return this.queueTrns({removeStart:o,removeCount:s,opts:a},$)}setRoot(o,s,a,$){return this.setPages([{component:o,componentProps:s}],a,$)}setPages(o,s,a){return s??(s={}),s.animated!==!0&&(s.animated=!1),this.queueTrns({insertStart:0,insertViews:o,removeStart:0,removeCount:-1,opts:s},a)}setRouteId(o,s,a,$){const j=this.getActiveSync();if(matches(j,o,s))return Promise.resolve({changed:!1,element:j.element});let _e;const et=new Promise(it=>_e=it);let tt;const nt={updateURL:!1,viewIsReady:it=>{let rt;const st=new Promise(ot=>rt=ot);return _e({changed:!0,element:it,markVisible:async()=>{rt(),await tt}}),st}};if(a==="root")tt=this.setRoot(o,s,nt);else{const it=this.views.find(rt=>matches(rt,o,s));it?tt=this.popTo(it,Object.assign(Object.assign({},nt),{direction:"back",animationBuilder:$})):a==="forward"?tt=this.push(o,s,Object.assign(Object.assign({},nt),{animationBuilder:$})):a==="back"&&(tt=this.setRoot(o,s,Object.assign(Object.assign({},nt),{direction:"back",animated:!0,animationBuilder:$})))}return et}async getRouteId(){const o=this.getActiveSync();if(o)return{id:o.element.tagName,params:o.params,element:o.element}}async getActive(){return this.getActiveSync()}async getByIndex(o){return this.views[o]}async canGoBack(o){return this.canGoBackSync(o)}async getPrevious(o){return this.getPreviousSync(o)}getLength(){return this.views.length}getActiveSync(){return this.views[this.views.length-1]}canGoBackSync(o=this.getActiveSync()){return!!(o&&this.getPreviousSync(o))}getPreviousSync(o=this.getActiveSync()){if(!o)return;const s=this.views,a=s.indexOf(o);return a>0?s[a-1]:void 0}async queueTrns(o,s){var a,$;if(this.isTransitioning&&(!((a=o.opts)===null||a===void 0)&&a.skipIfBusy))return!1;const j=new Promise((_e,et)=>{o.resolve=_e,o.reject=et});if(o.done=s,o.opts&&o.opts.updateURL!==!1&&this.useRouter){const _e=document.querySelector("ion-router");if(_e){const et=await _e.canTransition();if(et===!1)return!1;if(typeof et=="string")return _e.push(et,o.opts.direction||"back"),!1}}return(($=o.insertViews)===null||$===void 0?void 0:$.length)===0&&(o.insertViews=void 0),this.transInstr.push(o),this.nextTrns(),j}success(o,s){if(this.destroyed){this.fireError("nav controller was destroyed",s);return}if(s.done&&s.done(o.hasCompleted,o.requiresTransition,o.enteringView,o.leavingView,o.direction),s.resolve(o.hasCompleted),s.opts.updateURL!==!1&&this.useRouter){const a=document.querySelector("ion-router");if(a){const $=o.direction==="back"?"back":"forward";a.navChanged($)}}}failed(o,s){if(this.destroyed){this.fireError("nav controller was destroyed",s);return}this.transInstr.length=0,this.fireError(o,s)}fireError(o,s){s.done&&s.done(!1,!1,o),s.reject&&!this.destroyed?s.reject(o):s.resolve(!1)}nextTrns(){if(this.isTransitioning)return!1;const o=this.transInstr.shift();return o?(this.runTransition(o),!0):!1}async runTransition(o){try{this.ionNavWillChange.emit(),this.isTransitioning=!0,this.prepareTI(o);const s=this.getActiveSync(),a=this.getEnteringView(o,s);if(!s&&!a)throw new Error("no views in the stack to be removed");a&&a.state===VIEW_STATE_NEW&&await a.init(this.el),this.postViewInit(a,s,o);const $=(o.enteringRequiresTransition||o.leavingRequiresTransition)&&a!==s;$&&o.opts&&s&&(o.opts.direction==="back"&&(o.opts.animationBuilder=o.opts.animationBuilder||(a==null?void 0:a.animationBuilder)),s.animationBuilder=o.opts.animationBuilder);let j;$?j=await this.transition(a,s,o):j={hasCompleted:!0,requiresTransition:!1},this.success(j,o),this.ionNavDidChange.emit()}catch(s){this.failed(s,o)}this.isTransitioning=!1,this.nextTrns()}prepareTI(o){var s,a,$;const j=this.views.length;if((s=o.opts)!==null&&s!==void 0||(o.opts={}),(a=($=o.opts).delegate)!==null&&a!==void 0||($.delegate=this.delegate),o.removeView!==void 0){assert(o.removeStart!==void 0,"removeView needs removeStart"),assert(o.removeCount!==void 0,"removeView needs removeCount");const tt=this.views.indexOf(o.removeView);if(tt<0)throw new Error("removeView was not found");o.removeStart+=tt}o.removeStart!==void 0&&(o.removeStart<0&&(o.removeStart=j-1),o.removeCount<0&&(o.removeCount=j-o.removeStart),o.leavingRequiresTransition=o.removeCount>0&&o.removeStart+o.removeCount===j),o.insertViews&&((o.insertStart<0||o.insertStart>j)&&(o.insertStart=j),o.enteringRequiresTransition=o.insertStart===j);const _e=o.insertViews;if(!_e)return;assert(_e.length>0,"length can not be zero");const et=convertToViews(_e);if(et.length===0)throw new Error("invalid views to insert");for(const tt of et){tt.delegate=o.opts.delegate;const nt=tt.nav;if(nt&&nt!==this)throw new Error("inserted view was already inserted");if(tt.state===VIEW_STATE_DESTROYED)throw new Error("inserted view was already destroyed")}o.insertViews=et}getEnteringView(o,s){const a=o.insertViews;if(a!==void 0)return a[a.length-1];const $=o.removeStart;if($!==void 0){const j=this.views,_e=$+o.removeCount;for(let et=j.length-1;et>=0;et--){const tt=j[et];if((et<$||et>=_e)&&tt!==s)return tt}}}postViewInit(o,s,a){var $,j,_e;assert(s||o,"Both leavingView and enteringView are null"),assert(a.resolve,"resolve must be valid"),assert(a.reject,"reject must be valid");const et=a.opts,{insertViews:tt,removeStart:nt,removeCount:it}=a;let rt;if(nt!==void 0&&it!==void 0){assert(nt>=0,"removeStart can not be negative"),assert(it>=0,"removeCount can not be negative"),rt=[];for(let ot=nt;ot<nt+it;ot++){const at=this.views[ot];at!==void 0&&at!==o&&at!==s&&rt.push(at)}($=et.direction)!==null&&$!==void 0||(et.direction="back")}const st=this.views.length+((j=tt==null?void 0:tt.length)!==null&&j!==void 0?j:0)-(it??0);if(assert(st>=0,"final balance can not be negative"),st===0)throw console.warn("You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.el),new Error("navigation stack needs at least one root page");if(tt){let ot=a.insertStart;for(const at of tt)this.insertViewAt(at,ot),ot++;a.enteringRequiresTransition&&((_e=et.direction)!==null&&_e!==void 0||(et.direction="forward"))}if(rt&&rt.length>0){for(const ot of rt)lifecycle(ot.element,LIFECYCLE_WILL_LEAVE),lifecycle(ot.element,LIFECYCLE_DID_LEAVE),lifecycle(ot.element,LIFECYCLE_WILL_UNLOAD);for(const ot of rt)this.destroyView(ot)}}async transition(o,s,a){const $=a.opts,j=$.progressAnimation?rt=>this.sbAni=rt:void 0,_e=getIonMode$2(this),et=o.element,tt=s&&s.element,nt=Object.assign(Object.assign({mode:_e,showGoBack:this.canGoBackSync(o),baseEl:this.el,progressCallback:j,animated:this.animated&&config$1.getBoolean("animated",!0),enteringEl:et,leavingEl:tt},$),{animationBuilder:$.animationBuilder||this.animation||config$1.get("navAnimation")}),{hasCompleted:it}=await transition(nt);return this.transitionFinish(it,o,s,$)}transitionFinish(o,s,a,$){const j=o?s:a;return j&&this.unmountInactiveViews(j),{hasCompleted:o,requiresTransition:!0,enteringView:s,leavingView:a,direction:$.direction}}insertViewAt(o,s){const a=this.views,$=a.indexOf(o);$>-1?(assert(o.nav===this,"view is not part of the nav"),a.splice($,1),a.splice(s,0,o)):(assert(!o.nav,"nav is used"),o.nav=this,a.splice(s,0,o))}removeView(o){assert(o.state===VIEW_STATE_ATTACHED||o.state===VIEW_STATE_DESTROYED,"view state should be loaded or destroyed");const s=this.views,a=s.indexOf(o);assert(a>-1,"view must be part of the stack"),a>=0&&s.splice(a,1)}destroyView(o){o._destroy(),this.removeView(o)}unmountInactiveViews(o){if(this.destroyed)return;const s=this.views,a=s.indexOf(o);for(let $=s.length-1;$>=0;$--){const j=s[$],_e=j.element;_e&&($>a?(lifecycle(_e,LIFECYCLE_WILL_UNLOAD),this.destroyView(j)):$<a&&setPageHidden(_e,!0))}}canStart(){return!!this.swipeGesture&&!this.isTransitioning&&this.transInstr.length===0&&this.animationEnabled&&this.canGoBackSync()}onStart(){this.pop({direction:"back",progressAnimation:!0})}onMove(o){this.sbAni&&this.sbAni.progressStep(o)}onEnd(o,s,a){if(this.sbAni){this.animationEnabled=!1,this.sbAni.onFinish(()=>{this.animationEnabled=!0},{oneTimeCallback:!0});let $=o?-.001:.001;o?$+=getTimeGivenProgression([0,0],[.32,.72],[0,1],[1,1],s)[0]:(this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)"),$+=getTimeGivenProgression([0,0],[1,0],[.68,.28],[1,1],s)[0]),this.sbAni.progressEnd(o?1:0,$,a)}}render(){return h("slot",null)}get el(){return this}static get watchers(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}}static get style(){return navCss}},[1,"ion-nav",{delegate:[16],swipeGesture:[1028,"swipe-gesture"],animated:[4],animation:[16],rootParams:[16],root:[1],push:[64],insert:[64],insertPages:[64],pop:[64],popTo:[64],popToRoot:[64],removeIndex:[64],setRoot:[64],setPages:[64],setRouteId:[64],getRouteId:[64],getActive:[64],getByIndex:[64],canGoBack:[64],getPrevious:[64]}]);function defineCustomElement$1$q(){if(typeof customElements>"u")return;["ion-nav"].forEach(s=>{switch(s){case"ion-nav":customElements.get(s)||customElements.define(s,Nav);break}})}const defineCustomElement$B=defineCustomElement$1$q;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const defineCustomElement$A=defineCustomElement$10;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const defineCustomElement$z=defineCustomElement$X;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const radioIosCss=':host{--inner-border-radius:50%;display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.radio-disabled){pointer-events:none}.radio-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{-webkit-box-sizing:border-box;box-sizing:border-box}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host{--color-checked:var(--ion-color-primary, #3880ff);width:15px;height:24px}:host(.ion-color.radio-checked) .radio-inner{border-color:var(--ion-color-base)}.item-radio.item-ios ion-label{margin-left:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-radio.item-ios ion-label{margin-left:unset;-webkit-margin-start:0;margin-inline-start:0}}.radio-inner{width:33%;height:50%}:host(.radio-checked) .radio-inner{-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--color-checked)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);left:-9px;top:-8px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-9px}:host(.in-item){margin-left:10px;margin-right:11px;margin-top:8px;margin-bottom:8px;display:block;position:static}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:11px;margin-inline-end:11px}}:host(.in-item[slot=start]){margin-left:3px;margin-right:21px;margin-top:8px;margin-bottom:8px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:21px;margin-inline-end:21px}}',radioMdCss=':host{--inner-border-radius:50%;display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.radio-disabled){pointer-events:none}.radio-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{-webkit-box-sizing:border-box;box-sizing:border-box}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host{--color:var(--ion-color-step-400, #999999);--color-checked:var(--ion-color-primary, #3880ff);--border-width:2px;--border-style:solid;--border-radius:50%;width:20px;height:20px}:host(.ion-color) .radio-inner{background:var(--ion-color-base)}:host(.ion-color.radio-checked) .radio-icon{border-color:var(--ion-color-base)}.radio-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--color)}.radio-inner{border-radius:var(--inner-border-radius);width:calc(50% + var(--border-width));height:calc(50% + var(--border-width));-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background:var(--color-checked)}:host(.radio-checked) .radio-icon{border-color:var(--color-checked)}:host(.radio-checked) .radio-inner{-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);left:-12px;top:-12px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-12px}:host(.in-item){margin-left:0;margin-right:0;margin-top:9px;margin-bottom:9px;display:block;position:static}:host(.in-item[slot=start]){margin-left:4px;margin-right:36px;margin-top:11px;margin-bottom:10px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px}}',Radio=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionStyle=createEvent(this,"ionStyle",7),this.ionFocus=createEvent(this,"ionFocus",7),this.ionBlur=createEvent(this,"ionBlur",7),this.inputId=`ion-rb-${radioButtonIds++}`,this.radioGroup=null,this.checked=!1,this.buttonTabindex=-1,this.name=this.inputId,this.disabled=!1,this.updateState=()=>{this.radioGroup&&(this.checked=this.radioGroup.value===this.value)},this.onClick=()=>{this.checked=this.nativeInput.checked},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}valueChanged(){this.updateState()}async setFocus(o){o.stopPropagation(),o.preventDefault(),this.el.focus()}async setButtonTabindex(o){this.buttonTabindex=o}connectedCallback(){this.value===void 0&&(this.value=this.inputId);const o=this.radioGroup=this.el.closest("ion-radio-group");o&&(this.updateState(),addEventListener$2(o,"ionChange",this.updateState))}disconnectedCallback(){const o=this.radioGroup;o&&(removeEventListener(o,"ionChange",this.updateState),this.radioGroup=null)}componentWillLoad(){this.emitStyle()}emitStyle(){this.ionStyle.emit({"radio-checked":this.checked,"interactive-disabled":this.disabled})}render(){const{inputId:o,disabled:s,checked:a,color:$,el:j,buttonTabindex:_e}=this,et=getIonMode$2(this),{label:tt,labelId:nt,labelText:it}=getAriaLabel(j,o);return h(Host,{"aria-checked":`${a}`,"aria-hidden":s?"true":null,"aria-labelledby":tt?nt:null,role:"radio",tabindex:_e,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,class:createColorClasses$1($,{[et]:!0,"in-item":hostContext("ion-item",j),interactive:!0,"radio-checked":a,"radio-disabled":s})},h("div",{class:"radio-icon",part:"container"},h("div",{class:"radio-inner",part:"mark"}),h("div",{class:"radio-ripple"})),h("label",{htmlFor:o},it),h("input",{type:"radio",checked:a,disabled:s,tabindex:"-1",id:o,ref:rt=>this.nativeInput=rt}))}get el(){return this}static get watchers(){return{value:["valueChanged"],color:["emitStyle"],checked:["emitStyle"],disabled:["emitStyle"]}}static get style(){return{ios:radioIosCss,md:radioMdCss}}},[33,"ion-radio",{color:[513],name:[1],disabled:[4],value:[8],checked:[32],buttonTabindex:[32],setFocus:[64],setButtonTabindex:[64]}]);let radioButtonIds=0;function defineCustomElement$y(){if(typeof customElements>"u")return;["ion-radio"].forEach(s=>{switch(s){case"ion-radio":customElements.get(s)||customElements.define(s,Radio);break}})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const defineCustomElement$x=defineCustomElement$y;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const RadioGroup=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.ionChange=createEvent(this,"ionChange",7),this.inputId=`ion-rg-${radioGroupIds++}`,this.labelId=`${this.inputId}-lbl`,this.allowEmptySelection=!1,this.name=this.inputId,this.setRadioTabindex=o=>{const s=this.getRadios(),a=s.find(_e=>!_e.disabled),$=s.find(_e=>_e.value===o&&!_e.disabled);if(!a&&!$)return;const j=$||a;for(const _e of s){const et=_e===j?0:-1;_e.setButtonTabindex(et)}},this.onClick=o=>{o.preventDefault();const s=o.target&&o.target.closest("ion-radio");if(s){const a=this.value,$=s.value;$!==a?this.value=$:this.allowEmptySelection&&(this.value=void 0)}}}valueChanged(o){this.setRadioTabindex(o),this.ionChange.emit({value:o})}componentDidLoad(){this.setRadioTabindex(this.value)}async connectedCallback(){const o=this.el.querySelector("ion-list-header")||this.el.querySelector("ion-item-divider");if(o){const s=this.label=o.querySelector("ion-label");s&&(this.labelId=s.id=this.name+"-lbl")}}getRadios(){return Array.from(this.el.querySelectorAll("ion-radio"))}onKeydown(o){const s=!!this.el.closest("ion-select-popover");if(o.target&&!this.el.contains(o.target))return;const a=this.getRadios().filter($=>!$.disabled);if(o.target&&a.includes(o.target)){const $=a.findIndex(et=>et===o.target),j=a[$];let _e;["ArrowDown","ArrowRight"].includes(o.key)&&(_e=$===a.length-1?a[0]:a[$+1]),["ArrowUp","ArrowLeft"].includes(o.key)&&(_e=$===0?a[a.length-1]:a[$-1]),_e&&a.includes(_e)&&(_e.setFocus(o),s||(this.value=_e.value)),[" "].includes(o.key)&&(this.value=this.allowEmptySelection&&this.value!==void 0?void 0:j.value,o.preventDefault())}}render(){const{label:o,labelId:s,el:a,name:$,value:j}=this,_e=getIonMode$2(this);return renderHiddenInput(!0,a,$,j,!1),h(Host,{role:"radiogroup","aria-labelledby":o?s:null,onClick:this.onClick,class:_e})}get el(){return this}static get watchers(){return{value:["valueChanged"]}}},[0,"ion-radio-group",{allowEmptySelection:[4,"allow-empty-selection"],name:[1],value:[1032]},[[4,"keydown","onKeydown"]]]);let radioGroupIds=0;function defineCustomElement$w(){if(typeof customElements>"u")return;["ion-radio-group"].forEach(s=>{switch(s){case"ion-radio-group":customElements.get(s)||customElements.define(s,RadioGroup);break}})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const defineCustomElement$v=defineCustomElement$w,rangeIosCss=":host{--knob-handle-size:calc(var(--knob-size) * 2);display:-ms-flexbox;display:flex;position:relative;-ms-flex:3;flex:3;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.range-disabled){pointer-events:none}::slotted(ion-label){-ms-flex:initial;flex:initial}::slotted(ion-icon[slot]){font-size:24px}.range-slider{position:relative;-ms-flex:1;flex:1;width:100%;height:var(--height);contain:size layout style;cursor:-webkit-grab;cursor:grab;-ms-touch-action:pan-y;touch-action:pan-y}:host(.range-pressed) .range-slider{cursor:-webkit-grabbing;cursor:grabbing}.range-pin{position:absolute;background:var(--ion-color-base);color:var(--ion-color-contrast);text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}.range-knob-handle{left:0;top:calc((var(--height) - var(--knob-handle-size)) / 2);margin-left:calc(0px - var(--knob-handle-size) / 2);position:absolute;width:var(--knob-handle-size);height:var(--knob-handle-size);text-align:center}[dir=rtl] .range-knob-handle,:host-context([dir=rtl]) .range-knob-handle{left:unset;right:unset;right:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.range-knob-handle{margin-left:unset;-webkit-margin-start:calc(0px - var(--knob-handle-size) / 2);margin-inline-start:calc(0px - var(--knob-handle-size) / 2)}}[dir=rtl] .range-knob-handle,:host-context([dir=rtl]) .range-knob-handle{left:unset}.range-knob-handle:active,.range-knob-handle:focus{outline:none}.range-bar{border-radius:var(--bar-border-radius);left:0;top:calc((var(--height) - var(--bar-height)) / 2);position:absolute;width:100%;height:var(--bar-height);background:var(--bar-background);pointer-events:none}[dir=rtl] .range-bar,:host-context([dir=rtl]) .range-bar{left:unset;right:unset;right:0}[dir=rtl] .range-bar,:host-context([dir=rtl]) .range-bar{left:unset}.range-knob{border-radius:var(--knob-border-radius);left:calc(50% - var(--knob-size) / 2);top:calc(50% - var(--knob-size) / 2);position:absolute;width:var(--knob-size);height:var(--knob-size);background:var(--knob-background);-webkit-box-shadow:var(--knob-box-shadow);box-shadow:var(--knob-box-shadow);z-index:2;pointer-events:none}[dir=rtl] .range-knob,:host-context([dir=rtl]) .range-knob{left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}[dir=rtl] .range-knob,:host-context([dir=rtl]) .range-knob{left:unset}:host(.range-pressed) .range-bar-active{will-change:left, right}:host(.in-item){width:100%}:host(.in-item) ::slotted(ion-label){-ms-flex-item-align:center;align-self:center}:host{--knob-border-radius:50%;--knob-background:#ffffff;--knob-box-shadow:0 3px 1px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.13), 0 0 0 1px rgba(0, 0, 0, 0.02);--knob-size:28px;--bar-height:2px;--bar-background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1);--bar-background-active:var(--ion-color-primary, #3880ff);--bar-border-radius:0;--height:42px;padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host(.ion-color) .range-bar-active,:host(.ion-color) .range-tick-active{background:var(--ion-color-base)}::slotted([slot=start]){margin-left:0;margin-right:16px;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}}::slotted([slot=end]){margin-left:16px;margin-right:0;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}}:host(.range-has-pin){padding-top:20px}.range-bar-active{bottom:0;width:auto;background:var(--bar-background-active)}.range-tick{margin-left:-1px;border-radius:0;position:absolute;top:18px;width:2px;height:8px;background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1);pointer-events:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.range-tick{margin-left:unset;-webkit-margin-start:-1px;margin-inline-start:-1px}}.range-tick-active{background:var(--bar-background-active)}.range-pin{-webkit-transform:translate3d(0,  28px,  0) scale(0.01);transform:translate3d(0,  28px,  0) scale(0.01);padding-left:8px;padding-right:8px;padding-top:8px;padding-bottom:8px;display:inline-block;position:relative;top:-20px;min-width:28px;-webkit-transition:-webkit-transform 120ms ease;transition:-webkit-transform 120ms ease;transition:transform 120ms ease;transition:transform 120ms ease, -webkit-transform 120ms ease;background:transparent;color:var(--ion-text-color, #000);font-size:12px;text-align:center}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.range-pin{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.range-knob-pressed .range-pin,.range-knob-handle.ion-focused .range-pin{-webkit-transform:translate3d(0,  0,  0) scale(1);transform:translate3d(0,  0,  0) scale(1)}:host(.range-disabled){opacity:0.5}",rangeMdCss=':host{--knob-handle-size:calc(var(--knob-size) * 2);display:-ms-flexbox;display:flex;position:relative;-ms-flex:3;flex:3;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.range-disabled){pointer-events:none}::slotted(ion-label){-ms-flex:initial;flex:initial}::slotted(ion-icon[slot]){font-size:24px}.range-slider{position:relative;-ms-flex:1;flex:1;width:100%;height:var(--height);contain:size layout style;cursor:-webkit-grab;cursor:grab;-ms-touch-action:pan-y;touch-action:pan-y}:host(.range-pressed) .range-slider{cursor:-webkit-grabbing;cursor:grabbing}.range-pin{position:absolute;background:var(--ion-color-base);color:var(--ion-color-contrast);text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}.range-knob-handle{left:0;top:calc((var(--height) - var(--knob-handle-size)) / 2);margin-left:calc(0px - var(--knob-handle-size) / 2);position:absolute;width:var(--knob-handle-size);height:var(--knob-handle-size);text-align:center}[dir=rtl] .range-knob-handle,:host-context([dir=rtl]) .range-knob-handle{left:unset;right:unset;right:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.range-knob-handle{margin-left:unset;-webkit-margin-start:calc(0px - var(--knob-handle-size) / 2);margin-inline-start:calc(0px - var(--knob-handle-size) / 2)}}[dir=rtl] .range-knob-handle,:host-context([dir=rtl]) .range-knob-handle{left:unset}.range-knob-handle:active,.range-knob-handle:focus{outline:none}.range-bar{border-radius:var(--bar-border-radius);left:0;top:calc((var(--height) - var(--bar-height)) / 2);position:absolute;width:100%;height:var(--bar-height);background:var(--bar-background);pointer-events:none}[dir=rtl] .range-bar,:host-context([dir=rtl]) .range-bar{left:unset;right:unset;right:0}[dir=rtl] .range-bar,:host-context([dir=rtl]) .range-bar{left:unset}.range-knob{border-radius:var(--knob-border-radius);left:calc(50% - var(--knob-size) / 2);top:calc(50% - var(--knob-size) / 2);position:absolute;width:var(--knob-size);height:var(--knob-size);background:var(--knob-background);-webkit-box-shadow:var(--knob-box-shadow);box-shadow:var(--knob-box-shadow);z-index:2;pointer-events:none}[dir=rtl] .range-knob,:host-context([dir=rtl]) .range-knob{left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}[dir=rtl] .range-knob,:host-context([dir=rtl]) .range-knob{left:unset}:host(.range-pressed) .range-bar-active{will-change:left, right}:host(.in-item){width:100%}:host(.in-item) ::slotted(ion-label){-ms-flex-item-align:center;align-self:center}:host{--knob-border-radius:50%;--knob-background:var(--bar-background-active);--knob-box-shadow:none;--knob-size:18px;--bar-height:2px;--bar-background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.26);--bar-background-active:var(--ion-color-primary, #3880ff);--bar-border-radius:0;--height:42px;--pin-background:var(--ion-color-primary, #3880ff);--pin-color:var(--ion-color-primary-contrast, #fff);padding-left:14px;padding-right:14px;padding-top:8px;padding-bottom:8px;font-size:12px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:14px;padding-inline-start:14px;-webkit-padding-end:14px;padding-inline-end:14px}}:host(.ion-color) .range-bar{background:rgba(var(--ion-color-base-rgb), 0.26)}:host(.ion-color) .range-bar-active,:host(.ion-color) .range-knob,:host(.ion-color) .range-knob::before,:host(.ion-color) .range-pin,:host(.ion-color) .range-pin::before,:host(.ion-color) .range-tick{background:var(--ion-color-base);color:var(--ion-color-contrast)}::slotted([slot=start]){margin-left:0;margin-right:14px;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:14px;margin-inline-end:14px}}::slotted([slot=end]){margin-left:14px;margin-right:0;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:14px;margin-inline-start:14px;-webkit-margin-end:0;margin-inline-end:0}}:host(.range-has-pin){padding-top:28px}.range-bar-active{bottom:0;width:auto;background:var(--bar-background-active)}.range-knob{-webkit-transform:scale(0.67);transform:scale(0.67);-webkit-transition-duration:120ms;transition-duration:120ms;-webkit-transition-property:background-color, border, -webkit-transform;transition-property:background-color, border, -webkit-transform;transition-property:transform, background-color, border;transition-property:transform, background-color, border, -webkit-transform;-webkit-transition-timing-function:ease;transition-timing-function:ease;z-index:2}.range-knob::before{border-radius:50%;left:0;position:absolute;width:var(--knob-size);height:var(--knob-size);-webkit-transform:scale(1);transform:scale(1);-webkit-transition:0.267s cubic-bezier(0, 0, 0.58, 1);transition:0.267s cubic-bezier(0, 0, 0.58, 1);background:var(--knob-background);content:"";opacity:0.13;pointer-events:none}[dir=rtl] .range-knob::before,:host-context([dir=rtl]) .range-knob::before{left:unset;right:unset;right:0}.range-tick{position:absolute;top:calc((var(--height) - var(--bar-height)) / 2);width:var(--bar-height);height:var(--bar-height);background:var(--bar-background-active);z-index:1;pointer-events:none}.range-tick-active{background:transparent}.range-pin{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;border-radius:50%;-webkit-transform:translate3d(0,  0,  0) scale(0.01);transform:translate3d(0,  0,  0) scale(0.01);display:inline-block;position:relative;min-width:28px;height:28px;-webkit-transition:background 120ms ease, -webkit-transform 120ms ease;transition:background 120ms ease, -webkit-transform 120ms ease;transition:transform 120ms ease, background 120ms ease;transition:transform 120ms ease, background 120ms ease, -webkit-transform 120ms ease;background:var(--pin-background);color:var(--pin-color);text-align:center}.range-pin::before{left:50%;top:3px;margin-left:-13px;border-radius:50% 50% 50% 0;position:absolute;width:26px;height:26px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transition:background 120ms ease;transition:background 120ms ease;background:var(--pin-background);content:"";z-index:-1}[dir=rtl] .range-pin::before,:host-context([dir=rtl]) .range-pin::before{left:unset;right:unset;right:50%}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.range-pin::before{margin-left:unset;-webkit-margin-start:-13px;margin-inline-start:-13px}}[dir=rtl] .range-pin::before,:host-context([dir=rtl]) .range-pin::before{left:unset}.range-knob-pressed .range-pin,.range-knob-handle.ion-focused .range-pin{-webkit-transform:translate3d(0,  -24px,  0) scale(1);transform:translate3d(0,  -24px,  0) scale(1)}@media (any-hover: hover){.range-knob-handle:hover .range-knob:before{-webkit-transform:scale(2);transform:scale(2);opacity:0.13}}.range-knob-handle.ion-activated .range-knob:before,.range-knob-handle.ion-focused .range-knob:before,.range-knob-handle.range-knob-pressed .range-knob:before{-webkit-transform:scale(2);transform:scale(2)}.range-knob-handle.ion-focused .range-knob::before{opacity:0.13}.range-knob-handle.ion-activated .range-knob::before,.range-knob-handle.range-knob-pressed .range-knob::before{opacity:0.25}:host(:not(.range-has-pin)) .range-knob-pressed .range-knob,:host(:not(.range-has-pin)) .range-knob-handle.ion-focused .range-knob{-webkit-transform:scale(1);transform:scale(1)}:host(.range-disabled) .range-bar-active,:host(.range-disabled) .range-bar,:host(.range-disabled) .range-tick{background-color:var(--ion-color-step-250, #bfbfbf)}:host(.range-disabled) .range-knob{-webkit-transform:scale(0.55);transform:scale(0.55);outline:5px solid #fff;background-color:var(--ion-color-step-250, #bfbfbf)}',Range=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=createEvent(this,"ionChange",7),this.ionStyle=createEvent(this,"ionStyle",7),this.ionFocus=createEvent(this,"ionFocus",7),this.ionBlur=createEvent(this,"ionBlur",7),this.ionKnobMoveStart=createEvent(this,"ionKnobMoveStart",7),this.ionKnobMoveEnd=createEvent(this,"ionKnobMoveEnd",7),this.didLoad=!1,this.noUpdate=!1,this.hasFocus=!1,this.inheritedAttributes={},this.contentEl=null,this.initialContentScrollY=!0,this.ratioA=0,this.ratioB=0,this.debounce=0,this.name="",this.dualKnobs=!1,this.min=0,this.max=100,this.pin=!1,this.pinFormatter=o=>Math.round(o),this.snaps=!1,this.step=1,this.ticks=!0,this.disabled=!1,this.value=0,this.clampBounds=o=>clamp$2(this.min,o,this.max),this.ensureValueInBounds=o=>this.dualKnobs?{lower:this.clampBounds(o.lower),upper:this.clampBounds(o.upper)}:this.clampBounds(o),this.setupGesture=async()=>{const o=this.rangeSlider;o&&(this.gesture=(await __vitePreload(()=>Promise.resolve().then(()=>index2),void 0)).createGesture({el:o,gestureName:"range",gesturePriority:100,threshold:0,onStart:s=>this.onStart(s),onMove:s=>this.onMove(s),onEnd:s=>this.onEnd(s)}),this.gesture.enable(!this.disabled))},this.handleKeyboard=(o,s)=>{const{ensureValueInBounds:a}=this;let $=this.step;$=$>0?$:1,$=$/(this.max-this.min),s||($*=-1),o==="A"?this.ratioA=clamp$2(0,this.ratioA+$,1):this.ratioB=clamp$2(0,this.ratioB+$,1),this.ionKnobMoveStart.emit({value:a(this.value)}),this.updateValue(),this.ionKnobMoveEnd.emit({value:a(this.value)})},this.onBlur=()=>{this.hasFocus&&(this.hasFocus=!1,this.ionBlur.emit(),this.emitStyle())},this.onFocus=()=>{this.hasFocus||(this.hasFocus=!0,this.ionFocus.emit(),this.emitStyle())}}debounceChanged(){this.ionChange=debounceEvent(this.ionChange,this.debounce)}minChanged(){this.noUpdate||this.updateRatio()}maxChanged(){this.noUpdate||this.updateRatio()}activeBarStartChanged(){const{activeBarStart:o}=this;o!==void 0&&(o>this.max?(printIonWarning(`Range: The value of activeBarStart (${o}) is greater than the max (${this.max}). Valid values are greater than or equal to the min value and less than or equal to the max value.`,this.el),this.activeBarStart=this.max):o<this.min&&(printIonWarning(`Range: The value of activeBarStart (${o}) is less than the min (${this.min}). Valid values are greater than or equal to the min value and less than or equal to the max value.`,this.el),this.activeBarStart=this.min))}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled),this.emitStyle()}valueChanged(o){this.noUpdate||this.updateRatio(),o=this.ensureValueInBounds(o),this.ionChange.emit({value:o})}componentWillLoad(){this.rangeId=this.el.hasAttribute("id")?this.el.getAttribute("id"):`ion-r-${rangeIds++}`,this.inheritedAttributes=inheritAriaAttributes(this.el)}componentDidLoad(){this.setupGesture(),this.didLoad=!0}connectedCallback(){this.updateRatio(),this.debounceChanged(),this.disabledChanged(),this.activeBarStartChanged(),this.didLoad&&this.setupGesture(),this.contentEl=findClosestIonContent(this.el)}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}getValue(){var o;const s=(o=this.value)!==null&&o!==void 0?o:0;return this.dualKnobs?typeof s=="object"?s:{lower:0,upper:s}:typeof s=="object"?s.upper:s}emitStyle(){this.ionStyle.emit({interactive:!0,"interactive-disabled":this.disabled})}onStart(o){const{contentEl:s}=this;s&&(this.initialContentScrollY=disableContentScrollY(s));const a=this.rect=this.rangeSlider.getBoundingClientRect(),$=o.currentX;let j=clamp$2(0,($-a.left)/a.width,1);isRTL$2(this.el)&&(j=1-j),this.pressedKnob=!this.dualKnobs||Math.abs(this.ratioA-j)<Math.abs(this.ratioB-j)?"A":"B",this.setFocus(this.pressedKnob),this.update($),this.ionKnobMoveStart.emit({value:this.ensureValueInBounds(this.value)})}onMove(o){this.update(o.currentX)}onEnd(o){const{contentEl:s,initialContentScrollY:a}=this;s&&resetContentScrollY(s,a),this.update(o.currentX),this.pressedKnob=void 0,this.ionKnobMoveEnd.emit({value:this.ensureValueInBounds(this.value)})}update(o){const s=this.rect;let a=clamp$2(0,(o-s.left)/s.width,1);isRTL$2(this.el)&&(a=1-a),this.snaps&&(a=valueToRatio(ratioToValue(a,this.min,this.max,this.step),this.min,this.max)),this.pressedKnob==="A"?this.ratioA=a:this.ratioB=a,this.updateValue()}get valA(){return ratioToValue(this.ratioA,this.min,this.max,this.step)}get valB(){return ratioToValue(this.ratioB,this.min,this.max,this.step)}get ratioLower(){if(this.dualKnobs)return Math.min(this.ratioA,this.ratioB);const{activeBarStart:o}=this;return o==null?0:valueToRatio(o,this.min,this.max)}get ratioUpper(){return this.dualKnobs?Math.max(this.ratioA,this.ratioB):this.ratioA}updateRatio(){const o=this.getValue(),{min:s,max:a}=this;this.dualKnobs?(this.ratioA=valueToRatio(o.lower,s,a),this.ratioB=valueToRatio(o.upper,s,a)):this.ratioA=valueToRatio(o,s,a)}updateValue(){this.noUpdate=!0;const{valA:o,valB:s}=this;this.value=this.dualKnobs?{lower:Math.min(o,s),upper:Math.max(o,s)}:o,this.noUpdate=!1}setFocus(o){if(this.el.shadowRoot){const s=this.el.shadowRoot.querySelector(o==="A"?".range-knob-a":".range-knob-b");s&&s.focus()}}render(){var o;const{min:s,max:a,step:$,el:j,handleKeyboard:_e,pressedKnob:et,disabled:tt,pin:nt,ratioLower:it,ratioUpper:rt,inheritedAttributes:st,rangeId:ot,pinFormatter:at}=this;let{labelText:lt}=getAriaLabel(j,ot);lt==null&&(lt=st["aria-label"]);const ct=getIonMode$2(this);let ht=`${it*100}%`,dt=`${100-rt*100}%`;const ut=isRTL$2(this.el),pt=ut?"right":"left",ft=ut?"left":"right",mt=St=>({[pt]:St[pt]});this.dualKnobs===!1&&(this.valA<((o=this.activeBarStart)!==null&&o!==void 0?o:this.min)?(ht=`${rt*100}%`,dt=`${100-it*100}%`):(ht=`${it*100}%`,dt=`${100-rt*100}%`));const gt={[pt]:ht,[ft]:dt},bt=[];if(this.snaps&&this.ticks)for(let St=s;St<=a;St+=$){const Nt=valueToRatio(St,s,a),Rt=Math.min(it,rt),Ft=Math.max(it,rt),Ot={ratio:Nt,active:Nt>=Rt&&Nt<=Ft};Ot[pt]=`${Nt*100}%`,bt.push(Ot)}return renderHiddenInput(!0,j,this.name,JSON.stringify(this.getValue()),tt),h(Host,{onFocusin:this.onFocus,onFocusout:this.onBlur,id:ot,class:createColorClasses$1(this.color,{[ct]:!0,"in-item":hostContext("ion-item",j),"range-disabled":tt,"range-pressed":et!==void 0,"range-has-pin":nt})},h("slot",{name:"start"}),h("div",{class:"range-slider",ref:St=>this.rangeSlider=St},bt.map(St=>h("div",{style:mt(St),role:"presentation",class:{"range-tick":!0,"range-tick-active":St.active},part:St.active?"tick-active":"tick"})),h("div",{class:"range-bar",role:"presentation",part:"bar"}),h("div",{class:"range-bar range-bar-active",role:"presentation",style:gt,part:"bar-active"}),renderKnob(ut,{knob:"A",pressed:et==="A",value:this.valA,ratio:this.ratioA,pin:nt,pinFormatter:at,disabled:tt,handleKeyboard:_e,min:s,max:a,labelText:lt}),this.dualKnobs&&renderKnob(ut,{knob:"B",pressed:et==="B",value:this.valB,ratio:this.ratioB,pin:nt,pinFormatter:at,disabled:tt,handleKeyboard:_e,min:s,max:a,labelText:lt})),h("slot",{name:"end"}))}get el(){return this}static get watchers(){return{debounce:["debounceChanged"],min:["minChanged"],max:["maxChanged"],activeBarStart:["activeBarStartChanged"],disabled:["disabledChanged"],value:["valueChanged"]}}static get style(){return{ios:rangeIosCss,md:rangeMdCss}}},[33,"ion-range",{color:[513],debounce:[2],name:[1],dualKnobs:[4,"dual-knobs"],min:[2],max:[2],pin:[4],pinFormatter:[16],snaps:[4],step:[2],ticks:[4],activeBarStart:[1026,"active-bar-start"],disabled:[4],value:[1026],ratioA:[32],ratioB:[32],pressedKnob:[32]}]),renderKnob=(o,{knob:s,value:a,ratio:$,min:j,max:_e,disabled:et,pressed:tt,pin:nt,handleKeyboard:it,labelText:rt,pinFormatter:st})=>{const ot=o?"right":"left";return h("div",{onKeyDown:lt=>{const ct=lt.key;ct==="ArrowLeft"||ct==="ArrowDown"?(it(s,!1),lt.preventDefault(),lt.stopPropagation()):(ct==="ArrowRight"||ct==="ArrowUp")&&(it(s,!0),lt.preventDefault(),lt.stopPropagation())},class:{"range-knob-handle":!0,"range-knob-a":s==="A","range-knob-b":s==="B","range-knob-pressed":tt,"range-knob-min":a===j,"range-knob-max":a===_e,"ion-activatable":!0,"ion-focusable":!0},style:(()=>{const lt={};return lt[ot]=`${$*100}%`,lt})(),role:"slider",tabindex:et?-1:0,"aria-label":rt,"aria-valuemin":j,"aria-valuemax":_e,"aria-disabled":et?"true":null,"aria-valuenow":a},nt&&h("div",{class:"range-pin",role:"presentation",part:"pin"},st(a)),h("div",{class:"range-knob",role:"presentation",part:"knob"}))},ratioToValue=(o,s,a,$)=>{let j=(a-s)*o;return $>0&&(j=Math.round(j/$)*$+s),clamp$2(s,j,a)},valueToRatio=(o,s,a)=>clamp$2(0,(o-s)/(a-s),1);let rangeIds=0;function defineCustomElement$1$p(){if(typeof customElements>"u")return;["ion-range"].forEach(s=>{switch(s){case"ion-range":customElements.get(s)||customElements.define(s,Range);break}})}const defineCustomElement$u=defineCustomElement$1$p,getRefresherAnimationType=o=>{const s=o.previousElementSibling;return s!==null&&s.tagName==="ION-HEADER"?"translate":"scale"},createPullingAnimation=(o,s,a)=>o==="scale"?createScaleAnimation(s,a):createTranslateAnimation(s,a),createBaseAnimation=o=>{const s=o.querySelector("ion-spinner"),a=s.shadowRoot.querySelector("circle"),$=o.querySelector(".spinner-arrow-container"),j=o.querySelector(".arrow-container"),_e=j?j.querySelector("ion-icon"):null,et=createAnimation().duration(1e3).easing("ease-out"),tt=createAnimation().addElement($).keyframes([{offset:0,opacity:"0.3"},{offset:.45,opacity:"0.3"},{offset:.55,opacity:"1"},{offset:1,opacity:"1"}]),nt=createAnimation().addElement(a).keyframes([{offset:0,strokeDasharray:"1px, 200px"},{offset:.2,strokeDasharray:"1px, 200px"},{offset:.55,strokeDasharray:"100px, 200px"},{offset:1,strokeDasharray:"100px, 200px"}]),it=createAnimation().addElement(s).keyframes([{offset:0,transform:"rotate(-90deg)"},{offset:1,transform:"rotate(210deg)"}]);if(j&&_e){const rt=createAnimation().addElement(j).keyframes([{offset:0,transform:"rotate(0deg)"},{offset:.3,transform:"rotate(0deg)"},{offset:.55,transform:"rotate(280deg)"},{offset:1,transform:"rotate(400deg)"}]),st=createAnimation().addElement(_e).keyframes([{offset:0,transform:"translateX(2px) scale(0)"},{offset:.3,transform:"translateX(2px) scale(0)"},{offset:.55,transform:"translateX(-1.5px) scale(1)"},{offset:1,transform:"translateX(-1.5px) scale(1)"}]);et.addAnimation([rt,st])}return et.addAnimation([tt,nt,it])},createScaleAnimation=(o,s)=>{const a=s.clientHeight,$=createAnimation().addElement(o).keyframes([{offset:0,transform:`scale(0) translateY(-${a}px)`},{offset:1,transform:"scale(1) translateY(100px)"}]);return createBaseAnimation(o).addAnimation([$])},createTranslateAnimation=(o,s)=>{const a=s.clientHeight,$=createAnimation().addElement(o).keyframes([{offset:0,transform:`translateY(-${a}px)`},{offset:1,transform:"translateY(100px)"}]);return createBaseAnimation(o).addAnimation([$])},createSnapBackAnimation=o=>createAnimation().duration(125).addElement(o).fromTo("transform","translateY(var(--ion-pulling-refresher-translate, 100px))","translateY(0px)"),setSpinnerOpacity=(o,s)=>{o.style.setProperty("opacity",s.toString())},handleScrollWhilePulling=(o,s,a)=>{writeTask(()=>{o.forEach((j,_e)=>{const et=_e*(1/s),tt=1-et,nt=a-et,it=clamp$2(0,nt/tt,1);j.style.setProperty("opacity",it.toString())})})},handleScrollWhileRefreshing=(o,s)=>{writeTask(()=>{o.style.setProperty("--refreshing-rotation-duration",s>=1?"0.5s":"2s"),o.style.setProperty("opacity","1")})},translateElement=(o,s,a=200)=>{if(!o)return Promise.resolve();const $=transitionEndAsync(o,a);return writeTask(()=>{o.style.setProperty("transition",`${a}ms all ease-out`),s===void 0?o.style.removeProperty("transform"):o.style.setProperty("transform",`translate3d(0px, ${s}, 0px)`)}),$},shouldUseNativeRefresher=async(o,s)=>{const a=o.querySelector("ion-refresher-content");if(!a)return Promise.resolve(!1);await new Promise(_e=>componentOnReady(a,_e));const $=o.querySelector("ion-refresher-content .refresher-pulling ion-spinner"),j=o.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");return $!==null&&j!==null&&(s==="ios"&&isPlatform$1("mobile")&&o.style.webkitOverflowScrolling!==void 0||s==="md")},refresherIosCss="ion-refresher{left:0;top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}[dir=rtl] ion-refresher,:host-context([dir=rtl]) ion-refresher{left:unset;right:unset;right:0}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}[dir=rtl] .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-ios .refresher-pulling-icon,.refresher-ios .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-ios .refresher-pulling-text,.refresher-ios .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-lines-ios line,.refresher-ios .refresher-refreshing .spinner-lines-small-ios line,.refresher-ios .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-bubbles circle,.refresher-ios .refresher-refreshing .spinner-circles circle,.refresher-ios .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){ion-refresher.refresher-native ion-spinner{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.refresher-native .refresher-refreshing ion-spinner{--refreshing-rotation-duration:2s;display:none;-webkit-animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards;animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards}.refresher-native .refresher-refreshing{display:none;-webkit-animation:250ms linear refresher-pop forwards;animation:250ms linear refresher-pop forwards}.refresher-native ion-spinner{width:32px;height:32px;color:var(--ion-color-step-450, #747577)}.refresher-native.refresher-refreshing .refresher-pulling ion-spinner,.refresher-native.refresher-completing .refresher-pulling ion-spinner{display:none}.refresher-native.refresher-refreshing .refresher-refreshing ion-spinner,.refresher-native.refresher-completing .refresher-refreshing ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-pulling ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-refreshing ion-spinner{display:none}.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0) rotate(180deg);transform:scale(0) rotate(180deg);-webkit-transition:300ms;transition:300ms}@-webkit-keyframes refresher-pop{0%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}50%{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes refresher-pop{0%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}50%{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes refresher-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}@keyframes refresher-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}",refresherMdCss="ion-refresher{left:0;top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}[dir=rtl] ion-refresher,:host-context([dir=rtl]) ion-refresher{left:unset;right:unset;right:0}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}[dir=rtl] .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-md .refresher-pulling-icon,.refresher-md .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-md .refresher-pulling-text,.refresher-md .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-lines-md line,.refresher-md .refresher-refreshing .spinner-lines-small-md line,.refresher-md .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-bubbles circle,.refresher-md .refresher-refreshing .spinner-circles circle,.refresher-md .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;width:24px;height:24px;color:var(--ion-color-primary, #3880ff)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){ion-refresher.refresher-native ion-spinner{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}ion-refresher.refresher-native .spinner-arrow-container{display:inherit}ion-refresher.refresher-native .arrow-container{display:block;position:absolute;width:24px;height:24px}ion-refresher.refresher-native .arrow-container ion-icon{margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;left:0;right:0;bottom:-4px;position:absolute;color:var(--ion-color-primary, #3880ff);font-size:12px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){ion-refresher.refresher-native .arrow-container ion-icon{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}ion-refresher.refresher-native.refresher-pulling ion-refresher-content .refresher-pulling,ion-refresher.refresher-native.refresher-ready ion-refresher-content .refresher-pulling{display:-ms-flexbox;display:flex}ion-refresher.refresher-native.refresher-refreshing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-cancelling ion-refresher-content .refresher-refreshing{display:-ms-flexbox;display:flex}ion-refresher.refresher-native .refresher-pulling-icon{-webkit-transform:translateY(calc(-100% - 10px));transform:translateY(calc(-100% - 10px))}ion-refresher.refresher-native .refresher-pulling-icon,ion-refresher.refresher-native .refresher-refreshing-icon{margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;border-radius:100%;padding-left:8px;padding-right:8px;padding-top:8px;padding-bottom:8px;display:-ms-flexbox;display:flex;border:1px solid var(--ion-color-step-200, #ececec);background:var(--ion-color-step-250, #ffffff);-webkit-box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1);box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){ion-refresher.refresher-native .refresher-pulling-icon,ion-refresher.refresher-native .refresher-refreshing-icon{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){ion-refresher.refresher-native .refresher-pulling-icon,ion-refresher.refresher-native .refresher-refreshing-icon{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}",Refresher=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.ionRefresh=createEvent(this,"ionRefresh",7),this.ionPull=createEvent(this,"ionPull",7),this.ionStart=createEvent(this,"ionStart",7),this.appliedStyles=!1,this.didStart=!1,this.progress=0,this.pointerDown=!1,this.needsCompletion=!1,this.didRefresh=!1,this.lastVelocityY=0,this.animations=[],this.nativeRefresher=!1,this.state=1,this.pullMin=60,this.pullMax=this.pullMin+60,this.closeDuration="280ms",this.snapbackDuration="280ms",this.pullFactor=1,this.disabled=!1}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}async checkNativeRefresher(){const o=await shouldUseNativeRefresher(this.el,getIonMode$2(this));if(o&&!this.nativeRefresher){const s=this.el.closest("ion-content");this.setupNativeRefresher(s)}else o||this.destroyNativeRefresher()}destroyNativeRefresher(){this.scrollEl&&this.scrollListenerCallback&&(this.scrollEl.removeEventListener("scroll",this.scrollListenerCallback),this.scrollListenerCallback=void 0),this.nativeRefresher=!1}async resetNativeRefresher(o,s){this.state=s,getIonMode$2(this)==="ios"?await translateElement(o,void 0,300):await transitionEndAsync(this.el.querySelector(".refresher-refreshing-icon"),200),this.didRefresh=!1,this.needsCompletion=!1,this.pointerDown=!1,this.animations.forEach(a=>a.destroy()),this.animations=[],this.progress=0,this.state=1}async setupiOSNativeRefresher(o,s){this.elementToTransform=this.scrollEl;const a=o.shadowRoot.querySelectorAll("svg");let $=this.scrollEl.clientHeight*.16;const j=a.length;writeTask(()=>a.forEach(_e=>_e.style.setProperty("animation","none"))),this.scrollListenerCallback=()=>{!this.pointerDown&&this.state===1||readTask(()=>{const _e=this.scrollEl.scrollTop,et=this.el.clientHeight;if(_e>0){if(this.state===8){const rt=clamp$2(0,_e/(et*.5),1);writeTask(()=>setSpinnerOpacity(s,1-rt));return}return}this.pointerDown&&(this.didStart||(this.didStart=!0,this.ionStart.emit()),this.pointerDown&&this.ionPull.emit());const tt=this.didStart?30:0,nt=this.progress=clamp$2(0,(Math.abs(_e)-tt)/$,1);this.state===8||nt===1?(this.pointerDown&&handleScrollWhileRefreshing(s,this.lastVelocityY),this.didRefresh||(this.beginRefresh(),this.didRefresh=!0,hapticImpact({style:"light"}),this.pointerDown||translateElement(this.elementToTransform,`${et}px`))):(this.state=2,handleScrollWhilePulling(a,j,nt))})},this.scrollEl.addEventListener("scroll",this.scrollListenerCallback),this.gesture=(await __vitePreload(()=>Promise.resolve().then(()=>index2),void 0)).createGesture({el:this.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,onStart:()=>{this.pointerDown=!0,this.didRefresh||translateElement(this.elementToTransform,"0px"),$===0&&($=this.scrollEl.clientHeight*.16)},onMove:_e=>{this.lastVelocityY=_e.velocityY},onEnd:()=>{this.pointerDown=!1,this.didStart=!1,this.needsCompletion?(this.resetNativeRefresher(this.elementToTransform,32),this.needsCompletion=!1):this.didRefresh&&readTask(()=>translateElement(this.elementToTransform,`${this.el.clientHeight}px`))}}),this.disabledChanged()}async setupMDNativeRefresher(o,s,a){const $=getElementRoot(s).querySelector("circle"),j=this.el.querySelector("ion-refresher-content .refresher-pulling-icon"),_e=getElementRoot(a).querySelector("circle");$!==null&&_e!==null&&writeTask(()=>{$.style.setProperty("animation","none"),a.style.setProperty("animation-delay","-655ms"),_e.style.setProperty("animation-delay","-655ms")}),this.gesture=(await __vitePreload(()=>Promise.resolve().then(()=>index2),void 0)).createGesture({el:this.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,canStart:()=>this.state!==8&&this.state!==32&&this.scrollEl.scrollTop===0,onStart:et=>{this.progress=0,et.data={animation:void 0,didStart:!1,cancelled:!1}},onMove:et=>{if(et.velocityY<0&&this.progress===0&&!et.data.didStart||et.data.cancelled){et.data.cancelled=!0;return}if(!et.data.didStart){et.data.didStart=!0,this.state=2,writeTask(()=>this.scrollEl.style.setProperty("--overflow","hidden"));const tt=getRefresherAnimationType(o),nt=createPullingAnimation(tt,j,this.el);et.data.animation=nt,nt.progressStart(!1,0),this.ionStart.emit(),this.animations.push(nt);return}this.progress=clamp$2(0,et.deltaY/180*.5,1),et.data.animation.progressStep(this.progress),this.ionPull.emit()},onEnd:et=>{if(!et.data.didStart)return;if(this.gesture.enable(!1),writeTask(()=>this.scrollEl.style.removeProperty("--overflow")),this.progress<=.4){et.data.animation.progressEnd(0,this.progress,500).onFinish(()=>{this.animations.forEach(it=>it.destroy()),this.animations=[],this.gesture.enable(!0),this.state=1});return}const tt=getTimeGivenProgression([0,0],[0,0],[1,1],[1,1],this.progress)[0],nt=createSnapBackAnimation(j);this.animations.push(nt),writeTask(async()=>{j.style.setProperty("--ion-pulling-refresher-translate",`${tt*100}px`),et.data.animation.progressEnd(),await nt.play(),this.beginRefresh(),et.data.animation.destroy(),this.gesture.enable(!0)})}}),this.disabledChanged()}async setupNativeRefresher(o){if(this.scrollListenerCallback||!o||this.nativeRefresher||!this.scrollEl)return;this.setCss(0,"",!1,""),this.nativeRefresher=!0;const s=this.el.querySelector("ion-refresher-content .refresher-pulling ion-spinner"),a=this.el.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");getIonMode$2(this)==="ios"?this.setupiOSNativeRefresher(s,a):this.setupMDNativeRefresher(o,s,a)}componentDidUpdate(){this.checkNativeRefresher()}async connectedCallback(){if(this.el.getAttribute("slot")!=="fixed"){console.error('Make sure you use: <ion-refresher slot="fixed">');return}const o=this.el.closest(ION_CONTENT_ELEMENT_SELECTOR);if(!o){printIonContentErrorMsg(this.el);return}componentOnReady(o,async()=>{const s=o.querySelector(ION_CONTENT_CLASS_SELECTOR);this.scrollEl=await getScrollElement(s??o),this.backgroundContentEl=await o.getBackgroundElement(),await shouldUseNativeRefresher(this.el,getIonMode$2(this))?this.setupNativeRefresher(o):(this.gesture=(await __vitePreload(()=>Promise.resolve().then(()=>index2),void 0)).createGesture({el:o,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:20,passive:!1,canStart:()=>this.canStart(),onStart:()=>this.onStart(),onMove:a=>this.onMove(a),onEnd:()=>this.onEnd()}),this.disabledChanged())})}disconnectedCallback(){this.destroyNativeRefresher(),this.scrollEl=void 0,this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}async complete(){this.nativeRefresher?(this.needsCompletion=!0,this.pointerDown||raf(()=>raf(()=>this.resetNativeRefresher(this.elementToTransform,32)))):this.close(32,"120ms")}async cancel(){this.nativeRefresher?this.pointerDown||raf(()=>raf(()=>this.resetNativeRefresher(this.elementToTransform,16))):this.close(16,"")}getProgress(){return Promise.resolve(this.progress)}canStart(){return!(!this.scrollEl||this.state!==1||this.scrollEl.scrollTop>0)}onStart(){this.progress=0,this.state=1,this.memoizeOverflowStyle()}onMove(o){if(!this.scrollEl)return;const s=o.event;if(s.touches!==void 0&&s.touches.length>1||this.state&56)return;const a=Number.isNaN(this.pullFactor)||this.pullFactor<0?1:this.pullFactor,$=o.deltaY*a;if($<=0){if(this.progress=0,this.state=1,this.appliedStyles){this.setCss(0,"",!1,"");return}return}if(this.state===1){if(this.scrollEl.scrollTop>0){this.progress=0;return}this.state=2}if(s.cancelable&&s.preventDefault(),this.setCss($,"0ms",!0,""),$===0){this.progress=0;return}const j=this.pullMin;if(this.progress=$/j,this.didStart||(this.didStart=!0,this.ionStart.emit()),this.ionPull.emit(),$<j){this.state=2;return}if($>this.pullMax){this.beginRefresh();return}this.state=4}onEnd(){this.state===4?this.beginRefresh():this.state===2?this.cancel():this.state===1&&this.restoreOverflowStyle()}beginRefresh(){this.state=8,this.setCss(this.pullMin,this.snapbackDuration,!0,""),this.ionRefresh.emit({complete:this.complete.bind(this)})}close(o,s){setTimeout(()=>{this.state=1,this.progress=0,this.didStart=!1,this.setCss(0,"0ms",!1,"",!0)},600),this.state=o,this.setCss(0,this.closeDuration,!0,s)}setCss(o,s,a,$,j=!1){this.nativeRefresher||(this.appliedStyles=o>0,writeTask(()=>{if(this.scrollEl&&this.backgroundContentEl){const _e=this.scrollEl.style,et=this.backgroundContentEl.style;_e.transform=et.transform=o>0?`translateY(${o}px) translateZ(0px)`:"",_e.transitionDuration=et.transitionDuration=s,_e.transitionDelay=et.transitionDelay=$,_e.overflow=a?"hidden":""}j&&this.restoreOverflowStyle()}))}memoizeOverflowStyle(){if(this.scrollEl){const{overflow:o,overflowX:s,overflowY:a}=this.scrollEl.style;this.overflowStyles={overflow:o??"",overflowX:s??"",overflowY:a??""}}}restoreOverflowStyle(){if(this.overflowStyles!==void 0&&this.scrollEl!==void 0){const{overflow:o,overflowX:s,overflowY:a}=this.overflowStyles;this.scrollEl.style.overflow=o,this.scrollEl.style.overflowX=s,this.scrollEl.style.overflowY=a,this.overflowStyles=void 0}}render(){const o=getIonMode$2(this);return h(Host,{slot:"fixed",class:{[o]:!0,[`refresher-${o}`]:!0,"refresher-native":this.nativeRefresher,"refresher-active":this.state!==1,"refresher-pulling":this.state===2,"refresher-ready":this.state===4,"refresher-refreshing":this.state===8,"refresher-cancelling":this.state===16,"refresher-completing":this.state===32}})}get el(){return this}static get watchers(){return{disabled:["disabledChanged"]}}static get style(){return{ios:refresherIosCss,md:refresherMdCss}}},[32,"ion-refresher",{pullMin:[2,"pull-min"],pullMax:[2,"pull-max"],closeDuration:[1,"close-duration"],snapbackDuration:[1,"snapback-duration"],pullFactor:[2,"pull-factor"],disabled:[4],nativeRefresher:[32],state:[32],complete:[64],cancel:[64],getProgress:[64]}]);function defineCustomElement$1$o(){if(typeof customElements>"u")return;["ion-refresher"].forEach(s=>{switch(s){case"ion-refresher":customElements.get(s)||customElements.define(s,Refresher);break}})}const defineCustomElement$t=defineCustomElement$1$o;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const RefresherContent=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.customHTMLEnabled=config$1.get("innerHTMLTemplatesEnabled",ENABLE_HTML_CONTENT_DEFAULT)}componentWillLoad(){if(this.pullingIcon===void 0){const o=getIonMode$2(this),s=this.el.style.webkitOverflowScrolling!==void 0?"lines":arrowDown;this.pullingIcon=config$1.get("refreshingIcon",o==="ios"&&isPlatform$1("mobile")?config$1.get("spinner",s):"circular")}if(this.refreshingSpinner===void 0){const o=getIonMode$2(this);this.refreshingSpinner=config$1.get("refreshingSpinner",config$1.get("spinner",o==="ios"?"lines":"circular"))}}renderPullingText(){const{customHTMLEnabled:o,pullingText:s}=this;return o?h("div",{class:"refresher-pulling-text",innerHTML:sanitizeDOMString(s)}):h("div",{class:"refresher-pulling-text"},s)}renderRefreshingText(){const{customHTMLEnabled:o,refreshingText:s}=this;return o?h("div",{class:"refresher-refreshing-text",innerHTML:sanitizeDOMString(s)}):h("div",{class:"refresher-refreshing-text"},s)}render(){const o=this.pullingIcon,s=o!=null&&SPINNERS[o]!==void 0,a=getIonMode$2(this);return h(Host,{class:a},h("div",{class:"refresher-pulling"},this.pullingIcon&&s&&h("div",{class:"refresher-pulling-icon"},h("div",{class:"spinner-arrow-container"},h("ion-spinner",{name:this.pullingIcon,paused:!0}),a==="md"&&this.pullingIcon==="circular"&&h("div",{class:"arrow-container"},h("ion-icon",{icon:caretBackSharp})))),this.pullingIcon&&!s&&h("div",{class:"refresher-pulling-icon"},h("ion-icon",{icon:this.pullingIcon,lazy:!1})),this.pullingText!==void 0&&this.renderPullingText()),h("div",{class:"refresher-refreshing"},this.refreshingSpinner&&h("div",{class:"refresher-refreshing-icon"},h("ion-spinner",{name:this.refreshingSpinner})),this.refreshingText!==void 0&&this.renderRefreshingText()))}get el(){return this}},[0,"ion-refresher-content",{pullingIcon:[1025,"pulling-icon"],pullingText:[1,"pulling-text"],refreshingSpinner:[1025,"refreshing-spinner"],refreshingText:[1,"refreshing-text"]}]);function defineCustomElement$1$n(){if(typeof customElements>"u")return;["ion-refresher-content","ion-icon","ion-spinner"].forEach(s=>{switch(s){case"ion-refresher-content":customElements.get(s)||customElements.define(s,RefresherContent);break;case"ion-icon":customElements.get(s)||defineCustomElement$1n();break;case"ion-spinner":customElements.get(s)||defineCustomElement$P();break}})}const defineCustomElement$s=defineCustomElement$1$n;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const reorderIosCss=":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block;font-size:22px}.reorder-icon{font-size:34px;opacity:0.4}",reorderMdCss=":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block;font-size:22px}.reorder-icon{font-size:31px;opacity:0.3}",Reorder=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow()}onClick(o){const s=this.el.closest("ion-reorder-group");o.preventDefault(),(!s||!s.disabled)&&o.stopImmediatePropagation()}render(){const o=getIonMode$2(this);return h(Host,{class:o},h("slot",null,h("ion-icon",{icon:o==="ios"?reorderThreeOutline:reorderTwoSharp$1,lazy:!1,class:"reorder-icon",part:"icon"})))}get el(){return this}static get style(){return{ios:reorderIosCss,md:reorderMdCss}}},[33,"ion-reorder",void 0,[[2,"click","onClick"]]]);function defineCustomElement$1$m(){if(typeof customElements>"u")return;["ion-reorder","ion-icon"].forEach(s=>{switch(s){case"ion-reorder":customElements.get(s)||customElements.define(s,Reorder);break;case"ion-icon":customElements.get(s)||defineCustomElement$1n();break}})}const defineCustomElement$r=defineCustomElement$1$m,reorderGroupCss=".reorder-list-active>*{display:block;-webkit-transition:-webkit-transform 300ms;transition:-webkit-transform 300ms;transition:transform 300ms;transition:transform 300ms, -webkit-transform 300ms;will-change:transform}.reorder-enabled{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.reorder-enabled ion-reorder{display:block;cursor:-webkit-grab;cursor:grab;pointer-events:all;-ms-touch-action:none;touch-action:none}.reorder-selected,.reorder-selected ion-reorder{cursor:-webkit-grabbing;cursor:grabbing}.reorder-selected{position:relative;-webkit-transition:none !important;transition:none !important;-webkit-box-shadow:0 0 10px rgba(0, 0, 0, 0.4);box-shadow:0 0 10px rgba(0, 0, 0, 0.4);opacity:0.8;z-index:100}.reorder-visible ion-reorder .reorder-icon{-webkit-transform:translate3d(0,  0,  0);transform:translate3d(0,  0,  0)}",ReorderGroup=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.ionItemReorder=createEvent(this,"ionItemReorder",7),this.lastToIndex=-1,this.cachedHeights=[],this.scrollElTop=0,this.scrollElBottom=0,this.scrollElInitial=0,this.containerTop=0,this.containerBottom=0,this.state=0,this.disabled=!0}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}async connectedCallback(){const o=findClosestIonContent(this.el);o&&(this.scrollEl=await getScrollElement(o)),this.gesture=(await __vitePreload(()=>Promise.resolve().then(()=>index2),void 0)).createGesture({el:this.el,gestureName:"reorder",gesturePriority:110,threshold:0,direction:"y",passive:!1,canStart:s=>this.canStart(s),onStart:s=>this.onStart(s),onMove:s=>this.onMove(s),onEnd:()=>this.onEnd()}),this.disabledChanged()}disconnectedCallback(){this.onEnd(),this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}complete(o){return Promise.resolve(this.completeReorder(o))}canStart(o){if(this.selectedItemEl||this.state!==0)return!1;const a=o.event.target.closest("ion-reorder");if(!a)return!1;const $=findReorderItem(a,this.el);return $?(o.data=$,!0):!1}onStart(o){o.event.preventDefault();const s=this.selectedItemEl=o.data,a=this.cachedHeights;a.length=0;const $=this.el,j=$.children;if(!j||j.length===0)return;let _e=0;for(let tt=0;tt<j.length;tt++){const nt=j[tt];_e+=nt.offsetHeight,a.push(_e),nt.$ionIndex=tt}const et=$.getBoundingClientRect();if(this.containerTop=et.top,this.containerBottom=et.bottom,this.scrollEl){const tt=this.scrollEl.getBoundingClientRect();this.scrollElInitial=this.scrollEl.scrollTop,this.scrollElTop=tt.top+AUTO_SCROLL_MARGIN,this.scrollElBottom=tt.bottom-AUTO_SCROLL_MARGIN}else this.scrollElInitial=0,this.scrollElTop=0,this.scrollElBottom=0;this.lastToIndex=indexForItem(s),this.selectedItemHeight=s.offsetHeight,this.state=1,s.classList.add(ITEM_REORDER_SELECTED),hapticSelectionStart()}onMove(o){const s=this.selectedItemEl;if(!s)return;const a=this.autoscroll(o.currentY),$=this.containerTop-a,j=this.containerBottom-a,_e=Math.max($,Math.min(o.currentY,j)),et=a+_e-o.startY,tt=_e-$,nt=this.itemIndexForTop(tt);if(nt!==this.lastToIndex){const it=indexForItem(s);this.lastToIndex=nt,hapticSelectionChanged(),this.reorderMove(it,nt)}s.style.transform=`translateY(${et}px)`}onEnd(){const o=this.selectedItemEl;if(this.state=2,!o){this.state=0;return}const s=this.lastToIndex,a=indexForItem(o);s===a?this.completeReorder():this.ionItemReorder.emit({from:a,to:s,complete:this.completeReorder.bind(this)}),hapticSelectionEnd()}completeReorder(o){const s=this.selectedItemEl;if(s&&this.state===2){const a=this.el.children,$=a.length,j=this.lastToIndex,_e=indexForItem(s);raf(()=>{if(j!==_e&&(o===void 0||o===!0)){const et=_e<j?a[j+1]:a[j];this.el.insertBefore(s,et)}for(let et=0;et<$;et++)a[et].style.transform=""}),Array.isArray(o)&&(o=reorderArray(o,_e,j)),s.style.transition="",s.classList.remove(ITEM_REORDER_SELECTED),this.selectedItemEl=void 0,this.state=0}return o}itemIndexForTop(o){const s=this.cachedHeights;for(let a=0;a<s.length;a++)if(s[a]>o)return a;return s.length-1}reorderMove(o,s){const a=this.selectedItemHeight,$=this.el.children;for(let j=0;j<$.length;j++){const _e=$[j].style;let et="";j>o&&j<=s?et=`translateY(${-a}px)`:j<o&&j>=s&&(et=`translateY(${a}px)`),_e.transform=et}}autoscroll(o){if(!this.scrollEl)return 0;let s=0;return o<this.scrollElTop?s=-SCROLL_JUMP:o>this.scrollElBottom&&(s=SCROLL_JUMP),s!==0&&this.scrollEl.scrollBy(0,s),this.scrollEl.scrollTop-this.scrollElInitial}render(){const o=getIonMode$2(this);return h(Host,{class:{[o]:!0,"reorder-enabled":!this.disabled,"reorder-list-active":this.state!==0}})}get el(){return this}static get watchers(){return{disabled:["disabledChanged"]}}static get style(){return reorderGroupCss}},[0,"ion-reorder-group",{disabled:[4],state:[32],complete:[64]}]),indexForItem=o=>o.$ionIndex,findReorderItem=(o,s)=>{let a;for(;o;){if(a=o.parentElement,a===s)return o;o=a}},AUTO_SCROLL_MARGIN=60,SCROLL_JUMP=10,ITEM_REORDER_SELECTED="reorder-selected",reorderArray=(o,s,a)=>{const $=o[s];return o.splice(s,1),o.splice(a,0,$),o.slice()};function defineCustomElement$1$l(){if(typeof customElements>"u")return;["ion-reorder-group"].forEach(s=>{switch(s){case"ion-reorder-group":customElements.get(s)||customElements.define(s,ReorderGroup);break}})}const defineCustomElement$q=defineCustomElement$1$l;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const defineCustomElement$p=defineCustomElement$1l;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const routerLinkCss=":host{--background:transparent;--color:var(--ion-color-primary, #3880ff);background:var(--background);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}a{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit}",RouterLink=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.routerDirection="forward",this.onClick=o=>{openURL(this.href,o,this.routerDirection,this.routerAnimation)}}render(){const o=getIonMode$2(this),s={href:this.href,rel:this.rel,target:this.target};return h(Host,{onClick:this.onClick,class:createColorClasses$1(this.color,{[o]:!0,"ion-activatable":!0})},h("a",Object.assign({},s),h("slot",null)))}static get style(){return routerLinkCss}},[1,"ion-router-link",{color:[513],href:[1],rel:[1],routerDirection:[1,"router-direction"],routerAnimation:[16],target:[1]}]),IonRouterLink$1=RouterLink,routeOutletCss=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;overflow:hidden;z-index:0}",RouterOutlet=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionNavWillLoad=createEvent(this,"ionNavWillLoad",7),this.ionNavWillChange=createEvent(this,"ionNavWillChange",3),this.ionNavDidChange=createEvent(this,"ionNavDidChange",3),this.gestureOrAnimationInProgress=!1,this.mode=getIonMode$2(this),this.animated=!0}swipeHandlerChanged(){this.gesture&&this.gesture.enable(this.swipeHandler!==void 0)}async connectedCallback(){const o=()=>{this.gestureOrAnimationInProgress=!0,this.swipeHandler&&this.swipeHandler.onStart()};this.gesture=(await __vitePreload(()=>import("./swipe-back-DdziqL6Y.js"),[])).createSwipeBackGesture(this.el,()=>!this.gestureOrAnimationInProgress&&!!this.swipeHandler&&this.swipeHandler.canStart(),()=>o(),s=>{var a;return(a=this.ani)===null||a===void 0?void 0:a.progressStep(s)},(s,a,$)=>{if(this.ani){this.ani.onFinish(()=>{this.gestureOrAnimationInProgress=!1,this.swipeHandler&&this.swipeHandler.onEnd(s)},{oneTimeCallback:!0});let j=s?-.001:.001;s?j+=getTimeGivenProgression([0,0],[.32,.72],[0,1],[1,1],a)[0]:(this.ani.easing("cubic-bezier(1, 0, 0.68, 0.28)"),j+=getTimeGivenProgression([0,0],[1,0],[.68,.28],[1,1],a)[0]),this.ani.progressEnd(s?1:0,j,$)}else this.gestureOrAnimationInProgress=!1}),this.swipeHandlerChanged()}componentWillLoad(){this.ionNavWillLoad.emit()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}async commit(o,s,a){const $=await this.lock();let j=!1;try{j=await this.transition(o,s,a)}catch(_e){console.error(_e)}return $(),j}async setRouteId(o,s,a,$){return{changed:await this.setRoot(o,s,{duration:a==="root"?0:void 0,direction:a==="back"?"back":"forward",animationBuilder:$}),element:this.activeEl}}async getRouteId(){const o=this.activeEl;return o?{id:o.tagName,element:o,params:this.activeParams}:void 0}async setRoot(o,s,a){if(this.activeComponent===o&&shallowEqualStringMap(s,this.activeParams))return!1;const $=this.activeEl,j=await attachComponent(this.delegate,this.el,o,["ion-page","ion-page-invisible"],s);return this.activeComponent=o,this.activeEl=j,this.activeParams=s,await this.commit(j,$,a),await detachComponent(this.delegate,$),!0}async transition(o,s,a={}){if(s===o)return!1;this.ionNavWillChange.emit();const{el:$,mode:j}=this,_e=this.animated&&config$1.getBoolean("animated",!0),et=a.animationBuilder||this.animation||config$1.get("navAnimation");return await transition(Object.assign(Object.assign({mode:j,animated:_e,enteringEl:o,leavingEl:s,baseEl:$,progressCallback:a.progressAnimation?tt=>{tt!==void 0&&!this.gestureOrAnimationInProgress?(this.gestureOrAnimationInProgress=!0,tt.onFinish(()=>{this.gestureOrAnimationInProgress=!1,this.swipeHandler&&this.swipeHandler.onEnd(!1)},{oneTimeCallback:!0}),tt.progressEnd(0,0,0)):this.ani=tt}:void 0},a),{animationBuilder:et})),this.ionNavDidChange.emit(),!0}async lock(){const o=this.waitPromise;let s;return this.waitPromise=new Promise(a=>s=a),o!==void 0&&await o,s}render(){return h("slot",null)}get el(){return this}static get watchers(){return{swipeHandler:["swipeHandlerChanged"]}}static get style(){return routeOutletCss}},[1,"ion-router-outlet",{mode:[1025],delegate:[16],animated:[4],animation:[16],swipeHandler:[16],commit:[64],setRouteId:[64],getRouteId:[64]}]);function defineCustomElement$1$k(){if(typeof customElements>"u")return;["ion-router-outlet"].forEach(s=>{switch(s){case"ion-router-outlet":customElements.get(s)||customElements.define(s,RouterOutlet);break}})}const defineCustomElement$o=defineCustomElement$1$k;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const rowCss=":host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}",Row=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){return h(Host,{class:getIonMode$2(this)},h("slot",null))}static get style(){return rowCss}},[1,"ion-row"]);function defineCustomElement$1$j(){if(typeof customElements>"u")return;["ion-row"].forEach(s=>{switch(s){case"ion-row":customElements.get(s)||customElements.define(s,Row);break}})}const defineCustomElement$n=defineCustomElement$1$j;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const searchbarIosCss=".sc-ion-searchbar-ios-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:.5;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-searchbar-ios-h{color:var(--ion-color-contrast)}.ion-color.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{background:var(--ion-color-base)}.ion-color.sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios,.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.ion-color.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{color:inherit}.searchbar-search-icon.sc-ion-searchbar-ios{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-ios{display:block;position:relative;-ms-flex-negative:1;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-ios{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;border-radius:var(--border-radius);display:block;width:100%;border:0;outline:none;background:var(--background);font-family:inherit;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-input.sc-ion-searchbar-ios::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-ios::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-ios>div.sc-ion-searchbar-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:none;min-height:0;outline:none;color:var(--clear-button-color);-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-clear-button.sc-ion-searchbar-ios:focus{opacity:0.5}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios{display:block}.searchbar-disabled.sc-ion-searchbar-ios-h{cursor:default;opacity:0.4;pointer-events:none}.sc-ion-searchbar-ios-h{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.07);--border-radius:10px;--box-shadow:none;--cancel-button-color:var(--ion-color-primary, #3880ff);--clear-button-color:var(--ion-color-step-600, #666666);--color:var(--ion-text-color, #000);--icon-color:var(--ion-color-step-600, #666666);padding-left:12px;padding-right:12px;padding-top:12px;padding-bottom:12px;height:60px;contain:strict}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-ion-searchbar-ios-h{padding-left:unset;padding-right:unset;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px}}.searchbar-input-container.sc-ion-searchbar-ios{height:36px}.searchbar-search-icon.sc-ion-searchbar-ios{margin-left:calc(50% - 60px);left:5px;top:0;position:absolute;width:22px;height:100%;contain:strict}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.searchbar-search-icon.sc-ion-searchbar-ios{margin-left:unset;-webkit-margin-start:calc(50% - 60px);margin-inline-start:calc(50% - 60px)}}[dir=rtl].sc-ion-searchbar-ios .searchbar-search-icon.sc-ion-searchbar-ios,[dir=rtl].sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,[dir=rtl] .sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{left:unset;right:unset;right:5px}.searchbar-input.sc-ion-searchbar-ios{padding-left:28px;padding-right:28px;padding-top:0;padding-bottom:0;height:100%;font-size:17px;font-weight:400;contain:strict}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.searchbar-input.sc-ion-searchbar-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:28px;padding-inline-start:28px;-webkit-padding-end:28px;padding-inline-end:28px}}.searchbar-clear-button.sc-ion-searchbar-ios{right:0;top:0;background-position:center;position:absolute;width:30px;height:100%;border:0;background-color:transparent}[dir=rtl].sc-ion-searchbar-ios .searchbar-clear-button.sc-ion-searchbar-ios,[dir=rtl].sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios,[dir=rtl] .sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios{left:unset;right:unset;left:0}.searchbar-clear-icon.sc-ion-searchbar-ios{width:18px;height:100%}.searchbar-cancel-button.sc-ion-searchbar-ios{padding-left:8px;padding-right:0;padding-top:0;padding-bottom:0;-ms-flex-negative:0;flex-shrink:0;background-color:transparent;font-size:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.searchbar-cancel-button.sc-ion-searchbar-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:0;padding-inline-end:0}}.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{margin-left:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{margin-left:unset;-webkit-margin-start:0;margin-inline-start:0}}.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{padding-left:30px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{padding-left:unset;-webkit-padding-start:30px;padding-inline-start:30px}}.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-should-show-cancel.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{display:block}.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-transition:all 300ms ease;transition:all 300ms ease}.searchbar-animated.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-animated.searchbar-should-show-cancel.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{opacity:1;pointer-events:auto}.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{margin-right:-100%;-webkit-transform:translate3d(0,  0,  0);transform:translate3d(0,  0,  0);-webkit-transition:all 300ms ease;transition:all 300ms ease;opacity:0;pointer-events:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{margin-right:unset;-webkit-margin-end:-100%;margin-inline-end:-100%}}.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios,.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-transition-duration:0ms;transition-duration:0ms}.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{color:var(--ion-color-base)}@media (any-hover: hover){.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios:hover{color:var(--ion-color-tint)}}ion-toolbar.sc-ion-searchbar-ios-h,ion-toolbar .sc-ion-searchbar-ios-h{padding-top:1px;padding-bottom:15px;height:52px}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color),ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color){color:inherit}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-cancel-button.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-cancel-button.sc-ion-searchbar-ios{color:currentColor}ion-toolbar.ion-color.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{color:currentColor;opacity:0.5}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-input.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-input.sc-ion-searchbar-ios{background:rgba(var(--ion-color-contrast-rgb), 0.07);color:currentColor}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-clear-button.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-clear-button.sc-ion-searchbar-ios{color:currentColor;opacity:0.5}",searchbarMdCss=".sc-ion-searchbar-md-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:.5;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-searchbar-md-h{color:var(--ion-color-contrast)}.ion-color.sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md{background:var(--ion-color-base)}.ion-color.sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md,.ion-color.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,.ion-color.sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{color:inherit}.searchbar-search-icon.sc-ion-searchbar-md{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-md{display:block;position:relative;-ms-flex-negative:1;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-md{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;border-radius:var(--border-radius);display:block;width:100%;border:0;outline:none;background:var(--background);font-family:inherit;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-input.sc-ion-searchbar-md::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-md::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-md>div.sc-ion-searchbar-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:none;min-height:0;outline:none;color:var(--clear-button-color);-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-clear-button.sc-ion-searchbar-md:focus{opacity:0.5}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md{display:block}.searchbar-disabled.sc-ion-searchbar-md-h{cursor:default;opacity:0.4;pointer-events:none}.sc-ion-searchbar-md-h{--background:var(--ion-background-color, #fff);--border-radius:2px;--box-shadow:0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);--cancel-button-color:var(--ion-color-step-900, #1a1a1a);--clear-button-color:initial;--color:var(--ion-color-step-850, #262626);--icon-color:var(--ion-color-step-600, #666666);padding-left:8px;padding-right:8px;padding-top:8px;padding-bottom:8px;background:inherit}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-ion-searchbar-md-h{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.searchbar-search-icon.sc-ion-searchbar-md{left:16px;top:11px;width:21px;height:21px}[dir=rtl].sc-ion-searchbar-md .searchbar-search-icon.sc-ion-searchbar-md,[dir=rtl].sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{left:unset;right:unset;right:16px}.searchbar-cancel-button.sc-ion-searchbar-md{left:5px;top:0;background-color:transparent;font-size:1.6em}[dir=rtl].sc-ion-searchbar-md .searchbar-cancel-button.sc-ion-searchbar-md,[dir=rtl].sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md{left:unset;right:unset;right:5px}.searchbar-search-icon.sc-ion-searchbar-md,.searchbar-cancel-button.sc-ion-searchbar-md{position:absolute}.searchbar-search-icon.ion-activated.sc-ion-searchbar-md,.searchbar-cancel-button.ion-activated.sc-ion-searchbar-md{background-color:transparent}.searchbar-input.sc-ion-searchbar-md{padding-left:55px;padding-right:55px;padding-top:6px;padding-bottom:6px;background-position:left 8px center;height:auto;font-size:16px;font-weight:400;line-height:30px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.searchbar-input.sc-ion-searchbar-md{padding-left:unset;padding-right:unset;-webkit-padding-start:55px;padding-inline-start:55px;-webkit-padding-end:55px;padding-inline-end:55px}}[dir=rtl].sc-ion-searchbar-md .searchbar-input.sc-ion-searchbar-md,[dir=rtl].sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md{background-position:right 8px center}.searchbar-clear-button.sc-ion-searchbar-md{right:13px;top:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;position:absolute;height:100%;border:0;background-color:transparent}[dir=rtl].sc-ion-searchbar-md .searchbar-clear-button.sc-ion-searchbar-md,[dir=rtl].sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md{left:unset;right:unset;left:13px}.searchbar-clear-button.ion-activated.sc-ion-searchbar-md{background-color:transparent}.searchbar-clear-icon.sc-ion-searchbar-md{width:22px;height:100%}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{display:block}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,.searchbar-should-show-cancel.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md{display:block}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md+.searchbar-search-icon.sc-ion-searchbar-md,.searchbar-should-show-cancel.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md+.searchbar-search-icon.sc-ion-searchbar-md{display:none}ion-toolbar.sc-ion-searchbar-md-h,ion-toolbar .sc-ion-searchbar-md-h{padding-left:7px;padding-right:7px;padding-top:3px;padding-bottom:3px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){ion-toolbar.sc-ion-searchbar-md-h,ion-toolbar .sc-ion-searchbar-md-h{padding-left:unset;padding-right:unset;-webkit-padding-start:7px;padding-inline-start:7px;-webkit-padding-end:7px;padding-inline-end:7px}}",Searchbar=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.ionInput=createEvent(this,"ionInput",7),this.ionChange=createEvent(this,"ionChange",7),this.ionCancel=createEvent(this,"ionCancel",7),this.ionClear=createEvent(this,"ionClear",7),this.ionBlur=createEvent(this,"ionBlur",7),this.ionFocus=createEvent(this,"ionFocus",7),this.ionStyle=createEvent(this,"ionStyle",7),this.isCancelVisible=!1,this.shouldAlignLeft=!0,this.focused=!1,this.noAnimate=!0,this.animated=!1,this.autocomplete="off",this.autocorrect="off",this.cancelButtonIcon=config$1.get("backButtonIcon",arrowBackSharp),this.cancelButtonText="Cancel",this.debounce=250,this.disabled=!1,this.placeholder="Search",this.showCancelButton="never",this.showClearButton="always",this.spellcheck=!1,this.type="search",this.value="",this.onClearInput=o=>{this.ionClear.emit(),setTimeout(()=>{this.getValue()!==""&&(this.value="",this.ionInput.emit(),o&&!this.focused&&this.setFocus())},16*4)},this.onCancelSearchbar=o=>{o&&(o.preventDefault(),o.stopPropagation()),this.ionCancel.emit(),this.onClearInput(),this.nativeInput&&this.nativeInput.blur()},this.onInput=o=>{const s=o.target;s&&(this.value=s.value),this.ionInput.emit(o)},this.onBlur=()=>{this.focused=!1,this.ionBlur.emit(),this.positionElements()},this.onFocus=()=>{this.focused=!0,this.ionFocus.emit(),this.positionElements()}}debounceChanged(){this.ionChange=debounceEvent(this.ionChange,this.debounce)}valueChanged(){const o=this.nativeInput,s=this.getValue();o&&o.value!==s&&(o.value=s),this.ionChange.emit({value:s})}showCancelButtonChanged(){requestAnimationFrame(()=>{this.positionElements(),forceUpdate(this)})}connectedCallback(){this.emitStyle()}componentDidLoad(){this.positionElements(),this.debounceChanged(),setTimeout(()=>{this.noAnimate=!1},300)}emitStyle(){this.ionStyle.emit({searchbar:!0})}async setFocus(){this.nativeInput&&this.nativeInput.focus()}getInputElement(){return Promise.resolve(this.nativeInput)}positionElements(){const o=this.getValue(),s=this.shouldAlignLeft,a=getIonMode$2(this),$=!this.animated||o.trim()!==""||!!this.focused;this.shouldAlignLeft=$,a==="ios"&&(s!==$&&this.positionPlaceholder(),this.animated&&this.positionCancelButton())}positionPlaceholder(){const o=this.nativeInput;if(!o)return;const s=isRTL$2(this.el),a=(this.el.shadowRoot||this.el).querySelector(".searchbar-search-icon");if(this.shouldAlignLeft)o.removeAttribute("style"),a.removeAttribute("style");else{const $=document,j=$.createElement("span");j.innerText=this.placeholder||"",$.body.appendChild(j),raf(()=>{const _e=j.offsetWidth;j.remove();const et="calc(50% - "+_e/2+"px)",tt="calc(50% - "+(_e/2+30)+"px)";s?(o.style.paddingRight=et,a.style.marginRight=tt):(o.style.paddingLeft=et,a.style.marginLeft=tt)})}}positionCancelButton(){const o=isRTL$2(this.el),s=(this.el.shadowRoot||this.el).querySelector(".searchbar-cancel-button"),a=this.shouldShowCancelButton();if(s!==null&&a!==this.isCancelVisible){const $=s.style;if(this.isCancelVisible=a,a)o?$.marginLeft="0":$.marginRight="0";else{const j=s.offsetWidth;j>0&&(o?$.marginLeft=-j+"px":$.marginRight=-j+"px")}}}getValue(){return this.value||""}hasValue(){return this.getValue()!==""}shouldShowCancelButton(){return!(this.showCancelButton==="never"||this.showCancelButton==="focus"&&!this.focused)}shouldShowClearButton(){return!(this.showClearButton==="never"||this.showClearButton==="focus"&&!this.focused)}render(){const{cancelButtonText:o}=this,s=this.animated&&config$1.getBoolean("animated",!0),a=getIonMode$2(this),$=this.clearIcon||(a==="ios"?closeCircle$1:closeSharp),j=this.searchIcon||(a==="ios"?searchOutline$1:searchSharp),_e=this.shouldShowCancelButton(),et=this.showCancelButton!=="never"&&h("button",{"aria-label":o,"aria-hidden":_e?void 0:"true",type:"button",tabIndex:a==="ios"&&!_e?-1:void 0,onMouseDown:this.onCancelSearchbar,onTouchStart:this.onCancelSearchbar,class:"searchbar-cancel-button"},h("div",{"aria-hidden":"true"},a==="md"?h("ion-icon",{"aria-hidden":"true",mode:a,icon:this.cancelButtonIcon,lazy:!1}):o));return h(Host,{role:"search","aria-disabled":this.disabled?"true":null,class:createColorClasses$1(this.color,{[a]:!0,"searchbar-animated":s,"searchbar-disabled":this.disabled,"searchbar-no-animate":s&&this.noAnimate,"searchbar-has-value":this.hasValue(),"searchbar-left-aligned":this.shouldAlignLeft,"searchbar-has-focus":this.focused,"searchbar-should-show-clear":this.shouldShowClearButton(),"searchbar-should-show-cancel":this.shouldShowCancelButton()})},h("div",{class:"searchbar-input-container"},h("input",{"aria-label":"search text",disabled:this.disabled,ref:tt=>this.nativeInput=tt,class:"searchbar-input",inputMode:this.inputmode,enterKeyHint:this.enterkeyhint,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus,placeholder:this.placeholder,type:this.type,value:this.getValue(),autoComplete:this.autocomplete,autoCorrect:this.autocorrect,spellcheck:this.spellcheck}),a==="md"&&et,h("ion-icon",{"aria-hidden":"true",mode:a,icon:j,lazy:!1,class:"searchbar-search-icon"}),h("button",{"aria-label":"reset",type:"button","no-blur":!0,class:"searchbar-clear-button",onPointerDown:tt=>{tt.preventDefault()},onClick:()=>this.onClearInput(!0)},h("ion-icon",{"aria-hidden":"true",mode:a,icon:$,lazy:!1,class:"searchbar-clear-icon"}))),a==="ios"&&et)}get el(){return this}static get watchers(){return{debounce:["debounceChanged"],value:["valueChanged"],showCancelButton:["showCancelButtonChanged"]}}static get style(){return{ios:searchbarIosCss,md:searchbarMdCss}}},[34,"ion-searchbar",{color:[513],animated:[4],autocomplete:[1],autocorrect:[1],cancelButtonIcon:[1,"cancel-button-icon"],cancelButtonText:[1,"cancel-button-text"],clearIcon:[1,"clear-icon"],debounce:[2],disabled:[4],inputmode:[1],enterkeyhint:[1],placeholder:[1],searchIcon:[1,"search-icon"],showCancelButton:[1,"show-cancel-button"],showClearButton:[1,"show-clear-button"],spellcheck:[4],type:[1],value:[1025],focused:[32],noAnimate:[32],setFocus:[64],getInputElement:[64]}]);function defineCustomElement$1$i(){if(typeof customElements>"u")return;["ion-searchbar","ion-icon"].forEach(s=>{switch(s){case"ion-searchbar":customElements.get(s)||customElements.define(s,Searchbar);break;case"ion-icon":customElements.get(s)||defineCustomElement$1n();break}})}const defineCustomElement$m=defineCustomElement$1$i,segmentIosCss=":host{--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:center;justify-content:center;width:100%;background:var(--background);font-family:var(--ion-font-family, inherit);text-align:center;contain:paint;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.segment-scrollable){-ms-flex-pack:start;justify-content:start;width:auto;overflow-x:auto}:host(.segment-scrollable::-webkit-scrollbar){display:none}:host{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.065);border-radius:8px;overflow:hidden;z-index:0}:host(.ion-color){background:rgba(var(--ion-color-base-rgb), 0.065)}:host(.in-toolbar){margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;width:auto}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-toolbar){margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}:host(.in-toolbar:not(.ion-color)){background:var(--ion-toolbar-segment-background, var(--background))}:host(.in-toolbar-color:not(.ion-color)){background:rgba(var(--ion-color-contrast-rgb), 0.11)}",segmentMdCss=":host{--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:center;justify-content:center;width:100%;background:var(--background);font-family:var(--ion-font-family, inherit);text-align:center;contain:paint;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.segment-scrollable){-ms-flex-pack:start;justify-content:start;width:auto;overflow-x:auto}:host(.segment-scrollable::-webkit-scrollbar){display:none}:host{--background:transparent}:host(.in-toolbar){min-height:var(--min-height)}:host(.segment-scrollable) ::slotted(ion-segment-button){min-width:auto}",Segment=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=createEvent(this,"ionChange",7),this.ionSelect=createEvent(this,"ionSelect",7),this.ionStyle=createEvent(this,"ionStyle",7),this.didInit=!1,this.activated=!1,this.disabled=!1,this.scrollable=!1,this.swipeGesture=!0,this.selectOnFocus=!1,this.onClick=o=>{const s=o.target,a=this.checked;s.tagName!=="ION-SEGMENT"&&(this.value=s.value,(this.scrollable||!this.swipeGesture)&&(a?this.checkButton(a,s):this.setCheckedClasses()),this.checked=s)},this.getSegmentButton=o=>{var s,a;const $=this.getButtons().filter(_e=>!_e.disabled),j=$.findIndex(_e=>_e===document.activeElement);switch(o){case"first":return $[0];case"last":return $[$.length-1];case"next":return(s=$[j+1])!==null&&s!==void 0?s:$[0];case"previous":return(a=$[j-1])!==null&&a!==void 0?a:$[$.length-1];default:return null}}}colorChanged(o,s){(s===void 0&&o!==void 0||s!==void 0&&o===void 0)&&this.emitStyle()}swipeGestureChanged(){this.gestureChanged()}valueChanged(o,s){if(this.ionSelect.emit({value:o}),(s!==""||this.didInit)&&(this.activated?this.valueAfterGesture=o:this.ionChange.emit({value:o})),this.scrollable){const $=this.getButtons().find(j=>j.value===o);$!==void 0&&$.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})}}disabledChanged(){this.gestureChanged();const o=this.getButtons();for(const s of o)s.disabled=this.disabled}gestureChanged(){this.gesture&&this.gesture.enable(!this.scrollable&&!this.disabled&&this.swipeGesture)}connectedCallback(){this.emitStyle()}componentWillLoad(){this.emitStyle()}async componentDidLoad(){this.setCheckedClasses(),this.gesture=(await __vitePreload(()=>Promise.resolve().then(()=>index2),void 0)).createGesture({el:this.el,gestureName:"segment",gesturePriority:100,threshold:0,passive:!1,onStart:o=>this.onStart(o),onMove:o=>this.onMove(o),onEnd:o=>this.onEnd(o)}),this.gestureChanged(),this.disabled&&this.disabledChanged(),this.didInit=!0}onStart(o){this.activate(o)}onMove(o){this.setNextIndex(o)}onEnd(o){this.setActivated(!1);const s=this.setNextIndex(o,!0);o.event.stopImmediatePropagation(),s&&this.addRipple(o);const a=this.valueAfterGesture;a!==void 0&&(this.ionChange.emit({value:a}),this.valueAfterGesture=void 0)}getButtons(){return Array.from(this.el.querySelectorAll("ion-segment-button"))}addRipple(o){if(!(config$1.getBoolean("animated",!0)&&config$1.getBoolean("rippleEffect",!0)))return;const $=this.getButtons().find(nt=>nt.value===this.value),_e=($.shadowRoot||$).querySelector("ion-ripple-effect");if(!_e)return;const{x:et,y:tt}=pointerCoord(o.event);_e.addRipple(et,tt).then(nt=>nt())}setActivated(o){this.getButtons().forEach(a=>{o?a.classList.add("segment-button-activated"):a.classList.remove("segment-button-activated")}),this.activated=o}activate(o){const s=o.event.target,$=this.getButtons().find(j=>j.value===this.value);s.tagName==="ION-SEGMENT-BUTTON"&&($||(this.value=s.value,this.setCheckedClasses()),this.value===s.value&&this.setActivated(!0))}getIndicator(o){return(o.shadowRoot||o).querySelector(".segment-button-indicator")}checkButton(o,s){const a=this.getIndicator(o),$=this.getIndicator(s);if(a===null||$===null)return;const j=a.getBoundingClientRect(),_e=$.getBoundingClientRect(),et=j.width/_e.width,nt=`translate3d(${j.left-_e.left}px, 0, 0) scaleX(${et})`;writeTask(()=>{$.classList.remove("segment-button-indicator-animated"),$.style.setProperty("transform",nt),$.getBoundingClientRect(),$.classList.add("segment-button-indicator-animated"),$.style.setProperty("transform","")}),this.value=s.value,this.setCheckedClasses()}setCheckedClasses(){const o=this.getButtons(),a=o.findIndex($=>$.value===this.value)+1;this.checked=o.find($=>$.value===this.value);for(const $ of o)$.classList.remove("segment-button-after-checked");a<o.length&&o[a].classList.add("segment-button-after-checked")}setNextIndex(o,s=!1){const a=isRTL$2(this.el),$=this.activated,j=this.getButtons(),_e=j.findIndex(ut=>ut.value===this.value),et=j[_e];let tt,nt;if(_e===-1)return;const it=et.getBoundingClientRect(),rt=it.left,st=it.width,ot=o.currentX,at=it.top+it.height/2,ct=this.el.getRootNode().elementFromPoint(ot,at),ht=a?ot>rt+st:ot<rt,dt=a?ot<rt:ot>rt+st;if($&&!s){if(ht){const ut=_e-1;ut>=0&&(nt=ut)}else if(dt&&$&&!s){const ut=_e+1;ut<j.length&&(nt=ut)}nt!==void 0&&!j[nt].disabled&&(tt=j[nt])}if(!$&&s&&(tt=ct),tt!=null){if(tt.tagName==="ION-SEGMENT")return!1;et!==tt&&this.checkButton(et,tt)}return!0}emitStyle(){this.ionStyle.emit({segment:!0})}onKeyDown(o){const s=isRTL$2(this.el);let a=this.selectOnFocus,$;switch(o.key){case"ArrowRight":o.preventDefault(),$=s?this.getSegmentButton("previous"):this.getSegmentButton("next");break;case"ArrowLeft":o.preventDefault(),$=s?this.getSegmentButton("next"):this.getSegmentButton("previous");break;case"Home":o.preventDefault(),$=this.getSegmentButton("first");break;case"End":o.preventDefault(),$=this.getSegmentButton("last");break;case" ":case"Enter":o.preventDefault(),$=document.activeElement,a=!0}if($){if(a){const j=this.checked||$;this.checkButton(j,$)}$.setFocus()}}render(){const o=getIonMode$2(this);return h(Host,{role:"tablist",onClick:this.onClick,class:createColorClasses$1(this.color,{[o]:!0,"in-toolbar":hostContext("ion-toolbar",this.el),"in-toolbar-color":hostContext("ion-toolbar[color]",this.el),"segment-activated":this.activated,"segment-disabled":this.disabled,"segment-scrollable":this.scrollable})},h("slot",null))}get el(){return this}static get watchers(){return{color:["colorChanged"],swipeGesture:["swipeGestureChanged"],value:["valueChanged"],disabled:["disabledChanged"]}}static get style(){return{ios:segmentIosCss,md:segmentMdCss}}},[33,"ion-segment",{color:[513],disabled:[4],scrollable:[4],swipeGesture:[4,"swipe-gesture"],value:[1025],selectOnFocus:[4,"select-on-focus"],activated:[32]},[[0,"keydown","onKeyDown"]]]);function defineCustomElement$1$h(){if(typeof customElements>"u")return;["ion-segment"].forEach(s=>{switch(s){case"ion-segment":customElements.get(s)||customElements.define(s,Segment);break}})}const defineCustomElement$l=defineCustomElement$1$h;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const segmentButtonIosCss=':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none;cursor:pointer}.button-native{border-radius:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:var(--margin-start);margin-right:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-webkit-transform:translate3d(0,  0,  0);transform:translate3d(0,  0,  0);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.button-native{margin-left:unset;margin-right:unset;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end)}}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:-1;order:-1;pointer-events:none}::slotted(ion-label){display:block;-ms-flex-item-align:center;align-self:center;line-height:22px;text-overflow:ellipsis;white-space:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{-ms-flex-direction:column;flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{-ms-flex-direction:row;flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{-webkit-transform-origin:left;transform-origin:left;position:absolute;opacity:0;-webkit-box-sizing:border-box;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);-webkit-transform:var(--indicator-transform);transform:var(--indicator-transform);-webkit-box-shadow:var(--indicator-box-shadow);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{-webkit-transform:none;transform:none}.segment-button-indicator-animated{-webkit-transition:none;transition:none}}:host{--background:none;--background-checked:none;--background-hover:none;--background-hover-opacity:0;--background-focused:none;--background-focused-opacity:0;--border-radius:7px;--border-width:1px;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.12);--border-style:solid;--indicator-box-shadow:0 0 5px rgba(0, 0, 0, 0.16);--indicator-color:var(--ion-color-step-350, var(--ion-background-color, #fff));--indicator-height:100%;--indicator-transition:transform 260ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--transition:100ms all linear;--padding-top:0;--padding-end:13px;--padding-bottom:0;--padding-start:13px;margin-top:2px;margin-bottom:2px;position:relative;-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-direction:row;flex-direction:row;min-width:70px;min-height:28px;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);font-size:13px;font-weight:450;line-height:37px}:host::before{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;-webkit-transition:160ms opacity ease-in-out;transition:160ms opacity ease-in-out;-webkit-transition-delay:100ms;transition-delay:100ms;border-left:var(--border-width) var(--border-style) var(--border-color);content:"";opacity:1;will-change:opacity}:host(:first-of-type)::before{border-left-color:transparent}:host(.segment-button-disabled){opacity:0.3}::slotted(ion-icon){font-size:24px}:host(.segment-button-layout-icon-start) ::slotted(ion-label){margin-left:2px;margin-right:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.segment-button-layout-icon-start) ::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:0;margin-inline-end:0}}:host(.segment-button-layout-icon-end) ::slotted(ion-label){margin-left:0;margin-right:2px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.segment-button-layout-icon-end) ::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:2px;margin-inline-end:2px}}.segment-button-indicator{padding-left:2px;padding-right:2px;left:0;right:0;top:0;bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.segment-button-indicator{padding-left:unset;padding-right:unset;-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:2px;padding-inline-end:2px}}.segment-button-indicator-background{border-radius:var(--border-radius);background:var(--indicator-color)}.segment-button-indicator-background{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked)::before,:host(.segment-button-after-checked)::before{opacity:0}:host(.segment-button-checked){z-index:-1}:host(.segment-button-activated){--indicator-transform:scale(0.95)}:host(.ion-focused) .button-native{opacity:0.7}@media (any-hover: hover){:host(:hover) .button-native{opacity:0.5}:host(.segment-button-checked:hover) .button-native{opacity:1}}:host(.in-segment-color){background:none;color:var(--ion-text-color, #000)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-step-350, var(--ion-background-color, #fff))}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native,:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-text-color, #000)}}:host(.in-toolbar:not(.in-segment-color)){--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, var(--ion-toolbar-color), initial);--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-toolbar-color), initial);--indicator-color:var(--ion-toolbar-segment-indicator-color, var(--ion-color-step-350, var(--ion-background-color, #fff)))}:host(.in-toolbar-color) .segment-button-indicator-background{background:var(--ion-color-contrast)}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color):hover) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color):hover) .button-native{color:var(--ion-color-base)}}',segmentButtonMdCss=':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none;cursor:pointer}.button-native{border-radius:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:var(--margin-start);margin-right:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-webkit-transform:translate3d(0,  0,  0);transform:translate3d(0,  0,  0);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.button-native{margin-left:unset;margin-right:unset;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end)}}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:-1;order:-1;pointer-events:none}::slotted(ion-label){display:block;-ms-flex-item-align:center;align-self:center;line-height:22px;text-overflow:ellipsis;white-space:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{-ms-flex-direction:column;flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{-ms-flex-direction:row;flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{-webkit-transform-origin:left;transform-origin:left;position:absolute;opacity:0;-webkit-box-sizing:border-box;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);-webkit-transform:var(--indicator-transform);transform:var(--indicator-transform);-webkit-box-shadow:var(--indicator-box-shadow);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{-webkit-transform:none;transform:none}.segment-button-indicator-animated{-webkit-transition:none;transition:none}}:host{--background:none;--background-checked:none;--background-hover:var(--color-checked);--background-focused:var(--color-checked);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--color-checked:var(--ion-color-primary, #3880ff);--indicator-box-shadow:none;--indicator-color:var(--color-checked);--indicator-height:2px;--indicator-transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--padding-top:0;--padding-end:16px;--padding-bottom:0;--padding-start:16px;--transition:color 0.15s linear 0s, opacity 0.15s linear 0s;min-width:90px;max-width:360px;min-height:48px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);font-size:14px;font-weight:500;letter-spacing:0.06em;line-height:40px;text-transform:uppercase}:host(.segment-button-disabled){opacity:0.3}:host(.in-segment-color){background:none;color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color) ion-ripple-effect{color:var(--ion-color-base)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked) .button-native{color:var(--ion-color-base)}:host(.in-segment-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color:hover) .button-native::after{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-segment-color)){--background:var(--ion-toolbar-segment-background, none);--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6));--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-color-primary, #3880ff));--indicator-color:var(--ion-toolbar-segment-color-checked, var(--color-checked))}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:rgba(var(--ion-color-contrast-rgb), 0.6)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color)) .button-native::after{background:var(--ion-color-contrast)}}::slotted(ion-icon){margin-top:12px;margin-bottom:12px;font-size:24px}::slotted(ion-label){margin-top:12px;margin-bottom:12px}:host(.segment-button-layout-icon-top) ::slotted(ion-label),:host(.segment-button-layout-icon-bottom) ::slotted(ion-icon){margin-top:0}:host(.segment-button-layout-icon-top) ::slotted(ion-icon),:host(.segment-button-layout-icon-bottom) ::slotted(ion-label){margin-bottom:0}:host(.segment-button-layout-icon-start) ::slotted(ion-label){margin-left:8px;margin-right:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.segment-button-layout-icon-start) ::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:0;margin-inline-end:0}}:host(.segment-button-layout-icon-end) ::slotted(ion-label){margin-left:0;margin-right:8px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.segment-button-layout-icon-end) ::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}:host(.segment-button-has-icon-only) ::slotted(ion-icon){margin-top:12px;margin-bottom:12px}:host(.segment-button-has-label-only) ::slotted(ion-label){margin-top:12px;margin-bottom:12px}.segment-button-indicator{left:0;right:0;bottom:0}.segment-button-indicator-background{background:var(--indicator-color)}:host(.in-toolbar:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-toolbar-segment-indicator-color, var(--indicator-color))}:host(.in-toolbar-color:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-color-contrast)}';let ids$1=0;const SegmentButton=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.segmentEl=null,this.inheritedAttributes={},this.checked=!1,this.disabled=!1,this.layout="icon-top",this.type="button",this.value="ion-sb-"+ids$1++,this.updateStyle=()=>{forceUpdate(this)},this.updateState=()=>{this.segmentEl&&(this.checked=this.segmentEl.value===this.value)}}valueChanged(){this.updateState()}connectedCallback(){const o=this.segmentEl=this.el.closest("ion-segment");o&&(this.updateState(),addEventListener$2(o,"ionSelect",this.updateState),addEventListener$2(o,"ionStyle",this.updateStyle))}disconnectedCallback(){const o=this.segmentEl;o&&(removeEventListener(o,"ionSelect",this.updateState),removeEventListener(o,"ionStyle",this.updateStyle),this.segmentEl=null)}componentWillLoad(){this.inheritedAttributes=Object.assign({},inheritAttributes$2(this.el,["aria-label"]))}get hasLabel(){return!!this.el.querySelector("ion-label")}get hasIcon(){return!!this.el.querySelector("ion-icon")}async setFocus(){const{nativeEl:o}=this;o!==void 0&&o.focus()}render(){const{checked:o,type:s,disabled:a,hasIcon:$,hasLabel:j,layout:_e,segmentEl:et}=this,tt=getIonMode$2(this),nt=()=>(et==null?void 0:et.color)!==void 0;return h(Host,{class:{[tt]:!0,"in-toolbar":hostContext("ion-toolbar",this.el),"in-toolbar-color":hostContext("ion-toolbar[color]",this.el),"in-segment":hostContext("ion-segment",this.el),"in-segment-color":nt(),"segment-button-has-label":j,"segment-button-has-icon":$,"segment-button-has-label-only":j&&!$,"segment-button-has-icon-only":$&&!j,"segment-button-disabled":a,"segment-button-checked":o,[`segment-button-layout-${_e}`]:!0,"ion-activatable":!0,"ion-activatable-instant":!0,"ion-focusable":!0}},h("button",Object.assign({"aria-selected":o?"true":"false",role:"tab",ref:it=>this.nativeEl=it,type:s,class:"button-native",part:"native",disabled:a},this.inheritedAttributes),h("span",{class:"button-inner"},h("slot",null)),tt==="md"&&h("ion-ripple-effect",null)),h("div",{part:"indicator",class:{"segment-button-indicator":!0,"segment-button-indicator-animated":!0}},h("div",{part:"indicator-background",class:"segment-button-indicator-background"})))}get el(){return this}static get watchers(){return{value:["valueChanged"]}}static get style(){return{ios:segmentButtonIosCss,md:segmentButtonMdCss}}},[33,"ion-segment-button",{disabled:[4],layout:[1],type:[1],value:[1],checked:[32],setFocus:[64]}]);function defineCustomElement$1$g(){if(typeof customElements>"u")return;["ion-segment-button","ion-ripple-effect"].forEach(s=>{switch(s){case"ion-segment-button":customElements.get(s)||customElements.define(s,SegmentButton);break;case"ion-ripple-effect":customElements.get(s)||defineCustomElement$1l();break}})}const defineCustomElement$k=defineCustomElement$1$g;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const selectPopoverIosCss=".sc-ion-select-popover-ios-h ion-list.sc-ion-select-popover-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-ios,ion-label.sc-ion-select-popover-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",selectPopoverMdCss=".sc-ion-select-popover-md-h ion-list.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-md,ion-label.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list.sc-ion-select-popover-md ion-radio.sc-ion-select-popover-md{opacity:0}ion-item.sc-ion-select-popover-md{--inner-border-width:0}.item-radio-checked.sc-ion-select-popover-md{--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.08);--background-focused:var(--ion-color-primary, #3880ff);--background-focused-opacity:0.2;--background-hover:var(--ion-color-primary, #3880ff);--background-hover-opacity:0.12}.item-checkbox-checked.sc-ion-select-popover-md{--background-activated:var(--ion-item-color, var(--ion-text-color, #000));--background-focused:var(--ion-item-color, var(--ion-text-color, #000));--background-hover:var(--ion-item-color, var(--ion-text-color, #000));--color:var(--ion-color-primary, #3880ff)}",SelectPopover=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.options=[]}onSelect(o){this.setChecked(o),this.callOptionHandler(o)}findOptionFromEvent(o){const{options:s}=this;return s.find(a=>a.value===o.target.value)}callOptionHandler(o){const s=this.findOptionFromEvent(o),a=this.getValues(o);s!=null&&s.handler&&safeCall(s.handler,a)}rbClick(o){this.callOptionHandler(o)}setChecked(o){const{multiple:s}=this,a=this.findOptionFromEvent(o);s&&a&&(a.checked=o.detail.checked)}getValues(o){const{multiple:s,options:a}=this;if(s)return a.filter(j=>j.checked).map(j=>j.value);const $=this.findOptionFromEvent(o);return $?$.value:void 0}renderOptions(o){const{multiple:s}=this;switch(s){case!0:return this.renderCheckboxOptions(o);default:return this.renderRadioOptions(o)}}renderCheckboxOptions(o){return o.map(s=>h("ion-item",{class:getClassMap(s.cssClass)},h("ion-checkbox",{slot:"start",value:s.value,disabled:s.disabled,checked:s.checked}),h("ion-label",null,s.text)))}renderRadioOptions(o){const s=o.filter(a=>a.checked).map(a=>a.value)[0];return h("ion-radio-group",{value:s},o.map(a=>h("ion-item",{class:getClassMap(a.cssClass)},h("ion-label",null,a.text),h("ion-radio",{value:a.value,disabled:a.disabled,onClick:$=>this.rbClick($)}))))}render(){const{header:o,message:s,options:a,subHeader:$}=this,j=$!==void 0||s!==void 0;return h(Host,{class:getIonMode$2(this)},h("ion-list",null,o!==void 0&&h("ion-list-header",null,o),j&&h("ion-item",null,h("ion-label",{class:"ion-text-wrap"},$!==void 0&&h("h3",null,$),s!==void 0&&h("p",null,s))),this.renderOptions(a)))}static get style(){return{ios:selectPopoverIosCss,md:selectPopoverMdCss}}},[34,"ion-select-popover",{header:[1],subHeader:[1,"sub-header"],message:[1],multiple:[4],options:[16]},[[0,"ionChange","onSelect"]]]);function defineCustomElement$j(){if(typeof customElements>"u")return;["ion-select-popover","ion-checkbox","ion-icon","ion-item","ion-label","ion-list","ion-list-header","ion-note","ion-radio","ion-radio-group","ion-ripple-effect"].forEach(s=>{switch(s){case"ion-select-popover":customElements.get(s)||customElements.define(s,SelectPopover);break;case"ion-checkbox":customElements.get(s)||defineCustomElement$15();break;case"ion-icon":customElements.get(s)||defineCustomElement$1n();break;case"ion-item":customElements.get(s)||defineCustomElement$$();break;case"ion-label":customElements.get(s)||defineCustomElement$_();break;case"ion-list":customElements.get(s)||defineCustomElement$I();break;case"ion-list-header":customElements.get(s)||defineCustomElement$G();break;case"ion-note":customElements.get(s)||defineCustomElement$10();break;case"ion-radio":customElements.get(s)||defineCustomElement$y();break;case"ion-radio-group":customElements.get(s)||defineCustomElement$w();break;case"ion-ripple-effect":customElements.get(s)||defineCustomElement$1l();break}})}/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const watchForOptions=(o,s,a)=>{if(typeof MutationObserver>"u")return;const $=new MutationObserver(j=>{a(getSelectedOption(j,s))});return $.observe(o,{childList:!0,subtree:!0}),$},getSelectedOption=(o,s)=>{let a;return o.forEach($=>{for(let j=0;j<$.addedNodes.length;j++)a=findCheckedOption($.addedNodes[j],s)||a}),a},findCheckedOption=(o,s)=>o.nodeType!==1?void 0:(o.tagName===s.toUpperCase()?[o]:Array.from(o.querySelectorAll(s))).find($=>$.value===o.value),selectIosCss=":host{--placeholder-color:currentColor;--placeholder-opacity:0.33;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);white-space:nowrap;overflow:hidden;z-index:2}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}:host(.in-item){position:static;max-width:45%}:host(.select-disabled){opacity:0.4;pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{position:relative}.select-text{-ms-flex:1;flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:inherit;overflow:hidden}.select-icon-inner{left:5px;top:50%;margin-top:-2px;position:absolute;width:0;height:0;border-top:5px solid;border-right:5px solid transparent;border-left:5px solid transparent;color:currentColor;pointer-events:none}[dir=rtl] .select-icon-inner,:host-context([dir=rtl]) .select-icon-inner{left:unset;right:unset;right:5px}:host{--padding-top:10px;--padding-end:10px;--padding-bottom:10px;--padding-start:20px}.select-icon{width:12px;height:18px;opacity:0.33}",selectMdCss=":host{--placeholder-color:currentColor;--placeholder-opacity:0.33;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);white-space:nowrap;overflow:hidden;z-index:2}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}:host(.in-item){position:static;max-width:45%}:host(.select-disabled){opacity:0.4;pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{position:relative}.select-text{-ms-flex:1;flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:inherit;overflow:hidden}.select-icon-inner{left:5px;top:50%;margin-top:-2px;position:absolute;width:0;height:0;border-top:5px solid;border-right:5px solid transparent;border-left:5px solid transparent;color:currentColor;pointer-events:none}[dir=rtl] .select-icon-inner,:host-context([dir=rtl]) .select-icon-inner{left:unset;right:unset;right:5px}:host{--padding-top:10px;--padding-end:0;--padding-bottom:10px;--padding-start:16px}.select-icon{width:19px;height:19px;-webkit-transition:-webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:0.55}:host-context(.item-label-stacked) .select-icon,:host-context(.item-label-floating:not(.item-fill-outline)) .select-icon,:host-context(.item-label-floating.item-fill-outline){-webkit-transform:translate3d(0,  -9px,  0);transform:translate3d(0,  -9px,  0)}:host-context(.item-has-focus) .select-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host-context(.item-has-focus.item-label-stacked) .select-icon,:host-context(.item-has-focus.item-label-floating:not(.item-fill-outline)) .select-icon{-webkit-transform:translate3d(0,  -9px,  0) rotate(180deg);transform:translate3d(0,  -9px,  0) rotate(180deg)}:host-context(ion-item.ion-focused) .select-icon,:host-context(.item-has-focus) .select-icon{color:var(--highlight-color-focused);opacity:1}",Select=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=createEvent(this,"ionChange",7),this.ionCancel=createEvent(this,"ionCancel",7),this.ionDismiss=createEvent(this,"ionDismiss",7),this.ionFocus=createEvent(this,"ionFocus",7),this.ionBlur=createEvent(this,"ionBlur",7),this.ionStyle=createEvent(this,"ionStyle",7),this.inputId=`ion-sel-${selectIds++}`,this.didInit=!1,this.isExpanded=!1,this.disabled=!1,this.cancelText="Cancel",this.okText="OK",this.name=this.inputId,this.multiple=!1,this.interface="alert",this.interfaceOptions={},this.onClick=o=>{this.setFocus(),this.open(o)},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()}}styleChanged(){this.emitStyle()}valueChanged(){this.emitStyle(),this.didInit&&this.ionChange.emit({value:this.value})}async connectedCallback(){this.updateOverlayOptions(),this.emitStyle(),this.mutationO=watchForOptions(this.el,"ion-select-option",async()=>{this.updateOverlayOptions(),forceUpdate(this)})}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0)}componentDidLoad(){this.didInit=!0}async open(o){if(this.disabled||this.isExpanded)return;this.isExpanded=!0;const s=this.overlay=await this.createOverlay(o);if(s.onDidDismiss().then(()=>{this.overlay=void 0,this.isExpanded=!1,this.ionDismiss.emit(),this.setFocus()}),await s.present(),this.interface==="popover"){let a=this.childOpts.map(j=>j.value).indexOf(this.value);a=a>-1?a:0;const $=s.querySelector(`.select-interface-option:nth-child(${a+1})`);if($){focusElement($);const j=$.querySelector("ion-radio, ion-checkbox");j&&j.focus()}}return s}createOverlay(o){let s=this.interface;return s==="action-sheet"&&this.multiple&&(console.warn(`Select interface cannot be "${s}" with a multi-value select. Using the "alert" interface instead.`),s="alert"),s==="popover"&&!o&&(console.warn(`Select interface cannot be a "${s}" without passing an event. Using the "alert" interface instead.`),s="alert"),s==="action-sheet"?this.openActionSheet():s==="popover"?this.openPopover(o):this.openAlert()}updateOverlayOptions(){const o=this.overlay;if(!o)return;const s=this.childOpts,a=this.value;switch(this.interface){case"action-sheet":o.buttons=this.createActionSheetButtons(s,a);break;case"popover":const $=o.querySelector("ion-select-popover");$&&($.options=this.createPopoverOptions(s,a));break;case"alert":const j=this.multiple?"checkbox":"radio";o.inputs=this.createAlertInputs(s,j,a);break}}createActionSheetButtons(o,s){const a=o.map($=>{const j=getOptionValue($),_e=Array.from($.classList).filter(tt=>tt!=="hydrated").join(" "),et=`${OPTION_CLASS} ${_e}`;return{role:isOptionSelected(s,j,this.compareWith)?"selected":"",text:$.textContent,cssClass:et,handler:()=>{this.value=j}}});return a.push({text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}}),a}createAlertInputs(o,s,a){return o.map(j=>{const _e=getOptionValue(j),et=Array.from(j.classList).filter(nt=>nt!=="hydrated").join(" "),tt=`${OPTION_CLASS} ${et}`;return{type:s,cssClass:tt,label:j.textContent||"",value:_e,checked:isOptionSelected(a,_e,this.compareWith),disabled:j.disabled}})}createPopoverOptions(o,s){return o.map($=>{const j=getOptionValue($),_e=Array.from($.classList).filter(tt=>tt!=="hydrated").join(" "),et=`${OPTION_CLASS} ${_e}`;return{text:$.textContent||"",cssClass:et,value:j,checked:isOptionSelected(s,j,this.compareWith),disabled:$.disabled,handler:tt=>{this.value=tt,this.multiple||this.close()}}})}async openPopover(o){const s=this.interfaceOptions,a=getIonMode$2(this),$=a!=="md",j=this.multiple,_e=this.value;let et=o,tt="auto";const nt=this.el.closest("ion-item");nt&&(nt.classList.contains("item-label-floating")||nt.classList.contains("item-label-stacked"))&&(et=Object.assign(Object.assign({},o),{detail:{ionShadowTarget:nt}}),tt="cover");const it=Object.assign(Object.assign({mode:a,event:et,alignment:"center",size:tt,showBackdrop:$},s),{component:"ion-select-popover",cssClass:["select-popover",s.cssClass],componentProps:{header:s.header,subHeader:s.subHeader,message:s.message,multiple:j,value:_e,options:this.createPopoverOptions(this.childOpts,_e)}});return popoverController.create(it)}async openActionSheet(){const o=getIonMode$2(this),s=this.interfaceOptions,a=Object.assign(Object.assign({mode:o},s),{buttons:this.createActionSheetButtons(this.childOpts,this.value),cssClass:["select-action-sheet",s.cssClass]});return actionSheetController$1.create(a)}async openAlert(){const o=this.getLabel(),s=o?o.textContent:null,a=this.interfaceOptions,$=this.multiple?"checkbox":"radio",j=getIonMode$2(this),_e=Object.assign(Object.assign({mode:j},a),{header:a.header?a.header:s,inputs:this.createAlertInputs(this.childOpts,$,this.value),buttons:[{text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}},{text:this.okText,handler:et=>{this.value=et}}],cssClass:["select-alert",a.cssClass,this.multiple?"multiple-select-alert":"single-select-alert"]});return alertController.create(_e)}close(){return this.overlay?this.overlay.dismiss():Promise.resolve(!1)}getLabel(){return findItemLabel(this.el)}hasValue(){return this.getText()!==""}get childOpts(){return Array.from(this.el.querySelectorAll("ion-select-option"))}getText(){const o=this.selectedText;return o!=null&&o!==""?o:generateText(this.childOpts,this.value,this.compareWith)}setFocus(){this.focusEl&&this.focusEl.focus()}emitStyle(){this.ionStyle.emit({interactive:!0,"interactive-disabled":this.disabled,select:!0,"select-disabled":this.disabled,"has-placeholder":this.placeholder!==void 0,"has-value":this.hasValue(),"has-focus":this.isExpanded})}render(){const{disabled:o,el:s,inputId:a,isExpanded:$,name:j,placeholder:_e,value:et}=this,tt=getIonMode$2(this),{labelText:nt,labelId:it}=getAriaLabel(s,a);renderHiddenInput(!0,s,j,parseValue(et),o);const rt=this.getText();let st=!1,ot=rt;ot===""&&_e!==void 0&&(ot=_e,st=!0);const at={"select-text":!0,"select-placeholder":st},lt=st?"placeholder":"text",ct=nt!==void 0?ot!==""?`${ot}, ${nt}`:nt:ot;return h(Host,{onClick:this.onClick,role:"button","aria-haspopup":"listbox","aria-disabled":o?"true":null,"aria-label":ct,class:{[tt]:!0,"in-item":hostContext("ion-item",s),"select-disabled":o,"select-expanded":$}},h("div",{"aria-hidden":"true",class:at,part:lt},ot),h("div",{class:"select-icon",role:"presentation",part:"icon"},h("div",{class:"select-icon-inner"})),h("label",{id:it},ct),h("button",{type:"button",disabled:o,id:a,"aria-labelledby":it,"aria-haspopup":"listbox","aria-expanded":`${$}`,onFocus:this.onFocus,onBlur:this.onBlur,ref:ht=>this.focusEl=ht}))}get el(){return this}static get watchers(){return{disabled:["styleChanged"],placeholder:["styleChanged"],isExpanded:["styleChanged"],value:["valueChanged"]}}static get style(){return{ios:selectIosCss,md:selectMdCss}}},[33,"ion-select",{disabled:[4],cancelText:[1,"cancel-text"],okText:[1,"ok-text"],placeholder:[1],name:[1],selectedText:[1,"selected-text"],multiple:[4],interface:[1],interfaceOptions:[8,"interface-options"],compareWith:[1,"compare-with"],value:[1032],isExpanded:[32],open:[64]}]),isOptionSelected=(o,s,a)=>o===void 0?!1:Array.isArray(o)?o.some($=>compareOptions($,s,a)):compareOptions(o,s,a),getOptionValue=o=>{const s=o.value;return s===void 0?o.textContent||"":s},parseValue=o=>{if(o!=null)return Array.isArray(o)?o.join(","):o.toString()},compareOptions=(o,s,a)=>typeof a=="function"?a(o,s):typeof a=="string"?o[a]===s[a]:Array.isArray(s)?s.includes(o):o===s,generateText=(o,s,a)=>s===void 0?"":Array.isArray(s)?s.map($=>textForValue(o,$,a)).filter($=>$!==null).join(", "):textForValue(o,s,a)||"",textForValue=(o,s,a)=>{const $=o.find(j=>compareOptions(s,getOptionValue(j),a));return $?$.textContent:null};let selectIds=0;const OPTION_CLASS="select-interface-option";function defineCustomElement$1$f(){if(typeof customElements>"u")return;["ion-select","ion-action-sheet","ion-alert","ion-backdrop","ion-checkbox","ion-icon","ion-item","ion-label","ion-list","ion-list-header","ion-note","ion-popover","ion-radio","ion-radio-group","ion-ripple-effect","ion-select-popover"].forEach(s=>{switch(s){case"ion-select":customElements.get(s)||customElements.define(s,Select);break;case"ion-action-sheet":customElements.get(s)||defineCustomElement$1k();break;case"ion-alert":customElements.get(s)||defineCustomElement$1i();break;case"ion-backdrop":customElements.get(s)||defineCustomElement$1m();break;case"ion-checkbox":customElements.get(s)||defineCustomElement$15();break;case"ion-icon":customElements.get(s)||defineCustomElement$1n();break;case"ion-item":customElements.get(s)||defineCustomElement$$();break;case"ion-label":customElements.get(s)||defineCustomElement$_();break;case"ion-list":customElements.get(s)||defineCustomElement$I();break;case"ion-list-header":customElements.get(s)||defineCustomElement$G();break;case"ion-note":customElements.get(s)||defineCustomElement$10();break;case"ion-popover":customElements.get(s)||defineCustomElement$X();break;case"ion-radio":customElements.get(s)||defineCustomElement$y();break;case"ion-radio-group":customElements.get(s)||defineCustomElement$w();break;case"ion-ripple-effect":customElements.get(s)||defineCustomElement$1l();break;case"ion-select-popover":customElements.get(s)||defineCustomElement$j();break}})}const defineCustomElement$i=defineCustomElement$1$f;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const selectOptionCss=":host{display:none}",SelectOption=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inputId=`ion-selopt-${selectOptionIds++}`,this.disabled=!1}render(){return h(Host,{role:"option",id:this.inputId,class:getIonMode$2(this)})}get el(){return this}static get style(){return selectOptionCss}},[1,"ion-select-option",{disabled:[4],value:[8]}]);let selectOptionIds=0;function defineCustomElement$1$e(){if(typeof customElements>"u")return;["ion-select-option"].forEach(s=>{switch(s){case"ion-select-option":customElements.get(s)||customElements.define(s,SelectOption);break}})}const defineCustomElement$h=defineCustomElement$1$e;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const skeletonTextCss=":host{--background:rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065);border-radius:var(--border-radius, inherit);display:block;width:100%;height:inherit;margin-top:4px;margin-bottom:4px;background:var(--background);line-height:10px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}span{display:inline-block}:host(.in-media){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;height:100%}:host(.skeleton-text-animated){position:relative;background:-webkit-gradient(linear, left top, right top, color-stop(8%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065)), color-stop(18%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.135)), color-stop(33%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065)));background:linear-gradient(to right, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065) 8%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.135) 18%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065) 33%);background-size:800px 104px;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:shimmer;animation-name:shimmer;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes shimmer{0%{background-position:-400px 0}100%{background-position:400px 0}}@keyframes shimmer{0%{background-position:-400px 0}100%{background-position:400px 0}}",SkeletonText$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.animated=!1}render(){const o=this.animated&&config$1.getBoolean("animated",!0),s=hostContext("ion-avatar",this.el)||hostContext("ion-thumbnail",this.el),a=getIonMode$2(this);return h(Host,{class:{[a]:!0,"skeleton-text-animated":o,"in-media":s}},h("span",null," "))}get el(){return this}static get style(){return skeletonTextCss}},[1,"ion-skeleton-text",{animated:[4]}]);function defineCustomElement$1$d(){if(typeof customElements>"u")return;["ion-skeleton-text"].forEach(s=>{switch(s){case"ion-skeleton-text":customElements.get(s)||customElements.define(s,SkeletonText$1);break}})}const defineCustomElement$g=defineCustomElement$1$d;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const slideCss="ion-slide{display:block;width:100%;height:100%}.slide-zoom{display:block;width:100%;text-align:center}.swiper-slide{display:-ms-flexbox;display:flex;position:relative;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;font-size:18px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}.swiper-slide img{width:auto;max-width:100%;height:auto;max-height:100%}",Slide=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost()}render(){const o=getIonMode$2(this);return h(Host,{class:{[o]:!0,"swiper-slide":!0,"swiper-zoom-container":!0}})}static get style(){return slideCss}},[0,"ion-slide"]);function defineCustomElement$1$c(){if(typeof customElements>"u")return;["ion-slide"].forEach(s=>{switch(s){case"ion-slide":customElements.get(s)||customElements.define(s,Slide);break}})}const defineCustomElement$f=defineCustomElement$1$c,slidesIosCss=`.swiper-container{margin:0 auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-container-no-flexbox .swiper-slide{float:left}.swiper-container-vertical{height:100%}.swiper-container-vertical>.swiper-wrapper{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;-o-transition-property:transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-container-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-container-multirow>.swiper-wrapper{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.swiper-container-free-mode>.swiper-wrapper{-webkit-transition-timing-function:ease-out;-o-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.swiper-slide{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;-o-transition-property:transform;transition-property:transform;transition-property:transform, -webkit-transform}.swiper-invisible-blank-slide{visibility:hidden}.swiper-container-autoheight,.swiper-container-autoheight .swiper-slide{height:auto}.swiper-container-autoheight .swiper-wrapper{-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;-o-transition-property:transform, height;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-container-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-container-3d .swiper-wrapper,.swiper-container-3d .swiper-slide,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top,.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top,.swiper-container-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-container-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:-webkit-linear-gradient(right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));background-image:-o-linear-gradient(right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-container-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:-webkit-linear-gradient(left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));background-image:-o-linear-gradient(left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-container-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:-webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));background-image:-o-linear-gradient(bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-container-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:-webkit-linear-gradient(top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));background-image:-o-linear-gradient(top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-container-wp8-horizontal,.swiper-container-wp8-horizontal>.swiper-wrapper{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-container-wp8-vertical,.swiper-container-wp8-vertical>.swiper-wrapper{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-button-prev,.swiper-button-next{position:absolute;top:50%;width:27px;height:44px;margin-top:-22px;z-index:10;cursor:pointer;background-size:27px 44px;background-position:center;background-repeat:no-repeat}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev,.swiper-container-rtl .swiper-button-next{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E");left:10px;right:auto}.swiper-button-next,.swiper-container-rtl .swiper-button-prev{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E");right:10px;left:auto}.swiper-button-prev.swiper-button-white,.swiper-container-rtl .swiper-button-next.swiper-button-white{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E")}.swiper-button-next.swiper-button-white,.swiper-container-rtl .swiper-button-prev.swiper-button-white{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E")}.swiper-button-prev.swiper-button-black,.swiper-container-rtl .swiper-button-next.swiper-button-black{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E")}.swiper-button-next.swiper-button-black,.swiper-container-rtl .swiper-button-prev.swiper-button-black{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E")}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;-o-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-container-horizontal>.swiper-pagination-bullets{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);-ms-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);-ms-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);-ms-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);-ms-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);-ms-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:8px;height:8px;display:inline-block;border-radius:100%;background:#000;opacity:0.2}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet-active{opacity:1;background:#007aff}.swiper-container-vertical>.swiper-pagination-bullets{right:10px;top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:6px 0;display:block}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;-o-transition:200ms transform, 200ms top;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 4px}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;-o-transition:200ms transform, 200ms left;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-container-horizontal.swiper-container-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;-o-transition:200ms transform, 200ms right;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-progressbar{background:rgba(0, 0, 0, 0.25);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:#007aff;position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top}.swiper-container-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;-ms-transform-origin:right top;transform-origin:right top}.swiper-container-horizontal>.swiper-pagination-progressbar,.swiper-container-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:4px;left:0;top:0}.swiper-container-vertical>.swiper-pagination-progressbar,.swiper-container-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:4px;height:100%;left:0;top:0}.swiper-pagination-white .swiper-pagination-bullet-active{background:#ffffff}.swiper-pagination-progressbar.swiper-pagination-white{background:rgba(255, 255, 255, 0.25)}.swiper-pagination-progressbar.swiper-pagination-white .swiper-pagination-progressbar-fill{background:#ffffff}.swiper-pagination-black .swiper-pagination-bullet-active{background:#000000}.swiper-pagination-progressbar.swiper-pagination-black{background:rgba(0, 0, 0, 0.25)}.swiper-pagination-progressbar.swiper-pagination-black .swiper-pagination-progressbar-fill{background:#000000}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0, 0, 0, 0.1)}.swiper-container-horizontal>.swiper-scrollbar{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%}.swiper-container-vertical>.swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0, 0, 0, 0.5);border-radius:10px;left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;text-align:center}.swiper-zoom-container>img,.swiper-zoom-container>svg,.swiper-zoom-container>canvas{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}.swiper-slide-zoomed{cursor:move}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;-ms-transform-origin:50%;transform-origin:50%;-webkit-animation:swiper-preloader-spin 1s steps(12, end) infinite;animation:swiper-preloader-spin 1s steps(12, end) infinite}.swiper-lazy-preloader:after{display:block;content:"";width:100%;height:100%;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%236c6c6c'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");background-position:50%;background-size:100%;background-repeat:no-repeat}.swiper-lazy-preloader-white:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%23fff'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}@-webkit-keyframes swiper-preloader-spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.swiper-container .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-container-fade.swiper-container-free-mode .swiper-slide{-webkit-transition-timing-function:ease-out;-o-transition-timing-function:ease-out;transition-timing-function:ease-out}.swiper-container-fade .swiper-slide{pointer-events:none;-webkit-transition-property:opacity;-o-transition-property:opacity;transition-property:opacity}.swiper-container-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-fade .swiper-slide-active,.swiper-container-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube{overflow:visible}.swiper-container-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;width:100%;height:100%}.swiper-container-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-cube.swiper-container-rtl .swiper-slide{-webkit-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-next,.swiper-container-cube .swiper-slide-prev,.swiper-container-cube .swiper-slide-next+.swiper-slide{pointer-events:auto;visibility:visible}.swiper-container-cube .swiper-slide-shadow-top,.swiper-container-cube .swiper-slide-shadow-bottom,.swiper-container-cube .swiper-slide-shadow-left,.swiper-container-cube .swiper-slide-shadow-right{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-container-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;background:#000;opacity:0.6;-webkit-filter:blur(50px);filter:blur(50px);z-index:0}.swiper-container-flip{overflow:visible}.swiper-container-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-container-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-flip .swiper-slide-active,.swiper-container-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-flip .swiper-slide-shadow-top,.swiper-container-flip .swiper-slide-shadow-bottom,.swiper-container-flip .swiper-slide-shadow-left,.swiper-container-flip .swiper-slide-shadow-right{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-container-coverflow .swiper-wrapper{-ms-perspective:1200px}ion-slides{display:block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swiper-pagination-bullet{background:var(--bullet-background)}.swiper-pagination-bullet-active{background:var(--bullet-background-active)}.swiper-pagination-progressbar{background:var(--progress-bar-background)}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--progress-bar-background-active)}.swiper-scrollbar{background:var(--scroll-bar-background)}.swiper-scrollbar-drag{background:var(--scroll-bar-background-active)}.slides-ios{--bullet-background:var(--ion-color-step-200, #cccccc);--bullet-background-active:var(--ion-color-primary, #3880ff);--progress-bar-background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.25);--progress-bar-background-active:var(--ion-color-primary-shade, #3171e0);--scroll-bar-background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1);--scroll-bar-background-active:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.5)}`,slidesMdCss=`.swiper-container{margin:0 auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-container-no-flexbox .swiper-slide{float:left}.swiper-container-vertical{height:100%}.swiper-container-vertical>.swiper-wrapper{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;-o-transition-property:transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-container-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-container-multirow>.swiper-wrapper{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.swiper-container-free-mode>.swiper-wrapper{-webkit-transition-timing-function:ease-out;-o-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.swiper-slide{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;-o-transition-property:transform;transition-property:transform;transition-property:transform, -webkit-transform}.swiper-invisible-blank-slide{visibility:hidden}.swiper-container-autoheight,.swiper-container-autoheight .swiper-slide{height:auto}.swiper-container-autoheight .swiper-wrapper{-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;-o-transition-property:transform, height;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-container-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-container-3d .swiper-wrapper,.swiper-container-3d .swiper-slide,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top,.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top,.swiper-container-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-container-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:-webkit-linear-gradient(right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));background-image:-o-linear-gradient(right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-container-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:-webkit-linear-gradient(left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));background-image:-o-linear-gradient(left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-container-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:-webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));background-image:-o-linear-gradient(bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-container-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:-webkit-linear-gradient(top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));background-image:-o-linear-gradient(top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-container-wp8-horizontal,.swiper-container-wp8-horizontal>.swiper-wrapper{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-container-wp8-vertical,.swiper-container-wp8-vertical>.swiper-wrapper{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-button-prev,.swiper-button-next{position:absolute;top:50%;width:27px;height:44px;margin-top:-22px;z-index:10;cursor:pointer;background-size:27px 44px;background-position:center;background-repeat:no-repeat}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev,.swiper-container-rtl .swiper-button-next{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E");left:10px;right:auto}.swiper-button-next,.swiper-container-rtl .swiper-button-prev{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E");right:10px;left:auto}.swiper-button-prev.swiper-button-white,.swiper-container-rtl .swiper-button-next.swiper-button-white{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E")}.swiper-button-next.swiper-button-white,.swiper-container-rtl .swiper-button-prev.swiper-button-white{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E")}.swiper-button-prev.swiper-button-black,.swiper-container-rtl .swiper-button-next.swiper-button-black{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E")}.swiper-button-next.swiper-button-black,.swiper-container-rtl .swiper-button-prev.swiper-button-black{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E")}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;-o-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-container-horizontal>.swiper-pagination-bullets{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);-ms-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);-ms-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);-ms-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);-ms-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);-ms-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:8px;height:8px;display:inline-block;border-radius:100%;background:#000;opacity:0.2}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet-active{opacity:1;background:#007aff}.swiper-container-vertical>.swiper-pagination-bullets{right:10px;top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:6px 0;display:block}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;-o-transition:200ms transform, 200ms top;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 4px}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;-o-transition:200ms transform, 200ms left;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-container-horizontal.swiper-container-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;-o-transition:200ms transform, 200ms right;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-progressbar{background:rgba(0, 0, 0, 0.25);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:#007aff;position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top}.swiper-container-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;-ms-transform-origin:right top;transform-origin:right top}.swiper-container-horizontal>.swiper-pagination-progressbar,.swiper-container-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:4px;left:0;top:0}.swiper-container-vertical>.swiper-pagination-progressbar,.swiper-container-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:4px;height:100%;left:0;top:0}.swiper-pagination-white .swiper-pagination-bullet-active{background:#ffffff}.swiper-pagination-progressbar.swiper-pagination-white{background:rgba(255, 255, 255, 0.25)}.swiper-pagination-progressbar.swiper-pagination-white .swiper-pagination-progressbar-fill{background:#ffffff}.swiper-pagination-black .swiper-pagination-bullet-active{background:#000000}.swiper-pagination-progressbar.swiper-pagination-black{background:rgba(0, 0, 0, 0.25)}.swiper-pagination-progressbar.swiper-pagination-black .swiper-pagination-progressbar-fill{background:#000000}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0, 0, 0, 0.1)}.swiper-container-horizontal>.swiper-scrollbar{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%}.swiper-container-vertical>.swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0, 0, 0, 0.5);border-radius:10px;left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;text-align:center}.swiper-zoom-container>img,.swiper-zoom-container>svg,.swiper-zoom-container>canvas{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}.swiper-slide-zoomed{cursor:move}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;-ms-transform-origin:50%;transform-origin:50%;-webkit-animation:swiper-preloader-spin 1s steps(12, end) infinite;animation:swiper-preloader-spin 1s steps(12, end) infinite}.swiper-lazy-preloader:after{display:block;content:"";width:100%;height:100%;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%236c6c6c'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");background-position:50%;background-size:100%;background-repeat:no-repeat}.swiper-lazy-preloader-white:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%23fff'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}@-webkit-keyframes swiper-preloader-spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.swiper-container .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-container-fade.swiper-container-free-mode .swiper-slide{-webkit-transition-timing-function:ease-out;-o-transition-timing-function:ease-out;transition-timing-function:ease-out}.swiper-container-fade .swiper-slide{pointer-events:none;-webkit-transition-property:opacity;-o-transition-property:opacity;transition-property:opacity}.swiper-container-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-fade .swiper-slide-active,.swiper-container-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube{overflow:visible}.swiper-container-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;width:100%;height:100%}.swiper-container-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-cube.swiper-container-rtl .swiper-slide{-webkit-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-next,.swiper-container-cube .swiper-slide-prev,.swiper-container-cube .swiper-slide-next+.swiper-slide{pointer-events:auto;visibility:visible}.swiper-container-cube .swiper-slide-shadow-top,.swiper-container-cube .swiper-slide-shadow-bottom,.swiper-container-cube .swiper-slide-shadow-left,.swiper-container-cube .swiper-slide-shadow-right{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-container-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;background:#000;opacity:0.6;-webkit-filter:blur(50px);filter:blur(50px);z-index:0}.swiper-container-flip{overflow:visible}.swiper-container-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-container-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-flip .swiper-slide-active,.swiper-container-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-flip .swiper-slide-shadow-top,.swiper-container-flip .swiper-slide-shadow-bottom,.swiper-container-flip .swiper-slide-shadow-left,.swiper-container-flip .swiper-slide-shadow-right{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-container-coverflow .swiper-wrapper{-ms-perspective:1200px}ion-slides{display:block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swiper-pagination-bullet{background:var(--bullet-background)}.swiper-pagination-bullet-active{background:var(--bullet-background-active)}.swiper-pagination-progressbar{background:var(--progress-bar-background)}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--progress-bar-background-active)}.swiper-scrollbar{background:var(--scroll-bar-background)}.swiper-scrollbar-drag{background:var(--scroll-bar-background-active)}.slides-md{--bullet-background:var(--ion-color-step-200, #cccccc);--bullet-background-active:var(--ion-color-primary, #3880ff);--progress-bar-background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.25);--progress-bar-background-active:var(--ion-color-primary-shade, #3171e0);--scroll-bar-background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1);--scroll-bar-background-active:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.5)}`,Slides=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.ionSlidesDidLoad=createEvent(this,"ionSlidesDidLoad",7),this.ionSlideTap=createEvent(this,"ionSlideTap",7),this.ionSlideDoubleTap=createEvent(this,"ionSlideDoubleTap",7),this.ionSlideWillChange=createEvent(this,"ionSlideWillChange",7),this.ionSlideDidChange=createEvent(this,"ionSlideDidChange",7),this.ionSlideNextStart=createEvent(this,"ionSlideNextStart",7),this.ionSlidePrevStart=createEvent(this,"ionSlidePrevStart",7),this.ionSlideNextEnd=createEvent(this,"ionSlideNextEnd",7),this.ionSlidePrevEnd=createEvent(this,"ionSlidePrevEnd",7),this.ionSlideTransitionStart=createEvent(this,"ionSlideTransitionStart",7),this.ionSlideTransitionEnd=createEvent(this,"ionSlideTransitionEnd",7),this.ionSlideDrag=createEvent(this,"ionSlideDrag",7),this.ionSlideReachStart=createEvent(this,"ionSlideReachStart",7),this.ionSlideReachEnd=createEvent(this,"ionSlideReachEnd",7),this.ionSlideTouchStart=createEvent(this,"ionSlideTouchStart",7),this.ionSlideTouchEnd=createEvent(this,"ionSlideTouchEnd",7),this.swiperReady=!1,this.swiper=new Promise(o=>{this.readySwiper=o}),this.options={},this.pager=!1,this.scrollbar=!1}async optionsChanged(){if(this.swiperReady){const o=await this.getSwiper();o!=null&&o.params&&(Object.assign(o.params,this.options),await this.update())}}componentWillLoad(){console.warn("[Deprecation Warning]: ion-slides has been deprecated and will be removed in Ionic Framework v7.0. We recommend using the framework-specific integrations that Swiper.js provides, allowing for faster bug fixes and an improved developer experience. See https://ionicframework.com/docs/api/slides for more information including migration steps.")}connectedCallback(){(this.mutationO=new MutationObserver(()=>{this.swiperReady&&this.update()})).observe(this.el,{childList:!0,subtree:!0}),componentOnReady(this.el,()=>{this.initSwiper()})}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0)}async update(){const[o]=await Promise.all([this.getSwiper(),waitForSlides(this.el)]);o.update()}async updateAutoHeight(o){(await this.getSwiper()).updateAutoHeight(o)}async slideTo(o,s,a){(await this.getSwiper()).slideTo(o,s,a)}async slideNext(o,s){(await this.getSwiper()).slideNext(o,s)}async slidePrev(o,s){(await this.getSwiper()).slidePrev(o,s)}async getActiveIndex(){return(await this.getSwiper()).activeIndex}async getPreviousIndex(){return(await this.getSwiper()).previousIndex}async length(){return(await this.getSwiper()).slides.length}async isEnd(){return(await this.getSwiper()).isEnd}async isBeginning(){return(await this.getSwiper()).isBeginning}async startAutoplay(){const o=await this.getSwiper();o.autoplay&&o.autoplay.start()}async stopAutoplay(){const o=await this.getSwiper();o.autoplay&&o.autoplay.stop()}async lockSwipeToNext(o){const s=await this.getSwiper();s.allowSlideNext=!o}async lockSwipeToPrev(o){const s=await this.getSwiper();s.allowSlidePrev=!o}async lockSwipes(o){const s=await this.getSwiper();s.allowSlideNext=!o,s.allowSlidePrev=!o,s.allowTouchMove=!o}async getSwiper(){return this.swiper}async initSwiper(){const o=this.normalizeOptions(),{Swiper:s}=await __vitePreload(()=>import("./swiper.bundle-CsyzVMye.js"),[]);await waitForSlides(this.el);const a=new s(this.el,o);this.swiperReady=!0,this.readySwiper(a)}normalizeOptions(){const o={effect:void 0,direction:"horizontal",initialSlide:0,loop:!1,parallax:!1,slidesPerView:1,spaceBetween:0,speed:300,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,touchEventsTarget:"container",autoplay:!1,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,zoom:{maxRatio:3,minRatio:1,toggle:!1},touchRatio:1,touchAngle:45,simulateTouch:!0,touchStartPreventDefault:!1,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,threshold:0,touchMoveStopPropagation:!0,touchReleaseOnEdges:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loopAdditionalSlides:0,noSwiping:!0,runCallbacksOnInit:!0,coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flipEffect:{slideShadows:!0,limitRotation:!0},cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fadeEffect:{crossFade:!1},a11y:{prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide"}};this.pager&&(o.pagination={el:this.paginationEl,type:"bullets",clickable:!1,hideOnClick:!1}),this.scrollbar&&(o.scrollbar={el:this.scrollbarEl,hide:!0});const s={on:{init:()=>{setTimeout(()=>{this.ionSlidesDidLoad.emit(),this.update()},20)},slideChangeTransitionStart:this.ionSlideWillChange.emit,slideChangeTransitionEnd:this.ionSlideDidChange.emit,slideNextTransitionStart:this.ionSlideNextStart.emit,slidePrevTransitionStart:this.ionSlidePrevStart.emit,slideNextTransitionEnd:this.ionSlideNextEnd.emit,slidePrevTransitionEnd:this.ionSlidePrevEnd.emit,transitionStart:this.ionSlideTransitionStart.emit,transitionEnd:this.ionSlideTransitionEnd.emit,sliderMove:this.ionSlideDrag.emit,reachBeginning:this.ionSlideReachStart.emit,reachEnd:this.ionSlideReachEnd.emit,touchStart:this.ionSlideTouchStart.emit,touchEnd:this.ionSlideTouchEnd.emit,tap:this.ionSlideTap.emit,doubleTap:this.ionSlideDoubleTap.emit}},a=this.options&&this.options.on?this.options.on:{},$={on:Object.assign(Object.assign({},a),s.on)};return Object.assign(Object.assign(Object.assign({},o),this.options),$)}render(){const o=getIonMode$2(this);return h(Host,{class:{[`${o}`]:!0,[`slides-${o}`]:!0,"swiper-container":!0}},h("div",{class:"swiper-wrapper"},h("slot",null)),this.pager&&h("div",{class:"swiper-pagination",ref:s=>this.paginationEl=s}),this.scrollbar&&h("div",{class:"swiper-scrollbar",ref:s=>this.scrollbarEl=s}))}static get assetsDirs(){return["swiper"]}get el(){return this}static get watchers(){return{options:["optionsChanged"]}}static get style(){return{ios:slidesIosCss,md:slidesMdCss}}},[36,"ion-slides",{options:[8],pager:[4],scrollbar:[4],update:[64],updateAutoHeight:[64],slideTo:[64],slideNext:[64],slidePrev:[64],getActiveIndex:[64],getPreviousIndex:[64],length:[64],isEnd:[64],isBeginning:[64],startAutoplay:[64],stopAutoplay:[64],lockSwipeToNext:[64],lockSwipeToPrev:[64],lockSwipes:[64],getSwiper:[64]}]),waitForSlides=o=>Promise.all(Array.from(o.querySelectorAll("ion-slide")).map(s=>new Promise(a=>componentOnReady(s,a))));function defineCustomElement$1$b(){if(typeof customElements>"u")return;["ion-slides"].forEach(s=>{switch(s){case"ion-slides":customElements.get(s)||customElements.define(s,Slides);break}})}const defineCustomElement$e=defineCustomElement$1$b;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const defineCustomElement$d=defineCustomElement$P;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const splitPaneIosCss=":host{--side-width:100%;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;contain:strict}::slotted(ion-menu.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width);min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.split-pane-visible) ::slotted(.split-pane-side),:host(.split-pane-visible) ::slotted(.split-pane-main){left:0;right:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none !important;box-shadow:none !important;z-index:0}:host(.split-pane-visible) ::slotted(.split-pane-main){-ms-flex:1;flex:1}:host(.split-pane-visible) ::slotted(.split-pane-side:not(ion-menu)),:host(.split-pane-visible) ::slotted(ion-menu.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}::slotted(.split-pane-side:not(ion-menu)){display:none}:host(.split-pane-visible) ::slotted(.split-pane-side){-ms-flex-order:-1;order:-1}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host{--border:0.55px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--side-min-width:270px;--side-max-width:28%}:host(.split-pane-visible) ::slotted(.split-pane-side){border-left:0;border-right:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.split-pane-visible) ::slotted(.split-pane-side){border-left:unset;border-right:unset;-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border)}}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){border-left:var(--border);border-right:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){border-left:unset;border-right:unset;-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0}}",splitPaneMdCss=":host{--side-width:100%;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;contain:strict}::slotted(ion-menu.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width);min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.split-pane-visible) ::slotted(.split-pane-side),:host(.split-pane-visible) ::slotted(.split-pane-main){left:0;right:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none !important;box-shadow:none !important;z-index:0}:host(.split-pane-visible) ::slotted(.split-pane-main){-ms-flex:1;flex:1}:host(.split-pane-visible) ::slotted(.split-pane-side:not(ion-menu)),:host(.split-pane-visible) ::slotted(ion-menu.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}::slotted(.split-pane-side:not(ion-menu)){display:none}:host(.split-pane-visible) ::slotted(.split-pane-side){-ms-flex-order:-1;order:-1}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host{--border:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--side-min-width:270px;--side-max-width:28%}:host(.split-pane-visible) ::slotted(.split-pane-side){border-left:0;border-right:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.split-pane-visible) ::slotted(.split-pane-side){border-left:unset;border-right:unset;-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border)}}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){border-left:var(--border);border-right:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){border-left:unset;border-right:unset;-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0}}",SPLIT_PANE_MAIN="split-pane-main",SPLIT_PANE_SIDE="split-pane-side",QUERY={xs:"(min-width: 0px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",never:""},SplitPane=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionSplitPaneVisible=createEvent(this,"ionSplitPaneVisible",7),this.visible=!1,this.disabled=!1,this.when=QUERY.lg}visibleChanged(o){const s={visible:o,isPane:this.isPane.bind(this)};this.ionSplitPaneVisible.emit(s)}async connectedCallback(){typeof customElements<"u"&&customElements!=null&&await customElements.whenDefined("ion-split-pane"),this.styleChildren(),this.updateState()}disconnectedCallback(){this.rmL&&(this.rmL(),this.rmL=void 0)}updateState(){if(this.rmL&&(this.rmL(),this.rmL=void 0),this.disabled){this.visible=!1;return}const o=this.when;if(typeof o=="boolean"){this.visible=o;return}const s=QUERY[o]||o;if(s.length===0){this.visible=!1;return}if(window.matchMedia){const a=j=>{this.visible=j.matches},$=window.matchMedia(s);$.addListener(a),this.rmL=()=>$.removeListener(a),this.visible=$.matches}}isPane(o){return this.visible?o.parentElement===this.el&&o.classList.contains(SPLIT_PANE_SIDE):!1}styleChildren(){const o=this.contentId,s=this.el.children,a=this.el.childElementCount;let $=!1;for(let j=0;j<a;j++){const _e=s[j],et=o!==void 0&&_e.id===o;if(et){if($){console.warn("split pane cannot have more than one main node");return}$=!0}setPaneClass(_e,et)}$||console.warn("split pane does not have a specified main node")}render(){const o=getIonMode$2(this);return h(Host,{class:{[o]:!0,[`split-pane-${o}`]:!0,"split-pane-visible":this.visible}},h("slot",null))}get el(){return this}static get watchers(){return{visible:["visibleChanged"],disabled:["updateState"],when:["updateState"]}}static get style(){return{ios:splitPaneIosCss,md:splitPaneMdCss}}},[33,"ion-split-pane",{contentId:[513,"content-id"],disabled:[4],when:[8],visible:[32]}]),setPaneClass=(o,s)=>{let a,$;s?(a=SPLIT_PANE_MAIN,$=SPLIT_PANE_SIDE):(a=SPLIT_PANE_SIDE,$=SPLIT_PANE_MAIN);const j=o.classList;j.add(a),j.remove($)};function defineCustomElement$1$a(){if(typeof customElements>"u")return;["ion-split-pane"].forEach(s=>{switch(s){case"ion-split-pane":customElements.get(s)||customElements.define(s,SplitPane);break}})}const defineCustomElement$c=defineCustomElement$1$a;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const tabBarIosCss=":host{padding-left:var(--ion-safe-area-left);padding-right:var(--ion-safe-area-right);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-bottom:var(--ion-safe-area-bottom, 0);border-top:var(--border);background:var(--background);color:var(--color);text-align:center;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-safe-area-left);padding-inline-start:var(--ion-safe-area-left);-webkit-padding-end:var(--ion-safe-area-right);padding-inline-end:var(--ion-safe-area-right)}}:host(.ion-color) ::slotted(ion-tab-button){--background-focused:var(--ion-color-shade);--color-selected:var(--ion-color-contrast)}:host(.ion-color) ::slotted(.tab-selected){color:var(--ion-color-contrast)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){color:rgba(var(--ion-color-contrast-rgb), 0.7)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){background:var(--ion-color-base)}:host(.ion-color) ::slotted(ion-tab-button.ion-focused),:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:var(--background-focused)}:host(.tab-bar-translucent) ::slotted(ion-tab-button){background:transparent}:host([slot=top]){padding-top:var(--ion-safe-area-top, 0);padding-bottom:0;border-top:0;border-bottom:var(--border)}:host(.tab-bar-hidden){display:none !important}:host{--background:var(--ion-tab-bar-background, var(--ion-color-step-50, #f7f7f7));--background-focused:var(--ion-tab-bar-background-focused, #e0e0e0);--border:0.55px solid var(--ion-tab-bar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.2))));--color:var(--ion-tab-bar-color, var(--ion-color-step-400, #999999));--color-selected:var(--ion-tab-bar-color-selected, var(--ion-color-primary, #3880ff));height:50px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.tab-bar-translucent){--background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(210%) blur(20px);backdrop-filter:saturate(210%) blur(20px)}:host(.ion-color.tab-bar-translucent){background:rgba(var(--ion-color-base-rgb), 0.8)}:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.6)}}",tabBarMdCss=":host{padding-left:var(--ion-safe-area-left);padding-right:var(--ion-safe-area-right);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-bottom:var(--ion-safe-area-bottom, 0);border-top:var(--border);background:var(--background);color:var(--color);text-align:center;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-safe-area-left);padding-inline-start:var(--ion-safe-area-left);-webkit-padding-end:var(--ion-safe-area-right);padding-inline-end:var(--ion-safe-area-right)}}:host(.ion-color) ::slotted(ion-tab-button){--background-focused:var(--ion-color-shade);--color-selected:var(--ion-color-contrast)}:host(.ion-color) ::slotted(.tab-selected){color:var(--ion-color-contrast)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){color:rgba(var(--ion-color-contrast-rgb), 0.7)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){background:var(--ion-color-base)}:host(.ion-color) ::slotted(ion-tab-button.ion-focused),:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:var(--background-focused)}:host(.tab-bar-translucent) ::slotted(ion-tab-button){background:transparent}:host([slot=top]){padding-top:var(--ion-safe-area-top, 0);padding-bottom:0;border-top:0;border-bottom:var(--border)}:host(.tab-bar-hidden){display:none !important}:host{--background:var(--ion-tab-bar-background, var(--ion-background-color, #fff));--background-focused:var(--ion-tab-bar-background-focused, #e0e0e0);--border:1px solid var(--ion-tab-bar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.07))));--color:var(--ion-tab-bar-color, var(--ion-color-step-600, #666666));--color-selected:var(--ion-tab-bar-color-selected, var(--ion-color-primary, #3880ff));height:56px}",TabBar=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionTabBarChanged=createEvent(this,"ionTabBarChanged",7),this.keyboardCtrl=null,this.keyboardVisible=!1,this.translucent=!1}selectedTabChanged(){this.selectedTab!==void 0&&this.ionTabBarChanged.emit({tab:this.selectedTab})}componentWillLoad(){this.selectedTabChanged()}connectedCallback(){this.keyboardCtrl=createKeyboardController(o=>{this.keyboardVisible=o})}disconnectedCallback(){this.keyboardCtrl&&this.keyboardCtrl.destroy()}render(){const{color:o,translucent:s,keyboardVisible:a}=this,$=getIonMode$2(this),j=a&&this.el.getAttribute("slot")!=="top";return h(Host,{role:"tablist","aria-hidden":j?"true":null,class:createColorClasses$1(o,{[$]:!0,"tab-bar-translucent":s,"tab-bar-hidden":j})},h("slot",null))}get el(){return this}static get watchers(){return{selectedTab:["selectedTabChanged"]}}static get style(){return{ios:tabBarIosCss,md:tabBarMdCss}}},[33,"ion-tab-bar",{color:[513],selectedTab:[1,"selected-tab"],translucent:[4],keyboardVisible:[32]}]);function defineCustomElement$1$9(){if(typeof customElements>"u")return;["ion-tab-bar"].forEach(s=>{switch(s){case"ion-tab-bar":customElements.get(s)||customElements.define(s,TabBar);break}})}const defineCustomElement$b=defineCustomElement$1$9;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const tabButtonIosCss=':host{--ripple-color:var(--color-selected);--background-focused-opacity:1;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;outline:none;background:var(--background);color:var(--color)}.button-native{border-radius:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;border:0;outline:none;background:transparent;text-decoration:none;cursor:pointer;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-drag:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;z-index:1}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){a:hover{color:var(--color-selected)}}:host(.tab-selected){color:var(--color-selected)}:host(.tab-hidden){display:none !important}:host(.tab-disabled){pointer-events:none;opacity:0.4}::slotted(ion-label),::slotted(ion-icon){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex-order:0;order:0}::slotted(ion-icon){-ms-flex-order:-1;order:-1;height:1em}:host(.tab-has-label-only) ::slotted(ion-label){white-space:normal}::slotted(ion-badge){-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;z-index:1}:host(.tab-layout-icon-start){-ms-flex-direction:row;flex-direction:row}:host(.tab-layout-icon-end){-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.tab-layout-icon-bottom){-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.tab-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.tab-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color)}:host{--padding-top:0;--padding-end:2px;--padding-bottom:0;--padding-start:2px;max-width:240px;font-size:10px}::slotted(ion-badge){padding-left:6px;padding-right:6px;padding-top:1px;padding-bottom:1px;left:calc(50% + 6px);top:4px;height:auto;font-size:12px;line-height:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-badge){padding-left:unset;padding-right:unset;-webkit-padding-start:6px;padding-inline-start:6px;-webkit-padding-end:6px;padding-inline-end:6px}}[dir=rtl] ::slotted(ion-badge),:host-context([dir=rtl]) ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 6px)}::slotted(ion-icon){margin-top:2px;margin-bottom:2px;font-size:30px}::slotted(ion-icon::before){vertical-align:top}::slotted(ion-label){margin-top:0;margin-bottom:1px;min-height:11px;font-weight:500}:host(.tab-has-label-only) ::slotted(ion-label){margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:12px;font-size:14px;line-height:1.1}:host(.tab-layout-icon-end) ::slotted(ion-label),:host(.tab-layout-icon-start) ::slotted(ion-label),:host(.tab-layout-icon-hide) ::slotted(ion-label){margin-top:2px;margin-bottom:2px;font-size:14px;line-height:1.1}:host(.tab-layout-icon-end) ::slotted(ion-icon),:host(.tab-layout-icon-start) ::slotted(ion-icon){min-width:24px;height:26px;margin-top:2px;margin-bottom:1px;font-size:24px}:host(.tab-layout-icon-bottom) ::slotted(ion-badge){left:calc(50% + 12px)}:host-context([dir=rtl]):host(.tab-layout-icon-bottom) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-bottom ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 12px)}:host(.tab-layout-icon-bottom) ::slotted(ion-icon){margin-top:0;margin-bottom:1px}:host(.tab-layout-icon-bottom) ::slotted(ion-label){margin-top:4px}:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){left:calc(50% + 35px);top:10px}:host-context([dir=rtl]):host(.tab-layout-icon-start) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-start ::slotted(ion-badge),:host-context([dir=rtl]):host(.tab-layout-icon-end) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-end ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 35px)}:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){left:calc(50% + 30px);top:10px}:host-context([dir=rtl]):host(.tab-layout-icon-hide) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-hide ::slotted(ion-badge),:host-context([dir=rtl]):host(.tab-has-label-only) ::slotted(ion-badge),:host-context([dir=rtl]).tab-has-label-only ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 30px)}:host(.tab-layout-label-hide) ::slotted(ion-badge),:host(.tab-has-icon-only) ::slotted(ion-badge){top:10px}:host(.tab-layout-label-hide) ::slotted(ion-icon){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}',tabButtonMdCss=':host{--ripple-color:var(--color-selected);--background-focused-opacity:1;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;outline:none;background:var(--background);color:var(--color)}.button-native{border-radius:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;border:0;outline:none;background:transparent;text-decoration:none;cursor:pointer;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-drag:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;z-index:1}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){a:hover{color:var(--color-selected)}}:host(.tab-selected){color:var(--color-selected)}:host(.tab-hidden){display:none !important}:host(.tab-disabled){pointer-events:none;opacity:0.4}::slotted(ion-label),::slotted(ion-icon){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex-order:0;order:0}::slotted(ion-icon){-ms-flex-order:-1;order:-1;height:1em}:host(.tab-has-label-only) ::slotted(ion-label){white-space:normal}::slotted(ion-badge){-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;z-index:1}:host(.tab-layout-icon-start){-ms-flex-direction:row;flex-direction:row}:host(.tab-layout-icon-end){-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.tab-layout-icon-bottom){-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.tab-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.tab-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color)}:host{--padding-top:0;--padding-end:12px;--padding-bottom:0;--padding-start:12px;max-width:168px;font-size:12px;font-weight:normal;letter-spacing:0.03em}::slotted(ion-label){margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;text-transform:none}::slotted(ion-icon){margin-left:0;margin-right:0;margin-top:16px;margin-bottom:16px;-webkit-transform-origin:center center;transform-origin:center center;font-size:22px}[dir=rtl] ::slotted(ion-icon),:host-context([dir=rtl]) ::slotted(ion-icon){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}::slotted(ion-badge){border-radius:8px;padding-left:2px;padding-right:2px;padding-top:3px;padding-bottom:2px;left:calc(50% + 6px);top:8px;min-width:12px;font-size:8px;font-weight:normal}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(ion-badge){padding-left:unset;padding-right:unset;-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:2px;padding-inline-end:2px}}[dir=rtl] ::slotted(ion-badge),:host-context([dir=rtl]) ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 6px)}::slotted(ion-badge:empty){display:block;min-width:8px;height:8px}:host(.tab-layout-icon-top) ::slotted(ion-icon){margin-top:6px;margin-bottom:2px}:host(.tab-layout-icon-top) ::slotted(ion-label){margin-top:0;margin-bottom:6px}:host(.tab-layout-icon-bottom) ::slotted(ion-badge){left:70%;top:8px}:host-context([dir=rtl]):host(.tab-layout-icon-bottom) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-bottom ::slotted(ion-badge){left:unset;right:unset;right:70%}:host(.tab-layout-icon-bottom) ::slotted(ion-icon){margin-top:0;margin-bottom:6px}:host(.tab-layout-icon-bottom) ::slotted(ion-label){margin-top:6px;margin-bottom:0}:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){left:80%;top:16px}:host-context([dir=rtl]):host(.tab-layout-icon-start) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-start ::slotted(ion-badge),:host-context([dir=rtl]):host(.tab-layout-icon-end) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-end ::slotted(ion-badge){left:unset;right:unset;right:80%}:host(.tab-layout-icon-start) ::slotted(ion-icon){margin-right:6px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.tab-layout-icon-start) ::slotted(ion-icon){margin-right:unset;-webkit-margin-end:6px;margin-inline-end:6px}}:host(.tab-layout-icon-end) ::slotted(ion-icon){margin-left:6px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.tab-layout-icon-end) ::slotted(ion-icon){margin-left:unset;-webkit-margin-start:6px;margin-inline-start:6px}}:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){left:70%;top:16px}:host-context([dir=rtl]):host(.tab-layout-icon-hide) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-hide ::slotted(ion-badge),:host-context([dir=rtl]):host(.tab-has-label-only) ::slotted(ion-badge),:host-context([dir=rtl]).tab-has-label-only ::slotted(ion-badge){left:unset;right:unset;right:70%}:host(.tab-layout-icon-hide) ::slotted(ion-label),:host(.tab-has-label-only) ::slotted(ion-label){margin-top:0;margin-bottom:0}:host(.tab-layout-label-hide) ::slotted(ion-badge),:host(.tab-has-icon-only) ::slotted(ion-badge){top:16px}:host(.tab-layout-label-hide) ::slotted(ion-icon),:host(.tab-has-icon-only) ::slotted(ion-icon){margin-top:0;margin-bottom:0;font-size:24px}',TabButton=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionTabButtonClick=createEvent(this,"ionTabButtonClick",7),this.inheritedAttributes={},this.disabled=!1,this.selected=!1,this.onKeyUp=o=>{(o.key==="Enter"||o.key===" ")&&this.selectTab(o)},this.onClick=o=>{this.selectTab(o)}}onTabBarChanged(o){const s=o.target,a=this.el.parentElement;(o.composedPath().includes(a)||s!=null&&s.contains(this.el))&&(this.selected=this.tab===o.detail.tab)}componentWillLoad(){this.inheritedAttributes=Object.assign({},inheritAttributes$2(this.el,["aria-label"])),this.layout===void 0&&(this.layout=config$1.get("tabButtonLayout","icon-top"))}selectTab(o){this.tab!==void 0&&(this.disabled||this.ionTabButtonClick.emit({tab:this.tab,href:this.href,selected:this.selected}),o.preventDefault())}get hasLabel(){return!!this.el.querySelector("ion-label")}get hasIcon(){return!!this.el.querySelector("ion-icon")}render(){const{disabled:o,hasIcon:s,hasLabel:a,href:$,rel:j,target:_e,layout:et,selected:tt,tab:nt,inheritedAttributes:it}=this,rt=getIonMode$2(this),st={download:this.download,href:$,rel:j,target:_e};return h(Host,{onClick:this.onClick,onKeyup:this.onKeyUp,id:nt!==void 0?`tab-button-${nt}`:null,class:{[rt]:!0,"tab-selected":tt,"tab-disabled":o,"tab-has-label":a,"tab-has-icon":s,"tab-has-label-only":a&&!s,"tab-has-icon-only":s&&!a,[`tab-layout-${et}`]:!0,"ion-activatable":!0,"ion-selectable":!0,"ion-focusable":!0}},h("a",Object.assign({},st,{class:"button-native",part:"native",role:"tab","aria-selected":tt?"true":null,"aria-disabled":o?"true":null,tabindex:o?"-1":void 0},it),h("span",{class:"button-inner"},h("slot",null)),rt==="md"&&h("ion-ripple-effect",{type:"unbounded"})))}get el(){return this}static get style(){return{ios:tabButtonIosCss,md:tabButtonMdCss}}},[33,"ion-tab-button",{disabled:[4],download:[1],href:[1],rel:[1],layout:[1025],selected:[1028],tab:[1],target:[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]]);function defineCustomElement$1$8(){if(typeof customElements>"u")return;["ion-tab-button","ion-ripple-effect"].forEach(s=>{switch(s){case"ion-tab-button":customElements.get(s)||customElements.define(s,TabButton);break;case"ion-ripple-effect":customElements.get(s)||defineCustomElement$1l();break}})}const defineCustomElement$a=defineCustomElement$1$8;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const textCss=":host(.ion-color){color:var(--ion-color-base)}",Text=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){const o=getIonMode$2(this);return h(Host,{class:createColorClasses$1(this.color,{[o]:!0})},h("slot",null))}static get style(){return textCss}},[1,"ion-text",{color:[513]}]);function defineCustomElement$1$7(){if(typeof customElements>"u")return;["ion-text"].forEach(s=>{switch(s){case"ion-text":customElements.get(s)||customElements.define(s,Text);break}})}const defineCustomElement$9=defineCustomElement$1$7;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const textareaIosCss='.sc-ion-textarea-ios-h{--background:initial;--color:initial;--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.5;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--border-radius:0;display:block;position:relative;-ms-flex:1;flex:1;width:100%;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);white-space:pre-wrap;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-textarea-ios-h{background:initial}.ion-color.sc-ion-textarea-ios-h{color:var(--ion-color-base)}ion-item.sc-ion-textarea-ios-h,ion-item .sc-ion-textarea-ios-h{-ms-flex-item-align:baseline;align-self:baseline}ion-item.sc-ion-textarea-ios-h:not(.item-label),ion-item:not(.item-label) .sc-ion-textarea-ios-h{--padding-start:0}.textarea-wrapper.sc-ion-textarea-ios{display:grid;min-width:inherit;max-width:inherit;min-height:inherit;max-height:inherit}.textarea-wrapper.sc-ion-textarea-ios::after{white-space:pre-wrap;content:attr(data-replicated-value) " ";visibility:hidden}.native-textarea.sc-ion-textarea-ios,.textarea-wrapper.sc-ion-textarea-ios::after{padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;grid-area:1/1/2/2;word-break:break-word}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.native-textarea.sc-ion-textarea-ios,.textarea-wrapper.sc-ion-textarea-ios::after{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.native-textarea.sc-ion-textarea-ios{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;resize:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.native-textarea.sc-ion-textarea-ios::-webkit-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios::-moz-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios:-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios::-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios::placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea[disabled].sc-ion-textarea-ios:not(.cloned-input){opacity:0.4}.cloned-input.sc-ion-textarea-ios{left:0;top:0;position:absolute;pointer-events:none}[dir=rtl].sc-ion-textarea-ios .cloned-input.sc-ion-textarea-ios,[dir=rtl].sc-ion-textarea-ios-h .cloned-input.sc-ion-textarea-ios,[dir=rtl] .sc-ion-textarea-ios-h .cloned-input.sc-ion-textarea-ios{left:unset;right:unset;right:0}.cloned-input.sc-ion-textarea-ios:disabled{opacity:1}[auto-grow=true].sc-ion-textarea-ios-h .cloned-input.sc-ion-textarea-ios{height:100%}.item-label-floating.item-has-placeholder.sc-ion-textarea-ios-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-textarea-ios-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-textarea-ios-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-textarea-ios-h{-webkit-transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}[auto-grow=true].sc-ion-textarea-ios-h .native-textarea.sc-ion-textarea-ios{overflow:hidden}.sc-ion-textarea-ios-h{--padding-top:10px;--padding-end:10px;--padding-bottom:10px;--padding-start:0;font-size:inherit}.item-label-stacked.sc-ion-textarea-ios-h,.item-label-stacked .sc-ion-textarea-ios-h,.item-label-floating.sc-ion-textarea-ios-h,.item-label-floating .sc-ion-textarea-ios-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0px}',textareaMdCss='.sc-ion-textarea-md-h{--background:initial;--color:initial;--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.5;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--border-radius:0;display:block;position:relative;-ms-flex:1;flex:1;width:100%;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);white-space:pre-wrap;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-textarea-md-h{background:initial}.ion-color.sc-ion-textarea-md-h{color:var(--ion-color-base)}ion-item.sc-ion-textarea-md-h,ion-item .sc-ion-textarea-md-h{-ms-flex-item-align:baseline;align-self:baseline}ion-item.sc-ion-textarea-md-h:not(.item-label),ion-item:not(.item-label) .sc-ion-textarea-md-h{--padding-start:0}.textarea-wrapper.sc-ion-textarea-md{display:grid;min-width:inherit;max-width:inherit;min-height:inherit;max-height:inherit}.textarea-wrapper.sc-ion-textarea-md::after{white-space:pre-wrap;content:attr(data-replicated-value) " ";visibility:hidden}.native-textarea.sc-ion-textarea-md,.textarea-wrapper.sc-ion-textarea-md::after{padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;grid-area:1/1/2/2;word-break:break-word}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.native-textarea.sc-ion-textarea-md,.textarea-wrapper.sc-ion-textarea-md::after{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.native-textarea.sc-ion-textarea-md{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;resize:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.native-textarea.sc-ion-textarea-md::-webkit-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md::-moz-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md:-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md::-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md::placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea[disabled].sc-ion-textarea-md:not(.cloned-input){opacity:0.4}.cloned-input.sc-ion-textarea-md{left:0;top:0;position:absolute;pointer-events:none}[dir=rtl].sc-ion-textarea-md .cloned-input.sc-ion-textarea-md,[dir=rtl].sc-ion-textarea-md-h .cloned-input.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h .cloned-input.sc-ion-textarea-md{left:unset;right:unset;right:0}.cloned-input.sc-ion-textarea-md:disabled{opacity:1}[auto-grow=true].sc-ion-textarea-md-h .cloned-input.sc-ion-textarea-md{height:100%}.item-label-floating.item-has-placeholder.sc-ion-textarea-md-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-textarea-md-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-textarea-md-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-textarea-md-h{-webkit-transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}[auto-grow=true].sc-ion-textarea-md-h .native-textarea.sc-ion-textarea-md{overflow:hidden}.sc-ion-textarea-md-h{--padding-top:10px;--padding-end:0;--padding-bottom:11px;--padding-start:8px;margin-left:0;margin-right:0;margin-top:8px;margin-bottom:0;font-size:inherit}.item-label-stacked.sc-ion-textarea-md-h,.item-label-stacked .sc-ion-textarea-md-h,.item-label-floating.sc-ion-textarea-md-h,.item-label-floating .sc-ion-textarea-md-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0}',Textarea=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.ionChange=createEvent(this,"ionChange",7),this.ionInput=createEvent(this,"ionInput",7),this.ionStyle=createEvent(this,"ionStyle",7),this.ionBlur=createEvent(this,"ionBlur",7),this.ionFocus=createEvent(this,"ionFocus",7),this.inputId=`ion-textarea-${textareaIds++}`,this.didBlurAfterEdit=!1,this.inheritedAttributes={},this.fireFocusEvents=!0,this.hasFocus=!1,this.autocapitalize="none",this.autofocus=!1,this.clearOnEdit=!1,this.debounce=0,this.disabled=!1,this.name=this.inputId,this.readonly=!1,this.required=!1,this.spellcheck=!1,this.autoGrow=!1,this.value="",this.onInput=o=>{this.nativeInput&&(this.value=this.nativeInput.value),this.emitStyle(),this.ionInput.emit(o)},this.onFocus=o=>{this.hasFocus=!0,this.focusChange(),this.fireFocusEvents&&this.ionFocus.emit(o)},this.onBlur=o=>{this.hasFocus=!1,this.focusChange(),this.fireFocusEvents&&this.ionBlur.emit(o)},this.onKeyDown=()=>{this.checkClearOnEdit()}}debounceChanged(){this.ionChange=debounceEvent(this.ionChange,this.debounce)}disabledChanged(){this.emitStyle()}valueChanged(){const o=this.nativeInput,s=this.getValue();o&&o.value!==s&&(o.value=s),this.runAutoGrow(),this.emitStyle(),this.ionChange.emit({value:s})}connectedCallback(){this.emitStyle(),this.debounceChanged(),document.dispatchEvent(new CustomEvent("ionInputDidLoad",{detail:this.el}))}disconnectedCallback(){document.dispatchEvent(new CustomEvent("ionInputDidUnload",{detail:this.el}))}componentWillLoad(){this.inheritedAttributes=Object.assign(Object.assign({},inheritAriaAttributes(this.el)),inheritAttributes$2(this.el,["data-form-type","title","tabindex"]))}componentDidLoad(){this.runAutoGrow()}async setFocus(){this.nativeInput&&this.nativeInput.focus()}async setBlur(){this.nativeInput&&this.nativeInput.blur()}getInputElement(){return Promise.resolve(this.nativeInput)}emitStyle(){this.ionStyle.emit({interactive:!0,textarea:!0,input:!0,"interactive-disabled":this.disabled,"has-placeholder":this.placeholder!==void 0,"has-value":this.hasValue(),"has-focus":this.hasFocus})}runAutoGrow(){this.nativeInput&&this.autoGrow&&writeTask(()=>{var o;this.textareaWrapper&&(this.textareaWrapper.dataset.replicatedValue=(o=this.value)!==null&&o!==void 0?o:"")})}checkClearOnEdit(){this.clearOnEdit&&(this.didBlurAfterEdit&&this.hasValue()&&(this.value=""),this.didBlurAfterEdit=!1)}focusChange(){this.clearOnEdit&&!this.hasFocus&&this.hasValue()&&(this.didBlurAfterEdit=!0),this.emitStyle()}hasValue(){return this.getValue()!==""}getValue(){return this.value||""}render(){const o=getIonMode$2(this),s=this.getValue(),a=this.inputId+"-lbl",$=findItemLabel(this.el);return $&&($.id=a),h(Host,{"aria-disabled":this.disabled?"true":null,class:createColorClasses$1(this.color,{[o]:!0})},h("div",{class:"textarea-wrapper",ref:j=>this.textareaWrapper=j},h("textarea",Object.assign({class:"native-textarea","aria-labelledby":$?a:null,ref:j=>this.nativeInput=j,autoCapitalize:this.autocapitalize,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,disabled:this.disabled,maxLength:this.maxlength,minLength:this.minlength,name:this.name,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,spellcheck:this.spellcheck,cols:this.cols,rows:this.rows,wrap:this.wrap,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeyDown},this.inheritedAttributes),s)))}get el(){return this}static get watchers(){return{debounce:["debounceChanged"],disabled:["disabledChanged"],value:["valueChanged"]}}static get style(){return{ios:textareaIosCss,md:textareaMdCss}}},[34,"ion-textarea",{fireFocusEvents:[4,"fire-focus-events"],color:[513],autocapitalize:[1],autofocus:[4],clearOnEdit:[1028,"clear-on-edit"],debounce:[2],disabled:[4],inputmode:[1],enterkeyhint:[1],maxlength:[2],minlength:[2],name:[1],placeholder:[1],readonly:[4],required:[4],spellcheck:[4],cols:[2],rows:[2],wrap:[1],autoGrow:[516,"auto-grow"],value:[1025],hasFocus:[32],setFocus:[64],setBlur:[64],getInputElement:[64]}]);let textareaIds=0;function defineCustomElement$1$6(){if(typeof customElements>"u")return;["ion-textarea"].forEach(s=>{switch(s){case"ion-textarea":customElements.get(s)||customElements.define(s,Textarea);break}})}const defineCustomElement$8=defineCustomElement$1$6;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const thumbnailCss=":host{--size:48px;--border-radius:0;border-radius:var(--border-radius);display:block;width:var(--size);height:var(--size)}::slotted(ion-img),::slotted(img){border-radius:var(--border-radius);width:100%;height:100%;-o-object-fit:cover;object-fit:cover;overflow:hidden}",Thumbnail=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow()}render(){return h(Host,{class:getIonMode$2(this)},h("slot",null))}static get style(){return thumbnailCss}},[1,"ion-thumbnail"]);function defineCustomElement$1$5(){if(typeof customElements>"u")return;["ion-thumbnail"].forEach(s=>{switch(s){case"ion-thumbnail":customElements.get(s)||customElements.define(s,Thumbnail);break}})}const defineCustomElement$7=defineCustomElement$1$5;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const titleIosCss=":host{--color:initial;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{left:0;top:0;padding-left:90px;padding-right:90px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);position:absolute;width:100%;height:100%;-webkit-transform:translateZ(0);transform:translateZ(0);font-size:17px;font-weight:600;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:90px;padding-inline-start:90px;-webkit-padding-end:90px;padding-inline-end:90px}}:host(.title-small){padding-left:9px;padding-right:9px;padding-top:6px;padding-bottom:16px;position:relative;font-size:13px;font-weight:normal}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.title-small){padding-left:unset;padding-right:unset;-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px}}:host(.title-large){padding-left:16px;padding-right:16px;padding-top:0;padding-bottom:0;-webkit-transform-origin:left center;transform-origin:left center;bottom:0;-ms-flex-align:end;align-items:flex-end;min-width:100%;padding-bottom:6px;font-size:34px;font-weight:700;text-align:start}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.title-large){padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host(.title-large.title-rtl){-webkit-transform-origin:right center;transform-origin:right center}:host(.title-large.ion-cloned-element){--color:var(--ion-text-color, #000)}:host(.title-large) .toolbar-title{-webkit-transform-origin:inherit;transform-origin:inherit}:host-context([dir=rtl]):host(.title-large) .toolbar-title,:host-context([dir=rtl]).title-large .toolbar-title{-webkit-transform-origin:calc(100% - inherit);transform-origin:calc(100% - inherit)}",titleMdCss=":host{--color:initial;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{padding-left:20px;padding-right:20px;padding-top:0;padding-bottom:0;font-size:20px;font-weight:500;letter-spacing:0.0125em}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px}}:host(.title-small){width:100%;height:100%;font-size:15px;font-weight:normal}",ToolbarTitle=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionStyle=createEvent(this,"ionStyle",7)}sizeChanged(){this.emitStyle()}connectedCallback(){this.emitStyle()}emitStyle(){const o=this.getSize();this.ionStyle.emit({[`title-${o}`]:!0})}getSize(){return this.size!==void 0?this.size:"default"}render(){const o=getIonMode$2(this),s=this.getSize();return h(Host,{class:createColorClasses$1(this.color,{[o]:!0,[`title-${s}`]:!0,"title-rtl":document.dir==="rtl"})},h("div",{class:"toolbar-title"},h("slot",null)))}get el(){return this}static get watchers(){return{size:["sizeChanged"]}}static get style(){return{ios:titleIosCss,md:titleMdCss}}},[33,"ion-title",{color:[513],size:[1]}]);function defineCustomElement$1$4(){if(typeof customElements>"u")return;["ion-title"].forEach(s=>{switch(s){case"ion-title":customElements.get(s)||customElements.define(s,ToolbarTitle);break}})}const defineCustomElement$6=defineCustomElement$1$4;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const iosEnterAnimation=(o,s)=>{const a=createAnimation(),$=createAnimation(),_e=getElementRoot(o).querySelector(".toast-wrapper"),et="calc(-10px - var(--ion-safe-area-bottom, 0px))",tt="calc(10px + var(--ion-safe-area-top, 0px))";switch($.addElement(_e),s){case"top":$.fromTo("transform","translateY(-100%)",`translateY(${tt})`);break;case"middle":const nt=Math.floor(o.clientHeight/2-_e.clientHeight/2);_e.style.top=`${nt}px`,$.fromTo("opacity",.01,1);break;default:$.fromTo("transform","translateY(100%)",`translateY(${et})`);break}return a.easing("cubic-bezier(.155,1.105,.295,1.12)").duration(400).addAnimation($)},iosLeaveAnimation=(o,s)=>{const a=createAnimation(),$=createAnimation(),_e=getElementRoot(o).querySelector(".toast-wrapper"),et="calc(-10px - var(--ion-safe-area-bottom, 0px))",tt="calc(10px + var(--ion-safe-area-top, 0px))";switch($.addElement(_e),s){case"top":$.fromTo("transform",`translateY(${tt})`,"translateY(-100%)");break;case"middle":$.fromTo("opacity",.99,0);break;default:$.fromTo("transform",`translateY(${et})`,"translateY(100%)");break}return a.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation($)},mdEnterAnimation=(o,s)=>{const a=createAnimation(),$=createAnimation(),_e=getElementRoot(o).querySelector(".toast-wrapper"),et="calc(8px + var(--ion-safe-area-bottom, 0px))",tt="calc(8px + var(--ion-safe-area-top, 0px))";switch($.addElement(_e),s){case"top":_e.style.top=tt,$.fromTo("opacity",.01,1);break;case"middle":const nt=Math.floor(o.clientHeight/2-_e.clientHeight/2);_e.style.top=`${nt}px`,$.fromTo("opacity",.01,1);break;default:_e.style.bottom=et,$.fromTo("opacity",.01,1);break}return a.easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation($)},mdLeaveAnimation=o=>{const s=createAnimation(),a=createAnimation(),j=getElementRoot(o).querySelector(".toast-wrapper");return a.addElement(j).fromTo("opacity",.99,0),s.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(a)},toastIosCss=":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;left:0;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}:host-context([dir=rtl]){left:unset;right:unset;right:0}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);left:var(--start);right:var(--end);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}[dir=rtl] .toast-wrapper,:host-context([dir=rtl]) .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{margin-left:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.toast-icon{margin-left:unset;-webkit-margin-start:16px;margin-inline-start:16px}}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-50, #f2f2f2);--border-radius:14px;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-850, #262626);--max-width:700px;--start:10px;--end:10px;font-size:14px}.toast-wrapper{margin-left:auto;margin-right:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;z-index:10}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.toast-wrapper{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.toast-translucent) .toast-wrapper{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}.toast-wrapper.toast-top{-webkit-transform:translate3d(0,  -100%,  0);transform:translate3d(0,  -100%,  0);top:0}.toast-wrapper.toast-middle{opacity:0.01}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0,  100%,  0);transform:translate3d(0,  100%,  0);bottom:0}.toast-content{padding-left:15px;padding-right:15px;padding-top:15px;padding-bottom:15px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.toast-content{padding-left:unset;padding-right:unset;-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px}}.toast-header{margin-bottom:2px;font-weight:500}.toast-button{padding-left:15px;padding-right:15px;padding-top:10px;padding-bottom:10px;height:44px;-webkit-transition:background-color, opacity 100ms linear;transition:background-color, opacity 100ms linear;border:0;background-color:transparent;font-family:var(--ion-font-family);font-size:17px;font-weight:500;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.toast-button{padding-left:unset;padding-right:unset;-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px}}.toast-button.ion-activated{opacity:0.4}@media (any-hover: hover){.toast-button:hover{opacity:0.6}}",toastMdCss=":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;left:0;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}:host-context([dir=rtl]){left:unset;right:unset;right:0}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);left:var(--start);right:var(--end);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}[dir=rtl] .toast-wrapper,:host-context([dir=rtl]) .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{margin-left:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.toast-icon{margin-left:unset;-webkit-margin-start:16px;margin-inline-start:16px}}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-800, #333333);--border-radius:4px;--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-50, #f2f2f2);--max-width:700px;--start:8px;--end:8px;font-size:14px}.toast-wrapper{margin-left:auto;margin-right:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;opacity:0.01;z-index:10}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.toast-wrapper{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.toast-content{padding-left:16px;padding-right:16px;padding-top:14px;padding-bottom:14px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.toast-content{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}.toast-header{margin-bottom:2px;font-weight:500;line-height:20px}.toast-message{line-height:20px}.toast-layout-baseline .toast-button-group-start{margin-left:8px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.toast-layout-baseline .toast-button-group-start{margin-left:unset;-webkit-margin-start:8px;margin-inline-start:8px}}.toast-layout-stacked .toast-button-group-start{margin-right:8px;margin-top:8px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.toast-layout-stacked .toast-button-group-start{margin-right:unset;-webkit-margin-end:8px;margin-inline-end:8px}}.toast-layout-baseline .toast-button-group-end{margin-right:8px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.toast-layout-baseline .toast-button-group-end{margin-right:unset;-webkit-margin-end:8px;margin-inline-end:8px}}.toast-layout-stacked .toast-button-group-end{margin-right:8px;margin-bottom:8px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.toast-layout-stacked .toast-button-group-end{margin-right:unset;-webkit-margin-end:8px;margin-inline-end:8px}}.toast-button{padding-left:15px;padding-right:15px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;font-family:var(--ion-font-family);font-size:14px;font-weight:500;letter-spacing:0.84px;text-transform:uppercase;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.toast-button{padding-left:unset;padding-right:unset;-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px}}.toast-button-cancel{color:var(--ion-color-step-100, #e6e6e6)}.toast-button-icon-only{border-radius:50%;padding-left:9px;padding-right:9px;padding-top:9px;padding-bottom:9px;width:36px;height:36px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.toast-button-icon-only{padding-left:unset;padding-right:unset;-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px}}@media (any-hover: hover){.toast-button:hover{background-color:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.08)}.toast-button-cancel:hover{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.08)}}",Toast$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=createEvent(this,"ionToastDidPresent",7),this.willPresent=createEvent(this,"ionToastWillPresent",7),this.willDismiss=createEvent(this,"ionToastWillDismiss",7),this.didDismiss=createEvent(this,"ionToastDidDismiss",7),this.customHTMLEnabled=config$1.get("innerHTMLTemplatesEnabled",ENABLE_HTML_CONTENT_DEFAULT),this.presented=!1,this.duration=config$1.getNumber("toastDuration",0),this.layout="baseline",this.keyboardClose=!1,this.position="bottom",this.translucent=!1,this.animated=!0,this.dispatchCancelHandler=o=>{const s=o.detail.role;if(isCancel(s)){const a=this.getButtons().find($=>$.role==="cancel");this.callButtonHandler(a)}}}connectedCallback(){prepareOverlay(this.el)}async present(){await present(this,"toastEnter",iosEnterAnimation,mdEnterAnimation,this.position),this.duration>0&&(this.durationTimeout=setTimeout(()=>this.dismiss(void 0,"timeout"),this.duration))}dismiss(o,s){return this.durationTimeout&&clearTimeout(this.durationTimeout),dismiss(this,o,s,"toastLeave",iosLeaveAnimation,mdLeaveAnimation,this.position)}onDidDismiss(){return eventMethod(this.el,"ionToastDidDismiss")}onWillDismiss(){return eventMethod(this.el,"ionToastWillDismiss")}getButtons(){return this.buttons?this.buttons.map(s=>typeof s=="string"?{text:s}:s):[]}async buttonClick(o){const s=o.role;return isCancel(s)?this.dismiss(void 0,s):await this.callButtonHandler(o)?this.dismiss(void 0,s):Promise.resolve()}async callButtonHandler(o){if(o!=null&&o.handler)try{if(await safeCall(o.handler)===!1)return!1}catch(s){console.error(s)}return!0}renderButtons(o,s){if(o.length===0)return;const a=getIonMode$2(this),$={"toast-button-group":!0,[`toast-button-group-${s}`]:!0};return h("div",{class:$},o.map(j=>h("button",{type:"button",class:buttonClass(j),tabIndex:0,onClick:()=>this.buttonClick(j),part:"button"},h("div",{class:"toast-button-inner"},j.icon&&h("ion-icon",{icon:j.icon,slot:j.text===void 0?"icon-only":void 0,class:"toast-button-icon"}),j.text),a==="md"&&h("ion-ripple-effect",{type:j.icon!==void 0&&j.text===void 0?"unbounded":"bounded"}))))}renderToastMessage(){const{customHTMLEnabled:o,message:s}=this;return o?h("div",{class:"toast-message",part:"message",innerHTML:sanitizeDOMString(s)}):h("div",{class:"toast-message",part:"message"},s)}render(){const{layout:o,el:s}=this,a=this.getButtons(),$=a.filter(nt=>nt.side==="start"),j=a.filter(nt=>nt.side!=="start"),_e=getIonMode$2(this),et={"toast-wrapper":!0,[`toast-${this.position}`]:!0,[`toast-layout-${o}`]:!0},tt=a.length>0?"dialog":"status";return o==="stacked"&&$.length>0&&j.length>0&&printIonWarning("This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.",s),h(Host,Object.assign({"aria-live":"polite","aria-atomic":"true",role:tt,tabindex:"-1"},this.htmlAttributes,{style:{zIndex:`${6e4+this.overlayIndex}`},class:createColorClasses$1(this.color,Object.assign(Object.assign({[_e]:!0},getClassMap(this.cssClass)),{"overlay-hidden":!0,"toast-translucent":this.translucent})),onIonToastWillDismiss:this.dispatchCancelHandler}),h("div",{class:et},h("div",{class:"toast-container",part:"container"},this.renderButtons($,"start"),this.icon!==void 0&&h("ion-icon",{class:"toast-icon",part:"icon",icon:this.icon,lazy:!1,"aria-hidden":"true"}),h("div",{class:"toast-content"},this.header!==void 0&&h("div",{class:"toast-header",part:"header"},this.header),this.message!==void 0&&this.renderToastMessage()),this.renderButtons(j,"end"))))}get el(){return this}static get style(){return{ios:toastIosCss,md:toastMdCss}}},[33,"ion-toast",{overlayIndex:[2,"overlay-index"],color:[513],enterAnimation:[16],leaveAnimation:[16],cssClass:[1,"css-class"],duration:[2],header:[1],layout:[1],message:[1],keyboardClose:[4,"keyboard-close"],position:[1],buttons:[16],translucent:[4],animated:[4],icon:[1],htmlAttributes:[16],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64]}]),buttonClass=o=>Object.assign({"toast-button":!0,"toast-button-icon-only":o.icon!==void 0&&o.text===void 0,[`toast-button-${o.role}`]:o.role!==void 0,"ion-focusable":!0,"ion-activatable":!0},getClassMap(o.cssClass));function defineCustomElement$1$3(){if(typeof customElements>"u")return;["ion-toast","ion-icon","ion-ripple-effect"].forEach(s=>{switch(s){case"ion-toast":customElements.get(s)||customElements.define(s,Toast$1);break;case"ion-icon":customElements.get(s)||defineCustomElement$1n();break;case"ion-ripple-effect":customElements.get(s)||defineCustomElement$1l();break}})}const defineCustomElement$5=defineCustomElement$1$3,toggleIosCss=":host{-webkit-box-sizing:content-box !important;box-sizing:content-box !important;display:inline-block;position:relative;outline:none;contain:content;cursor:pointer;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.ion-focused) input{border:2px solid #5e9ed6}:host(.toggle-disabled){pointer-events:none}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0;pointer-events:none}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.toggle-icon-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;-webkit-transition:var(--handle-transition);transition:var(--handle-transition);will-change:transform}.toggle-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;background:var(--background);pointer-events:none;overflow:inherit}:host(.toggle-checked) .toggle-icon{background:var(--background-checked)}.toggle-inner{border-radius:var(--handle-border-radius);position:absolute;width:var(--handle-width);height:var(--handle-height);max-height:var(--handle-max-height);-webkit-transition:var(--handle-transition);transition:var(--handle-transition);background:var(--handle-background);-webkit-box-shadow:var(--handle-box-shadow);box-shadow:var(--handle-box-shadow);contain:strict}:host(.toggle-ltr) .toggle-inner{left:var(--handle-spacing)}:host(.toggle-rtl) .toggle-inner{right:var(--handle-spacing)}:host(.toggle-ltr.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(100% - var(--handle-width)), 0, 0);transform:translate3d(calc(100% - var(--handle-width)), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(-100% + var(--handle-width)), 0, 0);transform:translate3d(calc(-100% + var(--handle-width)), 0, 0)}:host(.toggle-checked) .toggle-inner{background:var(--handle-background-checked)}:host(.toggle-ltr.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0)}:host{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.088);--background-checked:var(--ion-color-primary, #3880ff);--border-radius:16px;--handle-background:#ffffff;--handle-background-checked:#ffffff;--handle-border-radius:25.5px;--handle-box-shadow:0 3px 12px rgba(0, 0, 0, 0.16), 0 3px 1px rgba(0, 0, 0, 0.1);--handle-height:calc(32px - (2px * 2));--handle-max-height:calc(100% - var(--handle-spacing) * 2);--handle-width:calc(32px - (2px * 2));--handle-spacing:2px;--handle-transition:transform 300ms, width 120ms ease-in-out 80ms, left 110ms ease-in-out 80ms, right 110ms ease-in-out 80ms;width:51px;height:32px;contain:strict;overflow:hidden}:host(.ion-color.toggle-checked) .toggle-icon{background:var(--ion-color-base)}:host(.toggle-activated) .toggle-switch-icon{opacity:0}.toggle-icon{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transition:background-color 300ms;transition:background-color 300ms}.toggle-inner{will-change:transform}.toggle-switch-icon{position:absolute;top:50%;width:11px;height:11px;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:opacity 300ms, color 300ms;transition:opacity 300ms, color 300ms}.toggle-switch-icon{position:absolute;color:var(--ion-color-dark)}:host(.toggle-ltr) .toggle-switch-icon{right:6px}:host(.toggle-rtl) .toggle-switch-icon{right:initial;left:6px;}:host(.toggle-checked) .toggle-switch-icon.toggle-switch-icon-checked{color:var(--ion-color-contrast, #fff)}:host(.toggle-checked) .toggle-switch-icon:not(.toggle-switch-icon-checked){opacity:0}.toggle-switch-icon-checked{position:absolute;width:15px;height:15px;-webkit-transform:translateY(-50%) rotate(90deg);transform:translateY(-50%) rotate(90deg)}:host(.toggle-ltr) .toggle-switch-icon-checked{right:initial;left:4px;}:host(.toggle-rtl) .toggle-switch-icon-checked{right:4px}:host(.toggle-activated) .toggle-icon::before,:host(.toggle-checked) .toggle-icon::before{-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0)}:host(.toggle-activated.toggle-checked) .toggle-inner::before{-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0)}:host(.toggle-activated) .toggle-inner{width:calc(var(--handle-width) + 6px)}:host(.toggle-ltr.toggle-activated.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(100% - var(--handle-width) - 6px), 0, 0);transform:translate3d(calc(100% - var(--handle-width) - 6px), 0, 0)}:host(.toggle-rtl.toggle-activated.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(-100% + var(--handle-width) + 6px), 0, 0);transform:translate3d(calc(-100% + var(--handle-width) + 6px), 0, 0)}:host(.toggle-disabled){opacity:0.3}:host(.in-item[slot]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:20px;padding-right:10px;padding-top:6px;padding-bottom:5px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item[slot]){padding-left:unset;padding-right:unset;-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:10px;padding-inline-end:10px}}:host(.in-item[slot=start]){padding-left:0;padding-right:16px;padding-top:6px;padding-bottom:5px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){padding-left:unset;padding-right:unset;-webkit-padding-start:0;padding-inline-start:0;-webkit-padding-end:16px;padding-inline-end:16px}}",toggleMdCss=":host{-webkit-box-sizing:content-box !important;box-sizing:content-box !important;display:inline-block;position:relative;outline:none;contain:content;cursor:pointer;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.ion-focused) input{border:2px solid #5e9ed6}:host(.toggle-disabled){pointer-events:none}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0;pointer-events:none}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.toggle-icon-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;-webkit-transition:var(--handle-transition);transition:var(--handle-transition);will-change:transform}.toggle-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;background:var(--background);pointer-events:none;overflow:inherit}:host(.toggle-checked) .toggle-icon{background:var(--background-checked)}.toggle-inner{border-radius:var(--handle-border-radius);position:absolute;width:var(--handle-width);height:var(--handle-height);max-height:var(--handle-max-height);-webkit-transition:var(--handle-transition);transition:var(--handle-transition);background:var(--handle-background);-webkit-box-shadow:var(--handle-box-shadow);box-shadow:var(--handle-box-shadow);contain:strict}:host(.toggle-ltr) .toggle-inner{left:var(--handle-spacing)}:host(.toggle-rtl) .toggle-inner{right:var(--handle-spacing)}:host(.toggle-ltr.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(100% - var(--handle-width)), 0, 0);transform:translate3d(calc(100% - var(--handle-width)), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(-100% + var(--handle-width)), 0, 0);transform:translate3d(calc(-100% + var(--handle-width)), 0, 0)}:host(.toggle-checked) .toggle-inner{background:var(--handle-background-checked)}:host(.toggle-ltr.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0)}:host{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.39);--background-checked:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.5);--border-radius:14px;--handle-background:#ffffff;--handle-background-checked:var(--ion-color-primary, #3880ff);--handle-border-radius:50%;--handle-box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);--handle-width:20px;--handle-height:20px;--handle-max-height:calc(100% + 6px);--handle-spacing:0;--handle-transition:transform 160ms cubic-bezier(0.4, 0, 0.2, 1), background-color 160ms cubic-bezier(0.4, 0, 0.2, 1);padding-left:12px;padding-right:12px;padding-top:12px;padding-bottom:12px;width:36px;height:14px;contain:strict}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px}}:host(.ion-color.toggle-checked) .toggle-icon{background:rgba(var(--ion-color-base-rgb), 0.5)}:host(.ion-color.toggle-checked) .toggle-inner{background:var(--ion-color-base)}:host(.toggle-checked) .toggle-inner{color:var(--ion-color-contrast, #fff)}.toggle-icon{-webkit-transition:background-color 160ms;transition:background-color 160ms}.toggle-inner{will-change:background-color, transform;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:#000}.toggle-inner .toggle-switch-icon{padding-left:1px;padding-right:1px;padding-top:1px;padding-bottom:1px;width:100%;height:100%}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.toggle-inner .toggle-switch-icon{padding-left:unset;padding-right:unset;-webkit-padding-start:1px;padding-inline-start:1px;-webkit-padding-end:1px;padding-inline-end:1px}}:host(.toggle-disabled){opacity:0.3}:host(.in-item[slot]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:16px;padding-right:0;padding-top:12px;padding-bottom:12px;cursor:pointer}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item[slot]){padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:0;padding-inline-end:0}}:host(.in-item[slot=start]){padding-left:2px;padding-right:18px;padding-top:12px;padding-bottom:12px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){padding-left:unset;padding-right:unset;-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:18px;padding-inline-end:18px}}",Toggle=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionChange=createEvent(this,"ionChange",7),this.ionFocus=createEvent(this,"ionFocus",7),this.ionBlur=createEvent(this,"ionBlur",7),this.ionStyle=createEvent(this,"ionStyle",7),this.inputId=`ion-tg-${toggleIds++}`,this.lastDrag=0,this.activated=!1,this.name=this.inputId,this.checked=!1,this.disabled=!1,this.value="on",this.enableOnOffLabels=config$1.get("toggleOnOffLabels"),this.onClick=o=>{o.preventDefault(),this.lastDrag+300<Date.now()&&(this.checked=!this.checked)},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.getSwitchLabelIcon=(o,s)=>o==="md"?s?checkmarkOutline$1:removeOutline$1:s?removeOutline$1:ellipseOutline}checkedChanged(o){this.ionChange.emit({checked:o,value:this.value})}disabledChanged(){this.emitStyle(),this.gesture&&this.gesture.enable(!this.disabled)}async connectedCallback(){this.gesture=(await __vitePreload(()=>Promise.resolve().then(()=>index2),void 0)).createGesture({el:this.el,gestureName:"toggle",gesturePriority:100,threshold:5,passive:!1,onStart:()=>this.onStart(),onMove:o=>this.onMove(o),onEnd:o=>this.onEnd(o)}),this.disabledChanged()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}componentWillLoad(){this.emitStyle()}emitStyle(){this.ionStyle.emit({"interactive-disabled":this.disabled})}onStart(){this.activated=!0,this.setFocus()}onMove(o){shouldToggle(isRTL$2(this.el),this.checked,o.deltaX,-10)&&(this.checked=!this.checked,hapticSelection())}onEnd(o){this.activated=!1,this.lastDrag=Date.now(),o.event.preventDefault(),o.event.stopImmediatePropagation()}getValue(){return this.value||""}setFocus(){this.focusEl&&this.focusEl.focus()}renderOnOffSwitchLabels(o,s){const a=this.getSwitchLabelIcon(o,s);return h("ion-icon",{class:{"toggle-switch-icon":!0,"toggle-switch-icon-checked":s},icon:a,"aria-hidden":"true"})}render(){const{activated:o,color:s,checked:a,disabled:$,el:j,inputId:_e,name:et,enableOnOffLabels:tt}=this,nt=getIonMode$2(this),{label:it,labelId:rt,labelText:st}=getAriaLabel(j,_e),ot=this.getValue(),at=isRTL$2(j)?"rtl":"ltr";return renderHiddenInput(!0,j,et,a?ot:"",$),h(Host,{onClick:this.onClick,"aria-labelledby":it?rt:null,"aria-checked":`${a}`,"aria-hidden":$?"true":null,role:"switch",class:createColorClasses$1(s,{[nt]:!0,"in-item":hostContext("ion-item",j),"toggle-activated":o,"toggle-checked":a,"toggle-disabled":$,interactive:!0,[`toggle-${at}`]:!0})},h("div",{class:"toggle-icon",part:"track"},tt&&nt==="ios"&&[this.renderOnOffSwitchLabels(nt,!0),this.renderOnOffSwitchLabels(nt,!1)],h("div",{class:"toggle-icon-wrapper"},h("div",{class:"toggle-inner",part:"handle"},tt&&nt==="md"&&this.renderOnOffSwitchLabels(nt,a)))),h("label",{htmlFor:_e},st),h("input",{type:"checkbox",role:"switch","aria-checked":`${a}`,disabled:$,id:_e,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:lt=>this.focusEl=lt}))}get el(){return this}static get watchers(){return{checked:["checkedChanged"],disabled:["disabledChanged"]}}static get style(){return{ios:toggleIosCss,md:toggleMdCss}}},[33,"ion-toggle",{color:[513],name:[1],checked:[1028],disabled:[4],value:[1],enableOnOffLabels:[4,"enable-on-off-labels"],activated:[32]}]),shouldToggle=(o,s,a,$)=>s?!o&&$>a||o&&-$<a:!o&&-$<a||o&&$>a;let toggleIds=0;function defineCustomElement$1$2(){if(typeof customElements>"u")return;["ion-toggle","ion-icon"].forEach(s=>{switch(s){case"ion-toggle":customElements.get(s)||customElements.define(s,Toggle);break;case"ion-icon":customElements.get(s)||defineCustomElement$1n();break}})}const defineCustomElement$4=defineCustomElement$1$2;/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const toolbarIosCss=":host{--border-width:0;--border-style:solid;--opacity:1;--opacity-scale:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:var(--ion-safe-area-left);padding-right:var(--ion-safe-area-right);display:block;position:relative;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-safe-area-left);padding-inline-start:var(--ion-safe-area-left);-webkit-padding-end:var(--ion-safe-area-right);padding-inline-end:var(--ion-safe-area-right)}}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.toolbar-container{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:calc(var(--opacity) * var(--opacity-scale));z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-color-step-50, #f7f7f7));--color:var(--ion-toolbar-color, var(--ion-text-color, #000));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.2))));--padding-top:3px;--padding-bottom:3px;--padding-start:4px;--padding-end:4px;--min-height:44px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:4;order:4;min-width:0}:host(.toolbar-segment) .toolbar-content{display:-ms-inline-flexbox;display:inline-flex}:host(.toolbar-searchbar) .toolbar-container{padding-top:0;padding-bottom:0}:host(.toolbar-searchbar) ::slotted(*){-ms-flex-item-align:start;align-self:start}:host(.toolbar-searchbar) ::slotted(ion-chip){margin-top:3px}:host(.toolbar-searchbar) ::slotted(ion-back-button){height:38px}::slotted(ion-buttons){min-height:38px}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:3;order:3}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}:host(.toolbar-title-large) .toolbar-container{-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:start;align-items:flex-start}:host(.toolbar-title-large) .toolbar-content ion-title{-ms-flex:1;flex:1;-ms-flex-order:8;order:8;min-width:100%}",toolbarMdCss=":host{--border-width:0;--border-style:solid;--opacity:1;--opacity-scale:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:var(--ion-safe-area-left);padding-right:var(--ion-safe-area-right);display:block;position:relative;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-safe-area-left);padding-inline-start:var(--ion-safe-area-left);-webkit-padding-end:var(--ion-safe-area-right);padding-inline-end:var(--ion-safe-area-right)}}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.toolbar-container{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:calc(var(--opacity) * var(--opacity-scale));z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-background-color, #fff));--color:var(--ion-toolbar-color, var(--ion-text-color, #424242));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, #c1c4cd)));--padding-top:0;--padding-bottom:0;--padding-start:0;--padding-end:0;--min-height:56px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:3;order:3;min-width:0;max-width:100%}::slotted(.buttons-first-slot){margin-left:4px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(.buttons-first-slot){margin-left:unset;-webkit-margin-start:4px;margin-inline-start:4px}}::slotted(.buttons-last-slot){margin-right:4px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(.buttons-last-slot){margin-right:unset;-webkit-margin-end:4px;margin-inline-end:4px}}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:4;order:4}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}",Toolbar=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.childrenStyles=new Map}componentWillLoad(){const o=Array.from(this.el.querySelectorAll("ion-buttons")),s=o.find(j=>j.slot==="start");s&&s.classList.add("buttons-first-slot");const a=o.reverse(),$=a.find(j=>j.slot==="end")||a.find(j=>j.slot==="primary")||a.find(j=>j.slot==="secondary");$&&$.classList.add("buttons-last-slot")}childrenStyle(o){o.stopPropagation();const s=o.target.tagName,a=o.detail,$={},j=this.childrenStyles.get(s)||{};let _e=!1;Object.keys(a).forEach(et=>{const tt=`toolbar-${et}`,nt=a[et];nt!==j[tt]&&(_e=!0),nt&&($[tt]=!0)}),_e&&(this.childrenStyles.set(s,$),forceUpdate(this))}render(){const o=getIonMode$2(this),s={};return this.childrenStyles.forEach(a=>{Object.assign(s,a)}),h(Host,{class:Object.assign(Object.assign({},s),createColorClasses$1(this.color,{[o]:!0,"in-toolbar":hostContext("ion-toolbar",this.el)}))},h("div",{class:"toolbar-background"}),h("div",{class:"toolbar-container"},h("slot",{name:"start"}),h("slot",{name:"secondary"}),h("div",{class:"toolbar-content"},h("slot",null)),h("slot",{name:"primary"}),h("slot",{name:"end"})))}get el(){return this}static get style(){return{ios:toolbarIosCss,md:toolbarMdCss}}},[33,"ion-toolbar",{color:[513]},[[0,"ionStyle","childrenStyle"]]]);function defineCustomElement$1$1(){if(typeof customElements>"u")return;["ion-toolbar"].forEach(s=>{switch(s){case"ion-toolbar":customElements.get(s)||customElements.define(s,Toolbar);break}})}const defineCustomElement$3=defineCustomElement$1$1;function __rest(o,s){var a={};for(var $ in o)Object.prototype.hasOwnProperty.call(o,$)&&s.indexOf($)<0&&(a[$]=o[$]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,$=Object.getOwnPropertySymbols(o);j<$.length;j++)s.indexOf($[j])<0&&Object.prototype.propertyIsEnumerable.call(o,$[j])&&(a[$[j]]=o[$[j]]);return a}function __awaiter$1(o,s,a,$){function j(_e){return _e instanceof a?_e:new a(function(et){et(_e)})}return new(a||(a=Promise))(function(_e,et){function tt(rt){try{it($.next(rt))}catch(st){et(st)}}function nt(rt){try{it($.throw(rt))}catch(st){et(st)}}function it(rt){rt.done?_e(rt.value):j(rt.value).then(tt,nt)}it(($=$.apply(o,s||[])).next())})}function __generator(o,s){var a={label:0,sent:function(){if(_e[0]&1)throw _e[1];return _e[1]},trys:[],ops:[]},$,j,_e,et;return et={next:tt(0),throw:tt(1),return:tt(2)},typeof Symbol=="function"&&(et[Symbol.iterator]=function(){return this}),et;function tt(it){return function(rt){return nt([it,rt])}}function nt(it){if($)throw new TypeError("Generator is already executing.");for(;et&&(et=0,it[0]&&(a=0)),a;)try{if($=1,j&&(_e=it[0]&2?j.return:it[0]?j.throw||((_e=j.return)&&_e.call(j),0):j.next)&&!(_e=_e.call(j,it[1])).done)return _e;switch(j=0,_e&&(it=[it[0]&2,_e.value]),it[0]){case 0:case 1:_e=it;break;case 4:return a.label++,{value:it[1],done:!1};case 5:a.label++,j=it[1],it=[0];continue;case 7:it=a.ops.pop(),a.trys.pop();continue;default:if(_e=a.trys,!(_e=_e.length>0&&_e[_e.length-1])&&(it[0]===6||it[0]===2)){a=0;continue}if(it[0]===3&&(!_e||it[1]>_e[0]&&it[1]<_e[3])){a.label=it[1];break}if(it[0]===6&&a.label<_e[1]){a.label=_e[1],_e=it;break}if(_e&&a.label<_e[2]){a.label=_e[2],a.ops.push(it);break}_e[2]&&a.ops.pop(),a.trys.pop();continue}it=s.call(o,a)}catch(rt){it=[6,rt],j=0}finally{$=_e=0}if(it[0]&5)throw it[1];return{value:it[0]?it[1]:void 0,done:!0}}}function __read(o,s){var a=typeof Symbol=="function"&&o[Symbol.iterator];if(!a)return o;var $=a.call(o),j,_e=[],et;try{for(;(s===void 0||s-- >0)&&!(j=$.next()).done;)_e.push(j.value)}catch(tt){et={error:tt}}finally{try{j&&!j.done&&(a=$.return)&&a.call($)}finally{if(et)throw et.error}}return _e}function __spread(){for(var o=[],s=0;s<arguments.length;s++)o=o.concat(__read(arguments[s]));return o}typeof SuppressedError=="function"&&SuppressedError;let CACHED_MAP;const getIconMap=()=>{if(typeof window>"u")return new Map;if(!CACHED_MAP){const o=window;o.Ionicons=o.Ionicons||{},CACHED_MAP=o.Ionicons.map=o.Ionicons.map||new Map}return CACHED_MAP},getUrl=o=>{let s=getSrc(o.src);return s||(s=getName(o.name,o.icon,o.mode,o.ios,o.md),s?getNamedUrl(s):o.icon&&(s=getSrc(o.icon),s||(s=getSrc(o.icon[o.mode]),s))?s:null)},getNamedUrl=o=>{const s=getIconMap().get(o);return s||getAssetPath(`svg/${o}.svg`)},getName=(o,s,a,$,j)=>(a=(a&&toLower(a))==="ios"?"ios":"md",$&&a==="ios"?o=toLower($):j&&a==="md"?o=toLower(j):(!o&&s&&!isSrc(s)&&(o=s),isStr(o)&&(o=toLower(o))),!isStr(o)||o.trim()===""||o.replace(/[a-z]|-|\d/gi,"")!==""?null:o),getSrc=o=>isStr(o)&&(o=o.trim(),isSrc(o))?o:null,isSrc=o=>o.length>0&&/(\/|\.)/.test(o),isStr=o=>typeof o=="string",toLower=o=>o.toLowerCase(),inheritAttributes=(o,s=[])=>{const a={};return s.forEach($=>{o.hasAttribute($)&&(o.getAttribute($)!==null&&(a[$]=o.getAttribute($)),o.removeAttribute($))}),a},isRTL$1=o=>o&&o.dir!==""?o.dir.toLowerCase()==="rtl":(document==null?void 0:document.dir.toLowerCase())==="rtl",validateContent=o=>{const s=document.createElement("div");s.innerHTML=o;for(let $=s.childNodes.length-1;$>=0;$--)s.childNodes[$].nodeName.toLowerCase()!=="svg"&&s.removeChild(s.childNodes[$]);const a=s.firstElementChild;if(a&&a.nodeName.toLowerCase()==="svg"){const $=a.getAttribute("class")||"";if(a.setAttribute("class",($+" s-ion-icon").trim()),isValid(a))return s.innerHTML}return""},isValid=o=>{if(o.nodeType===1){if(o.nodeName.toLowerCase()==="script")return!1;for(let s=0;s<o.attributes.length;s++){const a=o.attributes[s].name;if(isStr(a)&&a.toLowerCase().indexOf("on")===0)return!1}for(let s=0;s<o.childNodes.length;s++)if(!isValid(o.childNodes[s]))return!1}return!0},isSvgDataUrl=o=>o.startsWith("data:image/svg+xml"),isEncodedDataUrl=o=>o.indexOf(";utf8,")!==-1,ioniconContent=new Map,requests=new Map;let parser;const getSvgContent=(o,s)=>{let a=requests.get(o);if(!a)if(typeof fetch<"u"&&typeof document<"u")if(isSvgDataUrl(o)&&isEncodedDataUrl(o)){parser||(parser=new DOMParser);const j=parser.parseFromString(o,"text/html").querySelector("svg");return j&&ioniconContent.set(o,j.outerHTML),Promise.resolve()}else a=fetch(o).then($=>{if($.ok)return $.text().then(j=>{j&&s!==!1&&(j=validateContent(j)),ioniconContent.set(o,j||"")});ioniconContent.set(o,"")}),requests.set(o,a);else return ioniconContent.set(o,""),Promise.resolve();return a},iconCss=":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:32px;stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}:host(.flip-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.icon-small){font-size:18px !important}:host(.icon-large){font-size:32px !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}",Icon$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.iconName=null,this.inheritedAttributes={},this.isVisible=!1,this.mode=getIonMode(),this.lazy=!1,this.sanitize=!0,this.hasAriaHidden=()=>{const{el:o}=this;return o.hasAttribute("aria-hidden")&&o.getAttribute("aria-hidden")==="true"}}componentWillLoad(){this.inheritedAttributes=inheritAttributes(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}disconnectedCallback(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(o,s,a){if(this.lazy&&typeof window<"u"&&window.IntersectionObserver){const $=this.io=new window.IntersectionObserver(j=>{j[0].isIntersecting&&($.disconnect(),this.io=void 0,a())},{rootMargin:s});$.observe(o)}else a()}loadIcon(){if(this.isVisible){const s=getUrl(this);s&&(ioniconContent.has(s)?this.svgContent=ioniconContent.get(s):getSvgContent(s,this.sanitize).then(()=>this.svgContent=ioniconContent.get(s)))}const o=this.iconName=getName(this.name,this.icon,this.mode,this.ios,this.md);o&&(this.ariaLabel=o.replace(/\-/g," "))}render(){const{iconName:o,ariaLabel:s,el:a,inheritedAttributes:$}=this,j=this.mode||"md",_e=this.flipRtl||o&&(o.indexOf("arrow")>-1||o.indexOf("chevron")>-1)&&this.flipRtl!==!1;return h(Host,Object.assign({"aria-label":s!==void 0&&!this.hasAriaHidden()?s:null,role:"img",class:Object.assign(Object.assign({[j]:!0},createColorClasses(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":!!_e&&isRTL$1(a)})},$),this.svgContent?h("div",{class:"icon-inner",innerHTML:this.svgContent}):h("div",{class:"icon-inner"}))}static get assetsDirs(){return["svg"]}get el(){return this}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}}static get style(){return iconCss}},[1,"ion-icon",{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,"flip-rtl"],name:[513],src:[1],icon:[8],size:[1],lazy:[4],sanitize:[4],svgContent:[32],isVisible:[32],ariaLabel:[32]}]),getIonMode=()=>typeof document<"u"&&document.documentElement.getAttribute("mode")||"md",createColorClasses=o=>o?{"ion-color":!0,[`ion-color-${o}`]:!0}:null;function defineCustomElement$1(){if(typeof customElements>"u")return;["ion-icon"].forEach(s=>{switch(s){case"ion-icon":customElements.get(s)||customElements.define(s,Icon$1);break}})}const defineCustomElement$2=defineCustomElement$1,IonLifeCycleContext=React$1.createContext({onIonViewWillEnter:()=>{},ionViewWillEnter:()=>{},onIonViewDidEnter:()=>{},ionViewDidEnter:()=>{},onIonViewWillLeave:()=>{},ionViewWillLeave:()=>{},onIonViewDidLeave:()=>{},ionViewDidLeave:()=>{}}),DefaultIonLifeCycleContext=class{constructor(){this.ionViewWillEnterCallbacks=[],this.ionViewDidEnterCallbacks=[],this.ionViewWillLeaveCallbacks=[],this.ionViewDidLeaveCallbacks=[]}onIonViewWillEnter(o){if(o.id){const s=this.ionViewWillEnterCallbacks.findIndex(a=>a.id===o.id);s>-1?this.ionViewWillEnterCallbacks[s]=o:this.ionViewWillEnterCallbacks.push(o)}else this.ionViewWillEnterCallbacks.push(o)}ionViewWillEnter(){this.ionViewWillEnterCallbacks.forEach(o=>o())}onIonViewDidEnter(o){if(o.id){const s=this.ionViewDidEnterCallbacks.findIndex(a=>a.id===o.id);s>-1?this.ionViewDidEnterCallbacks[s]=o:this.ionViewDidEnterCallbacks.push(o)}else this.ionViewDidEnterCallbacks.push(o)}ionViewDidEnter(){this.ionViewDidEnterCallbacks.forEach(o=>o())}onIonViewWillLeave(o){if(o.id){const s=this.ionViewWillLeaveCallbacks.findIndex(a=>a.id===o.id);s>-1?this.ionViewWillLeaveCallbacks[s]=o:this.ionViewWillLeaveCallbacks.push(o)}else this.ionViewWillLeaveCallbacks.push(o)}ionViewWillLeave(){this.ionViewWillLeaveCallbacks.forEach(o=>o())}onIonViewDidLeave(o){if(o.id){const s=this.ionViewDidLeaveCallbacks.findIndex(a=>a.id===o.id);s>-1?this.ionViewDidLeaveCallbacks[s]=o:this.ionViewDidLeaveCallbacks.push(o)}else this.ionViewDidLeaveCallbacks.push(o)}ionViewDidLeave(){this.ionViewDidLeaveCallbacks.forEach(o=>o()),this.componentCanBeDestroyed()}onComponentCanBeDestroyed(o){this.componentCanBeDestroyedCallback=o}componentCanBeDestroyed(){this.componentCanBeDestroyedCallback&&this.componentCanBeDestroyedCallback()}},useIonViewWillEnter=(o,s=[])=>{const a=reactExports.useContext(IonLifeCycleContext),$=reactExports.useRef();$.current=$.current||Math.floor(Math.random()*1e6),reactExports.useEffect(()=>{o.id=$.current,a.onIonViewWillEnter(o)},s)},useIonViewWillLeave=(o,s=[])=>{const a=reactExports.useContext(IonLifeCycleContext),$=reactExports.useRef();$.current=$.current||Math.floor(Math.random()*1e6),reactExports.useEffect(()=>{o.id=$.current,a.onIonViewWillLeave(o)},s)},NavContext=React$1.createContext({getIonRedirect:()=>{},getIonRoute:()=>{},getPageManager:()=>{},getStackManager:()=>{},goBack:o=>{typeof window<"u"&&(typeof o=="string"?window.location.pathname=o:window.history.back())},navigate:o=>{typeof window<"u"&&(window.location.pathname=o)},hasIonicRouter:()=>!1,routeInfo:void 0,setCurrentTab:()=>{},changeTab:(o,s)=>{typeof window<"u"&&(window.location.pathname=s)},resetTab:(o,s)=>{typeof window<"u"&&(window.location.pathname=s)}}),dashToPascalCase=o=>o.toLowerCase().split("-").map(s=>s.charAt(0).toUpperCase()+s.slice(1)).join(""),camelToDashCase=o=>o.replace(/([A-Z])/g,s=>`-${s[0].toLowerCase()}`),attachProps=(o,s,a={})=>{if(o instanceof Element){const $=getClassName(o.classList,s,a);$!==""&&(o.className=$),Object.keys(s).forEach(j=>{if(!(j==="children"||j==="style"||j==="ref"||j==="class"||j==="className"||j==="forwardedRef"))if(j.indexOf("on")===0&&j[2]===j[2].toUpperCase()){const _e=j.substring(2),et=_e[0].toLowerCase()+_e.substring(1);isCoveredByReact(et)||syncEvent(o,et,s[j])}else o[j]=s[j],typeof s[j]==="string"&&o.setAttribute(camelToDashCase(j),s[j])})}},getClassName=(o,s,a)=>{const $=s.className||s.class,j=a.className||a.class,_e=arrayToMap(o),et=arrayToMap($?$.split(" "):[]),tt=arrayToMap(j?j.split(" "):[]),nt=[];return _e.forEach(it=>{et.has(it)?(nt.push(it),et.delete(it)):tt.has(it)||nt.push(it)}),et.forEach(it=>nt.push(it)),nt.join(" ")};/**
 * Checks if an event is supported in the current execution environment.
 * @license Modernizr 3.0.0pre (Custom Build) | MIT
 */const isCoveredByReact=o=>{if(typeof document>"u")return!0;{const s="on"+o;let a=s in document;if(!a){const $=document.createElement("div");$.setAttribute(s,"return;"),a=typeof $[s]=="function"}return a}},syncEvent=(o,s,a)=>{const $=o.__events||(o.__events={}),j=$[s];j&&o.removeEventListener(s,j),o.addEventListener(s,$[s]=function(et){a&&a.call(this,et)})},arrayToMap=o=>{const s=new Map;return o.forEach(a=>s.set(a,a)),s},setRef=(o,s)=>{typeof o=="function"?o(s):o!=null&&(o.current=s)},mergeRefs=(...o)=>s=>{o.forEach(a=>{setRef(a,s)})},createForwardRef$1=(o,s)=>{const a=($,j)=>React$1.createElement(o,Object.assign({},$,{forwardedRef:j}));return a.displayName=s,React$1.forwardRef(a)},defineCustomElement=(o,s)=>{s!==void 0&&typeof customElements<"u"&&!customElements.get(o)&&customElements.define(o,s)},createReactComponent=(o,s,a,$)=>{$!==void 0&&$();const j=dashToPascalCase(o),_e=class extends React$1.Component{constructor(et){super(et),this.setComponentElRef=tt=>{this.componentEl=tt}}componentDidMount(){this.componentDidUpdate(this.props)}componentDidUpdate(et){attachProps(this.componentEl,this.props,et)}render(){const et=this.props,{children:tt,forwardedRef:nt,style:it,className:rt,ref:st}=et,ot=__rest(et,["children","forwardedRef","style","className","ref"]);let at=Object.keys(ot).reduce((ct,ht)=>{if(ht.indexOf("on")===0&&ht[2]===ht[2].toUpperCase()){const dt=ht.substring(2).toLowerCase();typeof document<"u"&&isCoveredByReact(dt)&&(ct[ht]=ot[ht])}else ct[ht]=ot[ht];return ct},{});const lt=Object.assign(Object.assign({},at),{ref:mergeRefs(nt,this.setComponentElRef),style:it});return reactExports.createElement(o,lt,tt)}static get displayName(){return j}};return createForwardRef$1(_e,j)},IonAvatar=createReactComponent("ion-avatar",void 0,void 0,defineCustomElement$1f),IonBadge=createReactComponent("ion-badge",void 0,void 0,defineCustomElement$1d),IonButtons=createReactComponent("ion-buttons",void 0,void 0,defineCustomElement$1a),IonCardContent=createReactComponent("ion-card-content",void 0,void 0,defineCustomElement$19),IonCardHeader=createReactComponent("ion-card-header",void 0,void 0,defineCustomElement$18),IonCardSubtitle=createReactComponent("ion-card-subtitle",void 0,void 0,defineCustomElement$17),IonCardTitle=createReactComponent("ion-card-title",void 0,void 0,defineCustomElement$16),IonCheckbox=createReactComponent("ion-checkbox",void 0,void 0,defineCustomElement$14),IonChip=createReactComponent("ion-chip",void 0,void 0,defineCustomElement$13),IonCol=createReactComponent("ion-col",void 0,void 0,defineCustomElement$12),IonContent=createReactComponent("ion-content",void 0,void 0,defineCustomElement$11),IonDatetime=createReactComponent("ion-datetime",void 0,void 0,defineCustomElement$W),IonDatetimeButton=createReactComponent("ion-datetime-button",void 0,void 0,defineCustomElement$V),IonFab=createReactComponent("ion-fab",void 0,void 0,defineCustomElement$U),IonFooter=createReactComponent("ion-footer",void 0,void 0,defineCustomElement$T),IonGrid=createReactComponent("ion-grid",void 0,void 0,defineCustomElement$S),IonHeader=createReactComponent("ion-header",void 0,void 0,defineCustomElement$R),IonInfiniteScroll=createReactComponent("ion-infinite-scroll",void 0,void 0,defineCustomElement$Q),IonInfiniteScrollContent=createReactComponent("ion-infinite-scroll-content",void 0,void 0,defineCustomElement$O),IonInput=createReactComponent("ion-input",void 0,void 0,defineCustomElement$N),IonItemGroup=createReactComponent("ion-item-group",void 0,void 0,defineCustomElement$M),IonItemOptions=createReactComponent("ion-item-options",void 0,void 0,defineCustomElement$L),IonItemSliding=createReactComponent("ion-item-sliding",void 0,void 0,defineCustomElement$K),IonLabel=createReactComponent("ion-label",void 0,void 0,defineCustomElement$J),IonList=createReactComponent("ion-list",void 0,void 0,defineCustomElement$H),IonListHeader=createReactComponent("ion-list-header",void 0,void 0,defineCustomElement$F),IonMenu=createReactComponent("ion-menu",void 0,void 0,defineCustomElement$D),IonNote=createReactComponent("ion-note",void 0,void 0,defineCustomElement$A),IonRadio=createReactComponent("ion-radio",void 0,void 0,defineCustomElement$x),IonRadioGroup=createReactComponent("ion-radio-group",void 0,void 0,defineCustomElement$v),IonRange=createReactComponent("ion-range",void 0,void 0,defineCustomElement$u),IonRefresher=createReactComponent("ion-refresher",void 0,void 0,defineCustomElement$t),IonRefresherContent=createReactComponent("ion-refresher-content",void 0,void 0,defineCustomElement$s),IonReorder=createReactComponent("ion-reorder",void 0,void 0,defineCustomElement$r),IonReorderGroup=createReactComponent("ion-reorder-group",void 0,void 0,defineCustomElement$q),IonRippleEffect=createReactComponent("ion-ripple-effect",void 0,void 0,defineCustomElement$p),IonRow=createReactComponent("ion-row",void 0,void 0,defineCustomElement$n),IonSearchbar=createReactComponent("ion-searchbar",void 0,void 0,defineCustomElement$m),IonSegment=createReactComponent("ion-segment",void 0,void 0,defineCustomElement$l),IonSegmentButton=createReactComponent("ion-segment-button",void 0,void 0,defineCustomElement$k),IonSelect=createReactComponent("ion-select",void 0,void 0,defineCustomElement$i),IonSelectOption=createReactComponent("ion-select-option",void 0,void 0,defineCustomElement$h),IonSkeletonText=createReactComponent("ion-skeleton-text",void 0,void 0,defineCustomElement$g),IonSlide=createReactComponent("ion-slide",void 0,void 0,defineCustomElement$f),IonSlides=createReactComponent("ion-slides",void 0,void 0,defineCustomElement$e),IonSpinner=createReactComponent("ion-spinner",void 0,void 0,defineCustomElement$d),IonSplitPane=createReactComponent("ion-split-pane",void 0,void 0,defineCustomElement$c),IonText=createReactComponent("ion-text",void 0,void 0,defineCustomElement$9),IonTextarea=createReactComponent("ion-textarea",void 0,void 0,defineCustomElement$8),IonThumbnail=createReactComponent("ion-thumbnail",void 0,void 0,defineCustomElement$7),IonTitle=createReactComponent("ion-title",void 0,void 0,defineCustomElement$6),IonToggle=createReactComponent("ion-toggle",void 0,void 0,defineCustomElement$4),IonToolbar=createReactComponent("ion-toolbar",void 0,void 0,defineCustomElement$3),createForwardRef=(o,s)=>{const a=($,j)=>React$1.createElement(o,Object.assign({},$,{forwardedRef:j}));return a.displayName=s,React$1.forwardRef(a)},isPlatform=o=>isPlatform$1(window,o),getPlatforms=()=>getPlatforms$1(window),getConfig=()=>{if(typeof window<"u"){const o=window.Ionic;if(o&&o.config)return o.config}return null},createRoutingComponent=(o,s)=>{defineCustomElement(o,s);const a=dashToPascalCase(o),$=class extends React$1.Component{constructor(j){super(j),this.handleClick=_e=>{const{routerLink:et,routerDirection:tt,routerOptions:nt,routerAnimation:it}=this.props;et!==void 0&&(_e.preventDefault(),this.context.navigate(et,tt,void 0,it,nt))},this.ref=React$1.createRef(),this.stableMergedRefs=mergeRefs(this.ref,this.props.forwardedRef)}componentDidMount(){this.componentDidUpdate(this.props)}componentDidUpdate(j){const _e=this.ref.current;attachProps(_e,this.props,j)}render(){const j=this.props,{children:_e,forwardedRef:et,style:tt,className:nt,ref:it}=j,rt=__rest(j,["children","forwardedRef","style","className","ref"]),st=Object.keys(rt).reduce((at,lt)=>{if(lt.indexOf("on")===0&&lt[2]===lt[2].toUpperCase()){const ct=lt.substring(2).toLowerCase();isCoveredByReact(ct)&&(at[lt]=rt[lt])}else["string","boolean","number"].includes(typeof rt[lt])&&(at[camelToDashCase(lt)]=rt[lt]);return at},{}),ot=Object.assign(Object.assign({},st),{ref:this.stableMergedRefs,style:tt});if(this.props.routerLink&&!this.props.href&&(ot.href=this.props.routerLink),ot.onClick){const at=ot.onClick;ot.onClick=lt=>{at(lt),lt.defaultPrevented||this.handleClick(lt)}}else ot.onClick=this.handleClick;return reactExports.createElement(o,ot,_e)}static get displayName(){return a}static get contextType(){return NavContext}};return createForwardRef($,a)},IonRouterLink=createRoutingComponent("ion-router-link",IonRouterLink$1),IonButton=createRoutingComponent("ion-button",IonButton$1),IonCard=createRoutingComponent("ion-card",IonCard$1),IonFabButton=createRoutingComponent("ion-fab-button",IonFabButton$1),IonItem=createRoutingComponent("ion-item",IonItem$1),IonItemOption=createRoutingComponent("ion-item-option",IonItemOption$1),createControllerComponent=(o,s,a)=>{a&&a();const $=dashToPascalCase(o),j=`on${$}DidDismiss`,_e=`on${$}DidPresent`,et=`on${$}WillDismiss`,tt=`on${$}WillPresent`;class nt extends React$1.Component{constructor(rt){super(rt),this.willUnmount=!1,this.handleDismiss=this.handleDismiss.bind(this)}static get displayName(){return $}async componentDidMount(){this.willUnmount=!1;const{isOpen:rt}=this.props;rt&&this.present()}componentWillUnmount(){this.willUnmount=!0,this.overlay&&this.overlay.dismiss()}async componentDidUpdate(rt){rt.isOpen!==this.props.isOpen&&this.props.isOpen===!0&&this.present(rt),this.overlay&&rt.isOpen!==this.props.isOpen&&this.props.isOpen===!1&&await this.overlay.dismiss()}handleDismiss(rt){this.props.onDidDismiss&&this.props.onDidDismiss(rt),setRef(this.props.forwardedRef,null)}async present(rt){const st=this.props,ot=__rest(st,["isOpen","onDidDismiss","onDidPresent","onWillDismiss","onWillPresent"]);this.overlay&&this.overlay.remove(),this.overlay=await s.create(Object.assign({},ot)),attachProps(this.overlay,{[j]:this.handleDismiss,[_e]:at=>this.props.onDidPresent&&this.props.onDidPresent(at),[et]:at=>this.props.onWillDismiss&&this.props.onWillDismiss(at),[tt]:at=>this.props.onWillPresent&&this.props.onWillPresent(at)},rt),this.props.isOpen===!0&&this.willUnmount===!1&&(setRef(this.props.forwardedRef,this.overlay),await this.overlay.present())}render(){return null}}return React$1.forwardRef((it,rt)=>React$1.createElement(nt,Object.assign({},it,{forwardedRef:rt})))},IonAlert=createControllerComponent("ion-alert",alertController,defineCustomElement$1h),IonLoading=createControllerComponent("ion-loading",loadingController,defineCustomElement$E),createOverlayComponent=(o,s,a)=>{a!==void 0&&a();const $=dashToPascalCase(o),j=`on${$}DidDismiss`,_e=`on${$}DidPresent`,et=`on${$}WillDismiss`,tt=`on${$}WillPresent`;class nt extends React$1.Component{constructor(rt){super(rt),this.isDismissing=!1,typeof document<"u"&&(this.el=document.createElement("div")),this.handleDismiss=this.handleDismiss.bind(this)}static get displayName(){return $}componentDidMount(){this.props.isOpen&&this.present()}componentWillUnmount(){this.overlay&&this.overlay.dismiss()}handleDismiss(rt){this.props.onDidDismiss&&this.props.onDidDismiss(rt),setRef(this.props.forwardedRef,null)}shouldComponentUpdate(rt){return this.overlay&&rt.isOpen!==this.props.isOpen&&rt.isOpen===!1&&(this.isDismissing=!0),!0}async componentDidUpdate(rt){this.overlay&&attachProps(this.overlay,this.props,rt),rt.isOpen!==this.props.isOpen&&this.props.isOpen===!0&&this.present(rt),this.overlay&&rt.isOpen!==this.props.isOpen&&this.props.isOpen===!1&&(await this.overlay.dismiss(),this.isDismissing=!1,this.forceUpdate())}async present(rt){const st=this.props,ot=__rest(st,["children","isOpen","onDidDismiss","onDidPresent","onWillDismiss","onWillPresent"]),at=Object.assign(Object.assign({},ot),{ref:this.props.forwardedRef,[j]:this.handleDismiss,[_e]:lt=>this.props.onDidPresent&&this.props.onDidPresent(lt),[et]:lt=>this.props.onWillDismiss&&this.props.onWillDismiss(lt),[tt]:lt=>this.props.onWillPresent&&this.props.onWillPresent(lt)});this.overlay=await s.create(Object.assign(Object.assign({},at),{component:this.el,componentProps:{}})),setRef(this.props.forwardedRef,this.overlay),attachProps(this.overlay,at,rt),await this.overlay.present()}render(){return ReactDOM.createPortal(this.props.isOpen||this.isDismissing?this.props.children:null,this.el)}}return React$1.forwardRef((it,rt)=>React$1.createElement(nt,Object.assign({},it,{forwardedRef:rt})))},actionSheetController={create:o=>actionSheetController$1.create(o),dismiss:(o,s,a)=>actionSheetController$1.dismiss(o,s,a),getTop:()=>actionSheetController$1.getTop()},IonActionSheet=createOverlayComponent("ion-action-sheet",actionSheetController,defineCustomElement$1j),detachProps=(o,s)=>{o instanceof Element&&Object.keys(s).forEach(a=>{if(a.indexOf("on")===0&&a[2]===a[2].toUpperCase()){const $=a.substring(2),j=$[0].toLowerCase()+$.substring(1);isCoveredByReact(j)||detachEvent(o,j)}})},detachEvent=(o,s)=>{const a=o.__events||(o.__events={}),$=a[s];$&&(o.removeEventListener(s,$),a[s]=void 0)},createInlineOverlayComponent=(o,s)=>{s&&s();const a=dashToPascalCase(o),$=class extends React$1.Component{constructor(j){super(j),this.handleIonMount=()=>{this.setState({isOpen:!0})},this.handleWillPresent=_e=>{this.setState({isOpen:!0}),this.props.onWillPresent&&this.props.onWillPresent(_e)},this.handleDidDismiss=_e=>{const et=this.wrapperRef.current,tt=this.ref.current;et&&tt&&(tt.append(et),this.setState({isOpen:!1})),this.props.onDidDismiss&&this.props.onDidDismiss(_e)},this.ref=React$1.createRef(),this.stableMergedRefs=mergeRefs(this.ref,this.props.forwardedRef),this.state={isOpen:!1},this.wrapperRef=React$1.createRef()}componentDidMount(){var j,_e,et;this.componentDidUpdate(this.props),(j=this.ref.current)===null||j===void 0||j.addEventListener("ionMount",this.handleIonMount),(_e=this.ref.current)===null||_e===void 0||_e.addEventListener("willPresent",this.handleWillPresent),(et=this.ref.current)===null||et===void 0||et.addEventListener("didDismiss",this.handleDidDismiss)}componentDidUpdate(j){const _e=this.ref.current;attachProps(_e,this.props,j)}componentWillUnmount(){const j=this.ref.current;j&&this.state.isOpen&&(j.removeEventListener("didDismiss",this.handleDidDismiss),j.remove(),detachProps(j,this.props))}render(){const j=this.props,{children:_e,forwardedRef:et,style:tt,className:nt,ref:it}=j,rt=__rest(j,["children","forwardedRef","style","className","ref"]),st=Object.keys(rt).reduce((at,lt)=>{if(lt.indexOf("on")===0&&lt[2]===lt[2].toUpperCase()){const ct=lt.substring(2).toLowerCase();isCoveredByReact(ct)&&(at[lt]=rt[lt])}else["string","boolean","number"].includes(typeof rt[lt])&&(at[camelToDashCase(lt)]=rt[lt]);return at},{}),ot=Object.assign(Object.assign({},st),{ref:this.stableMergedRefs,style:tt});return reactExports.createElement("template",{},reactExports.createElement(o,ot,this.state.isOpen||this.props.keepContentsMounted?reactExports.createElement("div",{id:"ion-react-wrapper",ref:this.wrapperRef,className:"ion-delegate-host",style:{display:"flex",flexDirection:"column",height:"100%"}},_e):null))}static get displayName(){return a}};return createForwardRef($,a)},IonModal=createInlineOverlayComponent("ion-modal",defineCustomElement$C),IonPopover=createInlineOverlayComponent("ion-popover",defineCustomElement$z),IonContext=React$1.createContext({addOverlay:()=>{},removeOverlay:()=>{}}),IonOverlayManager=({onAddOverlay:o,onRemoveOverlay:s})=>{const[a,$]=reactExports.useState({}),j=reactExports.useRef({});j.current=a,reactExports.useEffect(()=>{o(_e),s(et)},[]);const _e=(nt,it,rt)=>{const st=Object.assign({},j.current);st[nt]={component:it,containerElement:rt},$(st)},et=nt=>{const it=Object.assign({},j.current);delete it[nt],$(it)},tt=Object.keys(a);return React$1.createElement(React$1.Fragment,null,tt.map(nt=>{const it=a[nt];return ReactDOM.createPortal(it.component,it.containerElement,`overlay-${nt}`)}))},IonTabButtonInner=createReactComponent("ion-tab-button",void 0,void 0,defineCustomElement$a),IonTabBarInner=createReactComponent("ion-tab-bar",void 0,void 0,defineCustomElement$b),IonBackButtonInner=createReactComponent("ion-back-button",void 0,void 0,defineCustomElement$1e),IonRouterOutletInner=createReactComponent("ion-router-outlet",void 0,void 0,defineCustomElement$o),IonAppInner=createReactComponent("ion-app",void 0,void 0,defineCustomElement$1g),IonIconInner=createReactComponent("ion-icon",void 0,void 0,defineCustomElement$2),IonApp=class extends React$1.Component{constructor(o){super(o),this.ionContext={addOverlay:(s,a,$)=>{this.addOverlayCallback&&this.addOverlayCallback(s,a,$)},removeOverlay:s=>{this.removeOverlayCallback&&this.removeOverlayCallback(s)}}}render(){return React$1.createElement(IonContext.Provider,{value:this.ionContext},React$1.createElement(IonAppInner,Object.assign({},this.props),this.props.children),React$1.createElement(IonOverlayManager,{onAddOverlay:o=>{this.addOverlayCallback=o},onRemoveOverlay:o=>{this.removeOverlayCallback=o}}))}static get displayName(){return"IonApp"}},StackContext=React$1.createContext({registerIonPage:()=>{},isInOutlet:()=>!1});class PageManager extends React$1.PureComponent{constructor(s){super(s),this.ionPageElementRef=React$1.createRef(),this.stableMergedRefs=mergeRefs(this.ionPageElementRef,this.props.forwardedRef)}componentDidMount(){this.ionPageElementRef.current&&(this.context.isInOutlet()&&this.ionPageElementRef.current.classList.add("ion-page-invisible"),this.context.registerIonPage(this.ionPageElementRef.current,this.props.routeInfo),this.ionPageElementRef.current.addEventListener("ionViewWillEnter",this.ionViewWillEnterHandler.bind(this)),this.ionPageElementRef.current.addEventListener("ionViewDidEnter",this.ionViewDidEnterHandler.bind(this)),this.ionPageElementRef.current.addEventListener("ionViewWillLeave",this.ionViewWillLeaveHandler.bind(this)),this.ionPageElementRef.current.addEventListener("ionViewDidLeave",this.ionViewDidLeaveHandler.bind(this)))}componentWillUnmount(){this.ionPageElementRef.current&&(this.ionPageElementRef.current.removeEventListener("ionViewWillEnter",this.ionViewWillEnterHandler.bind(this)),this.ionPageElementRef.current.removeEventListener("ionViewDidEnter",this.ionViewDidEnterHandler.bind(this)),this.ionPageElementRef.current.removeEventListener("ionViewWillLeave",this.ionViewWillLeaveHandler.bind(this)),this.ionPageElementRef.current.removeEventListener("ionViewDidLeave",this.ionViewDidLeaveHandler.bind(this)))}ionViewWillEnterHandler(){this.ionLifeCycleContext.ionViewWillEnter()}ionViewDidEnterHandler(){this.ionLifeCycleContext.ionViewDidEnter()}ionViewWillLeaveHandler(){this.ionLifeCycleContext.ionViewWillLeave()}ionViewDidLeaveHandler(){this.ionLifeCycleContext.ionViewDidLeave()}render(){const s=this.props,{className:a,children:$,routeInfo:j,forwardedRef:_e}=s,et=__rest(s,["className","children","routeInfo","forwardedRef"]);return React$1.createElement(IonLifeCycleContext.Consumer,null,tt=>(this.ionLifeCycleContext=tt,React$1.createElement("div",Object.assign({className:a?`${a} ion-page`:"ion-page",ref:this.stableMergedRefs},et),$)))}static get contextType(){return StackContext}}class IonPageInternal extends React$1.Component{constructor(s){super(s)}render(){const s=this.props,{className:a,children:$,forwardedRef:j}=s,_e=__rest(s,["className","children","forwardedRef"]);return this.context.hasIonicRouter()?React$1.createElement(PageManager,Object.assign({className:a?`${a}`:"",routeInfo:this.context.routeInfo,forwardedRef:j},_e),$):React$1.createElement("div",Object.assign({className:a?`ion-page ${a}`:"ion-page",ref:j},_e),$)}static get displayName(){return"IonPage"}static get contextType(){return NavContext}}const IonPage=createForwardRef(IonPageInternal,"IonPage"),ReactDelegate=(o,s)=>{const a=new WeakMap;return{attachViewToDom:async(_e,et,tt,nt)=>{const it=document.createElement("div");nt&&it.classList.add(...nt),_e.appendChild(it);const rt=et(tt),st=reactDomExports.createPortal(rt,it);return a.set(et,st),o(st),Promise.resolve(it)},removeViewFromDom:(_e,et)=>{const tt=a.get(et);return tt&&s(tt),Promise.resolve()}}},IonNavInner=createReactComponent("ion-nav",void 0,void 0,defineCustomElement$B),IonNavInternal=o=>{var{children:s,forwardedRef:a}=o,$=__rest(o,["children","forwardedRef"]);const[j,_e]=reactExports.useState([]),nt=ReactDelegate(it=>_e([...j,it]),it=>_e(j.filter(rt=>rt!==it)));return React$1.createElement(IonNavInner,Object.assign({delegate:nt,ref:a},$),j)};createForwardRef(IonNavInternal,"IonNav");React$1.createContext({activeTab:void 0,selectTab:()=>!1});const HTMLElementSSR=typeof HTMLElement<"u"?HTMLElement:class{};class OutletPageManager extends React$1.Component{constructor(s){super(s),this.outletIsReady=!1}componentDidMount(){this.ionRouterOutlet&&(this.outletIsReady||componentOnReady(this.ionRouterOutlet,()=>{this.outletIsReady=!0,this.context.registerIonPage(this.ionRouterOutlet,this.props.routeInfo)}),this.ionRouterOutlet.addEventListener("ionViewWillEnter",this.ionViewWillEnterHandler.bind(this)),this.ionRouterOutlet.addEventListener("ionViewDidEnter",this.ionViewDidEnterHandler.bind(this)),this.ionRouterOutlet.addEventListener("ionViewWillLeave",this.ionViewWillLeaveHandler.bind(this)),this.ionRouterOutlet.addEventListener("ionViewDidLeave",this.ionViewDidLeaveHandler.bind(this)))}componentWillUnmount(){this.ionRouterOutlet&&(this.ionRouterOutlet.removeEventListener("ionViewWillEnter",this.ionViewWillEnterHandler.bind(this)),this.ionRouterOutlet.removeEventListener("ionViewDidEnter",this.ionViewDidEnterHandler.bind(this)),this.ionRouterOutlet.removeEventListener("ionViewWillLeave",this.ionViewWillLeaveHandler.bind(this)),this.ionRouterOutlet.removeEventListener("ionViewDidLeave",this.ionViewDidLeaveHandler.bind(this)))}ionViewWillEnterHandler(){this.ionLifeCycleContext.ionViewWillEnter()}ionViewDidEnterHandler(){this.ionLifeCycleContext.ionViewDidEnter()}ionViewWillLeaveHandler(){this.ionLifeCycleContext.ionViewWillLeave()}ionViewDidLeaveHandler(){this.ionLifeCycleContext.ionViewDidLeave()}render(){const s=this.props,{StackManager:a,children:$,routeInfo:j}=s,_e=__rest(s,["StackManager","children","routeInfo"]);return React$1.createElement(IonLifeCycleContext.Consumer,null,et=>(this.ionLifeCycleContext=et,React$1.createElement(a,{routeInfo:j},React$1.createElement(IonRouterOutletInner,Object.assign({setRef:tt=>this.ionRouterOutlet=tt},_e),$))))}static get contextType(){return StackContext}}class IonRouterOutletContainer extends React$1.Component{constructor(s){super(s)}render(){const s=this.context.getStackManager(),a=this.props,{children:$,forwardedRef:j}=a,_e=__rest(a,["children","forwardedRef"]);return this.context.hasIonicRouter()?_e.ionPage?React$1.createElement(OutletPageManager,Object.assign({StackManager:s,routeInfo:this.context.routeInfo},_e),$):React$1.createElement(s,{routeInfo:this.context.routeInfo},React$1.createElement(IonRouterOutletInner,Object.assign({},_e,{forwardedRef:j}),$)):React$1.createElement(IonRouterOutletInner,Object.assign({ref:j},this.props),this.props.children)}static get contextType(){return NavContext}}const IonRouterOutlet=createForwardRef(IonRouterOutletContainer,"IonRouterOutlet"),IonTabButton=class extends React$1.Component{constructor(o){super(o),this.handleIonTabButtonClick=this.handleIonTabButtonClick.bind(this)}handleIonTabButtonClick(){this.props.onClick&&this.props.onClick(new CustomEvent("ionTabButtonClick",{detail:{tab:this.props.tab,href:this.props.href,routeOptions:this.props.routerOptions}}))}render(){const o=this.props,s=__rest(o,["onClick"]);return React$1.createElement(IonTabButtonInner,Object.assign({onIonTabButtonClick:this.handleIonTabButtonClick},s))}static get displayName(){return"IonTabButton"}};class IonTabBarUnwrapped extends React$1.PureComponent{constructor(s){super(s),this.setActiveTabOnContext=$=>{};const a={};React$1.Children.forEach(s.children,$=>{var j,_e,et,tt;$!=null&&typeof $=="object"&&$.props&&($.type===IonTabButton||$.type.isTabButton)&&(a[$.props.tab]={originalHref:$.props.href,currentHref:$.props.href,originalRouteOptions:$.props.href===((j=s.routeInfo)===null||j===void 0?void 0:j.pathname)?(_e=s.routeInfo)===null||_e===void 0?void 0:_e.routeOptions:void 0,currentRouteOptions:$.props.href===((et=s.routeInfo)===null||et===void 0?void 0:et.pathname)?(tt=s.routeInfo)===null||tt===void 0?void 0:tt.routeOptions:void 0})}),this.state={tabs:a},this.onTabButtonClick=this.onTabButtonClick.bind(this),this.renderTabButton=this.renderTabButton.bind(this),this.setActiveTabOnContext=this.setActiveTabOnContext.bind(this),this.selectTab=this.selectTab.bind(this)}componentDidMount(){const s=this.state.tabs,$=Object.keys(s).find(j=>{const _e=s[j].originalHref;return this.props.routeInfo.pathname.startsWith(_e)});$&&this.setState({activeTab:$})}componentDidUpdate(){this.state.activeTab&&this.setActiveTabOnContext(this.state.activeTab)}selectTab(s){const a=this.state.tabs[s];return a?(this.onTabButtonClick(new CustomEvent("ionTabButtonClick",{detail:{href:a.currentHref,tab:s,selected:s===this.state.activeTab,routeOptions:void 0}})),!0):!1}static getDerivedStateFromProps(s,a){var $,j,_e;const et=Object.assign({},a.tabs),nt=Object.keys(a.tabs).find(rt=>{const st=a.tabs[rt].originalHref;return s.routeInfo.pathname.startsWith(st)});React$1.Children.forEach(s.children,rt=>{if(rt!=null&&typeof rt=="object"&&rt.props&&(rt.type===IonTabButton||rt.type.isTabButton)){const st=et[rt.props.tab];(!st||st.originalHref!==rt.props.href)&&(et[rt.props.tab]={originalHref:rt.props.href,currentHref:rt.props.href,originalRouteOptions:rt.props.routeOptions,currentRouteOptions:rt.props.routeOptions})}});const{activeTab:it}=a;if(nt&&it){const rt=a.tabs[it].currentHref,st=a.tabs[it].currentRouteOptions;(nt!==it||rt!==(($=s.routeInfo)===null||$===void 0?void 0:$.pathname)||st!==((j=s.routeInfo)===null||j===void 0?void 0:j.routeOptions))&&(et[nt]={originalHref:et[nt].originalHref,currentHref:s.routeInfo.pathname+(s.routeInfo.search||""),originalRouteOptions:et[nt].originalRouteOptions,currentRouteOptions:(_e=s.routeInfo)===null||_e===void 0?void 0:_e.routeOptions},s.routeInfo.routeAction==="pop"&&nt!==it&&(et[it]={originalHref:et[it].originalHref,currentHref:et[it].originalHref,originalRouteOptions:et[it].originalRouteOptions,currentRouteOptions:et[it].currentRouteOptions}))}return nt&&s.onSetCurrentTab(nt,s.routeInfo),{activeTab:nt,tabs:et}}onTabButtonClick(s,a){const $=this.state.tabs[s.detail.tab],j=$.originalHref,_e=s.detail.href,{activeTab:et}=this.state;a&&a(s),et===s.detail.tab?j!==_e&&this.context.resetTab(s.detail.tab,j,$.originalRouteOptions):(this.props.onIonTabsWillChange&&this.props.onIonTabsWillChange(new CustomEvent("ionTabWillChange",{detail:{tab:s.detail.tab}})),this.props.onIonTabsDidChange&&this.props.onIonTabsDidChange(new CustomEvent("ionTabDidChange",{detail:{tab:s.detail.tab}})),this.setActiveTabOnContext(s.detail.tab),this.context.changeTab(s.detail.tab,_e,s.detail.routeOptions))}renderTabButton(s){return a=>{var $,j;if(a!=null&&a.props&&(a.type===IonTabButton||a.type.isTabButton)){const _e=a.props.tab===s?($=this.props.routeInfo)===null||$===void 0?void 0:$.pathname:this.state.tabs[a.props.tab].currentHref,et=a.props.tab===s?(j=this.props.routeInfo)===null||j===void 0?void 0:j.routeOptions:this.state.tabs[a.props.tab].currentRouteOptions;return React$1.cloneElement(a,{href:_e,routeOptions:et,onClick:tt=>this.onTabButtonClick(tt,a.props.onClick)})}return null}}render(){const{activeTab:s}=this.state;return React$1.createElement(IonTabBarInner,Object.assign({},this.props,{selectedTab:s}),React$1.Children.map(this.props.children,this.renderTabButton(s)))}static get contextType(){return NavContext}}const IonTabBarContainer=React$1.memo(o=>{var{forwardedRef:s}=o,a=__rest(o,["forwardedRef"]);const $=reactExports.useContext(NavContext);return React$1.createElement(IonTabBarUnwrapped,Object.assign({ref:s},a,{routeInfo:a.routeInfo||$.routeInfo||{pathname:window.location.pathname},onSetCurrentTab:$.setCurrentTab}),a.children)});createForwardRef(IonTabBarContainer,"IonTabBar");class IonTabsElement extends HTMLElementSSR{constructor(){super()}}typeof window<"u"&&window.customElements&&(window.customElements.get("ion-tabs")||window.customElements.define("ion-tabs",IonTabsElement));const IonBackButton=class extends React$1.Component{constructor(){super(...arguments),this.clickButton=o=>{if(o.target&&o.target.closest("ion-nav")!==null)return;const{defaultHref:s,routerAnimation:a}=this.props;this.context.hasIonicRouter()?(o.stopPropagation(),this.context.goBack(s,a)):s!==void 0&&(window.location.href=s)}}render(){return React$1.createElement(IonBackButtonInner,Object.assign({onClick:this.clickButton},this.props))}static get displayName(){return"IonBackButton"}static get contextType(){return NavContext}};class IonIconContainer extends React$1.PureComponent{constructor(s){super(s),this.props.name&&console.warn('In Ionic React, you import icons from "ionicons/icons" and set the icon you imported to the "icon" property. Setting the "name" property has no effect.')}render(){var s,a;const $=this.props,{icon:j,ios:_e,md:et,mode:tt}=$,nt=__rest($,["icon","ios","md","mode"]);let it;const rt=getConfig(),st=tt||(rt==null?void 0:rt.get("mode"));return _e||et?st==="ios"?it=(s=_e??et)!==null&&s!==void 0?s:j:it=(a=et??_e)!==null&&a!==void 0?a:j:it=j,React$1.createElement(IonIconInner,Object.assign({ref:this.props.forwardedRef,icon:it},nt),this.props.children)}static get contextType(){return NavContext}}const IonIcon=createForwardRef(IonIconContainer,"IonIcon");class IonRoute extends React$1.PureComponent{render(){const s=this.context.getIonRoute();return!this.context.hasIonicRouter()||!IonRoute?(console.error("You either do not have an Ionic Router package, or your router does not support using <IonRoute>"),null):React$1.createElement(s,Object.assign({},this.props))}static get contextType(){return NavContext}}class IonRedirect extends React$1.PureComponent{render(){const s=this.context.getIonRedirect();return!this.context.hasIonicRouter()||!IonRedirect?(console.error("You either do not have an Ionic Router package, or your router does not support using <IonRedirect>"),null):React$1.createElement(s,Object.assign({},this.props))}static get contextType(){return NavContext}}const IonRouterContext=React$1.createContext({routeInfo:void 0,push:()=>{throw new Error("An Ionic Router is required for IonRouterContext")},back:()=>{throw new Error("An Ionic Router is required for IonRouterContext")},canGoBack:()=>{throw new Error("An Ionic Router is required for IonRouterContext")},nativeBack:()=>{throw new Error("An Ionic Router is required for IonRouterContext")}});class CreateAnimation extends React$1.PureComponent{constructor(s){super(s),this.nodes=new Map,this.animation=createAnimation(s.id)}setupAnimation(s){const a=this.animation;this.nodes.size>0&&a.addElement(Array.from(this.nodes.values())),checkConfig(a,s),checkPlayback(a,s)}componentDidMount(){const s=this.props;this.setupAnimation(s)}componentDidUpdate(s){const a=this.animation,$=this.props;checkConfig(a,$,s),checkProgress(a,$,s),checkPlayback(a,$,s)}render(){const{children:s}=this.props;return React$1.createElement(React$1.Fragment,null,React$1.Children.map(s,(a,$)=>React$1.cloneElement(a,{ref:j=>this.nodes.set($,j)})))}}const checkConfig=(o,s={},a={})=>{const $=["children","progressStart","progressStep","progressEnd","pause","stop","destroy","play","from","to","fromTo","onFinish"];for(const nt in s)s.hasOwnProperty(nt)&&!$.includes(nt)&&s[nt]!==a[nt]&&o[nt](s[nt]);const j=s.from;j&&j!==a.from&&(Array.isArray(j)?j:[j]).forEach(it=>o.from(it.property,it.value));const _e=s.to;_e&&_e!==a.to&&(Array.isArray(_e)?_e:[_e]).forEach(it=>o.to(it.property,it.value));const et=s.fromTo;et&&et!==a.fromTo&&(Array.isArray(et)?et:[et]).forEach(it=>o.fromTo(it.property,it.fromValue,it.toValue));const tt=s.onFinish;tt&&tt!==a.onFinish&&(Array.isArray(tt)?tt:[tt]).forEach(it=>o.onFinish(it.callback,it.opts))},checkProgress=(o,s={},a={})=>{var $,j,_e,et,tt;const{progressStart:nt,progressStep:it,progressEnd:rt}=s;nt&&((($=a.progressStart)===null||$===void 0?void 0:$.forceLinearEasing)!==(nt==null?void 0:nt.forceLinearEasing)||((j=a.progressStart)===null||j===void 0?void 0:j.step)!==(nt==null?void 0:nt.step))&&o.progressStart(nt.forceLinearEasing,nt.step),it&&((_e=a.progressStep)===null||_e===void 0?void 0:_e.step)!==(it==null?void 0:it.step)&&o.progressStep(it.step),rt&&(((et=a.progressEnd)===null||et===void 0?void 0:et.playTo)!==(rt==null?void 0:rt.playTo)||((tt=a.progressEnd)===null||tt===void 0?void 0:tt.step)!==(rt==null?void 0:rt.step)||(a==null?void 0:a.dur)!==(rt==null?void 0:rt.dur))&&o.progressEnd(rt.playTo,rt.step,rt.dur)},checkPlayback=(o,s={},a={})=>{!a.play&&s.play&&o.play(),!a.pause&&s.pause&&o.pause(),!a.stop&&s.stop&&o.stop(),!a.destroy&&s.destroy&&o.destroy()};function useController(o,s,a){const $=reactExports.useRef(),j=reactExports.useMemo(()=>`on${o}DidDismiss`,[o]),_e=reactExports.useMemo(()=>`on${o}DidPresent`,[o]),et=reactExports.useMemo(()=>`on${o}WillDismiss`,[o]),tt=reactExports.useMemo(()=>`on${o}WillPresent`,[o]);a();const nt=reactExports.useCallback(async rt=>{if($.current)return;const{onDidDismiss:st,onWillDismiss:ot,onDidPresent:at,onWillPresent:lt}=rt,ct=__rest(rt,["onDidDismiss","onWillDismiss","onDidPresent","onWillPresent"]),ht=dt=>{st&&st(dt),$.current=void 0};$.current=await s.create(Object.assign({},ct)),attachProps($.current,{[j]:ht,[_e]:dt=>at&&at(dt),[et]:dt=>ot&&ot(dt),[tt]:dt=>lt&&lt(dt)}),$.current.present()},[s]),it=reactExports.useCallback(async()=>{$.current&&await $.current.dismiss(),$.current=void 0},[]);return{present:nt,dismiss:it}}function useIonToast(){const o=useController("IonToast",toastController,defineCustomElement$5);return[reactExports.useCallback((a,$)=>typeof a=="string"?o.present({message:a,duration:$}):o.present(a),[o.present]),o.dismiss]}const ids={main:0},generateId=(o="main")=>{var s;const a=((s=ids[o])!==null&&s!==void 0?s:0)+1;return ids[o]=a,a.toString()};function useOverlay(o,s,a,$,j){const _e=reactExports.useRef(),et=reactExports.useRef(),tt=reactExports.useMemo(()=>`on${o}DidDismiss`,[o]),nt=reactExports.useMemo(()=>`on${o}DidPresent`,[o]),it=reactExports.useMemo(()=>`on${o}WillDismiss`,[o]),rt=reactExports.useMemo(()=>`on${o}WillPresent`,[o]),[st,ot]=reactExports.useState(!1),at=reactExports.useContext(IonContext),[lt]=reactExports.useState(generateId("overlay"));a(),reactExports.useEffect(()=>{if(st&&$&&et.current)if(React$1.isValidElement($))at.addOverlay(lt,$,et.current);else{const dt=reactExports.createElement($,j);at.addOverlay(lt,dt,et.current)}},[$,et.current,st,j]);const ct=reactExports.useCallback(async dt=>{if(_e.current)return;const{onDidDismiss:ut,onWillDismiss:pt,onDidPresent:ft,onWillPresent:mt}=dt,gt=__rest(dt,["onDidDismiss","onWillDismiss","onDidPresent","onWillPresent"]);typeof document<"u"&&(et.current=document.createElement("div")),_e.current=await s.create(Object.assign(Object.assign({},gt),{component:et.current})),attachProps(_e.current,{[tt]:bt,[nt]:St=>ft&&ft(St),[it]:St=>pt&&pt(St),[rt]:St=>mt&&mt(St)}),_e.current.present(),ot(!0);function bt(St){ut&&ut(St),_e.current=void 0,et.current=void 0,ot(!1),at.removeOverlay(lt)}},[]),ht=reactExports.useCallback(async(dt,ut)=>{_e.current&&await _e.current.dismiss(dt,ut),_e.current=void 0,et.current=void 0},[]);return{present:ct,dismiss:ht}}function useIonPopover(o,s){const a=useOverlay("IonPopover",popoverController,defineCustomElement$z,o,s);return[reactExports.useCallback((j={})=>{a.present(j)},[a.present]),a.dismiss]}const setupIonicReact=(o={})=>{typeof document<"u"&&document.documentElement.classList.add("ion-ce"),initialize(Object.assign({},o))},RouteManagerContext=React$1.createContext({addViewItem:()=>{},canGoBack:()=>{},clearOutlet:()=>{},createViewItem:()=>{},findViewItemByPathname:()=>{},findLeavingViewItemByRouteInfo:()=>{},findViewItemByRouteInfo:()=>{},getChildrenToRender:()=>{},goBack:()=>{},unMountViewItem:()=>{}});class ViewLifeCycleManager extends React$1.Component{constructor(s){super(s),this.ionLifeCycleContext=new DefaultIonLifeCycleContext,this._isMounted=!1,this.ionLifeCycleContext.onComponentCanBeDestroyed(()=>{this.props.mount||this._isMounted&&this.setState({show:!1},()=>this.props.removeView())}),this.state={show:!0}}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1}render(){const{show:s}=this.state;return React$1.createElement(IonLifeCycleContext.Provider,{value:this.ionLifeCycleContext},s&&this.props.children)}}class LocationHistory{constructor(){this.locationHistory=[],this.tabHistory={}}add(s){s.routeAction==="push"||s.routeAction==null?this._add(s):s.routeAction==="pop"?this._pop(s):s.routeAction==="replace"&&this._replace(s),s.routeDirection==="root"&&(this._clear(),this._add(s))}clearTabStack(s){const a=this._getRouteInfosByKey(s);a&&(a.forEach($=>{this.locationHistory=this.locationHistory.filter(j=>j.id!==$.id)}),this.tabHistory[s]=[])}update(s){const a=this.locationHistory.findIndex(j=>j.id===s.id);a>-1&&this.locationHistory.splice(a,1,s);const $=this.tabHistory[s.tab||""];if($){const j=$.findIndex(_e=>_e.id===s.id);j>-1?$.splice(j,1,s):$.push(s)}else s.tab&&(this.tabHistory[s.tab]=[s])}_add(s){const a=this._getRouteInfosByKey(s.tab);a&&(this._areRoutesEqual(a[a.length-1],s)&&a.pop(),a.push(s)),this.locationHistory.push(s)}_areRoutesEqual(s,a){return!s||!a?!1:s.pathname===a.pathname&&s.search===a.search}_pop(s){const a=this._getRouteInfosByKey(s.tab);a&&(a.pop(),a.pop(),a.push(s)),this.locationHistory.pop(),this.locationHistory.pop(),this.locationHistory.push(s)}_replace(s){const a=this._getRouteInfosByKey(s.tab);a&&a.pop(),this.locationHistory.pop(),this._add(s)}_clear(){Object.keys(this.tabHistory).forEach(a=>this.tabHistory[a]=[]),this.locationHistory=[]}_getRouteInfosByKey(s){let a;return s&&(a=this.tabHistory[s],a||(a=this.tabHistory[s]=[])),a}getFirstRouteInfoForTab(s){const a=this._getRouteInfosByKey(s);if(a)return a[0]}getCurrentRouteInfoForTab(s){const a=this._getRouteInfosByKey(s);if(a)return a[a.length-1]}findLastLocation(s){const a=this._getRouteInfosByKey(s.tab);if(a)for(let $=a.length-2;$>=0;$--){const j=a[$];if(j&&j.pathname===s.pushedByRoute)return j}for(let $=this.locationHistory.length-2;$>=0;$--){const j=this.locationHistory[$];if(j&&j.pathname===s.pushedByRoute)return j}}previous(){return this.locationHistory[this.locationHistory.length-2]||this.locationHistory[this.locationHistory.length-1]}current(){return this.locationHistory[this.locationHistory.length-1]}canGoBack(){return this.locationHistory.length>1}}class NavManager extends React$1.PureComponent{constructor(s){super(s),this.ionRouterContextValue={push:(a,$,j,_e,et)=>{this.navigate(a,$,j,et,_e)},back:a=>{this.goBack(void 0,a)},canGoBack:()=>this.props.locationHistory.canGoBack(),nativeBack:()=>this.props.onNativeBack(),routeInfo:this.props.routeInfo},this.state={goBack:this.goBack.bind(this),hasIonicRouter:()=>!0,navigate:this.navigate.bind(this),getIonRedirect:this.getIonRedirect.bind(this),getIonRoute:this.getIonRoute.bind(this),getStackManager:this.getStackManager.bind(this),getPageManager:this.getPageManager.bind(this),routeInfo:this.props.routeInfo,setCurrentTab:this.props.onSetCurrentTab,changeTab:this.props.onChangeTab,resetTab:this.props.onResetTab}}componentDidMount(){typeof document<"u"&&(this.handleHardwareBackButton=this.handleHardwareBackButton.bind(this),document.addEventListener("ionBackButton",this.handleHardwareBackButton))}componentWillUnmount(){typeof document<"u"&&document.removeEventListener("ionBackButton",this.handleHardwareBackButton)}handleHardwareBackButton(s){s.detail.register(0,a=>{this.nativeGoBack(),a()})}goBack(s,a){this.props.onNavigateBack(s,a)}nativeGoBack(){this.props.onNativeBack()}navigate(s,a="forward",$="push",j,_e,et){this.props.onNavigate(s,$,a,j,_e,et)}getPageManager(){return PageManager}getIonRedirect(){return this.props.ionRedirect}getIonRoute(){return this.props.ionRoute}getStackManager(){return this.props.stackManager}render(){return React$1.createElement(NavContext.Provider,{value:Object.assign(Object.assign({},this.state),{routeInfo:this.props.routeInfo})},React$1.createElement(IonRouterContext.Provider,{value:Object.assign(Object.assign({},this.ionRouterContextValue),{routeInfo:this.props.routeInfo})},this.props.children))}}class ViewStacks{constructor(){this.viewStacks={},this.add=this.add.bind(this),this.clear=this.clear.bind(this),this.getViewItemsForOutlet=this.getViewItemsForOutlet.bind(this),this.remove=this.remove.bind(this)}add(s){const{outletId:a}=s;this.viewStacks[a]?this.viewStacks[a].push(s):this.viewStacks[a]=[s]}clear(s){return setTimeout(()=>{delete this.viewStacks[s]},500)}getViewItemsForOutlet(s){return this.viewStacks[s]||[]}remove(s){const{outletId:a}=s,$=this.viewStacks[a];if($){const j=$.find(_e=>_e.id===s.id);j&&(j.mount=!1,this.viewStacks[a]=$.filter(_e=>_e.id!==j.id))}}getStackIds(){return Object.keys(this.viewStacks)}getAllViewItems(){const s=this.getStackIds(),a=[];return s.forEach($=>{a.push(...this.viewStacks[$])}),a}}function isAbsolute(o){return o.charAt(0)==="/"}function spliceOne(o,s){for(var a=s,$=a+1,j=o.length;$<j;a+=1,$+=1)o[a]=o[$];o.pop()}function resolvePathname(o,s){s===void 0&&(s="");var a=o&&o.split("/")||[],$=s&&s.split("/")||[],j=o&&isAbsolute(o),_e=s&&isAbsolute(s),et=j||_e;if(o&&isAbsolute(o)?$=a:a.length&&($.pop(),$=$.concat(a)),!$.length)return"/";var tt;if($.length){var nt=$[$.length-1];tt=nt==="."||nt===".."||nt===""}else tt=!1;for(var it=0,rt=$.length;rt>=0;rt--){var st=$[rt];st==="."?spliceOne($,rt):st===".."?(spliceOne($,rt),it++):it&&(spliceOne($,rt),it--)}if(!et)for(;it--;it)$.unshift("..");et&&$[0]!==""&&(!$[0]||!isAbsolute($[0]))&&$.unshift("");var ot=$.join("/");return tt&&ot.substr(-1)!=="/"&&(ot+="/"),ot}function valueOf(o){return o.valueOf?o.valueOf():Object.prototype.valueOf.call(o)}function valueEqual(o,s){if(o===s)return!0;if(o==null||s==null)return!1;if(Array.isArray(o))return Array.isArray(s)&&o.length===s.length&&o.every(function(j,_e){return valueEqual(j,s[_e])});if(typeof o=="object"||typeof s=="object"){var a=valueOf(o),$=valueOf(s);return a!==o||$!==s?valueEqual(a,$):Object.keys(Object.assign({},o,s)).every(function(j){return valueEqual(o[j],s[j])})}return!1}var prefix="Invariant failed";function invariant(o,s){throw new Error(prefix)}function addLeadingSlash$1(o){return o.charAt(0)==="/"?o:"/"+o}function stripLeadingSlash(o){return o.charAt(0)==="/"?o.substr(1):o}function hasBasename(o,s){return o.toLowerCase().indexOf(s.toLowerCase())===0&&"/?#".indexOf(o.charAt(s.length))!==-1}function stripBasename$1(o,s){return hasBasename(o,s)?o.substr(s.length):o}function stripTrailingSlash(o){return o.charAt(o.length-1)==="/"?o.slice(0,-1):o}function parsePath(o){var s=o||"/",a="",$="",j=s.indexOf("#");j!==-1&&($=s.substr(j),s=s.substr(0,j));var _e=s.indexOf("?");return _e!==-1&&(a=s.substr(_e),s=s.substr(0,_e)),{pathname:s,search:a==="?"?"":a,hash:$==="#"?"":$}}function createPath(o){var s=o.pathname,a=o.search,$=o.hash,j=s||"/";return a&&a!=="?"&&(j+=a.charAt(0)==="?"?a:"?"+a),$&&$!=="#"&&(j+=$.charAt(0)==="#"?$:"#"+$),j}function createLocation(o,s,a,$){var j;typeof o=="string"?(j=parsePath(o),j.state=s):(j=_extends$1({},o),j.pathname===void 0&&(j.pathname=""),j.search?j.search.charAt(0)!=="?"&&(j.search="?"+j.search):j.search="",j.hash?j.hash.charAt(0)!=="#"&&(j.hash="#"+j.hash):j.hash="",s!==void 0&&j.state===void 0&&(j.state=s));try{j.pathname=decodeURI(j.pathname)}catch(_e){throw _e instanceof URIError?new URIError('Pathname "'+j.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):_e}return a&&(j.key=a),$?j.pathname?j.pathname.charAt(0)!=="/"&&(j.pathname=resolvePathname(j.pathname,$.pathname)):j.pathname=$.pathname:j.pathname||(j.pathname="/"),j}function locationsAreEqual(o,s){return o.pathname===s.pathname&&o.search===s.search&&o.hash===s.hash&&o.key===s.key&&valueEqual(o.state,s.state)}function createTransitionManager(){var o=null;function s(et){return o=et,function(){o===et&&(o=null)}}function a(et,tt,nt,it){if(o!=null){var rt=typeof o=="function"?o(et,tt):o;typeof rt=="string"?typeof nt=="function"?nt(rt,it):it(!0):it(rt!==!1)}else it(!0)}var $=[];function j(et){var tt=!0;function nt(){tt&&et.apply(void 0,arguments)}return $.push(nt),function(){tt=!1,$=$.filter(function(it){return it!==nt})}}function _e(){for(var et=arguments.length,tt=new Array(et),nt=0;nt<et;nt++)tt[nt]=arguments[nt];$.forEach(function(it){return it.apply(void 0,tt)})}return{setPrompt:s,confirmTransitionTo:a,appendListener:j,notifyListeners:_e}}var canUseDOM=!!(typeof window<"u"&&window.document&&window.document.createElement);function getConfirmation(o,s){s(window.confirm(o))}function supportsHistory(){var o=window.navigator.userAgent;return(o.indexOf("Android 2.")!==-1||o.indexOf("Android 4.0")!==-1)&&o.indexOf("Mobile Safari")!==-1&&o.indexOf("Chrome")===-1&&o.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function supportsPopStateOnHashChange(){return window.navigator.userAgent.indexOf("Trident")===-1}function supportsGoWithoutReloadUsingHash(){return window.navigator.userAgent.indexOf("Firefox")===-1}function isExtraneousPopstateEvent(o){return o.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var PopStateEvent="popstate",HashChangeEvent="hashchange";function getHistoryState(){try{return window.history.state||{}}catch{return{}}}function createBrowserHistory(o){o===void 0&&(o={}),canUseDOM||invariant();var s=window.history,a=supportsHistory(),$=!supportsPopStateOnHashChange(),j=o,_e=j.forceRefresh,et=_e===void 0?!1:_e,tt=j.getUserConfirmation,nt=tt===void 0?getConfirmation:tt,it=j.keyLength,rt=it===void 0?6:it,st=o.basename?stripTrailingSlash(addLeadingSlash$1(o.basename)):"";function ot(xt){var Ut=xt||{},Et=Ut.key,Dt=Ut.state,Bt=window.location,Wt=Bt.pathname,Zt=Bt.search,sn=Bt.hash,dn=Wt+Zt+sn;return st&&(dn=stripBasename$1(dn,st)),createLocation(dn,Dt,Et)}function at(){return Math.random().toString(36).substr(2,rt)}var lt=createTransitionManager();function ct(xt){_extends$1(vt,xt),vt.length=s.length,lt.notifyListeners(vt.location,vt.action)}function ht(xt){isExtraneousPopstateEvent(xt)||pt(ot(xt.state))}function dt(){pt(ot(getHistoryState()))}var ut=!1;function pt(xt){if(ut)ut=!1,ct();else{var Ut="POP";lt.confirmTransitionTo(xt,Ut,nt,function(Et){Et?ct({action:Ut,location:xt}):ft(xt)})}}function ft(xt){var Ut=vt.location,Et=gt.indexOf(Ut.key);Et===-1&&(Et=0);var Dt=gt.indexOf(xt.key);Dt===-1&&(Dt=0);var Bt=Et-Dt;Bt&&(ut=!0,Rt(Bt))}var mt=ot(getHistoryState()),gt=[mt.key];function bt(xt){return st+createPath(xt)}function St(xt,Ut){var Et="PUSH",Dt=createLocation(xt,Ut,at(),vt.location);lt.confirmTransitionTo(Dt,Et,nt,function(Bt){if(Bt){var Wt=bt(Dt),Zt=Dt.key,sn=Dt.state;if(a)if(s.pushState({key:Zt,state:sn},null,Wt),et)window.location.href=Wt;else{var dn=gt.indexOf(vt.location.key),vn=gt.slice(0,dn+1);vn.push(Dt.key),gt=vn,ct({action:Et,location:Dt})}else window.location.href=Wt}})}function Nt(xt,Ut){var Et="REPLACE",Dt=createLocation(xt,Ut,at(),vt.location);lt.confirmTransitionTo(Dt,Et,nt,function(Bt){if(Bt){var Wt=bt(Dt),Zt=Dt.key,sn=Dt.state;if(a)if(s.replaceState({key:Zt,state:sn},null,Wt),et)window.location.replace(Wt);else{var dn=gt.indexOf(vt.location.key);dn!==-1&&(gt[dn]=Dt.key),ct({action:Et,location:Dt})}else window.location.replace(Wt)}})}function Rt(xt){s.go(xt)}function Ft(){Rt(-1)}function Ot(){Rt(1)}var Ct=0;function yt(xt){Ct+=xt,Ct===1&&xt===1?(window.addEventListener(PopStateEvent,ht),$&&window.addEventListener(HashChangeEvent,dt)):Ct===0&&(window.removeEventListener(PopStateEvent,ht),$&&window.removeEventListener(HashChangeEvent,dt))}var Pt=!1;function wt(xt){xt===void 0&&(xt=!1);var Ut=lt.setPrompt(xt);return Pt||(yt(1),Pt=!0),function(){return Pt&&(Pt=!1,yt(-1)),Ut()}}function Lt(xt){var Ut=lt.appendListener(xt);return yt(1),function(){yt(-1),Ut()}}var vt={length:s.length,action:"POP",location:mt,createHref:bt,push:St,replace:Nt,go:Rt,goBack:Ft,goForward:Ot,block:wt,listen:Lt};return vt}var HashChangeEvent$1="hashchange",HashPathCoders={hashbang:{encodePath:function(s){return s.charAt(0)==="!"?s:"!/"+stripLeadingSlash(s)},decodePath:function(s){return s.charAt(0)==="!"?s.substr(1):s}},noslash:{encodePath:stripLeadingSlash,decodePath:addLeadingSlash$1},slash:{encodePath:addLeadingSlash$1,decodePath:addLeadingSlash$1}};function stripHash(o){var s=o.indexOf("#");return s===-1?o:o.slice(0,s)}function getHashPath(){var o=window.location.href,s=o.indexOf("#");return s===-1?"":o.substring(s+1)}function pushHashPath(o){window.location.hash=o}function replaceHashPath(o){window.location.replace(stripHash(window.location.href)+"#"+o)}function createHashHistory(o){o===void 0&&(o={}),canUseDOM||invariant();var s=window.history;supportsGoWithoutReloadUsingHash();var a=o,$=a.getUserConfirmation,j=$===void 0?getConfirmation:$,_e=a.hashType,et=_e===void 0?"slash":_e,tt=o.basename?stripTrailingSlash(addLeadingSlash$1(o.basename)):"",nt=HashPathCoders[et],it=nt.encodePath,rt=nt.decodePath;function st(){var Ut=rt(getHashPath());return tt&&(Ut=stripBasename$1(Ut,tt)),createLocation(Ut)}var ot=createTransitionManager();function at(Ut){_extends$1(xt,Ut),xt.length=s.length,ot.notifyListeners(xt.location,xt.action)}var lt=!1,ct=null;function ht(Ut,Et){return Ut.pathname===Et.pathname&&Ut.search===Et.search&&Ut.hash===Et.hash}function dt(){var Ut=getHashPath(),Et=it(Ut);if(Ut!==Et)replaceHashPath(Et);else{var Dt=st(),Bt=xt.location;if(!lt&&ht(Bt,Dt)||ct===createPath(Dt))return;ct=null,ut(Dt)}}function ut(Ut){if(lt)lt=!1,at();else{var Et="POP";ot.confirmTransitionTo(Ut,Et,j,function(Dt){Dt?at({action:Et,location:Ut}):pt(Ut)})}}function pt(Ut){var Et=xt.location,Dt=bt.lastIndexOf(createPath(Et));Dt===-1&&(Dt=0);var Bt=bt.lastIndexOf(createPath(Ut));Bt===-1&&(Bt=0);var Wt=Dt-Bt;Wt&&(lt=!0,Ft(Wt))}var ft=getHashPath(),mt=it(ft);ft!==mt&&replaceHashPath(mt);var gt=st(),bt=[createPath(gt)];function St(Ut){var Et=document.querySelector("base"),Dt="";return Et&&Et.getAttribute("href")&&(Dt=stripHash(window.location.href)),Dt+"#"+it(tt+createPath(Ut))}function Nt(Ut,Et){var Dt="PUSH",Bt=createLocation(Ut,void 0,void 0,xt.location);ot.confirmTransitionTo(Bt,Dt,j,function(Wt){if(Wt){var Zt=createPath(Bt),sn=it(tt+Zt),dn=getHashPath()!==sn;if(dn){ct=Zt,pushHashPath(sn);var vn=bt.lastIndexOf(createPath(xt.location)),kn=bt.slice(0,vn+1);kn.push(Zt),bt=kn,at({action:Dt,location:Bt})}else at()}})}function Rt(Ut,Et){var Dt="REPLACE",Bt=createLocation(Ut,void 0,void 0,xt.location);ot.confirmTransitionTo(Bt,Dt,j,function(Wt){if(Wt){var Zt=createPath(Bt),sn=it(tt+Zt),dn=getHashPath()!==sn;dn&&(ct=Zt,replaceHashPath(sn));var vn=bt.indexOf(createPath(xt.location));vn!==-1&&(bt[vn]=Zt),at({action:Dt,location:Bt})}})}function Ft(Ut){s.go(Ut)}function Ot(){Ft(-1)}function Ct(){Ft(1)}var yt=0;function Pt(Ut){yt+=Ut,yt===1&&Ut===1?window.addEventListener(HashChangeEvent$1,dt):yt===0&&window.removeEventListener(HashChangeEvent$1,dt)}var wt=!1;function Lt(Ut){Ut===void 0&&(Ut=!1);var Et=ot.setPrompt(Ut);return wt||(Pt(1),wt=!0),function(){return wt&&(wt=!1,Pt(-1)),Et()}}function vt(Ut){var Et=ot.appendListener(Ut);return Pt(1),function(){Pt(-1),Et()}}var xt={length:s.length,action:"POP",location:gt,createHref:St,push:Nt,replace:Rt,go:Ft,goBack:Ot,goForward:Ct,block:Lt,listen:vt};return xt}function clamp$1(o,s,a){return Math.min(Math.max(o,s),a)}function createMemoryHistory(o){o===void 0&&(o={});var s=o,a=s.getUserConfirmation,$=s.initialEntries,j=$===void 0?["/"]:$,_e=s.initialIndex,et=_e===void 0?0:_e,tt=s.keyLength,nt=tt===void 0?6:tt,it=createTransitionManager();function rt(St){_extends$1(bt,St),bt.length=bt.entries.length,it.notifyListeners(bt.location,bt.action)}function st(){return Math.random().toString(36).substr(2,nt)}var ot=clamp$1(et,0,j.length-1),at=j.map(function(St){return typeof St=="string"?createLocation(St,void 0,st()):createLocation(St,void 0,St.key||st())}),lt=createPath;function ct(St,Nt){var Rt="PUSH",Ft=createLocation(St,Nt,st(),bt.location);it.confirmTransitionTo(Ft,Rt,a,function(Ot){if(Ot){var Ct=bt.index,yt=Ct+1,Pt=bt.entries.slice(0);Pt.length>yt?Pt.splice(yt,Pt.length-yt,Ft):Pt.push(Ft),rt({action:Rt,location:Ft,index:yt,entries:Pt})}})}function ht(St,Nt){var Rt="REPLACE",Ft=createLocation(St,Nt,st(),bt.location);it.confirmTransitionTo(Ft,Rt,a,function(Ot){Ot&&(bt.entries[bt.index]=Ft,rt({action:Rt,location:Ft}))})}function dt(St){var Nt=clamp$1(bt.index+St,0,bt.entries.length-1),Rt="POP",Ft=bt.entries[Nt];it.confirmTransitionTo(Ft,Rt,a,function(Ot){Ot?rt({action:Rt,location:Ft,index:Nt}):rt()})}function ut(){dt(-1)}function pt(){dt(1)}function ft(St){var Nt=bt.index+St;return Nt>=0&&Nt<bt.entries.length}function mt(St){return St===void 0&&(St=!1),it.setPrompt(St)}function gt(St){return it.appendListener(St)}var bt={length:at.length,action:"POP",location:at[ot],index:ot,entries:at,createHref:lt,push:ct,replace:ht,go:dt,goBack:ut,goForward:pt,canGo:ft,block:mt,listen:gt};return bt}var pathToRegexp$2={exports:{}},isarray$1=Array.isArray||function(o){return Object.prototype.toString.call(o)=="[object Array]"},isarray=isarray$1;pathToRegexp$2.exports=pathToRegexp;pathToRegexp$2.exports.parse=parse$2;pathToRegexp$2.exports.compile=compile;pathToRegexp$2.exports.tokensToFunction=tokensToFunction;pathToRegexp$2.exports.tokensToRegExp=tokensToRegExp;var PATH_REGEXP=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function parse$2(o,s){for(var a=[],$=0,j=0,_e="",et=s&&s.delimiter||"/",tt;(tt=PATH_REGEXP.exec(o))!=null;){var nt=tt[0],it=tt[1],rt=tt.index;if(_e+=o.slice(j,rt),j=rt+nt.length,it){_e+=it[1];continue}var st=o[j],ot=tt[2],at=tt[3],lt=tt[4],ct=tt[5],ht=tt[6],dt=tt[7];_e&&(a.push(_e),_e="");var ut=ot!=null&&st!=null&&st!==ot,pt=ht==="+"||ht==="*",ft=ht==="?"||ht==="*",mt=tt[2]||et,gt=lt||ct;a.push({name:at||$++,prefix:ot||"",delimiter:mt,optional:ft,repeat:pt,partial:ut,asterisk:!!dt,pattern:gt?escapeGroup(gt):dt?".*":"[^"+escapeString(mt)+"]+?"})}return j<o.length&&(_e+=o.substr(j)),_e&&a.push(_e),a}function compile(o,s){return tokensToFunction(parse$2(o,s),s)}function encodeURIComponentPretty(o){return encodeURI(o).replace(/[\/?#]/g,function(s){return"%"+s.charCodeAt(0).toString(16).toUpperCase()})}function encodeAsterisk(o){return encodeURI(o).replace(/[?#]/g,function(s){return"%"+s.charCodeAt(0).toString(16).toUpperCase()})}function tokensToFunction(o,s){for(var a=new Array(o.length),$=0;$<o.length;$++)typeof o[$]=="object"&&(a[$]=new RegExp("^(?:"+o[$].pattern+")$",flags(s)));return function(j,_e){for(var et="",tt=j||{},nt=_e||{},it=nt.pretty?encodeURIComponentPretty:encodeURIComponent,rt=0;rt<o.length;rt++){var st=o[rt];if(typeof st=="string"){et+=st;continue}var ot=tt[st.name],at;if(ot==null)if(st.optional){st.partial&&(et+=st.prefix);continue}else throw new TypeError('Expected "'+st.name+'" to be defined');if(isarray(ot)){if(!st.repeat)throw new TypeError('Expected "'+st.name+'" to not repeat, but received `'+JSON.stringify(ot)+"`");if(ot.length===0){if(st.optional)continue;throw new TypeError('Expected "'+st.name+'" to not be empty')}for(var lt=0;lt<ot.length;lt++){if(at=it(ot[lt]),!a[rt].test(at))throw new TypeError('Expected all "'+st.name+'" to match "'+st.pattern+'", but received `'+JSON.stringify(at)+"`");et+=(lt===0?st.prefix:st.delimiter)+at}continue}if(at=st.asterisk?encodeAsterisk(ot):it(ot),!a[rt].test(at))throw new TypeError('Expected "'+st.name+'" to match "'+st.pattern+'", but received "'+at+'"');et+=st.prefix+at}return et}}function escapeString(o){return o.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function escapeGroup(o){return o.replace(/([=!:$\/()])/g,"\\$1")}function attachKeys(o,s){return o.keys=s,o}function flags(o){return o&&o.sensitive?"":"i"}function regexpToRegexp(o,s){var a=o.source.match(/\((?!\?)/g);if(a)for(var $=0;$<a.length;$++)s.push({name:$,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return attachKeys(o,s)}function arrayToRegexp(o,s,a){for(var $=[],j=0;j<o.length;j++)$.push(pathToRegexp(o[j],s,a).source);var _e=new RegExp("(?:"+$.join("|")+")",flags(a));return attachKeys(_e,s)}function stringToRegexp(o,s,a){return tokensToRegExp(parse$2(o,a),s,a)}function tokensToRegExp(o,s,a){isarray(s)||(a=s||a,s=[]),a=a||{};for(var $=a.strict,j=a.end!==!1,_e="",et=0;et<o.length;et++){var tt=o[et];if(typeof tt=="string")_e+=escapeString(tt);else{var nt=escapeString(tt.prefix),it="(?:"+tt.pattern+")";s.push(tt),tt.repeat&&(it+="(?:"+nt+it+")*"),tt.optional?tt.partial?it=nt+"("+it+")?":it="(?:"+nt+"("+it+"))?":it=nt+"("+it+")",_e+=it}}var rt=escapeString(a.delimiter||"/"),st=_e.slice(-rt.length)===rt;return $||(_e=(st?_e.slice(0,-rt.length):_e)+"(?:"+rt+"(?=$))?"),j?_e+="$":_e+=$&&st?"":"(?="+rt+"|$)",attachKeys(new RegExp("^"+_e,flags(a)),s)}function pathToRegexp(o,s,a){return isarray(s)||(a=s||a,s=[]),a=a||{},o instanceof RegExp?regexpToRegexp(o,s):isarray(o)?arrayToRegexp(o,s,a):stringToRegexp(o,s,a)}var pathToRegexpExports=pathToRegexp$2.exports;const pathToRegexp$1=getDefaultExportFromCjs(pathToRegexpExports);var MAX_SIGNED_31_BIT_INT=1073741823,commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{};function getUniqueId(){var o="__global_unique_id__";return commonjsGlobal[o]=(commonjsGlobal[o]||0)+1}function objectIs(o,s){return o===s?o!==0||1/o===1/s:o!==o&&s!==s}function createEventEmitter(o){var s=[];return{on:function($){s.push($)},off:function($){s=s.filter(function(j){return j!==$})},get:function(){return o},set:function($,j){o=$,s.forEach(function(_e){return _e(o,j)})}}}function onlyChild(o){return Array.isArray(o)?o[0]:o}function createReactContext(o,s){var a,$,j="__create-react-context-"+getUniqueId()+"__",_e=function(tt){_inheritsLoose(nt,tt);function nt(){for(var rt,st=arguments.length,ot=new Array(st),at=0;at<st;at++)ot[at]=arguments[at];return rt=tt.call.apply(tt,[this].concat(ot))||this,rt.emitter=createEventEmitter(rt.props.value),rt}var it=nt.prototype;return it.getChildContext=function(){var st;return st={},st[j]=this.emitter,st},it.componentWillReceiveProps=function(st){if(this.props.value!==st.value){var ot=this.props.value,at=st.value,lt;objectIs(ot,at)?lt=0:(lt=typeof s=="function"?s(ot,at):MAX_SIGNED_31_BIT_INT,lt|=0,lt!==0&&this.emitter.set(st.value,lt))}},it.render=function(){return this.props.children},nt}(React$1.Component);_e.childContextTypes=(a={},a[j]=PropTypes.object.isRequired,a);var et=function(tt){_inheritsLoose(nt,tt);function nt(){for(var rt,st=arguments.length,ot=new Array(st),at=0;at<st;at++)ot[at]=arguments[at];return rt=tt.call.apply(tt,[this].concat(ot))||this,rt.observedBits=void 0,rt.state={value:rt.getValue()},rt.onUpdate=function(lt,ct){var ht=rt.observedBits|0;ht&ct&&rt.setState({value:rt.getValue()})},rt}var it=nt.prototype;return it.componentWillReceiveProps=function(st){var ot=st.observedBits;this.observedBits=ot??MAX_SIGNED_31_BIT_INT},it.componentDidMount=function(){this.context[j]&&this.context[j].on(this.onUpdate);var st=this.props.observedBits;this.observedBits=st??MAX_SIGNED_31_BIT_INT},it.componentWillUnmount=function(){this.context[j]&&this.context[j].off(this.onUpdate)},it.getValue=function(){return this.context[j]?this.context[j].get():o},it.render=function(){return onlyChild(this.props.children)(this.state.value)},nt}(React$1.Component);return et.contextTypes=($={},$[j]=PropTypes.object,$),{Provider:_e,Consumer:et}}var createContext=React$1.createContext||createReactContext,createNamedContext=function(s){var a=createContext();return a.displayName=s,a},historyContext=createNamedContext("Router-History"),context=createNamedContext("Router"),Router=function(o){_inheritsLoose(s,o),s.computeRootMatch=function(j){return{path:"/",url:"/",params:{},isExact:j==="/"}};function s($){var j;return j=o.call(this,$)||this,j.state={location:$.history.location},j._isMounted=!1,j._pendingLocation=null,$.staticContext||(j.unlisten=$.history.listen(function(_e){j._pendingLocation=_e})),j}var a=s.prototype;return a.componentDidMount=function(){var j=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(_e){j._isMounted&&j.setState({location:_e})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},a.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},a.render=function(){return React$1.createElement(context.Provider,{value:{history:this.props.history,location:this.state.location,match:s.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},React$1.createElement(historyContext.Provider,{children:this.props.children||null,value:this.props.history}))},s}(React$1.Component);React$1.Component;var Lifecycle=function(o){_inheritsLoose(s,o);function s(){return o.apply(this,arguments)||this}var a=s.prototype;return a.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},a.componentDidUpdate=function(j){this.props.onUpdate&&this.props.onUpdate.call(this,this,j)},a.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},a.render=function(){return null},s}(React$1.Component);function Prompt(o){var s=o.message,a=o.when,$=a===void 0?!0:a;return React$1.createElement(context.Consumer,null,function(j){if(j||invariant(),!$||j.staticContext)return null;var _e=j.history.block;return React$1.createElement(Lifecycle,{onMount:function(tt){tt.release=_e(s)},onUpdate:function(tt,nt){nt.message!==s&&(tt.release(),tt.release=_e(s))},onUnmount:function(tt){tt.release()},message:s})})}var cache={},cacheLimit=1e4,cacheCount=0;function compilePath(o){if(cache[o])return cache[o];var s=pathToRegexp$1.compile(o);return cacheCount<cacheLimit&&(cache[o]=s,cacheCount++),s}function generatePath(o,s){return o===void 0&&(o="/"),s===void 0&&(s={}),o==="/"?o:compilePath(o)(s,{pretty:!0})}function Redirect(o){var s=o.computedMatch,a=o.to,$=o.push,j=$===void 0?!1:$;return React$1.createElement(context.Consumer,null,function(_e){_e||invariant();var et=_e.history,tt=_e.staticContext,nt=j?et.push:et.replace,it=createLocation(s?typeof a=="string"?generatePath(a,s.params):_extends$1({},a,{pathname:generatePath(a.pathname,s.params)}):a);return tt?(nt(it),null):React$1.createElement(Lifecycle,{onMount:function(){nt(it)},onUpdate:function(st,ot){var at=createLocation(ot.to);locationsAreEqual(at,_extends$1({},it,{key:at.key}))||nt(it)},to:a})})}var cache$1={},cacheLimit$1=1e4,cacheCount$1=0;function compilePath$1(o,s){var a=""+s.end+s.strict+s.sensitive,$=cache$1[a]||(cache$1[a]={});if($[o])return $[o];var j=[],_e=pathToRegexp$1(o,j,s),et={regexp:_e,keys:j};return cacheCount$1<cacheLimit$1&&($[o]=et,cacheCount$1++),et}function matchPath(o,s){s===void 0&&(s={}),(typeof s=="string"||Array.isArray(s))&&(s={path:s});var a=s,$=a.path,j=a.exact,_e=j===void 0?!1:j,et=a.strict,tt=et===void 0?!1:et,nt=a.sensitive,it=nt===void 0?!1:nt,rt=[].concat($);return rt.reduce(function(st,ot){if(!ot&&ot!=="")return null;if(st)return st;var at=compilePath$1(ot,{end:_e,strict:tt,sensitive:it}),lt=at.regexp,ct=at.keys,ht=lt.exec(o);if(!ht)return null;var dt=ht[0],ut=ht.slice(1),pt=o===dt;return _e&&!pt?null:{path:ot,url:ot==="/"&&dt===""?"/":dt,isExact:pt,params:ct.reduce(function(ft,mt,gt){return ft[mt.name]=ut[gt],ft},{})}},null)}function isEmptyChildren(o){return React$1.Children.count(o)===0}var Route=function(o){_inheritsLoose(s,o);function s(){return o.apply(this,arguments)||this}var a=s.prototype;return a.render=function(){var j=this;return React$1.createElement(context.Consumer,null,function(_e){_e||invariant();var et=j.props.location||_e.location,tt=j.props.computedMatch?j.props.computedMatch:j.props.path?matchPath(et.pathname,j.props):_e.match,nt=_extends$1({},_e,{location:et,match:tt}),it=j.props,rt=it.children,st=it.component,ot=it.render;return Array.isArray(rt)&&isEmptyChildren(rt)&&(rt=null),React$1.createElement(context.Provider,{value:nt},nt.match?rt?typeof rt=="function"?rt(nt):rt:st?React$1.createElement(st,nt):ot?ot(nt):null:typeof rt=="function"?rt(nt):null)})},s}(React$1.Component);function addLeadingSlash(o){return o.charAt(0)==="/"?o:"/"+o}function addBasename(o,s){return o?_extends$1({},s,{pathname:addLeadingSlash(o)+s.pathname}):s}function stripBasename(o,s){if(!o)return s;var a=addLeadingSlash(o);return s.pathname.indexOf(a)!==0?s:_extends$1({},s,{pathname:s.pathname.substr(a.length)})}function createURL(o){return typeof o=="string"?o:createPath(o)}function staticHandler(o){return function(){invariant()}}function noop$4(){}React$1.Component;var Switch=function(o){_inheritsLoose(s,o);function s(){return o.apply(this,arguments)||this}var a=s.prototype;return a.render=function(){var j=this;return React$1.createElement(context.Consumer,null,function(_e){_e||invariant();var et=j.props.location||_e.location,tt,nt;return React$1.Children.forEach(j.props.children,function(it){if(nt==null&&React$1.isValidElement(it)){tt=it;var rt=it.props.path||it.props.from;nt=rt?matchPath(et.pathname,_extends$1({},it.props,{path:rt})):_e.match}}),nt?React$1.cloneElement(tt,{location:et,computedMatch:nt}):null})},s}(React$1.Component);function withRouter(o){var s="withRouter("+(o.displayName||o.name)+")",a=function(j){var _e=j.wrappedComponentRef,et=_objectWithoutPropertiesLoose$3(j,["wrappedComponentRef"]);return React$1.createElement(context.Consumer,null,function(tt){return tt||invariant(),React$1.createElement(o,_extends$1({},et,tt,{ref:_e}))})};return a.displayName=s,a.WrappedComponent=o,hoistNonReactStatics$1(a,o)}var useContext=React$1.useContext;function useHistory(){return useContext(historyContext)}function useLocation(){return useContext(context).location}function useParams(){var o=useContext(context).match;return o?o.params:{}}function useRouteMatch(o){var s=useLocation(),a=useContext(context).match;return o?matchPath(s.pathname,o):a}class IonRouteInner extends React$1.PureComponent{render(){return React$1.createElement(Route,{path:this.props.path,exact:this.props.exact,render:this.props.render,computedMatch:this.props.computedMatch})}}class ReactRouterViewStack extends ViewStacks{constructor(){super(),this.createViewItem=this.createViewItem.bind(this),this.findViewItemByRouteInfo=this.findViewItemByRouteInfo.bind(this),this.findLeavingViewItemByRouteInfo=this.findLeavingViewItemByRouteInfo.bind(this),this.getChildrenToRender=this.getChildrenToRender.bind(this),this.findViewItemByPathname=this.findViewItemByPathname.bind(this)}createViewItem(s,a,$,j){const _e={id:generateId("viewItem"),outletId:s,ionPageElement:j,reactElement:a,mount:!0,ionRoute:!1},et={exact:a.props.exact,path:a.props.path||a.props.from,component:a.props.component},tt=matchPath($.pathname,et);return a.type===IonRoute&&(_e.ionRoute=!0,_e.disableIonPageManagement=a.props.disableIonPageManagement),_e.routeData={match:tt,childProps:a.props},_e}getChildrenToRender(s,a,$){const j=this.getViewItemsForOutlet(s);return React$1.Children.forEach(a.props.children,et=>{const tt=j.find(nt=>matchComponent$1(et,nt.routeData.childProps.path||nt.routeData.childProps.from));tt&&(tt.reactElement=et)}),j.map(et=>{let tt;if(et.ionRoute&&!et.disableIonPageManagement)tt=React$1.createElement(ViewLifeCycleManager,{key:`view-${et.id}`,mount:et.mount,removeView:()=>this.remove(et)},React$1.cloneElement(et.reactElement,{computedMatch:et.routeData.match}));else{const nt=matchComponent$1(et.reactElement,$.pathname);tt=React$1.createElement(ViewLifeCycleManager,{key:`view-${et.id}`,mount:et.mount,removeView:()=>this.remove(et)},React$1.cloneElement(et.reactElement,{computedMatch:et.routeData.match})),!nt&&et.routeData.match&&(et.routeData.match=void 0,et.mount=!1)}return tt})}findViewItemByRouteInfo(s,a,$){const{viewItem:j,match:_e}=this.findViewItemByPath(s.pathname,a);return($===void 0||$===!0)&&j&&_e&&(j.routeData.match=_e),j}findLeavingViewItemByRouteInfo(s,a,$=!0){const{viewItem:j}=this.findViewItemByPath(s.lastPathname,a,!1,$);return j}findViewItemByPathname(s,a){const{viewItem:$}=this.findViewItemByPath(s,a);return $}findViewItemByPath(s,a,$,j){let _e,et,tt;if(a)tt=this.getViewItemsForOutlet(a),tt.some(nt),_e||tt.some(it);else{const rt=this.getAllViewItems();rt.some(nt),_e||rt.some(it)}return{viewItem:_e,match:et};function nt(rt){if(j&&!rt.ionRoute)return!1;const st={exact:$?!0:rt.routeData.childProps.exact,path:rt.routeData.childProps.path||rt.routeData.childProps.from,component:rt.routeData.childProps.component},ot=matchPath(s,st);return ot?(_e=rt,et=ot,!0):!1}function it(rt){return!rt.routeData.childProps.path&&!rt.routeData.childProps.from?(et={path:s,url:s,isExact:!0,params:{}},_e=rt,!0):!1}}}function matchComponent$1(o,s,a){const $={exact:o.props.exact,path:o.props.path||o.props.from,component:o.props.component};return matchPath(s,$)}function clonePageElement(o){let s;if(typeof o=="string"?s=o:s=o.outerHTML,document){const a=document.createElement("div");a.innerHTML=s,a.style.zIndex="";const $=a.getElementsByTagName("ion-back-button");return $[0]&&$[0].remove(),a.firstChild}}const isViewVisible=o=>!o.classList.contains("ion-page-invisible")&&!o.classList.contains("ion-page-hidden");class StackManager extends React$1.PureComponent{constructor(s){super(s),this.stackContextValue={registerIonPage:this.registerIonPage.bind(this),isInOutlet:()=>!0},this.pendingPageTransition=!1,this.registerIonPage=this.registerIonPage.bind(this),this.transitionPage=this.transitionPage.bind(this),this.handlePageTransition=this.handlePageTransition.bind(this),this.id=generateId("routerOutlet"),this.prevProps=void 0,this.skipTransition=!1}componentDidMount(){this.clearOutletTimeout&&clearTimeout(this.clearOutletTimeout),this.routerOutletElement&&(this.setupRouterOutlet(this.routerOutletElement),this.handlePageTransition(this.props.routeInfo))}componentDidUpdate(s){const{pathname:a}=this.props.routeInfo,{pathname:$}=s.routeInfo;a!==$?(this.prevProps=s,this.handlePageTransition(this.props.routeInfo)):this.pendingPageTransition&&(this.handlePageTransition(this.props.routeInfo),this.pendingPageTransition=!1)}componentWillUnmount(){this.clearOutletTimeout=this.context.clearOutlet(this.id)}async handlePageTransition(s){var a,$;if(!this.routerOutletElement||!this.routerOutletElement.commit)this.pendingPageTransition=!0;else{let j=this.context.findViewItemByRouteInfo(s,this.id),_e=this.context.findLeavingViewItemByRouteInfo(s,this.id);!_e&&s.prevRouteLastPathname&&(_e=this.context.findViewItemByPathname(s.prevRouteLastPathname,this.id)),_e&&(s.routeAction==="replace"?_e.mount=!1:s.routeAction==="push"&&s.routeDirection==="forward"?!((a=s.routeOptions)===null||a===void 0)&&a.unmount&&(_e.mount=!1):s.routeDirection!=="none"&&j!==_e&&(_e.mount=!1));const et=matchRoute(($=this.ionRouterOutlet)===null||$===void 0?void 0:$.props.children,s);if(j?j.reactElement=et:et&&(j=this.context.createViewItem(this.id,et,s),this.context.addViewItem(j)),j&&j.ionPageElement){if(j===_e&&j.routeData.match.url!==s.pathname||(!_e&&this.props.routeInfo.prevRouteLastPathname&&(_e=this.context.findViewItemByPathname(this.props.routeInfo.prevRouteLastPathname,this.id)),isViewVisible(j.ionPageElement)&&_e!==void 0&&!isViewVisible(_e.ionPageElement)))return;this.transitionPage(s,j,_e)}else _e&&!et&&!j&&_e.ionPageElement&&(_e.ionPageElement.classList.add("ion-page-hidden"),_e.ionPageElement.setAttribute("aria-hidden","true"));this.forceUpdate()}}registerIonPage(s,a){const $=this.context.findViewItemByRouteInfo(a,this.id);if($){const j=$.ionPageElement;if($.ionPageElement=s,$.ionRoute=!0,j===s)return}this.handlePageTransition(a)}async setupRouterOutlet(s){const a=()=>{const _e=getConfig();if(!(_e&&_e.get("swipeBackEnabled",s.mode==="ios")))return!1;const{routeInfo:tt}=this.props,nt=this.prevProps&&this.prevProps.routeInfo.pathname===tt.pushedByRoute?this.prevProps.routeInfo:{pathname:tt.pushedByRoute||""},it=this.context.findViewItemByRouteInfo(nt,this.id,!1);return!!it&&it.mount&&it.routeData.match.path!==tt.pathname},$=async()=>{const{routeInfo:_e}=this.props,et=this.prevProps&&this.prevProps.routeInfo.pathname===_e.pushedByRoute?this.prevProps.routeInfo:{pathname:_e.pushedByRoute||""},tt=this.context.findViewItemByRouteInfo(et,this.id,!1),nt=this.context.findViewItemByRouteInfo(_e,this.id,!1);return tt&&nt&&await this.transitionPage(_e,tt,nt,"back",!0),Promise.resolve()},j=_e=>{if(_e)this.skipTransition=!0,this.context.goBack();else{const{routeInfo:et}=this.props,tt=this.prevProps&&this.prevProps.routeInfo.pathname===et.pushedByRoute?this.prevProps.routeInfo:{pathname:et.pushedByRoute||""},nt=this.context.findViewItemByRouteInfo(tt,this.id,!1),it=this.context.findViewItemByRouteInfo(et,this.id,!1);if(nt!==it&&(nt==null?void 0:nt.ionPageElement)!==void 0){const{ionPageElement:rt}=nt;rt.setAttribute("aria-hidden","true"),rt.classList.add("ion-page-hidden")}}};s.swipeHandler={canStart:a,onStart:$,onEnd:j}}async transitionPage(s,a,$,j,_e=!1){const et=async(rt,st)=>{const ot=this.skipTransition;ot?this.skipTransition=!1:(rt.classList.add("ion-page"),rt.classList.add("ion-page-invisible")),await tt.commit(rt,st,{deepWait:!0,duration:ot||it===void 0?0:void 0,direction:it,showGoBack:!!s.pushedByRoute,progressAnimation:_e,animationBuilder:s.routeAnimation})},tt=this.routerOutletElement,nt=s.routeDirection==="none"||s.routeDirection==="root"?void 0:s.routeDirection,it=j??nt;if(a&&a.ionPageElement&&this.routerOutletElement)if($&&$.ionPageElement&&a===$)if(matchComponent($.reactElement,s.pathname)){const st=clonePageElement($.ionPageElement.outerHTML);st&&(this.routerOutletElement.appendChild(st),await et(a.ionPageElement,st),this.routerOutletElement.removeChild(st))}else await et(a.ionPageElement,void 0);else await et(a.ionPageElement,$==null?void 0:$.ionPageElement),$&&$.ionPageElement&&!_e&&($.ionPageElement.classList.add("ion-page-hidden"),$.ionPageElement.setAttribute("aria-hidden","true"))}render(){const{children:s}=this.props,a=React$1.Children.only(s);this.ionRouterOutlet=a;const $=this.context.getChildrenToRender(this.id,this.ionRouterOutlet,this.props.routeInfo,()=>{this.forceUpdate()});return React$1.createElement(StackContext.Provider,{value:this.stackContextValue},React$1.cloneElement(a,{ref:j=>{a.props.setRef&&a.props.setRef(j),a.props.forwardedRef&&(a.props.forwardedRef.current=j),this.routerOutletElement=j;const{ref:_e}=a;typeof _e=="function"&&_e(j)}},$))}static get contextType(){return RouteManagerContext}}function matchRoute(o,s){let a;return React$1.Children.forEach(o,$=>{const j={exact:$.props.exact,path:$.props.path||$.props.from,component:$.props.component};matchPath(s.pathname,j)&&(a=$)}),a||(React$1.Children.forEach(o,$=>{$.props.path||$.props.from||(a=$)}),a)}function matchComponent(o,s,a){const $={exact:!0,path:o.props.path||o.props.from,component:o.props.component};return matchPath(s,$)}class IonRouterInner extends React$1.PureComponent{constructor(s){super(s),this.exitViewFromOtherOutletHandlers=[],this.locationHistory=new LocationHistory,this.viewStack=new ReactRouterViewStack,this.routeMangerContextState={canGoBack:()=>this.locationHistory.canGoBack(),clearOutlet:this.viewStack.clear,findViewItemByPathname:this.viewStack.findViewItemByPathname,getChildrenToRender:this.viewStack.getChildrenToRender,goBack:()=>this.handleNavigateBack(),createViewItem:this.viewStack.createViewItem,findViewItemByRouteInfo:this.viewStack.findViewItemByRouteInfo,findLeavingViewItemByRouteInfo:this.viewStack.findLeavingViewItemByRouteInfo,addViewItem:this.viewStack.add,unMountViewItem:this.viewStack.remove};const a={id:generateId("routeInfo"),pathname:this.props.location.pathname,search:this.props.location.search};this.locationHistory.add(a),this.handleChangeTab=this.handleChangeTab.bind(this),this.handleResetTab=this.handleResetTab.bind(this),this.handleNativeBack=this.handleNativeBack.bind(this),this.handleNavigate=this.handleNavigate.bind(this),this.handleNavigateBack=this.handleNavigateBack.bind(this),this.props.registerHistoryListener(this.handleHistoryChange.bind(this)),this.handleSetCurrentTab=this.handleSetCurrentTab.bind(this),this.state={routeInfo:a}}handleChangeTab(s,a,$){if(!a)return;const j=this.locationHistory.getCurrentRouteInfoForTab(s),[_e,et]=a.split("?");j?(this.incomingRouteParams=Object.assign(Object.assign({},j),{routeAction:"push",routeDirection:"none"}),j.pathname===_e?(this.incomingRouteParams.routeOptions=$,this.props.history.push(j.pathname+(j.search||""))):(this.incomingRouteParams.pathname=_e,this.incomingRouteParams.search=et?"?"+et:void 0,this.incomingRouteParams.routeOptions=$,this.props.history.push(_e+(et?"?"+et:"")))):this.handleNavigate(_e,"push","none",void 0,$,s)}handleHistoryChange(s,a){var $,j,_e;let et;if(this.incomingRouteParams?this.incomingRouteParams.routeAction==="replace"?et=this.locationHistory.previous():et=this.locationHistory.current():et=this.locationHistory.current(),et.pathname+et.search!==s.pathname){if(!this.incomingRouteParams){if(a==="REPLACE"&&(this.incomingRouteParams={routeAction:"replace",routeDirection:"none",tab:this.currentTab}),a==="POP"){const it=this.locationHistory.current();if(it&&it.pushedByRoute){const rt=this.locationHistory.findLastLocation(it);this.incomingRouteParams=Object.assign(Object.assign({},rt),{routeAction:"pop",routeDirection:"back"})}else this.incomingRouteParams={routeAction:"pop",routeDirection:"none",tab:this.currentTab}}this.incomingRouteParams||(this.incomingRouteParams={routeAction:"push",routeDirection:(($=s.state)===null||$===void 0?void 0:$.direction)||"forward",routeOptions:(j=s.state)===null||j===void 0?void 0:j.routerOptions,tab:this.currentTab})}let nt;if(!((_e=this.incomingRouteParams)===null||_e===void 0)&&_e.id)nt=Object.assign(Object.assign({},this.incomingRouteParams),{lastPathname:et.pathname}),this.locationHistory.add(nt);else{const it=this.incomingRouteParams.routeAction==="push"&&this.incomingRouteParams.routeDirection==="forward";if(nt=Object.assign(Object.assign({id:generateId("routeInfo")},this.incomingRouteParams),{lastPathname:et.pathname,pathname:s.pathname,search:s.search,params:this.props.match.params,prevRouteLastPathname:et.lastPathname}),it)nt.tab=et.tab,nt.pushedByRoute=et.pathname;else if(nt.routeAction==="pop"){const rt=this.locationHistory.findLastLocation(nt);nt.pushedByRoute=rt==null?void 0:rt.pushedByRoute}else if(nt.routeAction==="push"&&nt.tab!==et.tab){const rt=this.locationHistory.getCurrentRouteInfoForTab(nt.tab);nt.pushedByRoute=rt==null?void 0:rt.pushedByRoute}else if(nt.routeAction==="replace"){const rt=this.locationHistory.current(),st=rt==null?void 0:rt.pushedByRoute,ot=st!==void 0&&st!==nt.pathname?st:nt.pushedByRoute;nt.lastPathname=(rt==null?void 0:rt.pathname)||nt.lastPathname,nt.prevRouteLastPathname=rt==null?void 0:rt.lastPathname,nt.pushedByRoute=ot,nt.routeDirection=(rt==null?void 0:rt.routeDirection)||nt.routeDirection,nt.routeAnimation=(rt==null?void 0:rt.routeAnimation)||nt.routeAnimation}this.locationHistory.add(nt)}this.setState({routeInfo:nt})}this.incomingRouteParams=void 0}handleNativeBack(){const s=this.props.history;(s.goBack||s.back)()}handleNavigate(s,a,$,j,_e,et){this.incomingRouteParams=Object.assign(this.incomingRouteParams||{},{routeAction:a,routeDirection:$,routeOptions:_e,routeAnimation:j,tab:et}),a==="push"?this.props.history.push(s):this.props.history.replace(s)}handleNavigateBack(s="/",a){const $=getConfig();s=s||$&&$.get("backButtonDefaultHref");const j=this.locationHistory.current();if(j&&j.pushedByRoute){const _e=this.locationHistory.findLastLocation(j);if(_e)if(this.incomingRouteParams=Object.assign(Object.assign({},_e),{routeAction:"pop",routeDirection:"back",routeAnimation:a||j.routeAnimation}),j.lastPathname===j.pushedByRoute||_e.pathname===j.pushedByRoute&&j.tab===""&&_e.tab===""){const et=this.props.history;(et.goBack||et.back)()}else this.handleNavigate(_e.pathname+(_e.search||""),"pop","back");else this.handleNavigate(s,"pop","back")}else this.handleNavigate(s,"pop","back")}handleResetTab(s,a,$){const j=this.locationHistory.getFirstRouteInfoForTab(s);if(j){const _e=Object.assign({},j);_e.pathname=a,_e.routeOptions=$,this.incomingRouteParams=Object.assign(Object.assign({},_e),{routeAction:"pop",routeDirection:"back"}),this.props.history.push(_e.pathname+(_e.search||""))}}handleSetCurrentTab(s){this.currentTab=s;const a=Object.assign({},this.locationHistory.current());a.tab!==s&&(a.tab=s,this.locationHistory.update(a))}render(){return React$1.createElement(RouteManagerContext.Provider,{value:this.routeMangerContextState},React$1.createElement(NavManager,{ionRoute:IonRouteInner,ionRedirect:{},stackManager:StackManager,routeInfo:this.state.routeInfo,onNativeBack:this.handleNativeBack,onNavigateBack:this.handleNavigateBack,onNavigate:this.handleNavigate,onSetCurrentTab:this.handleSetCurrentTab,onChangeTab:this.handleChangeTab,onResetTab:this.handleResetTab,locationHistory:this.locationHistory},this.props.children))}}const IonRouter=withRouter(IonRouterInner);IonRouter.displayName="IonRouter";class IonReactRouter extends React$1.Component{constructor(s){super(s);const{history:a}=s,$=__rest(s,["history"]);this.history=a||createBrowserHistory($),this.history.listen(this.handleHistoryChange.bind(this)),this.registerHistoryListener=this.registerHistoryListener.bind(this)}handleHistoryChange(s,a){const $=s.location||s,j=s.action||a;this.historyListenHandler&&this.historyListenHandler($,j)}registerHistoryListener(s){this.historyListenHandler=s}render(){const s=this.props,{children:a}=s,$=__rest(s,["children"]);return React$1.createElement(Router,Object.assign({history:this.history},$),React$1.createElement(IonRouter,{registerHistoryListener:this.registerHistoryListener},a))}}class IonReactMemoryRouter extends React$1.Component{constructor(s){super(s),this.history=s.history,this.history.listen(this.handleHistoryChange.bind(this)),this.registerHistoryListener=this.registerHistoryListener.bind(this)}handleHistoryChange(s,a){const $=s.location||s,j=s.action||a;this.historyListenHandler&&this.historyListenHandler($,j)}registerHistoryListener(s){this.historyListenHandler=s}render(){const s=this.props,{children:a}=s,$=__rest(s,["children"]);return React$1.createElement(Router,Object.assign({},$),React$1.createElement(IonRouter,{registerHistoryListener:this.registerHistoryListener},a))}}class IonReactHashRouter extends React$1.Component{constructor(s){super(s);const{history:a}=s,$=__rest(s,["history"]);this.history=a||createHashHistory($),this.history.listen(this.handleHistoryChange.bind(this)),this.registerHistoryListener=this.registerHistoryListener.bind(this)}handleHistoryChange(s,a){const $=s.location||s,j=s.action||a;this.historyListenHandler&&this.historyListenHandler($,j)}registerHistoryListener(s){this.historyListenHandler=s}render(){const s=this.props,{children:a}=s,$=__rest(s,["children"]);return React$1.createElement(Router,Object.assign({history:this.history},$),React$1.createElement(IonRouter,{registerHistoryListener:this.registerHistoryListener},a))}}const TOAST_HIDE_TIMEOUT_TIME=3e3,resetToast=()=>({type:"RESET_TOAST"}),setToast=({toastMessage:o,showToast:s=!0,toastDuration:a=TOAST_HIDE_TIMEOUT_TIME,toastPosition:$="bottom"})=>({type:"SET_TOAST",toastMessage:o,showToast:s,toastDuration:a,toastPosition:$}),Toast=({topOrBottom:o})=>{const s=useDispatch(),a=useSelector(et=>et.toast.showToast),$=useSelector(et=>et.toast.toastMessage),j=useSelector(et=>et.toast.toastDuration),[_e]=useIonToast();return reactExports.useEffect(()=>{a&&(_e({message:$,duration:j,position:o,buttons:[{text:"Dismiss",role:"cancel",handler:()=>{}}]}),s(resetToast()))},[s,a,j,$,o,_e]),null};var amplitude_umd={exports:{}};(function(o,s){(function(a,$){o.exports=$()})(commonjsGlobal$1,function(){function a(jt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?a=function(Tt){return typeof Tt}:a=function(Tt){return Tt&&typeof Symbol=="function"&&Tt.constructor===Symbol&&Tt!==Symbol.prototype?"symbol":typeof Tt},a(jt)}function $(jt,Tt){if(!(jt instanceof Tt))throw new TypeError("Cannot call a class as a function")}function j(jt,Tt){for(var $t=0;$t<Tt.length;$t++){var Gt=Tt[$t];Gt.enumerable=Gt.enumerable||!1,Gt.configurable=!0,"value"in Gt&&(Gt.writable=!0),Object.defineProperty(jt,Gt.key,Gt)}}function _e(jt,Tt,$t){return Tt&&j(jt.prototype,Tt),jt}function et(jt,Tt,$t){return Tt in jt?Object.defineProperty(jt,Tt,{value:$t,enumerable:!0,configurable:!0,writable:!0}):jt[Tt]=$t,jt}function tt(jt){for(var Tt=1;Tt<arguments.length;Tt++){var $t=arguments[Tt]!=null?arguments[Tt]:{},Gt=Object.keys($t);typeof Object.getOwnPropertySymbols=="function"&&(Gt=Gt.concat(Object.getOwnPropertySymbols($t).filter(function(en){return Object.getOwnPropertyDescriptor($t,en).enumerable}))),Gt.forEach(function(en){et(jt,en,$t[en])})}return jt}var nt={DEFAULT_INSTANCE:"$default_instance",API_VERSION:2,MAX_STRING_LENGTH:4096,MAX_PROPERTY_KEYS:1e3,IDENTIFY_EVENT:"$identify",GROUP_IDENTIFY_EVENT:"$groupidentify",LAST_EVENT_ID:"amplitude_lastEventId",LAST_EVENT_TIME:"amplitude_lastEventTime",LAST_IDENTIFY_ID:"amplitude_lastIdentifyId",LAST_SEQUENCE_NUMBER:"amplitude_lastSequenceNumber",SESSION_ID:"amplitude_sessionId",DEVICE_ID:"amplitude_deviceId",OPT_OUT:"amplitude_optOut",USER_ID:"amplitude_userId",COOKIE_TEST:"amplitude_cookie_test",COOKIE_PREFIX:"amp",REVENUE_EVENT:"revenue_amount",REVENUE_PRODUCT_ID:"$productId",REVENUE_QUANTITY:"$quantity",REVENUE_PRICE:"$price",REVENUE_REVENUE_TYPE:"$revenueType",AMP_DEVICE_ID_PARAM:"amp_device_id",REFERRER:"referrer",UTM_SOURCE:"utm_source",UTM_MEDIUM:"utm_medium",UTM_CAMPAIGN:"utm_campaign",UTM_TERM:"utm_term",UTM_CONTENT:"utm_content"},it={encode:function(Tt){for(var $t="",Gt=0;Gt<Tt.length;Gt++){var en=Tt.charCodeAt(Gt);en<128?$t+=String.fromCharCode(en):en>127&&en<2048?($t+=String.fromCharCode(en>>6|192),$t+=String.fromCharCode(en&63|128)):($t+=String.fromCharCode(en>>12|224),$t+=String.fromCharCode(en>>6&63|128),$t+=String.fromCharCode(en&63|128))}return $t},decode:function(Tt){for(var $t="",Gt=0,en=0,nn=0,un=0;Gt<Tt.length;)en=Tt.charCodeAt(Gt),en<128?($t+=String.fromCharCode(en),Gt++):en>191&&en<224?(nn=Tt.charCodeAt(Gt+1),$t+=String.fromCharCode((en&31)<<6|nn&63),Gt+=2):(nn=Tt.charCodeAt(Gt+1),un=Tt.charCodeAt(Gt+2),$t+=String.fromCharCode((en&15)<<12|(nn&63)<<6|un&63),Gt+=3);return $t}},rt={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(Tt){try{if(window.btoa&&window.atob)return window.btoa(unescape(encodeURIComponent(Tt)))}catch{}return rt._encode(Tt)},_encode:function(Tt){var $t="",Gt,en,nn,un,pn,In,Qn,Jn=0;for(Tt=it.encode(Tt);Jn<Tt.length;)Gt=Tt.charCodeAt(Jn++),en=Tt.charCodeAt(Jn++),nn=Tt.charCodeAt(Jn++),un=Gt>>2,pn=(Gt&3)<<4|en>>4,In=(en&15)<<2|nn>>6,Qn=nn&63,isNaN(en)?In=Qn=64:isNaN(nn)&&(Qn=64),$t=$t+rt._keyStr.charAt(un)+rt._keyStr.charAt(pn)+rt._keyStr.charAt(In)+rt._keyStr.charAt(Qn);return $t},decode:function(Tt){try{if(window.btoa&&window.atob)return decodeURIComponent(escape(window.atob(Tt)))}catch{}return rt._decode(Tt)},_decode:function(Tt){var $t="",Gt,en,nn,un,pn,In,Qn,Jn=0;for(Tt=Tt.replace(/[^A-Za-z0-9\+\/\=]/g,"");Jn<Tt.length;)un=rt._keyStr.indexOf(Tt.charAt(Jn++)),pn=rt._keyStr.indexOf(Tt.charAt(Jn++)),In=rt._keyStr.indexOf(Tt.charAt(Jn++)),Qn=rt._keyStr.indexOf(Tt.charAt(Jn++)),Gt=un<<2|pn>>4,en=(pn&15)<<4|In>>2,nn=(In&3)<<6|Qn,$t=$t+String.fromCharCode(Gt),In!==64&&($t=$t+String.fromCharCode(en)),Qn!==64&&($t=$t+String.fromCharCode(nn));return $t=it.decode($t),$t}},st=Object.prototype.toString;function ot(jt){switch(st.call(jt)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}return jt===null?"null":jt===void 0?"undefined":jt!==jt?"nan":jt&&jt.nodeType===1?"element":typeof Buffer<"u"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(jt)?"buffer":(jt=jt.valueOf?jt.valueOf():Object.prototype.valueOf.apply(jt),a(jt))}var at={DISABLE:0,ERROR:1,WARN:2,INFO:3},lt=at.WARN,ct=function(Tt){at.hasOwnProperty(Tt)&&(lt=at[Tt])},ht=function(){return lt},dt={error:function(Tt){lt>=at.ERROR&&ut(Tt)},warn:function(Tt){lt>=at.WARN&&ut(Tt)},info:function(Tt){lt>=at.INFO&&ut(Tt)}},ut=function(Tt){try{console.log("[Amplitude] "+Tt)}catch{}},pt=function(Tt){return!Tt||Tt.length===0},ft=function(){try{if(window.sessionStorage)return!0}catch{}return!1},mt=function jt(Tt){if(ot(Tt)==="array")for(var $t=0;$t<Tt.length;$t++)Tt[$t]=jt(Tt[$t]);else if(ot(Tt)==="object")for(var Gt in Tt)Tt.hasOwnProperty(Gt)&&(Tt[Gt]=jt(Tt[Gt]));else Tt=gt(Tt);return Tt},gt=function(Tt){return ot(Tt)==="string"&&Tt.length>nt.MAX_STRING_LENGTH?Tt.substring(0,nt.MAX_STRING_LENGTH):Tt},bt=function(Tt,$t,Gt){return ot(Tt)!==Gt?(dt.error("Invalid "+$t+" input type. Expected "+Gt+" but received "+ot(Tt)),!1):!0},St=function(Tt){var $t=ot(Tt);if($t!=="object")return dt.error("Error: invalid properties format. Expecting Javascript object, received "+$t+", ignoring"),{};if(Object.keys(Tt).length>nt.MAX_PROPERTY_KEYS)return dt.error("Error: too many properties (more than 1000), ignoring"),{};var Gt={};for(var en in Tt)if(Tt.hasOwnProperty(en)){var nn=en,un=ot(nn);un!=="string"&&(nn=String(nn),dt.warn("WARNING: Non-string property key, received type "+un+', coercing to string "'+nn+'"'));var pn=Rt(nn,Tt[en]);pn!==null&&(Gt[nn]=pn)}return Gt},Nt=["nan","function","arguments","regexp","element"],Rt=function jt(Tt,$t){var Gt=ot($t);if(Nt.indexOf(Gt)!==-1)dt.warn('WARNING: Property key "'+Tt+'" with invalid value type '+Gt+", ignoring"),$t=null;else if(Gt==="undefined")$t=null;else if(Gt==="error")$t=String($t),dt.warn('WARNING: Property key "'+Tt+'" with value type error, coercing to '+$t);else if(Gt==="array"){for(var en=[],nn=0;nn<$t.length;nn++){var un=$t[nn],pn=ot(un);if(pn==="array"){dt.warn("WARNING: Cannot have "+pn+" nested in an array property value, skipping");continue}else pn==="object"?en.push(St(un)):en.push(jt(Tt,un))}$t=en}else Gt==="object"&&($t=St($t));return $t},Ft=function(Tt){var $t=ot(Tt);if($t!=="object")return dt.error("Error: invalid groups format. Expecting Javascript object, received "+$t+", ignoring"),{};var Gt={};for(var en in Tt)if(Tt.hasOwnProperty(en)){var nn=en,un=ot(nn);un!=="string"&&(nn=String(nn),dt.warn("WARNING: Non-string groupType, received type "+un+', coercing to string "'+nn+'"'));var pn=Ot(nn,Tt[en]);pn!==null&&(Gt[nn]=pn)}return Gt},Ot=function(Tt,$t){var Gt=ot($t);if(Gt==="string")return $t;if(Gt==="date"||Gt==="number"||Gt==="boolean")return $t=String($t),dt.warn("WARNING: Non-string groupName, received type "+Gt+', coercing to string "'+$t+'"'),$t;if(Gt==="array"){for(var en=[],nn=0;nn<$t.length;nn++){var un=$t[nn],pn=ot(un);if(pn==="array"||pn==="object"){dt.warn("WARNING: Skipping nested "+pn+" in array groupName");continue}else pn==="string"?en.push(un):(pn==="date"||pn==="number"||pn==="boolean")&&(un=String(un),dt.warn("WARNING: Non-string groupName, received type "+pn+', coercing to string "'+un+'"'),en.push(un))}return en}dt.warn("WARNING: Non-string groupName, received type "+Gt+". Please use strings or array of strings for groupName")},Ct=function(Tt,$t){Tt=Tt.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var Gt=new RegExp("[\\?&]"+Tt+"=([^&#]*)"),en=Gt.exec($t);return en===null?void 0:decodeURIComponent(en[1].replace(/\+/g," "))},yt={setLogLevel:ct,getLogLevel:ht,logLevels:at,log:dt,isEmptyString:pt,getQueryParam:Ct,sessionStorageEnabled:ft,truncate:mt,validateGroups:Ft,validateInput:bt,validateProperties:St},Pt=function(){return window.location},wt=function(Tt){try{for(var $t=document.cookie.split(";"),Gt=null,en=0;en<$t.length;en++){for(var nn=$t[en];nn.charAt(0)===" ";)nn=nn.substring(1,nn.length);if(nn.indexOf(Tt)===0){Gt=nn.substring(Tt.length,nn.length);break}}return Gt}catch{return null}},Lt=function(Tt,$t,Gt){var en=$t!==null?Gt.expirationDays:-1;if(en){var nn=new Date;nn.setTime(nn.getTime()+en*24*60*60*1e3),en=nn}var un=Tt+"="+$t;en&&(un+="; expires="+en.toUTCString()),un+="; path=/",Gt.domain&&(un+="; domain="+Gt.domain),Gt.secure&&(un+="; Secure"),Gt.sameSite&&(un+="; SameSite="+Gt.sameSite),document.cookie=un},vt=function(){var Tt=String(new Date);try{Lt(nt.COOKIE_TEST,Tt,{});var $t=wt(nt.COOKIE_TEST+"=")===Tt;return Lt(nt.COOKIE_TEST,null,{}),$t}catch{}return!1},xt={set:Lt,get:wt,areCookiesEnabled:vt},Ut=function(Tt){var $t=document.createElement("a");return $t.href=Tt,$t.hostname||location.hostname},Et=function(Tt){for(var $t=Ut(Tt),Gt=$t.split("."),en=[],nn=Gt.length-2;nn>=0;--nn)en.push(Gt.slice(nn).join("."));for(var un=0;un<en.length;++un){var pn="__tld_test__",In=en[un],Qn={domain:"."+In};if(xt.set(pn,1,Qn),xt.get(pn))return xt.set(pn,null,Qn),In}return""},Dt={expirationDays:void 0,domain:void 0},Bt=function(){Dt={expirationDays:void 0,domain:void 0}},Wt=function(Tt){if(arguments.length===0)return Dt;Tt=Tt||{},Dt.expirationDays=Tt.expirationDays,Dt.secure=Tt.secure,Dt.sameSite=Tt.sameSite;var $t=yt.isEmptyString(Tt.domain)?"."+Et(Pt().href):Tt.domain,Gt=Math.random();Dt.domain=$t,dn("amplitude_test",Gt);var en=sn("amplitude_test");return(!en||en!==Gt)&&($t=null),An("amplitude_test"),Dt.domain=$t,Dt},Zt=function(Tt){var $t="";return Dt.domain&&($t=Dt.domain.charAt(0)==="."?Dt.domain.substring(1):Dt.domain),Tt+$t},sn=function(Tt){var $t=Zt(Tt)+"=",Gt=xt.get($t);try{if(Gt)return JSON.parse(rt.decode(Gt))}catch{return null}return null},dn=function(Tt,$t){try{return xt.set(Zt(Tt),rt.encode(JSON.stringify($t)),Dt),!0}catch{return!1}},vn=function(Tt,$t){try{return xt.set(Zt(Tt),$t,Dt),!0}catch{return!1}},kn=function(Tt){var $t=Zt(Tt)+"=";return xt.get($t)},An=function(Tt){try{return xt.set(Zt(Tt),null,Dt),!0}catch{return!1}},$n={reset:Bt,options:Wt,get:sn,set:dn,remove:An,setRaw:vn,getRaw:kn},On;{var Cn=function(){var Tt=new Date,$t;try{return window.localStorage.setItem(Tt,Tt),$t=window.localStorage.getItem(Tt)===String(Tt),window.localStorage.removeItem(Tt),$t}catch{}return!1};if(Cn())On=window.localStorage;else if(window.globalStorage)try{On=window.globalStorage[window.location.hostname]}catch{}else if(typeof document<"u"){var rn=document.createElement("div"),Fn="localStorage";rn.style.display="none",document.getElementsByTagName("head")[0].appendChild(rn),rn.addBehavior&&(rn.addBehavior("#default#userdata"),On={length:0,setItem:function(Tt,$t){rn.load(Fn),rn.getAttribute(Tt)||this.length++,rn.setAttribute(Tt,$t),rn.save(Fn)},getItem:function(Tt){return rn.load(Fn),rn.getAttribute(Tt)},removeItem:function(Tt){rn.load(Fn),rn.getAttribute(Tt)&&this.length--,rn.removeAttribute(Tt),rn.save(Fn)},clear:function(){rn.load(Fn);for(var Tt=0,$t;$t=rn.XMLDocument.documentElement.attributes[Tt++];)rn.removeAttribute($t.name);rn.save(Fn),this.length=0},key:function(Tt){return rn.load(Fn),rn.XMLDocument.documentElement.attributes[Tt]}},rn.load(Fn),On.length=rn.XMLDocument.documentElement.attributes.length)}On||(On={length:0,setItem:function(Tt,$t){},getItem:function(Tt){},removeItem:function(Tt){},clear:function(){},key:function(Tt){}})}var Ln=On,Rn=function(){this.storage=null};Rn.prototype._cookiesEnabled=function(){var jt=String(new Date),Tt;try{return $n.set(nt.COOKIE_TEST,jt),Tt=$n.get(nt.COOKIE_TEST)===jt,$n.remove(nt.COOKIE_TEST),Tt}catch{}return!1},Rn.prototype.getStorage=function(){if(this.storage!==null)return this.storage;if(this._cookiesEnabled())this.storage=$n;else{var jt="amp_cookiestore_";this.storage={_options:{expirationDays:void 0,domain:void 0,secure:!1},reset:function(){this._options={expirationDays:void 0,domain:void 0,secure:!1}},options:function($t){return arguments.length===0?this._options:($t=$t||{},this._options.expirationDays=$t.expirationDays||this._options.expirationDays,this._options.domain=$t.domain||this._options.domain||window&&window.location&&window.location.hostname,this._options.secure=$t.secure||!1)},get:function($t){try{return JSON.parse(Ln.getItem(jt+$t))}catch{}return null},set:function($t,Gt){try{return Ln.setItem(jt+$t,JSON.stringify(Gt)),!0}catch{}return!1},remove:function($t){try{Ln.removeItem(jt+$t)}catch{return!1}}}}return this.storage};var Gn=function(){function jt(Tt){var $t=Tt.storageKey,Gt=Tt.disableCookies,en=Tt.domain,nn=Tt.secure,un=Tt.sameSite,pn=Tt.expirationDays;$(this,jt),this.storageKey=$t,this.disableCookieStorage=!xt.areCookiesEnabled()||Gt,this.domain=en,this.secure=nn,this.sameSite=un,this.expirationDays=pn,this.cookieDomain="";{var In=Et(Pt().href);this.cookieDomain=en||(In?"."+In:null)}}return _e(jt,[{key:"getCookieStorageKey",value:function(){if(!this.domain)return this.storageKey;var $t=this.domain.charAt(0)==="."?this.domain.substring(1):this.domain;return"".concat(this.storageKey).concat($t?"_".concat($t):"")}},{key:"save",value:function($t){var Gt=$t.deviceId,en=$t.userId,nn=$t.optOut,un=$t.sessionId,pn=$t.lastEventTime,In=$t.eventId,Qn=$t.identifyId,Jn=$t.sequenceNumber,_i=[Gt,rt.encode(en||""),nn?"1":"",un?un.toString(32):"0",pn?pn.toString(32):"0",In?In.toString(32):"0",Qn?Qn.toString(32):"0",Jn?Jn.toString(32):"0"].join(".");this.disableCookieStorage?Ln.setItem(this.storageKey,_i):xt.set(this.getCookieStorageKey(),_i,{domain:this.cookieDomain,secure:this.secure,sameSite:this.sameSite,expirationDays:this.expirationDays})}},{key:"load",value:function(){var $t;if(this.disableCookieStorage||($t=xt.get(this.getCookieStorageKey()+"=")),$t||($t=Ln.getItem(this.storageKey)),!$t)return null;var Gt=$t.split("."),en=null;if(Gt[1])try{en=rt.decode(Gt[1])}catch{en=null}return{deviceId:Gt[0],userId:en,optOut:Gt[2]==="1",sessionId:parseInt(Gt[3],32),lastEventTime:parseInt(Gt[4],32),eventId:parseInt(Gt[5],32),identifyId:parseInt(Gt[6],32),sequenceNumber:parseInt(Gt[7],32)}}}]),jt}(),Vn=function(Tt,$t){var Gt=Tt?"?"+Tt.split(".").slice(-1)[0].replace(/\|/g,"&"):"",en=function(Sn,yn,En,Tn){return yt.getQueryParam(Sn,yn)||yt.getQueryParam(En,Tn)},nn=en(nt.UTM_SOURCE,$t,"utmcsr",Gt),un=en(nt.UTM_MEDIUM,$t,"utmcmd",Gt),pn=en(nt.UTM_CAMPAIGN,$t,"utmccn",Gt),In=en(nt.UTM_TERM,$t,"utmctr",Gt),Qn=en(nt.UTM_CONTENT,$t,"utmcct",Gt),Jn={},_i=function(Sn,yn){yt.isEmptyString(yn)||(Jn[Sn]=yn)};return _i(nt.UTM_SOURCE,nn),_i(nt.UTM_MEDIUM,un),_i(nt.UTM_CAMPAIGN,pn),_i(nt.UTM_TERM,In),_i(nt.UTM_CONTENT,Qn),Jn},qn="$add",Zn="$append",jn="$clearAll",Xn="$prepend",dr="$set",mn="$setOnce",Mn="$unset",Mt=function(){this.userPropertiesOperations={},this.properties=[]};Mt.prototype.add=function(jt,Tt){return ot(Tt)==="number"||ot(Tt)==="string"?this._addOperation(qn,jt,Tt):yt.log.error("Unsupported type for value: "+ot(Tt)+", expecting number or string"),this},Mt.prototype.append=function(jt,Tt){return this._addOperation(Zn,jt,Tt),this},Mt.prototype.clearAll=function(){return Object.keys(this.userPropertiesOperations).length>0?(this.userPropertiesOperations.hasOwnProperty(jn)||yt.log.error("Need to send $clearAll on its own Identify object without any other operations, skipping $clearAll"),this):(this.userPropertiesOperations[jn]="-",this)},Mt.prototype.prepend=function(jt,Tt){return this._addOperation(Xn,jt,Tt),this},Mt.prototype.set=function(jt,Tt){return this._addOperation(dr,jt,Tt),this},Mt.prototype.setOnce=function(jt,Tt){return this._addOperation(mn,jt,Tt),this},Mt.prototype.unset=function(jt){return this._addOperation(Mn,jt,"-"),this},Mt.prototype._addOperation=function(jt,Tt,$t){if(this.userPropertiesOperations.hasOwnProperty(jn)){yt.log.error("This identify already contains a $clearAll operation, skipping operation "+jt);return}if(this.properties.indexOf(Tt)!==-1){yt.log.error('User property "'+Tt+'" already used in this identify, skipping operation '+jt);return}this.userPropertiesOperations.hasOwnProperty(jt)||(this.userPropertiesOperations[jt]={}),this.userPropertiesOperations[jt][Tt]=$t,this.properties.push(Tt)};var _t=typeof window<"u"?window:typeof commonjsGlobal$1<"u"?commonjsGlobal$1:typeof self<"u"?self:{};function kt(jt,Tt){return Tt={exports:{}},jt(Tt,Tt.exports),Tt.exports}var Vt=kt(function(jt){(function(Tt){function $t(cn,Nn){var It=(cn&65535)+(Nn&65535),At=(cn>>16)+(Nn>>16)+(It>>16);return At<<16|It&65535}function Gt(cn,Nn){return cn<<Nn|cn>>>32-Nn}function en(cn,Nn,It,At,zt,Ht){return $t(Gt($t($t(Nn,cn),$t(At,Ht)),zt),It)}function nn(cn,Nn,It,At,zt,Ht,tn){return en(Nn&It|~Nn&At,cn,Nn,zt,Ht,tn)}function un(cn,Nn,It,At,zt,Ht,tn){return en(Nn&At|It&~At,cn,Nn,zt,Ht,tn)}function pn(cn,Nn,It,At,zt,Ht,tn){return en(Nn^It^At,cn,Nn,zt,Ht,tn)}function In(cn,Nn,It,At,zt,Ht,tn){return en(It^(Nn|~At),cn,Nn,zt,Ht,tn)}function Qn(cn,Nn){cn[Nn>>5]|=128<<Nn%32,cn[(Nn+64>>>9<<4)+14]=Nn;var It,At,zt,Ht,tn,Yt=1732584193,Qt=-271733879,Xt=-1732584194,Kt=271733878;for(It=0;It<cn.length;It+=16)At=Yt,zt=Qt,Ht=Xt,tn=Kt,Yt=nn(Yt,Qt,Xt,Kt,cn[It],7,-680876936),Kt=nn(Kt,Yt,Qt,Xt,cn[It+1],12,-389564586),Xt=nn(Xt,Kt,Yt,Qt,cn[It+2],17,606105819),Qt=nn(Qt,Xt,Kt,Yt,cn[It+3],22,-1044525330),Yt=nn(Yt,Qt,Xt,Kt,cn[It+4],7,-176418897),Kt=nn(Kt,Yt,Qt,Xt,cn[It+5],12,1200080426),Xt=nn(Xt,Kt,Yt,Qt,cn[It+6],17,-1473231341),Qt=nn(Qt,Xt,Kt,Yt,cn[It+7],22,-45705983),Yt=nn(Yt,Qt,Xt,Kt,cn[It+8],7,1770035416),Kt=nn(Kt,Yt,Qt,Xt,cn[It+9],12,-1958414417),Xt=nn(Xt,Kt,Yt,Qt,cn[It+10],17,-42063),Qt=nn(Qt,Xt,Kt,Yt,cn[It+11],22,-1990404162),Yt=nn(Yt,Qt,Xt,Kt,cn[It+12],7,1804603682),Kt=nn(Kt,Yt,Qt,Xt,cn[It+13],12,-40341101),Xt=nn(Xt,Kt,Yt,Qt,cn[It+14],17,-1502002290),Qt=nn(Qt,Xt,Kt,Yt,cn[It+15],22,1236535329),Yt=un(Yt,Qt,Xt,Kt,cn[It+1],5,-165796510),Kt=un(Kt,Yt,Qt,Xt,cn[It+6],9,-1069501632),Xt=un(Xt,Kt,Yt,Qt,cn[It+11],14,643717713),Qt=un(Qt,Xt,Kt,Yt,cn[It],20,-373897302),Yt=un(Yt,Qt,Xt,Kt,cn[It+5],5,-701558691),Kt=un(Kt,Yt,Qt,Xt,cn[It+10],9,38016083),Xt=un(Xt,Kt,Yt,Qt,cn[It+15],14,-660478335),Qt=un(Qt,Xt,Kt,Yt,cn[It+4],20,-405537848),Yt=un(Yt,Qt,Xt,Kt,cn[It+9],5,568446438),Kt=un(Kt,Yt,Qt,Xt,cn[It+14],9,-1019803690),Xt=un(Xt,Kt,Yt,Qt,cn[It+3],14,-187363961),Qt=un(Qt,Xt,Kt,Yt,cn[It+8],20,1163531501),Yt=un(Yt,Qt,Xt,Kt,cn[It+13],5,-1444681467),Kt=un(Kt,Yt,Qt,Xt,cn[It+2],9,-51403784),Xt=un(Xt,Kt,Yt,Qt,cn[It+7],14,1735328473),Qt=un(Qt,Xt,Kt,Yt,cn[It+12],20,-1926607734),Yt=pn(Yt,Qt,Xt,Kt,cn[It+5],4,-378558),Kt=pn(Kt,Yt,Qt,Xt,cn[It+8],11,-2022574463),Xt=pn(Xt,Kt,Yt,Qt,cn[It+11],16,1839030562),Qt=pn(Qt,Xt,Kt,Yt,cn[It+14],23,-35309556),Yt=pn(Yt,Qt,Xt,Kt,cn[It+1],4,-1530992060),Kt=pn(Kt,Yt,Qt,Xt,cn[It+4],11,1272893353),Xt=pn(Xt,Kt,Yt,Qt,cn[It+7],16,-155497632),Qt=pn(Qt,Xt,Kt,Yt,cn[It+10],23,-1094730640),Yt=pn(Yt,Qt,Xt,Kt,cn[It+13],4,681279174),Kt=pn(Kt,Yt,Qt,Xt,cn[It],11,-358537222),Xt=pn(Xt,Kt,Yt,Qt,cn[It+3],16,-722521979),Qt=pn(Qt,Xt,Kt,Yt,cn[It+6],23,76029189),Yt=pn(Yt,Qt,Xt,Kt,cn[It+9],4,-640364487),Kt=pn(Kt,Yt,Qt,Xt,cn[It+12],11,-421815835),Xt=pn(Xt,Kt,Yt,Qt,cn[It+15],16,530742520),Qt=pn(Qt,Xt,Kt,Yt,cn[It+2],23,-995338651),Yt=In(Yt,Qt,Xt,Kt,cn[It],6,-198630844),Kt=In(Kt,Yt,Qt,Xt,cn[It+7],10,1126891415),Xt=In(Xt,Kt,Yt,Qt,cn[It+14],15,-1416354905),Qt=In(Qt,Xt,Kt,Yt,cn[It+5],21,-57434055),Yt=In(Yt,Qt,Xt,Kt,cn[It+12],6,1700485571),Kt=In(Kt,Yt,Qt,Xt,cn[It+3],10,-1894986606),Xt=In(Xt,Kt,Yt,Qt,cn[It+10],15,-1051523),Qt=In(Qt,Xt,Kt,Yt,cn[It+1],21,-2054922799),Yt=In(Yt,Qt,Xt,Kt,cn[It+8],6,1873313359),Kt=In(Kt,Yt,Qt,Xt,cn[It+15],10,-30611744),Xt=In(Xt,Kt,Yt,Qt,cn[It+6],15,-1560198380),Qt=In(Qt,Xt,Kt,Yt,cn[It+13],21,1309151649),Yt=In(Yt,Qt,Xt,Kt,cn[It+4],6,-145523070),Kt=In(Kt,Yt,Qt,Xt,cn[It+11],10,-1120210379),Xt=In(Xt,Kt,Yt,Qt,cn[It+2],15,718787259),Qt=In(Qt,Xt,Kt,Yt,cn[It+9],21,-343485551),Yt=$t(Yt,At),Qt=$t(Qt,zt),Xt=$t(Xt,Ht),Kt=$t(Kt,tn);return[Yt,Qt,Xt,Kt]}function Jn(cn){var Nn,It="",At=cn.length*32;for(Nn=0;Nn<At;Nn+=8)It+=String.fromCharCode(cn[Nn>>5]>>>Nn%32&255);return It}function _i(cn){var Nn,It=[];for(It[(cn.length>>2)-1]=void 0,Nn=0;Nn<It.length;Nn+=1)It[Nn]=0;var At=cn.length*8;for(Nn=0;Nn<At;Nn+=8)It[Nn>>5]|=(cn.charCodeAt(Nn/8)&255)<<Nn%32;return It}function gn(cn){return Jn(Qn(_i(cn),cn.length*8))}function Sn(cn,Nn){var It,At=_i(cn),zt=[],Ht=[],tn;for(zt[15]=Ht[15]=void 0,At.length>16&&(At=Qn(At,cn.length*8)),It=0;It<16;It+=1)zt[It]=At[It]^909522486,Ht[It]=At[It]^1549556828;return tn=Qn(zt.concat(_i(Nn)),512+Nn.length*8),Jn(Qn(Ht.concat(tn),640))}function yn(cn){var Nn="0123456789abcdef",It="",At,zt;for(zt=0;zt<cn.length;zt+=1)At=cn.charCodeAt(zt),It+=Nn.charAt(At>>>4&15)+Nn.charAt(At&15);return It}function En(cn){return unescape(encodeURIComponent(cn))}function Tn(cn){return gn(En(cn))}function Rr(cn){return yn(Tn(cn))}function wr(cn,Nn){return Sn(En(cn),En(Nn))}function er(cn,Nn){return yn(wr(cn,Nn))}function Wn(cn,Nn,It){return Nn?It?wr(Nn,cn):er(Nn,cn):It?Tn(cn):Rr(cn)}jt.exports?jt.exports=Wn:Tt.md5=Wn})(_t)}),qt=function(jt){return encodeURIComponent(jt).replace(/[!'()*]/g,function(Tt){return"%"+Tt.charCodeAt(0).toString(16).toUpperCase()})};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var Jt=Object.getOwnPropertySymbols,ln=Object.prototype.hasOwnProperty,Un=Object.prototype.propertyIsEnumerable;function Yn(jt){if(jt==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(jt)}function ir(){try{if(!Object.assign)return!1;var jt=new String("abc");if(jt[5]="de",Object.getOwnPropertyNames(jt)[0]==="5")return!1;for(var Tt={},$t=0;$t<10;$t++)Tt["_"+String.fromCharCode($t)]=$t;var Gt=Object.getOwnPropertyNames(Tt).map(function(nn){return Tt[nn]});if(Gt.join("")!=="0123456789")return!1;var en={};return"abcdefghijklmnopqrst".split("").forEach(function(nn){en[nn]=nn}),Object.keys(Object.assign({},en)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var tr=ir()?Object.assign:function(jt,Tt){for(var $t,Gt=Yn(jt),en,nn=1;nn<arguments.length;nn++){$t=Object(arguments[nn]);for(var un in $t)ln.call($t,un)&&(Gt[un]=$t[un]);if(Jt){en=Jt($t);for(var pn=0;pn<en.length;pn++)Un.call($t,en[pn])&&(Gt[en[pn]]=$t[en[pn]])}}return Gt},nr="%[a-f0-9]{2}",Ur=new RegExp(nr,"gi"),zr=new RegExp("("+nr+")+","gi");function Vr(jt,Tt){try{return decodeURIComponent(jt.join(""))}catch{}if(jt.length===1)return jt;Tt=Tt||1;var $t=jt.slice(0,Tt),Gt=jt.slice(Tt);return Array.prototype.concat.call([],Vr($t),Vr(Gt))}function ro(jt){try{return decodeURIComponent(jt)}catch{for(var Tt=jt.match(Ur),$t=1;$t<Tt.length;$t++)jt=Vr(Tt,$t).join(""),Tt=jt.match(Ur);return jt}}function oo(jt){for(var Tt={"%FE%FF":"��","%FF%FE":"��"},$t=zr.exec(jt);$t;){try{Tt[$t[0]]=decodeURIComponent($t[0])}catch{var Gt=ro($t[0]);Gt!==$t[0]&&(Tt[$t[0]]=Gt)}$t=zr.exec(jt)}Tt["%C2"]="�";for(var en=Object.keys(Tt),nn=0;nn<en.length;nn++){var un=en[nn];jt=jt.replace(new RegExp(un,"g"),Tt[un])}return jt}var Jr=function(jt){if(typeof jt!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof jt+"`");try{return jt=jt.replace(/\+/g," "),decodeURIComponent(jt)}catch{return oo(jt)}};function lo(jt){switch(jt.arrayFormat){case"index":return function(Tt,$t,Gt){return $t===null?[yr(Tt,jt),"[",Gt,"]"].join(""):[yr(Tt,jt),"[",yr(Gt,jt),"]=",yr($t,jt)].join("")};case"bracket":return function(Tt,$t){return $t===null?yr(Tt,jt):[yr(Tt,jt),"[]=",yr($t,jt)].join("")};default:return function(Tt,$t){return $t===null?yr(Tt,jt):[yr(Tt,jt),"=",yr($t,jt)].join("")}}}function so(jt){var Tt;switch(jt.arrayFormat){case"index":return function($t,Gt,en){if(Tt=/\[(\d*)\]$/.exec($t),$t=$t.replace(/\[\d*\]$/,""),!Tt){en[$t]=Gt;return}en[$t]===void 0&&(en[$t]={}),en[$t][Tt[1]]=Gt};case"bracket":return function($t,Gt,en){if(Tt=/(\[\])$/.exec($t),$t=$t.replace(/\[\]$/,""),Tt){if(en[$t]===void 0){en[$t]=[Gt];return}}else{en[$t]=Gt;return}en[$t]=[].concat(en[$t],Gt)};default:return function($t,Gt,en){if(en[$t]===void 0){en[$t]=Gt;return}en[$t]=[].concat(en[$t],Gt)}}}function yr(jt,Tt){return Tt.encode?Tt.strict?qt(jt):encodeURIComponent(jt):jt}function Ir(jt){return Array.isArray(jt)?jt.sort():typeof jt=="object"?Ir(Object.keys(jt)).sort(function(Tt,$t){return Number(Tt)-Number($t)}).map(function(Tt){return jt[Tt]}):jt}function Lr(jt){var Tt=jt.indexOf("?");return Tt===-1?"":jt.slice(Tt+1)}function Hr(jt,Tt){Tt=tr({arrayFormat:"none"},Tt);var $t=so(Tt),Gt=Object.create(null);return typeof jt!="string"||(jt=jt.trim().replace(/^[?#&]/,""),!jt)?Gt:(jt.split("&").forEach(function(en){var nn=en.replace(/\+/g," ").split("="),un=nn.shift(),pn=nn.length>0?nn.join("="):void 0;pn=pn===void 0?null:Jr(pn),$t(Jr(un),pn,Gt)}),Object.keys(Gt).sort().reduce(function(en,nn){var un=Gt[nn];return un&&typeof un=="object"&&!Array.isArray(un)?en[nn]=Ir(un):en[nn]=un,en},Object.create(null)))}var Br=Lr,Pr=Hr,$r=function(jt,Tt){var $t={encode:!0,strict:!0,arrayFormat:"none"};Tt=tr($t,Tt),Tt.sort===!1&&(Tt.sort=function(){});var Gt=lo(Tt);return jt?Object.keys(jt).sort(Tt.sort).map(function(en){var nn=jt[en];if(nn===void 0)return"";if(nn===null)return yr(en,Tt);if(Array.isArray(nn)){var un=[];return nn.slice().forEach(function(pn){pn!==void 0&&un.push(Gt(en,pn,un.length))}),un.join("&")}return yr(en,Tt)+"="+yr(nn,Tt)}).filter(function(en){return en.length>0}).join("&"):""},Gr=function(jt,Tt){return{url:jt.split("?")[0]||"",query:Hr(Lr(jt),Tt)}},pr={extract:Br,parse:Pr,stringify:$r,parseUrl:Gr},Wr=function(Tt,$t){this.url=Tt,this.data=$t||{}};Wr.prototype.send=function(jt){var Tt=!!window.XDomainRequest;if(Tt){var $t=new window.XDomainRequest;$t.open("POST",this.url,!0),$t.onload=function(){jt(200,$t.responseText)},$t.onerror=function(){$t.responseText==="Request Entity Too Large"?jt(413,$t.responseText):jt(500,$t.responseText)},$t.ontimeout=function(){},$t.onprogress=function(){},$t.send(pr.stringify(this.data))}else{var Gt=new XMLHttpRequest;Gt.open("POST",this.url,!0),Gt.onreadystatechange=function(){Gt.readyState===4&&jt(Gt.status,Gt.responseText)},Gt.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),Gt.send(pr.stringify(this.data))}};var Tr=function(){this._price=null,this._productId=null,this._quantity=1,this._revenueType=null,this._properties=null};Tr.prototype.setProductId=function(Tt){return ot(Tt)!=="string"?yt.log.error("Unsupported type for productId: "+ot(Tt)+", expecting string"):yt.isEmptyString(Tt)?yt.log.error("Invalid empty productId"):this._productId=Tt,this},Tr.prototype.setQuantity=function(Tt){return ot(Tt)!=="number"?yt.log.error("Unsupported type for quantity: "+ot(Tt)+", expecting number"):this._quantity=parseInt(Tt),this},Tr.prototype.setPrice=function(Tt){return ot(Tt)!=="number"?yt.log.error("Unsupported type for price: "+ot(Tt)+", expecting number"):this._price=Tt,this},Tr.prototype.setRevenueType=function(Tt){return ot(Tt)!=="string"?yt.log.error("Unsupported type for revenueType: "+ot(Tt)+", expecting string"):this._revenueType=Tt,this},Tr.prototype.setEventProperties=function(Tt){return ot(Tt)!=="object"?yt.log.error("Unsupported type for eventProperties: "+ot(Tt)+", expecting object"):this._properties=yt.validateProperties(Tt),this},Tr.prototype._isValidRevenue=function(){return ot(this._price)!=="number"?(yt.log.error("Invalid revenue, need to set price field"),!1):!0},Tr.prototype._toJSONObject=function(){var Tt=ot(this._properties)==="object"?this._properties:{};return this._productId!==null&&(Tt[nt.REVENUE_PRODUCT_ID]=this._productId),this._quantity!==null&&(Tt[nt.REVENUE_QUANTITY]=this._quantity),this._price!==null&&(Tt[nt.REVENUE_PRICE]=this._price),this._revenueType!==null&&(Tt[nt.REVENUE_REVENUE_TYPE]=this._revenueType),Tt};var kr=kt(function(jt,Tt){/*!
 * UAParser.js v0.7.19
 * Lightweight JavaScript-based User-Agent string parser
 * https://github.com/faisalman/ua-parser-js
 *
 * Copyright © 2012-2016 Faisal Salman <fyzlman@gmail.com>
 * Dual licensed under GPLv2 or MIT
 */(function($t,Gt){var en="0.7.19",nn="",un="?",pn="function",In="undefined",Qn="object",Jn="string",_i="major",gn="model",Sn="name",yn="type",En="vendor",Tn="version",Rr="architecture",wr="console",er="mobile",Wn="tablet",cn="smarttv",Nn="wearable",It="embedded",At={extend:function(Kt,an){var hn={};for(var _n in Kt)an[_n]&&an[_n].length%2===0?hn[_n]=an[_n].concat(Kt[_n]):hn[_n]=Kt[_n];return hn},has:function(Kt,an){return typeof Kt=="string"?an.toLowerCase().indexOf(Kt.toLowerCase())!==-1:!1},lowerize:function(Kt){return Kt.toLowerCase()},major:function(Kt){return typeof Kt===Jn?Kt.replace(/[^\d\.]/g,"").split(".")[0]:Gt},trim:function(Kt){return Kt.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},zt={rgx:function(Kt,an){for(var hn=0,_n,xn,Bn,fn,ar,cr;hn<an.length&&!ar;){var Hn=an[hn],Kn=an[hn+1];for(_n=xn=0;_n<Hn.length&&!ar;)if(ar=Hn[_n++].exec(Kt),ar)for(Bn=0;Bn<Kn.length;Bn++)cr=ar[++xn],fn=Kn[Bn],typeof fn===Qn&&fn.length>0?fn.length==2?typeof fn[1]==pn?this[fn[0]]=fn[1].call(this,cr):this[fn[0]]=fn[1]:fn.length==3?typeof fn[1]===pn&&!(fn[1].exec&&fn[1].test)?this[fn[0]]=cr?fn[1].call(this,cr,fn[2]):Gt:this[fn[0]]=cr?cr.replace(fn[1],fn[2]):Gt:fn.length==4&&(this[fn[0]]=cr?fn[3].call(this,cr.replace(fn[1],fn[2])):Gt):this[fn]=cr||Gt;hn+=2}},str:function(Kt,an){for(var hn in an)if(typeof an[hn]===Qn&&an[hn].length>0){for(var _n=0;_n<an[hn].length;_n++)if(At.has(an[hn][_n],Kt))return hn===un?Gt:hn}else if(At.has(an[hn],Kt))return hn===un?Gt:hn;return Kt}},Ht={browser:{oldsafari:{version:{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}},name:{"Opera Mobile":"Opera Mobi","IE Mobile":"IEMobile"}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},name:{"Windows Phone":"Windows Phone OS"}}}},tn={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[Sn,Tn],[/(opios)[\/\s]+([\w\.]+)/i],[[Sn,"Opera Mini"],Tn],[/\s(opr)\/([\w\.]+)/i],[[Sn,"Opera"],Tn],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[Sn,Tn],[/(konqueror)\/([\w\.]+)/i],[[Sn,"Konqueror"],Tn],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[Sn,"IE"],Tn],[/(edge|edgios|edga)\/((\d+)?[\w\.]+)/i],[[Sn,"Edge"],Tn],[/(yabrowser)\/([\w\.]+)/i],[[Sn,"Yandex"],Tn],[/(puffin)\/([\w\.]+)/i],[[Sn,"Puffin"],Tn],[/(focus)\/([\w\.]+)/i],[[Sn,"Firefox Focus"],Tn],[/(opt)\/([\w\.]+)/i],[[Sn,"Opera Touch"],Tn],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[Sn,"UCBrowser"],Tn],[/(comodo_dragon)\/([\w\.]+)/i],[[Sn,/_/g," "],Tn],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[Sn,"Chrome Mobile"],Tn],[/(micromessenger)\/([\w\.]+)/i],[[Sn,"WeChat"],Tn],[/(brave)\/([\w\.]+)/i],[[Sn,"Brave"],Tn],[/(qqbrowserlite)\/([\w\.]+)/i],[Sn,Tn],[/(QQ)\/([\d\.]+)/i],[Sn,Tn],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[Sn,Tn],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[Sn,Tn],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[Sn,Tn],[/(MetaSr)[\/\s]?([\w\.]+)/i],[Sn],[/(LBBROWSER)/i],[Sn],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[Tn,[Sn,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[Tn,[Sn,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[Sn,Tn],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[Tn,[Sn,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[Sn,/(.+)/,"$1 WebView"],Tn],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[Sn,/(.+(?:g|us))(.+)/,"$1 $2"],Tn],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[Tn,[Sn,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[Sn,Tn],[/(dolfin)\/([\w\.]+)/i],[[Sn,"Dolphin"],Tn],[/(coast)\/([\w\.]+)/i],[[Sn,"Opera Coast"],Tn],[/fxios\/([\w\.-]+)/i],[Tn,[Sn,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[Tn,[Sn,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[Tn,Sn],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[Sn,"GSA"],Tn],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[Sn,[Tn,zt.str,Ht.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[Sn,Tn],[/(navigator|netscape)\/([\w\.-]+)/i],[[Sn,"Netscape"],Tn],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[Sn,Tn]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[Rr,"amd64"]],[/(ia32(?=;))/i],[[Rr,At.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[Rr,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[Rr,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[Rr,/ower/,"",At.lowerize]],[/(sun4\w)[;\)]/i],[[Rr,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[Rr,At.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[gn,En,[yn,Wn]],[/applecoremedia\/[\w\.]+ \((ipad)/],[gn,[En,"Apple"],[yn,Wn]],[/(apple\s{0,1}tv)/i],[[gn,"Apple TV"],[En,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[En,gn,[yn,Wn]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[gn,[En,"Amazon"],[yn,Wn]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[gn,zt.str,Ht.device.amazon.model],[En,"Amazon"],[yn,er]],[/android.+aft([bms])\sbuild/i],[gn,[En,"Amazon"],[yn,cn]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[gn,En,[yn,er]],[/\((ip[honed|\s\w*]+);/i],[gn,[En,"Apple"],[yn,er]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[En,gn,[yn,er]],[/\(bb10;\s(\w+)/i],[gn,[En,"BlackBerry"],[yn,er]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[gn,[En,"Asus"],[yn,Wn]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[En,"Sony"],[gn,"Xperia Tablet"],[yn,Wn]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[gn,[En,"Sony"],[yn,er]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[En,gn,[yn,wr]],[/android.+;\s(shield)\sbuild/i],[gn,[En,"Nvidia"],[yn,wr]],[/(playstation\s[34portablevi]+)/i],[gn,[En,"Sony"],[yn,wr]],[/(sprint\s(\w+))/i],[[En,zt.str,Ht.device.sprint.vendor],[gn,zt.str,Ht.device.sprint.model],[yn,er]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[En,gn,[yn,Wn]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[En,[gn,/_/g," "],[yn,er]],[/(nexus\s9)/i],[gn,[En,"HTC"],[yn,Wn]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[gn,[En,"Huawei"],[yn,er]],[/(microsoft);\s(lumia[\s\w]+)/i],[En,gn,[yn,er]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[gn,[En,"Microsoft"],[yn,wr]],[/(kin\.[onetw]{3})/i],[[gn,/\./g," "],[En,"Microsoft"],[yn,er]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[gn,[En,"Motorola"],[yn,er]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[gn,[En,"Motorola"],[yn,Wn]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[En,At.trim],[gn,At.trim],[yn,cn]],[/hbbtv.+maple;(\d+)/i],[[gn,/^/,"SmartTV"],[En,"Samsung"],[yn,cn]],[/\(dtv[\);].+(aquos)/i],[gn,[En,"Sharp"],[yn,cn]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[En,"Samsung"],gn,[yn,Wn]],[/smart-tv.+(samsung)/i],[En,[yn,cn],gn],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[En,"Samsung"],gn,[yn,er]],[/sie-(\w*)/i],[gn,[En,"Siemens"],[yn,er]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[En,"Nokia"],gn,[yn,er]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[gn,[En,"Acer"],[yn,Wn]],[/android.+([vl]k\-?\d{3})\s+build/i],[gn,[En,"LG"],[yn,Wn]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[En,"LG"],gn,[yn,Wn]],[/(lg) netcast\.tv/i],[En,gn,[yn,cn]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[gn,[En,"LG"],[yn,er]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[gn,[En,"Lenovo"],[yn,Wn]],[/linux;.+((jolla));/i],[En,gn,[yn,er]],[/((pebble))app\/[\d\.]+\s/i],[En,gn,[yn,Nn]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[En,gn,[yn,er]],[/crkey/i],[[gn,"Chromecast"],[En,"Google"]],[/android.+;\s(glass)\s\d/i],[gn,[En,"Google"],[yn,Nn]],[/android.+;\s(pixel c)[\s)]/i],[gn,[En,"Google"],[yn,Wn]],[/android.+;\s(pixel( [23])?( xl)?)\s/i],[gn,[En,"Google"],[yn,er]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[gn,/_/g," "],[En,"Xiaomi"],[yn,er]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[gn,/_/g," "],[En,"Xiaomi"],[yn,Wn]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[gn,[En,"Meizu"],[yn,Wn]],[/(mz)-([\w-]{2,})/i],[[En,"Meizu"],gn,[yn,er]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[gn,[En,"OnePlus"],[yn,er]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[gn,[En,"RCA"],[yn,Wn]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[gn,[En,"Dell"],[yn,Wn]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[gn,[En,"Verizon"],[yn,Wn]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[En,"Barnes & Noble"],gn,[yn,Wn]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[gn,[En,"NuVision"],[yn,Wn]],[/android.+;\s(k88)\sbuild/i],[gn,[En,"ZTE"],[yn,Wn]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[gn,[En,"Swiss"],[yn,er]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[gn,[En,"Swiss"],[yn,Wn]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[gn,[En,"Zeki"],[yn,Wn]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[En,"Dragon Touch"],gn,[yn,Wn]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[gn,[En,"Insignia"],[yn,Wn]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[gn,[En,"NextBook"],[yn,Wn]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[En,"Voice"],gn,[yn,er]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[En,"LvTel"],gn,[yn,er]],[/android.+;\s(PH-1)\s/i],[gn,[En,"Essential"],[yn,er]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[gn,[En,"Envizen"],[yn,Wn]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[En,gn,[yn,Wn]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[gn,[En,"MachSpeed"],[yn,Wn]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[En,gn,[yn,Wn]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[gn,[En,"Rotor"],[yn,Wn]],[/android.+(KS(.+))\s+build/i],[gn,[En,"Amazon"],[yn,Wn]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[En,gn,[yn,Wn]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[yn,At.lowerize],En,gn],[/[\s\/\(](smart-?tv)[;\)]/i],[[yn,cn]],[/(android[\w\.\s\-]{0,9});.+build/i],[gn,[En,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[Tn,[Sn,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)/i],[[Sn,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[Sn,Tn],[/rv\:([\w\.]{1,9}).+(gecko)/i],[Tn,Sn]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[Sn,Tn],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[[Sn,zt.str,Ht.os.windows.name],[Tn,zt.str,Ht.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[Sn,"Windows"],[Tn,zt.str,Ht.os.windows.version]],[/\((bb)(10);/i],[[Sn,"BlackBerry"],Tn],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]*)/i,/linux;.+(sailfish);/i],[Sn,Tn],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[Sn,"Symbian"],Tn],[/\((series40);/i],[Sn],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[Sn,"Firefox OS"],Tn],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[[Sn,"Linux"],Tn],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[Sn,"Chromium OS"],Tn],[/(sunos)\s?([\w\.\d]*)/i],[[Sn,"Solaris"],Tn],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[Sn,"Linux"],Tn],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[Sn,"iPhone"],[Tn,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[Sn,"iPad"],[Tn,/_/g,"."]],[/(haiku)\s(\w+)/i],[Sn,Tn],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[Tn,/_/g,"."],[Sn,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[Sn,"Mac"],[Tn,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[Sn,Tn]]},Yt=function(Kt,an){if(typeof Kt=="object"&&(an=Kt,Kt=Gt),!(this instanceof Yt))return new Yt(Kt,an).getResult();var hn=Kt||($t&&$t.navigator&&$t.navigator.userAgent?$t.navigator.userAgent:nn),_n=an?At.extend(tn,an):tn;return this.getBrowser=function(){var xn={name:Gt,version:Gt};return zt.rgx.call(xn,hn,_n.browser),xn.major=At.major(xn.version),xn},this.getCPU=function(){var xn={architecture:Gt};return zt.rgx.call(xn,hn,_n.cpu),xn},this.getDevice=function(){var xn={vendor:Gt,model:Gt,type:Gt};return zt.rgx.call(xn,hn,_n.device),xn},this.getEngine=function(){var xn={name:Gt,version:Gt};return zt.rgx.call(xn,hn,_n.engine),xn},this.getOS=function(){var xn={name:Gt,version:Gt};return zt.rgx.call(xn,hn,_n.os),xn},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return hn},this.setUA=function(xn){return hn=xn,this},this};Yt.VERSION=en,Yt.BROWSER={NAME:Sn,MAJOR:_i,VERSION:Tn},Yt.CPU={ARCHITECTURE:Rr},Yt.DEVICE={MODEL:gn,VENDOR:En,TYPE:yn,CONSOLE:wr,MOBILE:er,SMARTTV:cn,TABLET:Wn,WEARABLE:Nn,EMBEDDED:It},Yt.ENGINE={NAME:Sn,VERSION:Tn},Yt.OS={NAME:Sn,VERSION:Tn},jt.exports&&(Tt=jt.exports=Yt),Tt.UAParser=Yt;var Qt=$t&&($t.jQuery||$t.Zepto);if(typeof Qt!==In&&!Qt.ua){var Xt=new Yt;Qt.ua=Xt.getResult(),Qt.ua.get=function(){return Xt.getUA()},Qt.ua.set=function(Kt){Xt.setUA(Kt);var an=Xt.getResult();for(var hn in an)Qt.ua[hn]=an[hn]}}})(typeof window=="object"?window:_t)});kr.UAParser;var Yr=function jt(Tt){return Tt?(Tt^Math.random()*16>>Tt/4).toString(16):("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,jt)},Dr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",Kr=function(){for(var Tt="",$t=0;$t<22;++$t)Tt+=Dr.charAt(Math.floor(Math.random()*64));return Tt},Fr="6.2.0",co=function(){return navigator&&(navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage)||""},Xr={getLanguage:co},uo="Web",Qr={apiEndpoint:"api.amplitude.com",batchEvents:!1,cookieExpiration:365*10,cookieName:"amplitude_id",sameSiteCookie:"None",cookieForceUpgrade:!1,deferInitialization:!1,disableCookies:!1,deviceIdFromUrlParam:!1,domain:"",eventUploadPeriodMillis:30*1e3,eventUploadThreshold:30,forceHttps:!0,includeGclid:!1,includeReferrer:!1,includeUtm:!1,language:Xr.getLanguage(),logLevel:"WARN",optOut:!1,onError:function(){},platform:uo,savedMaxCount:1e3,saveEvents:!0,saveParamsReferrerOncePerSession:!0,secureCookie:!1,sessionTimeout:30*60*1e3,trackingOptions:{city:!0,country:!0,carrier:!0,device_manufacturer:!0,device_model:!0,dma:!0,ip_address:!0,language:!0,os_name:!0,os_version:!0,platform:!0,region:!0,version_name:!0},unsetParamsReferrerOnNewSession:!1,unsentKey:"amplitude_unsent",unsentIdentifyKey:"amplitude_unsent_identify",uploadBatchSize:100},Ar,Nr,Dn=function(Tt){this._instanceName=yt.isEmptyString(Tt)?nt.DEFAULT_INSTANCE:Tt.toLowerCase(),this._unsentEvents=[],this._unsentIdentifys=[],this._ua=new kr(navigator.userAgent).getResult(),this.options=tt({},Qr,{trackingOptions:tt({},Qr.trackingOptions)}),this.cookieStorage=new Rn().getStorage(),this._q=[],this._sending=!1,this._updateScheduled=!1,this._onInit=[],this._eventId=0,this._identifyId=0,this._lastEventTime=null,this._newSession=!1,this._sequenceNumber=0,this._sessionId=null,this._isInitialized=!1,this._userAgent=navigator&&navigator.userAgent||null};Dn.prototype.Identify=Mt,Dn.prototype.Revenue=Tr,Dn.prototype.init=function(Tt,$t,Gt,en){var nn=this;if(ot(Tt)!=="string"||yt.isEmptyString(Tt)){yt.log.error("Invalid apiKey. Please re-initialize with a valid apiKey");return}try{_r(this.options,Gt),this.options.cookieName!==Qr.cookieName&&yt.log.warn("The cookieName option is deprecated. We will be ignoring it for newer cookies"),this.options.apiKey=Tt,this._storageSuffix="_"+Tt+(this._instanceName===nt.DEFAULT_INSTANCE?"":"_"+this._instanceName),this._storageSuffixV5=Tt.slice(0,6),this._oldCookiename=this.options.cookieName+this._storageSuffix,this._unsentKey=this.options.unsentKey+this._storageSuffix,this._unsentIdentifyKey=this.options.unsentIdentifyKey+this._storageSuffix,this._cookieName=nt.COOKIE_PREFIX+"_"+this._storageSuffixV5,this.cookieStorage.options({expirationDays:this.options.cookieExpiration,domain:this.options.domain,secure:this.options.secureCookie,sameSite:this.options.sameSiteCookie}),this._metadataStorage=new Gn({storageKey:this._cookieName,disableCookies:this.options.disableCookies,expirationDays:this.options.cookieExpiration,domain:this.options.domain,secure:this.options.secureCookie,sameSite:this.options.sameSiteCookie});var un=!!this.cookieStorage.get(this._oldCookiename),pn=!!this._metadataStorage.load();this._useOldCookie=!pn&&un&&!this.options.cookieForceUpgrade;var In=pn||un;if(this.options.domain=this.cookieStorage.options().domain,this.options.deferInitialization&&!In){this._deferInitialization(Tt,$t,Gt,en);return}ot(this.options.logLevel)==="string"&&yt.setLogLevel(this.options.logLevel);var Qn=po(this);this._apiPropertiesTrackingOptions=Object.keys(Qn).length>0?{tracking_options:Qn}:{},this.options.cookieForceUpgrade&&un&&(pn||bn(this),this.cookieStorage.remove(this._oldCookiename)),on(this),this._pendingReadStorage=!0;var Jn=function(gn){nn.options.deviceId=ot(Gt)==="object"&&ot(Gt.deviceId)==="string"&&!yt.isEmptyString(Gt.deviceId)&&Gt.deviceId||nn.options.deviceIdFromUrlParam&&nn._getDeviceIdFromUrlParam(nn._getUrlParams())||nn.options.deviceId||gn||Kr(),nn.options.userId=ot($t)==="string"&&!yt.isEmptyString($t)&&$t||ot($t)==="number"&&$t.toString()||nn.options.userId||null;var Sn=new Date().getTime();(!nn._sessionId||!nn._lastEventTime||Sn-nn._lastEventTime>nn.options.sessionTimeout)&&(nn.options.unsetParamsReferrerOnNewSession&&nn._unsetUTMParams(),nn._newSession=!0,nn._sessionId=Sn,nn.options.saveParamsReferrerOncePerSession&&nn._trackParamsAndReferrer()),nn.options.saveParamsReferrerOncePerSession||nn._trackParamsAndReferrer(),nn.options.saveEvents&&(ho(nn._unsentEvents),ho(nn._unsentIdentifys)),nn._lastEventTime=Sn,rr(nn),nn._pendingReadStorage=!1,nn._sendEventsIfReady();for(var yn=0;yn<nn._onInit.length;yn++)nn._onInit[yn](nn);nn._onInit=[],nn._isInitialized=!0};Ar||(this.options.saveEvents&&(this._unsentEvents=this._loadSavedUnsentEvents(this.options.unsentKey).map(function(_i){return{event:_i}}).concat(this._unsentEvents),this._unsentIdentifys=this._loadSavedUnsentEvents(this.options.unsentIdentifyKey).map(function(_i){return{event:_i}}).concat(this._unsentIdentifys)),Jn(),this.runQueuedFunctions(),ot(en)==="function"&&en(this))}catch(_i){yt.log.error(_i),this.options.onError(_i)}};var ho=function(Tt){for(var $t=0;$t<Tt.length;$t++){var Gt=Tt[$t].event.user_properties,en=Tt[$t].event.event_properties,nn=Tt[$t].event.groups;Tt[$t].event.user_properties=yt.validateProperties(Gt),Tt[$t].event.event_properties=yt.validateProperties(en),Tt[$t].event.groups=yt.validateGroups(nn)}};Dn.prototype._migrateUnsentEvents=function(Tt){var $t=this;Promise.all([Ar.getItem(this.options.unsentKey),Ar.getItem(this.options.unsentIdentifyKey)]).then(function(Gt){if($t.options.saveEvents){var en=Gt[0],nn=Gt[1],un=[],pn=[];en&&(un.push(Ar.setItem($t.options.unsentKey+$t._storageSuffix,JSON.stringify(en))),pn.push(Ar.removeItem($t.options.unsentKey))),nn&&(un.push(Ar.setItem($t.options.unsentIdentifyKey+$t._storageSuffix,JSON.stringify(nn))),pn.push(Ar.removeItem($t.options.unsentIdentifyKey))),un.length>0&&Promise.all(un).then(function(){}).catch(function(In){$t.options.onError(In)})}}).then(Tt).catch(function(Gt){$t.options.onError(Gt)})},Dn.prototype._trackParamsAndReferrer=function(){this.options.includeUtm&&this._initUtmData(),this.options.includeReferrer&&this._saveReferrer(this._getReferrer()),this.options.includeGclid&&this._saveGclid(this._getUrlParams())};var _r=function jt(Tt,$t){if(ot($t)==="object"){var Gt=function(un){if(Tt.hasOwnProperty(un)){var pn=$t[un],In=ot(Tt[un]);yt.validateInput(pn,un+" option",In)&&(In==="boolean"?Tt[un]=!!pn:In==="string"&&!yt.isEmptyString(pn)||In==="number"&&pn>0?Tt[un]=pn:In==="object"&&jt(Tt[un],pn))}};for(var en in $t)$t.hasOwnProperty(en)&&Gt(en)}};Dn.prototype.runQueuedFunctions=function(){var jt=this._q;this._q=[];for(var Tt=0;Tt<jt.length;Tt++){var $t=this[jt[Tt][0]];ot($t)==="function"&&$t.apply(this,jt[Tt].slice(1))}},Dn.prototype._apiKeySet=function(Tt){return yt.isEmptyString(this.options.apiKey)?(yt.log.error("Invalid apiKey. Please set a valid apiKey with init() before calling "+Tt),!1):!0},Dn.prototype._loadSavedUnsentEvents=function(Tt){var $t=this._getFromStorage(Ln,Tt),Gt=this._parseSavedUnsentEventsString($t,Tt);return this._setInStorage(Ln,Tt,JSON.stringify(Gt)),Gt},Dn.prototype._parseSavedUnsentEventsString=function(Tt,$t){if(yt.isEmptyString(Tt))return[];if(ot(Tt)==="string")try{var Gt=JSON.parse(Tt);if(ot(Gt)==="array")return Gt}catch{}return yt.log.error("Unable to load "+$t+" events. Restart with a new empty queue."),[]},Dn.prototype.isNewSession=function(){return this._newSession},Dn.prototype.onInit=function(jt){this._isInitialized?jt():this._onInit.push(jt)},Dn.prototype.getSessionId=function(){return this._sessionId},Dn.prototype.nextEventId=function(){return this._eventId++,this._eventId},Dn.prototype.nextIdentifyId=function(){return this._identifyId++,this._identifyId},Dn.prototype.nextSequenceNumber=function(){return this._sequenceNumber++,this._sequenceNumber},Dn.prototype._unsentCount=function(){return this._unsentEvents.length+this._unsentIdentifys.length},Dn.prototype._sendEventsIfReady=function(){return this._unsentCount()===0?!1:this.options.batchEvents?this._unsentCount()>=this.options.eventUploadThreshold?(this.sendEvents(),!0):(this._updateScheduled||(this._updateScheduled=!0,setTimeout((function(){this._updateScheduled=!1,this.sendEvents()}).bind(this),this.options.eventUploadPeriodMillis)),!1):(this.sendEvents(),!0)},Dn.prototype._getFromStorage=function(Tt,$t){return Tt.getItem($t+this._storageSuffix)},Dn.prototype._setInStorage=function(Tt,$t,Gt){Tt.setItem($t+this._storageSuffix,Gt)};var on=function(Tt){if(!Tt._useOldCookie){var $t=Tt._metadataStorage.load();ot($t)==="object"&&Pn(Tt,$t);return}var Gt=Tt.cookieStorage.get(Tt._oldCookiename);if(ot(Gt)==="object"){Pn(Tt,Gt);return}},bn=function(Tt){var $t=Tt.cookieStorage.get(Tt._oldCookiename);ot($t)==="object"&&(Pn(Tt,$t),rr(Tt))},Pn=function(Tt,$t){$t.deviceId&&(Tt.options.deviceId=$t.deviceId),$t.userId&&(Tt.options.userId=$t.userId),$t.optOut!==null&&$t.optOut!==void 0&&$t.optOut!==!1&&(Tt.options.optOut=$t.optOut),$t.sessionId&&(Tt._sessionId=parseInt($t.sessionId,10)),$t.lastEventTime&&(Tt._lastEventTime=parseInt($t.lastEventTime,10)),$t.eventId&&(Tt._eventId=parseInt($t.eventId,10)),$t.identifyId&&(Tt._identifyId=parseInt($t.identifyId,10)),$t.sequenceNumber&&(Tt._sequenceNumber=parseInt($t.sequenceNumber,10))},rr=function(Tt){var $t={deviceId:Tt.options.deviceId,userId:Tt.options.userId,optOut:Tt.options.optOut,sessionId:Tt._sessionId,lastEventTime:Tt._lastEventTime,eventId:Tt._eventId,identifyId:Tt._identifyId,sequenceNumber:Tt._sequenceNumber};Tt._useOldCookie?Tt.cookieStorage.set(Tt.options.cookieName+Tt._storageSuffix,$t):Tt._metadataStorage.save($t)};Dn.prototype._initUtmData=function(Tt,$t){Tt=Tt||this._getUrlParams(),$t=$t||this.cookieStorage.get("__utmz");var Gt=Vn($t,Tt);gr(this,Gt)},Dn.prototype._unsetUTMParams=function(){var Tt=new Mt;Tt.unset(nt.REFERRER),Tt.unset(nt.UTM_SOURCE),Tt.unset(nt.UTM_MEDIUM),Tt.unset(nt.UTM_CAMPAIGN),Tt.unset(nt.UTM_TERM),Tt.unset(nt.UTM_CONTENT),this.identify(Tt)};var gr=function(Tt,$t){if(!(ot($t)!=="object"||Object.keys($t).length===0)){var Gt=new Mt;for(var en in $t)$t.hasOwnProperty(en)&&(Gt.setOnce("initial_"+en,$t[en]),Gt.set(en,$t[en]));Tt.identify(Gt)}};Dn.prototype._getReferrer=function(){return document.referrer},Dn.prototype._getUrlParams=function(){return location.search},Dn.prototype._saveGclid=function(Tt){var $t=yt.getQueryParam("gclid",Tt);if(!yt.isEmptyString($t)){var Gt={gclid:$t};gr(this,Gt)}},Dn.prototype._getDeviceIdFromUrlParam=function(Tt){return yt.getQueryParam(nt.AMP_DEVICE_ID_PARAM,Tt)},Dn.prototype._getReferringDomain=function(Tt){if(yt.isEmptyString(Tt))return null;var $t=Tt.split("/");return $t.length>=3?$t[2]:null},Dn.prototype._saveReferrer=function(Tt){if(!yt.isEmptyString(Tt)){var $t={referrer:Tt,referring_domain:this._getReferringDomain(Tt)};gr(this,$t)}},Dn.prototype.saveEvents=function(){try{var Tt=JSON.stringify(this._unsentEvents.map(function(Gt){var en=Gt.event;return en}));Ar||this._setInStorage(Ln,this.options.unsentKey,Tt)}catch{}try{var $t=JSON.stringify(this._unsentIdentifys.map(function(Gt){return Gt.event}));Ar||this._setInStorage(Ln,this.options.unsentIdentifyKey,$t)}catch{}},Dn.prototype.setDomain=function(Tt){if(this._shouldDeferCall())return this._q.push(["setDomain"].concat(Array.prototype.slice.call(arguments,0)));if(yt.validateInput(Tt,"domain","string"))try{this.cookieStorage.options({expirationDays:this.options.cookieExpiration,secure:this.options.secureCookie,domain:Tt,sameSite:this.options.sameSiteCookie}),this.options.domain=this.cookieStorage.options().domain,on(this),rr(this)}catch($t){yt.log.error($t)}},Dn.prototype.setUserId=function(Tt){if(this._shouldDeferCall())return this._q.push(["setUserId"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.userId=Tt!=null&&""+Tt||null,rr(this)}catch($t){yt.log.error($t)}},Dn.prototype.setGroup=function(jt,Tt){if(this._shouldDeferCall())return this._q.push(["setGroup"].concat(Array.prototype.slice.call(arguments,0)));if(!(!this._apiKeySet("setGroup()")||!yt.validateInput(jt,"groupType","string")||yt.isEmptyString(jt))){var $t={};$t[jt]=Tt;var Gt=new Mt().set(jt,Tt);this._logEvent(nt.IDENTIFY_EVENT,null,null,Gt.userPropertiesOperations,$t,null,null,null)}},Dn.prototype.setOptOut=function(Tt){if(this._shouldDeferCall())return this._q.push(["setOptOut"].concat(Array.prototype.slice.call(arguments,0)));if(yt.validateInput(Tt,"enable","boolean"))try{this.options.optOut=Tt,rr(this)}catch($t){yt.log.error($t)}},Dn.prototype.setSessionId=function(Tt){if(yt.validateInput(Tt,"sessionId","number"))try{this._sessionId=Tt,rr(this)}catch($t){yt.log.error($t)}},Dn.prototype.resetSessionId=function(){this.setSessionId(new Date().getTime())},Dn.prototype.regenerateDeviceId=function(){if(this._shouldDeferCall())return this._q.push(["regenerateDeviceId"].concat(Array.prototype.slice.call(arguments,0)));this.setDeviceId(Kr())},Dn.prototype.setDeviceId=function(Tt){if(this._shouldDeferCall())return this._q.push(["setDeviceId"].concat(Array.prototype.slice.call(arguments,0)));if(yt.validateInput(Tt,"deviceId","string"))try{yt.isEmptyString(Tt)||(this.options.deviceId=""+Tt,rr(this))}catch($t){yt.log.error($t)}},Dn.prototype.setUserProperties=function(Tt){if(this._shouldDeferCall())return this._q.push(["setUserProperties"].concat(Array.prototype.slice.call(arguments,0)));if(!(!this._apiKeySet("setUserProperties()")||!yt.validateInput(Tt,"userProperties","object"))){var $t=yt.truncate(yt.validateProperties(Tt));if(Object.keys($t).length!==0){var Gt=new Mt;for(var en in $t)$t.hasOwnProperty(en)&&Gt.set(en,$t[en]);this.identify(Gt)}}},Dn.prototype.clearUserProperties=function(){if(this._shouldDeferCall())return this._q.push(["clearUserProperties"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("clearUserProperties()")){var Tt=new Mt;Tt.clearAll(),this.identify(Tt)}};var Er=function(Tt,$t){for(var Gt=0;Gt<$t._q.length;Gt++){var en=Tt[$t._q[Gt][0]];ot(en)==="function"&&en.apply(Tt,$t._q[Gt].slice(1))}return Tt};Dn.prototype.identify=function(jt,Tt){if(this._shouldDeferCall())return this._q.push(["identify"].concat(Array.prototype.slice.call(arguments,0)));if(!this._apiKeySet("identify()")){ot(Tt)==="function"&&Tt(0,"No request sent",{reason:"API key is not set"});return}if(ot(jt)==="object"&&jt.hasOwnProperty("_q")&&(jt=Er(new Mt,jt)),jt instanceof Mt){if(Object.keys(jt.userPropertiesOperations).length>0)return this._logEvent(nt.IDENTIFY_EVENT,null,null,jt.userPropertiesOperations,null,null,null,Tt);ot(Tt)==="function"&&Tt(0,"No request sent",{reason:"No user property operations"})}else yt.log.error("Invalid identify input type. Expected Identify object but saw "+ot(jt)),ot(Tt)==="function"&&Tt(0,"No request sent",{reason:"Invalid identify input type"})},Dn.prototype.groupIdentify=function(jt,Tt,$t,Gt){if(this._shouldDeferCall())return this._q.push(["groupIdentify"].concat(Array.prototype.slice.call(arguments,0)));if(!this._apiKeySet("groupIdentify()")){ot(Gt)==="function"&&Gt(0,"No request sent",{reason:"API key is not set"});return}if(!yt.validateInput(jt,"group_type","string")||yt.isEmptyString(jt)){ot(Gt)==="function"&&Gt(0,"No request sent",{reason:"Invalid group type"});return}if(Tt==null){ot(Gt)==="function"&&Gt(0,"No request sent",{reason:"Invalid group name"});return}if(ot($t)==="object"&&$t.hasOwnProperty("_q")&&($t=Er(new Mt,$t)),$t instanceof Mt){if(Object.keys($t.userPropertiesOperations).length>0)return this._logEvent(nt.GROUP_IDENTIFY_EVENT,null,null,null,et({},jt,Tt),$t.userPropertiesOperations,null,Gt);ot(Gt)==="function"&&Gt(0,"No request sent",{reason:"No group property operations"})}else yt.log.error("Invalid identify input type. Expected Identify object but saw "+ot($t)),ot(Gt)==="function"&&Gt(0,"No request sent",{reason:"Invalid identify input type"})},Dn.prototype.setVersionName=function(Tt){if(this._shouldDeferCall())return this._q.push(["setVersionName"].concat(Array.prototype.slice.call(arguments,0)));yt.validateInput(Tt,"versionName","string")&&(this.options.versionName=Tt)},Dn.prototype._logEvent=function(Tt,$t,Gt,en,nn,un,pn,In){if(on(this),!Tt){ot(In)==="function"&&In(0,"No request sent",{reason:"Missing eventType"});return}if(this.options.optOut){ot(In)==="function"&&In(0,"No request sent",{reason:"optOut is set to true"});return}try{var Qn;Tt===nt.IDENTIFY_EVENT||Tt===nt.GROUP_IDENTIFY_EVENT?Qn=this.nextIdentifyId():Qn=this.nextEventId();var Jn=this.nextSequenceNumber(),_i=ot(pn)==="number"?pn:new Date().getTime();(!this._sessionId||!this._lastEventTime||_i-this._lastEventTime>this.options.sessionTimeout)&&(this._sessionId=_i),this._lastEventTime=_i,rr(this);var gn=this._ua.browser.name,Sn=this._ua.browser.major,yn=this._ua.device.model,En=this._ua.device.vendor,Tn,Rr;en=en||{};var wr=tt({},this._apiPropertiesTrackingOptions);Gt=tt({},Gt||{},wr),$t=$t||{},nn=nn||{},un=un||{};var er={device_id:this.options.deviceId,user_id:this.options.userId,timestamp:_i,event_id:Qn,session_id:this._sessionId||-1,event_type:Tt,version_name:xr(this,"version_name")&&(this.options.versionName||Tn)||null,platform:xr(this,"platform")?this.options.platform:null,os_name:xr(this,"os_name")&&gn||null,os_version:xr(this,"os_version")&&Sn||null,device_model:xr(this,"device_model")&&yn||null,device_manufacturer:xr(this,"device_manufacturer")&&En||null,language:xr(this,"language")?this.options.language:null,carrier:xr(this,"carrier")&&Rr||null,api_properties:Gt,event_properties:yt.truncate(yt.validateProperties($t)),user_properties:yt.truncate(yt.validateProperties(en)),uuid:Yr(),library:{name:"amplitude-js",version:Fr},sequence_number:Jn,groups:yt.truncate(yt.validateGroups(nn)),group_properties:yt.truncate(yt.validateProperties(un)),user_agent:this._userAgent};return Tt===nt.IDENTIFY_EVENT||Tt===nt.GROUP_IDENTIFY_EVENT?(this._unsentIdentifys.push({event:er,callback:In}),this._limitEventsQueued(this._unsentIdentifys)):(this._unsentEvents.push({event:er,callback:In}),this._limitEventsQueued(this._unsentEvents)),this.options.saveEvents&&this.saveEvents(),this._sendEventsIfReady(In),Qn}catch(Wn){yt.log.error(Wn)}};var xr=function(Tt,$t){return!!Tt.options.trackingOptions[$t]},po=function(Tt){for(var $t=["city","country","dma","ip_address","region"],Gt={},en=0;en<$t.length;en++){var nn=$t[en];xr(Tt,nn)||(Gt[nn]=!1)}return Gt};Dn.prototype._limitEventsQueued=function(Tt){Tt.length>this.options.savedMaxCount&&Tt.splice(0,Tt.length-this.options.savedMaxCount)},Dn.prototype.logEvent=function(Tt,$t,Gt){return this._shouldDeferCall()?this._q.push(["logEvent"].concat(Array.prototype.slice.call(arguments,0))):this.logEventWithTimestamp(Tt,$t,null,Gt)},Dn.prototype.logEventWithTimestamp=function(Tt,$t,Gt,en){return this._shouldDeferCall()?this._q.push(["logEventWithTimestamp"].concat(Array.prototype.slice.call(arguments,0))):this._apiKeySet("logEvent()")?yt.validateInput(Tt,"eventType","string")?yt.isEmptyString(Tt)?(ot(en)==="function"&&en(0,"No request sent",{reason:"Missing eventType"}),-1):this._logEvent(Tt,$t,null,null,null,null,Gt,en):(ot(en)==="function"&&en(0,"No request sent",{reason:"Invalid type for eventType"}),-1):(ot(en)==="function"&&en(0,"No request sent",{reason:"API key not set"}),-1)},Dn.prototype.logEventWithGroups=function(jt,Tt,$t,Gt){return this._shouldDeferCall()?this._q.push(["logEventWithGroups"].concat(Array.prototype.slice.call(arguments,0))):this._apiKeySet("logEventWithGroups()")?yt.validateInput(jt,"eventType","string")?this._logEvent(jt,Tt,null,null,$t,null,null,Gt):(ot(Gt)==="function"&&Gt(0,"No request sent",{reason:"Invalid type for eventType"}),-1):(ot(Gt)==="function"&&Gt(0,"No request sent",{reason:"API key not set"}),-1)};var vo=function(Tt){return!isNaN(parseFloat(Tt))&&isFinite(Tt)};Dn.prototype.logRevenueV2=function(Tt){if(this._shouldDeferCall())return this._q.push(["logRevenueV2"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("logRevenueV2()"))if(ot(Tt)==="object"&&Tt.hasOwnProperty("_q")&&(Tt=Er(new Tr,Tt)),Tt instanceof Tr){if(Tt&&Tt._isValidRevenue())return this.logEvent(nt.REVENUE_EVENT,Tt._toJSONObject())}else yt.log.error("Invalid revenue input type. Expected Revenue object but saw "+ot(Tt))},Dn.prototype.logRevenue=function(Tt,$t,Gt){return this._shouldDeferCall()?this._q.push(["logRevenue"].concat(Array.prototype.slice.call(arguments,0))):!this._apiKeySet("logRevenue()")||!vo(Tt)||$t!==void 0&&!vo($t)?-1:this._logEvent(nt.REVENUE_EVENT,{},{productId:Gt,special:"revenue_amount",quantity:$t||1,price:Tt},null,null,null,null,null)},Dn.prototype.removeEvents=function(Tt,$t,Gt,en){bo(this,"_unsentEvents",Tt,Gt,en),bo(this,"_unsentIdentifys",$t,Gt,en)};var bo=function(Tt,$t,Gt,en,nn){if(!(Gt<0)){for(var un=[],pn=0;pn<Tt[$t].length;pn++){var In=Tt[$t][pn];In.event.event_id>Gt?un.push(In):In.callback&&In.callback(en,nn)}Tt[$t]=un}};Dn.prototype.sendEvents=function(){if(!this._apiKeySet("sendEvents()")){this.removeEvents(1/0,1/0,0,"No request sent",{reason:"API key not set"});return}if(this.options.optOut){this.removeEvents(1/0,1/0,0,"No request sent",{reason:"Opt out is set to true"});return}if(this._unsentCount()!==0&&!this._sending){this._sending=!0;var Tt=this.options.forceHttps||window.location.protocol==="https:"?"https":"http",$t=Tt+"://"+this.options.apiEndpoint,Gt=Math.min(this._unsentCount(),this.options.uploadBatchSize),en=this._mergeEventsAndIdentifys(Gt),nn=en.maxEventId,un=en.maxIdentifyId,pn=JSON.stringify(en.eventsToSend.map(function(_i){var gn=_i.event;return gn})),In=new Date().getTime(),Qn={client:this.options.apiKey,e:pn,v:nt.API_VERSION,upload_time:In,checksum:Vt(nt.API_VERSION+this.options.apiKey+pn+In)},Jn=this;new Wr($t,Qn).send(function(_i,gn){Jn._sending=!1;try{_i===200&&gn==="success"?(Jn.removeEvents(nn,un,_i,gn),Jn.options.saveEvents&&Jn.saveEvents(),Jn._sendEventsIfReady()):_i===413&&(Jn.options.uploadBatchSize===1&&Jn.removeEvents(nn,un,_i,gn),Jn.options.uploadBatchSize=Math.ceil(Gt/2),Jn.sendEvents())}catch{}})}},Dn.prototype._mergeEventsAndIdentifys=function(Tt){for(var $t=[],Gt=0,en=-1,nn=0,un=-1;$t.length<Tt;){var pn=void 0,In=nn>=this._unsentIdentifys.length,Qn=Gt>=this._unsentEvents.length;if(Qn&&In){yt.log.error("Merging Events and Identifys, less events and identifys than expected");break}else In?(pn=this._unsentEvents[Gt++],en=pn.event.event_id):Qn?(pn=this._unsentIdentifys[nn++],un=pn.event.event_id):!("sequence_number"in this._unsentEvents[Gt].event)||this._unsentEvents[Gt].event.sequence_number<this._unsentIdentifys[nn].event.sequence_number?(pn=this._unsentEvents[Gt++],en=pn.event.event_id):(pn=this._unsentIdentifys[nn++],un=pn.event.event_id);$t.push(pn)}return{eventsToSend:$t,maxEventId:en,maxIdentifyId:un}},Dn.prototype.setGlobalUserProperties=function(Tt){this.setUserProperties(Tt)},Dn.prototype.__VERSION__=Fr,Dn.prototype._shouldDeferCall=function(){return this._pendingReadStorage||this._initializationDeferred},Dn.prototype._deferInitialization=function(){this._initializationDeferred=!0,this._q.push(["init"].concat(Array.prototype.slice.call(arguments,0)))},Dn.prototype.enableTracking=function(){this._initializationDeferred=!1,rr(this),this.runQueuedFunctions()};var sr=function(){this.options=tt({},Qr),this._q=[],this._instances={}};sr.prototype.Identify=Mt,sr.prototype.Revenue=Tr,sr.prototype.getInstance=function(Tt){Tt=yt.isEmptyString(Tt)?nt.DEFAULT_INSTANCE:Tt.toLowerCase();var $t=this._instances[Tt];return $t===void 0&&($t=new Dn(Tt),this._instances[Tt]=$t),$t},sr.prototype.runQueuedFunctions=function(){for(var jt=0;jt<this._q.length;jt++){var Tt=this[this._q[jt][0]];ot(Tt)==="function"&&Tt.apply(this,this._q[jt].slice(1))}this._q=[];for(var $t in this._instances)this._instances.hasOwnProperty($t)&&this._instances[$t].runQueuedFunctions()},sr.prototype.init=function(Tt,$t,Gt,en){this.getInstance().init(Tt,$t,Gt,(function(nn){this.options=nn.options,ot(en)==="function"&&en(nn)}).bind(this))},sr.prototype.isNewSession=function(){return this.getInstance().isNewSession()},sr.prototype.getSessionId=function(){return this.getInstance().getSessionId()},sr.prototype.nextEventId=function(){return this.getInstance().nextEventId()},sr.prototype.nextIdentifyId=function(){return this.getInstance().nextIdentifyId()},sr.prototype.nextSequenceNumber=function(){return this.getInstance().nextSequenceNumber()},sr.prototype.saveEvents=function(){this.getInstance().saveEvents()},sr.prototype.setDomain=function(Tt){this.getInstance().setDomain(Tt)},sr.prototype.setUserId=function(Tt){this.getInstance().setUserId(Tt)},sr.prototype.setGroup=function(jt,Tt){this.getInstance().setGroup(jt,Tt)},sr.prototype.setOptOut=function(Tt){this.getInstance().setOptOut(Tt)},sr.prototype.regenerateDeviceId=function(){this.getInstance().regenerateDeviceId()},sr.prototype.setDeviceId=function(Tt){this.getInstance().setDeviceId(Tt)},sr.prototype.setUserProperties=function(Tt){this.getInstance().setUserProperties(Tt)},sr.prototype.clearUserProperties=function(){this.getInstance().clearUserProperties()},sr.prototype.identify=function(jt,Tt){this.getInstance().identify(jt,Tt)},sr.prototype.setVersionName=function(Tt){this.getInstance().setVersionName(Tt)},sr.prototype.logEvent=function(Tt,$t,Gt){return this.getInstance().logEvent(Tt,$t,Gt)},sr.prototype.logEventWithGroups=function(jt,Tt,$t,Gt){return this.getInstance().logEventWithGroups(jt,Tt,$t,Gt)},sr.prototype.logRevenueV2=function(Tt){return this.getInstance().logRevenueV2(Tt)},sr.prototype.logRevenue=function(Tt,$t,Gt){return this.getInstance().logRevenue(Tt,$t,Gt)},sr.prototype.removeEvents=function(Tt,$t){this.getInstance().removeEvents(Tt,$t)},sr.prototype.sendEvents=function(Tt){this.getInstance().sendEvents(Tt)},sr.prototype.setGlobalUserProperties=function(Tt){this.getInstance().setUserProperties(Tt)},sr.prototype.__VERSION__=Fr;var eo=window.amplitude||{},to=new sr;to._q=eo._q||[];for(var fo in eo._iq)eo._iq.hasOwnProperty(fo)&&(to.getInstance(fo)._q=eo._iq[fo]._q||[]);return to.runQueuedFunctions(),to})})(amplitude_umd);var amplitude_umdExports=amplitude_umd.exports;const amplitude=getDefaultExportFromCjs(amplitude_umdExports);function r(o){var s,a,$="";if(typeof o=="string"||typeof o=="number")$+=o;else if(typeof o=="object")if(Array.isArray(o))for(s=0;s<o.length;s++)o[s]&&(a=r(o[s]))&&($&&($+=" "),$+=a);else for(s in o)o[s]&&($&&($+=" "),$+=s);return $}function clsx(){for(var o,s,a=0,$="";a<arguments.length;)(o=arguments[a++])&&(s=r(o))&&($&&($+=" "),$+=s);return $}var define_import_meta_env_default$1={VITE_STRIPE_PRO_PLUS_YEARLY_PRICE_KEY:"price_1OrndtH5ocKrGenqidoGHkTb",VITE_STRIPE_TEAMS_YEARLY_49_PRICE_KEY:"price_1IPD9WH5ocKrGenqFHK2Tu30",VITE_STRIPE_TEAMS_YEARLY_59_PRICE_KEY:"price_1IYEwGH5ocKrGenqf9KpOQSj",VITE_ROLLBAR_SERVER_TOKEN:"eb3b85b1465646edab365585c9ae6e87",VITE_SIMON_ENVIRONMENT:"prod",VITE_STRIPE_PRO_25_PERCENT_OFF_COUPON_ID:"hMfb04UP",VITE_MARKETING_SITE_URL:"https://buy.linqapp.com",VITE_STRIPE_TEAMS_YEARLY_69_PRICE_KEY:"price_1IYeQ3H5ocKrGenqQWbvC93s",VITE_SIMON_PARTNER_ID:"f38ed12a4f47d0cf02e3f90037eb1f0cd97a9f66",VITE_GOOGLE_ANALYTICS_ID:"G-GEK3VL33YR",VITE_X_API_SECRET:"omGfxn7BTdxEoCS9",VITE_STRIPE_TEAMS_YEARLY_79_PRICE_KEY:"price_1IJlN9H5ocKrGenqOkI1WrTF",VITE_STRIPE_NEW_YEARLY_PRICE_KEY:"price_1MnoBiH5ocKrGenqJs6O45HW",VITE_COUPON_FREE_1_SEAT_MONTHLY:"qEqUqhGR",VITE_JOIN_THE_PRO_HOME_PAGE_BACKGROUND_URL:"https://res.cloudinary.com/linq/image/upload/v1689951972/home_screen_images/Join_the_Pros_zecsvc.png",VITE_STRIPE_COUPON_19_OFF_MONTHLY:"25XSNZvn",VITE_SHOPIFY_API_KEY:"ca81b1e8ef4c91b2ffc4ed8f0e7df960",VITE_STRIPE_TEAMS_YEARLY_109_PRICE_KEY:"price_1LKPozH5ocKrGenqG1ewoxKE",VITE_CLOUDINARY_CLOUD_NAME:"linq",VITE_STRIPE_LINQ_ONE_MONTHLY_5_PRICE_KEY:"price_1QCkTiH5ocKrGenqKmlrFg7f",VITE_STRIPE_PRO_PLUS_MONTHLY_PRICE_KEY:"price_1OrneAH5ocKrGenqFVTTIy6z",VITE_STRIPE_LINQ_ONE_YEARLY_PRICE_KEY:"price_1PvMMRH5ocKrGenqh3YFGPLH",VITE_STRIPE_KEY:"pk_live_sUBTFEqEgAvDrfUNFq4X12Q900NMWEtpTa",VITE_STRIPE_COUPON_50_OFF_ANNUAL:"9MuGsBQe",VITE_HUBSPOT_API_KEY:"90f4dd30-8d33-4a7c-a66d-825515ffc273",VITE_STRIPE_LINQ_ONE_YEARLY_50_PRICE_KEY:"price_1QCkaYH5ocKrGenqKAcJ0X91",VITE_STRIPE_NEW_MONTHLY_PRICE_KEY:"price_1MnoC8H5ocKrGenqRnTJcwEr",VITE_SHOPIFY_API_PASSWORD:"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",VITE_WEB_APP_URL:"https://linqapp.com",VITE_AR_APP_URL:"https://ar.linqapp.com",VITE_STRIPE_CUSTOM_CARD_DISCOUNT_ID:"j86usfxk",VITE_STRIPE_LINQ_ONE_MONTHLY_PRICE_KEY:"price_1PvMMRH5ocKrGenqLAFZeLRf",VITE_STREAM_CHAT_SECRET:"hxpm2nze4y3pfdbvuv7jqgubnc7gjkmfs45gysgwptdm85zzcv3kusgca93jdb47",VITE_ROLLBAR_CLIENT_TOKEN:"999fc2a6695f4155bd81d8eca3617147",VITE_SIMON_DOMAIN:".linqapp.com",VITE_STRIPE_CUSTOM_CARD_PRICE_KEY:"price_1JLU9tH5ocKrGenqNiR91NLT",VITE_STRIPE_50_OFF_CUSTOM_CARD_DISCOUNT_ID:"pffSALqt",VITE_AMPLITUDE_KEY:"a4481065c6c11431c88a4ede5ff1d337",VITE_STRIPE_LINQ_ONE_MONTHLY_19_PRICE_KEY:"price_1QCkc1H5ocKrGenqjFSvGXAM",VITE_IAPTIC_SECRET_KEY:"bdeded86-75ea-4496-92f5-3013bdf2803e",VITE_INTERCOM_APP_ID:"rycjiir6",VITE_ENVIRONMENT:"production",VITE_USE_AMPLITUDE:"true",VITE_STRIPE_YEARLY_PRICE_KEY:"price_1H7S9pH5ocKrGenqtOELyqov",VITE_GIT_SHA:"768e122882f9a9d48aaa8b453b4729eb5ee257ac",VITE_USE_ANALYTICS:"true",VITE_STRIPE_COUPON_149_OFF_ANNUAL:"5oSJvC8x",VITE_META_PIXEL_ID:"3001627433285534",VITE_PRO_PLUS_ENABLED:"true",VITE_STRIPE_LINQ_PHONE_YEARLY_PRICE:"price_1OWmlcH5ocKrGenqQuA7EwHK",VITE_HUBSPOT_LFT_TRIAL_FORM_GUID:"67d9ef16-a180-4ce9-9fc0-1364d2742683",VITE_CLOUDINARY_API_KEY:"966587883827855",VITE_STRIPE_LINQ_ONE_YEARLY_149_PRICE_KEY:"price_1QCkcLH5ocKrGenqw0XgcIjh",VITE_ALLOW_VOIP_ON_WEB:"true",VITE_STRIPE_COUPON_5_OFF_MONTHLY:"iuKyYcPt",VITE_STREAM_CHAT_KEY:"b7wkdughndvm",VITE_FEATURE_IMMELMANN:"true",VITE_STRIPE_25_PERCENT_OFF_FOR_ALL_COUPON_ID:"kpa3smjk",VITE_STRIPE_TEAMS_YEARLY_PRICE_KEY:"price_1IGACBH5ocKrGenqDeLj6EIe",VITE_COUPON_249_OFF_YEARLY:"EtvQ0kb2",VITE_STRIPE_PRO_PLUS_25_PERCENT_OFF_COUPON_ID:"3Crvl7DY",VITE_STRIPE_MONTHLY_PRICE_KEY:"price_1H7S9bH5ocKrGenqOdMClc0y",VITE_SAASQUATCH_TENANT_ALIAS:"aurgy5hawgoad",VITE_STRIPE_TEAMS_MONTHLY_9_PRICE_KEY:"price_1LmNQ5H5ocKrGenqWEv6HnGK",VITE_STRIPE_LINQ_PHONE_MONTHLY_PRICE:"price_1OUwYKH5ocKrGenqEntR4Imb",VITE_DEEP_LINK_URL:"https://web.linqapp.com",VITE_HUBSPOT_LFT_REFER_A_BUSINESS_FORM_GUID:"51ba0102-3e8d-4aa4-863a-51b6ba3223f2",VITE_STRIPE_TEAMS_MONTHLY_PRICE_KEY:"price_1IBr1hH5ocKrGenqyyu88Sb6",VITE_API_URL:"https://api.linqapp.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const ENVIRONMENT="production",BASE_API_URL="https://api.linqapp.com",WEB_APP_URL="https://linqapp.com",DEEP_LINK_URL="https://web.linqapp.com",MARKETING_SITE_URL="https://buy.linqapp.com",GOOGLE_ANALYTICS_ID="G-GEK3VL33YR",LINQ_ONE_MARKETING_SITE_URL="https://linqapp.com/linq-one",LINQ_SHOP_URL="https://buy.linqapp.com/collections/all-1",LINQ_SHOP_CUSTOM_PRODUCTS_URL="https://buy.linqapp.com/collections/custom-products",LINQ_FOR_TEAM_PAGE_URL="https://buy.linqapp.com/pages/teams#page-top",LINQ_HYPER_LINQ_BLOG_URL="https://buy.linqapp.com/blogs/news/best-digital-business-card-experience-yet-introducing-hyper-linq",LINQ_SHOPIFY_PAGE="https://buy.linqapp.com",LINQ_MOBILE_APP_DOWNLOAD_URL="https://linqapp.app.link/I1XMJFCd9ab",TABLET_LAYOUT_WIDTH=768,DESKTOP_LAYOUT_WIDTH=1280,PRODUCT_ACTIVATION_VIDEO_URL="https://player.vimeo.com/video/729613696?h=b23ffd9baa&app_id=58479",CREATE_A_TASK_VIDEO_URL="https://player.vimeo.com/video/854762681?h=b23ffd9baa&app_id=58479",LFT_VIDEO_URL="https://player.vimeo.com/video/893796513?badge=0&amp;autopause=0&amp;player_id=0&amp;app_id=58479",LINQ_FEEDBACK_SURVEY_URL="https://delighted.com/t/VZaKhLvl",LINQ_WIDGET_BLOG_URL="https://buy.linqapp.com/blogs/news/new-ios-linq-widgets-connect-instantly",AMPLITUDE_KEY="a4481065c6c11431c88a4ede5ff1d337",LINQ_PRIVACY_POLICY_URL="https://buy.linqapp.com/policies/privacy-policy",LINQ_TERM_OF_USE_URL="https://buy.linqapp.com/policies/terms-of-service",CLOUDINARY_CLOUD_NAME="linq",CLOUDINARY_UPLOAD_PROFILE_PHOTOS_PRESET="cloudinary_upload_profile_photos",CLOUDINARY_UPLOAD_SECONDARY_PHOTOS_PRESET="cloudinary_upload_secondary_photos",CLOUDINARY_UPLOAD_COVER_PHOTOS_PRESET="cloudinary_upload_cover_photos",CLOUDINARY_UPLOAD_VIRTUAL_BACKGROUNDS_PRESET="cloudinary_upload_virtual_backgrounds",CLOUDINARY_UPLOAD_APP_CLIP_IMAGES_PRESET="app_clip_images",CLOUDINARY_UPLOAD_EMAIL_CUSTOM_BANNER_IMAGES_PRESET="email_custom_banner_images",CLOUDINARY_UPLOAD_PHOTO_TILE_PRESET="photo_tile_preset",CLOUDINARY_UPLOAD_FILE_TILE_PRESET="user_document_uploads",JOIN_THE_PRO_HOME_PAGE_BACKGROUND_URL="https://res.cloudinary.com/linq/image/upload/v1689951972/home_screen_images/Join_the_Pros_zecsvc.png",STRIPE_KEY="pk_live_sUBTFEqEgAvDrfUNFq4X12Q900NMWEtpTa",STRIPE_YEARLY_PRICE_KEY="price_1PvMMRH5ocKrGenqh3YFGPLH",STRIPE_COUPON_29_OFF_MONTHLY=define_import_meta_env_default$1.VITE_STRIPE_COUPON_29_OFF_MONTHLY,STRIPE_COUPON_249_OFF_YEARLY=define_import_meta_env_default$1.VITE_STRIPE_COUPON_249_OFF_ANNUAL,STRIPE_COUPON_5_OFF_MONTHLY="iuKyYcPt",STRIPE_COUPON_50_OFF_YEARLY="9MuGsBQe",STRIPE_COUPON_19_OFF_MONTHLY="25XSNZvn",STRIPE_COUPON_149_OFF_YEARLY="5oSJvC8x",STRIPE_TEAMS_YEARLY_PRICE_KEY="price_1IGACBH5ocKrGenqDeLj6EIe",STRIPE_TEAMS_MONTHLY_PRICE_KEY="price_1IBr1hH5ocKrGenqyyu88Sb6",STRIPE_CUSTOM_CARD_PRICE_KEY="price_1JLU9tH5ocKrGenqNiR91NLT",STRIPE_CUSTOM_CARD_DISCOUNT_ID="j86usfxk",STRIPE_50_OFF_CUSTOM_CARD_DISCOUNT_ID="pffSALqt",STRIPE_TEAMS_YEARLY_79_PRICE_KEY="price_1IJlN9H5ocKrGenqOkI1WrTF",STRIPE_TEAMS_YEARLY_69_PRICE_KEY="price_1IYeQ3H5ocKrGenqQWbvC93s",STRIPE_TEAMS_YEARLY_59_PRICE_KEY="price_1IYEwGH5ocKrGenqf9KpOQSj",STRIPE_TEAMS_YEARLY_49_PRICE_KEY="price_1IPD9WH5ocKrGenqFHK2Tu30",ANNUAL_LFT_PLANS=[STRIPE_TEAMS_YEARLY_PRICE_KEY,STRIPE_TEAMS_YEARLY_79_PRICE_KEY,STRIPE_TEAMS_YEARLY_69_PRICE_KEY,STRIPE_TEAMS_YEARLY_59_PRICE_KEY,STRIPE_TEAMS_YEARLY_49_PRICE_KEY],STRIPE_LFT_ANNUAL_PRICE_KEY="price_1LKPozH5ocKrGenqG1ewoxKE",STRIPE_LFT_MONTHLY_PRICE_KEY="price_1LmNQ5H5ocKrGenqWEv6HnGK",STRIPE_25_PERCENT_OFF_FOR_ALL_COUPON_ID="kpa3smjk",IAPTIC_SECRET_KEY="bdeded86-75ea-4496-92f5-3013bdf2803e",IAP_MONTHLY_NO_TRIAL_PRODUCT_NAME="linq_pro_monthly_no_trial",IAP_ANNUAL_NO_TRIAL_PRODUCT_NAME="linq_pro_annual_no_trial",IAP_MONTHLY_WITH_TRIAL_PRODUCT_NAME="linq_pro_monthly",IAP_ANNUAL_WITH_TRIAL_PRODUCT_NAME="linq_pro_annual",IAP_PRO_PLUS_MONTHLY_WITH_TRIAL_PRODUCT_NAME="linq_pro_plus_monthly",IAP_PRO_PLUS_ANNUAL_WITH_TRIAL_PRODUCT_NAME="linq_pro_plus_annual_14_day_trial",STRIPE_LINQ_ONE_MONTHLY_PRICE_KEY="price_1PvMMRH5ocKrGenqLAFZeLRf",STRIPE_LINQ_ONE_YEARLY_PRICE_KEY="price_1PvMMRH5ocKrGenqh3YFGPLH",STRIPE_LINQ_ONE_MONTHLY_5_PRICE_KEY="price_1QCkTiH5ocKrGenqKmlrFg7f",STRIPE_LINQ_ONE_YEARLY_50_PRICE_KEY="price_1QCkaYH5ocKrGenqKAcJ0X91",STRIPE_LINQ_ONE_MONTHLY_19_PRICE_KEY="price_1QCkc1H5ocKrGenqjFSvGXAM",STRIPE_LINQ_ONE_YEARLY_149_PRICE_KEY="price_1QCkcLH5ocKrGenqw0XgcIjh",IAP_LINQ_ONE_MONTHLY="linq_one_monthly_29",IAP_LINQ_ONE_ANNUAL="linq_one_annual_249",IAP_LINQ_ONE_MONTHLY_WITH_TRIAL="linq_one_monthly_with_trial_29",IAP_LINQ_ONE_ANNUAL_WITH_TRIAL="linq_one_annual_with_trial_249",HUBSPOT_LFT_TRIAL_FORM_GUID="67d9ef16-a180-4ce9-9fc0-1364d2742683",HUBSPOT_LFT_REFER_A_BUSINESS_FORM_GUID="51ba0102-3e8d-4aa4-863a-51b6ba3223f2",QR_CODE_STYLE="dots",OFFLINE_QR_CODE_STYLE="squares",ROLLBAR_IGNORE_MESSAGES=["undefined is not an object (evaluating 'i.isProxied')","Unexpected token '<'","Network request failed","Cannot read property 'progressEnd' of undefined","Cannot read property 'progressStep' of undefined","undefined is not an object (evaluating 'o.isProxied')","Network Error","Network request failed","undefined is not an object (evaluating 'e.data.animation.progressEnd')"],LFT_PRICE_TIER_79=STRIPE_TEAMS_YEARLY_79_PRICE_KEY,LFT_PRICE_TIER_69=STRIPE_TEAMS_YEARLY_69_PRICE_KEY,LFT_PRICE_TIER_59=STRIPE_TEAMS_YEARLY_59_PRICE_KEY,LFT_PRICE_TIER_49=STRIPE_TEAMS_YEARLY_49_PRICE_KEY,ALLOW_ADMIN_ON_MOBILE=!!define_import_meta_env_default$1.VITE_ALLOW_ADMIN_ON_MOBILE,API_SECRET="omGfxn7BTdxEoCS9",TEAM_SUCCESS_EMAIL="teams@linqapp.com",LINQ_ONE_MONTHLY_PRICE_PAID_ANNUALLY="$20.75",Browser=registerPlugin("Browser",{web:()=>__vitePreload(()=>import("./web-KGnzcQ76.js"),[]).then(o=>new o.BrowserWeb)}),Device=registerPlugin("Device",{web:()=>__vitePreload(()=>import("./web-CSvTrxDz.js"),[]).then(o=>new o.DeviceWeb)});var browserPonyfill={exports:{}};(function(o,s){var a=typeof self<"u"?self:commonjsGlobal$1,$=function(){function _e(){this.fetch=!1,this.DOMException=a.DOMException}return _e.prototype=a,new _e}();(function(_e){(function(et){var tt={searchParams:"URLSearchParams"in _e,iterable:"Symbol"in _e&&"iterator"in Symbol,blob:"FileReader"in _e&&"Blob"in _e&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in _e,arrayBuffer:"ArrayBuffer"in _e};function nt(yt){return yt&&DataView.prototype.isPrototypeOf(yt)}if(tt.arrayBuffer)var it=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],rt=ArrayBuffer.isView||function(yt){return yt&&it.indexOf(Object.prototype.toString.call(yt))>-1};function st(yt){if(typeof yt!="string"&&(yt=String(yt)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(yt))throw new TypeError("Invalid character in header field name");return yt.toLowerCase()}function ot(yt){return typeof yt!="string"&&(yt=String(yt)),yt}function at(yt){var Pt={next:function(){var wt=yt.shift();return{done:wt===void 0,value:wt}}};return tt.iterable&&(Pt[Symbol.iterator]=function(){return Pt}),Pt}function lt(yt){this.map={},yt instanceof lt?yt.forEach(function(Pt,wt){this.append(wt,Pt)},this):Array.isArray(yt)?yt.forEach(function(Pt){this.append(Pt[0],Pt[1])},this):yt&&Object.getOwnPropertyNames(yt).forEach(function(Pt){this.append(Pt,yt[Pt])},this)}lt.prototype.append=function(yt,Pt){yt=st(yt),Pt=ot(Pt);var wt=this.map[yt];this.map[yt]=wt?wt+", "+Pt:Pt},lt.prototype.delete=function(yt){delete this.map[st(yt)]},lt.prototype.get=function(yt){return yt=st(yt),this.has(yt)?this.map[yt]:null},lt.prototype.has=function(yt){return this.map.hasOwnProperty(st(yt))},lt.prototype.set=function(yt,Pt){this.map[st(yt)]=ot(Pt)},lt.prototype.forEach=function(yt,Pt){for(var wt in this.map)this.map.hasOwnProperty(wt)&&yt.call(Pt,this.map[wt],wt,this)},lt.prototype.keys=function(){var yt=[];return this.forEach(function(Pt,wt){yt.push(wt)}),at(yt)},lt.prototype.values=function(){var yt=[];return this.forEach(function(Pt){yt.push(Pt)}),at(yt)},lt.prototype.entries=function(){var yt=[];return this.forEach(function(Pt,wt){yt.push([wt,Pt])}),at(yt)},tt.iterable&&(lt.prototype[Symbol.iterator]=lt.prototype.entries);function ct(yt){if(yt.bodyUsed)return Promise.reject(new TypeError("Already read"));yt.bodyUsed=!0}function ht(yt){return new Promise(function(Pt,wt){yt.onload=function(){Pt(yt.result)},yt.onerror=function(){wt(yt.error)}})}function dt(yt){var Pt=new FileReader,wt=ht(Pt);return Pt.readAsArrayBuffer(yt),wt}function ut(yt){var Pt=new FileReader,wt=ht(Pt);return Pt.readAsText(yt),wt}function pt(yt){for(var Pt=new Uint8Array(yt),wt=new Array(Pt.length),Lt=0;Lt<Pt.length;Lt++)wt[Lt]=String.fromCharCode(Pt[Lt]);return wt.join("")}function ft(yt){if(yt.slice)return yt.slice(0);var Pt=new Uint8Array(yt.byteLength);return Pt.set(new Uint8Array(yt)),Pt.buffer}function mt(){return this.bodyUsed=!1,this._initBody=function(yt){this._bodyInit=yt,yt?typeof yt=="string"?this._bodyText=yt:tt.blob&&Blob.prototype.isPrototypeOf(yt)?this._bodyBlob=yt:tt.formData&&FormData.prototype.isPrototypeOf(yt)?this._bodyFormData=yt:tt.searchParams&&URLSearchParams.prototype.isPrototypeOf(yt)?this._bodyText=yt.toString():tt.arrayBuffer&&tt.blob&&nt(yt)?(this._bodyArrayBuffer=ft(yt.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):tt.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(yt)||rt(yt))?this._bodyArrayBuffer=ft(yt):this._bodyText=yt=Object.prototype.toString.call(yt):this._bodyText="",this.headers.get("content-type")||(typeof yt=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):tt.searchParams&&URLSearchParams.prototype.isPrototypeOf(yt)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},tt.blob&&(this.blob=function(){var yt=ct(this);if(yt)return yt;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?ct(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(dt)}),this.text=function(){var yt=ct(this);if(yt)return yt;if(this._bodyBlob)return ut(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(pt(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},tt.formData&&(this.formData=function(){return this.text().then(Nt)}),this.json=function(){return this.text().then(JSON.parse)},this}var gt=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function bt(yt){var Pt=yt.toUpperCase();return gt.indexOf(Pt)>-1?Pt:yt}function St(yt,Pt){Pt=Pt||{};var wt=Pt.body;if(yt instanceof St){if(yt.bodyUsed)throw new TypeError("Already read");this.url=yt.url,this.credentials=yt.credentials,Pt.headers||(this.headers=new lt(yt.headers)),this.method=yt.method,this.mode=yt.mode,this.signal=yt.signal,!wt&&yt._bodyInit!=null&&(wt=yt._bodyInit,yt.bodyUsed=!0)}else this.url=String(yt);if(this.credentials=Pt.credentials||this.credentials||"same-origin",(Pt.headers||!this.headers)&&(this.headers=new lt(Pt.headers)),this.method=bt(Pt.method||this.method||"GET"),this.mode=Pt.mode||this.mode||null,this.signal=Pt.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&wt)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(wt)}St.prototype.clone=function(){return new St(this,{body:this._bodyInit})};function Nt(yt){var Pt=new FormData;return yt.trim().split("&").forEach(function(wt){if(wt){var Lt=wt.split("="),vt=Lt.shift().replace(/\+/g," "),xt=Lt.join("=").replace(/\+/g," ");Pt.append(decodeURIComponent(vt),decodeURIComponent(xt))}}),Pt}function Rt(yt){var Pt=new lt,wt=yt.replace(/\r?\n[\t ]+/g," ");return wt.split(/\r?\n/).forEach(function(Lt){var vt=Lt.split(":"),xt=vt.shift().trim();if(xt){var Ut=vt.join(":").trim();Pt.append(xt,Ut)}}),Pt}mt.call(St.prototype);function Ft(yt,Pt){Pt||(Pt={}),this.type="default",this.status=Pt.status===void 0?200:Pt.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in Pt?Pt.statusText:"OK",this.headers=new lt(Pt.headers),this.url=Pt.url||"",this._initBody(yt)}mt.call(Ft.prototype),Ft.prototype.clone=function(){return new Ft(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new lt(this.headers),url:this.url})},Ft.error=function(){var yt=new Ft(null,{status:0,statusText:""});return yt.type="error",yt};var Ot=[301,302,303,307,308];Ft.redirect=function(yt,Pt){if(Ot.indexOf(Pt)===-1)throw new RangeError("Invalid status code");return new Ft(null,{status:Pt,headers:{location:yt}})},et.DOMException=_e.DOMException;try{new et.DOMException}catch{et.DOMException=function(Pt,wt){this.message=Pt,this.name=wt;var Lt=Error(Pt);this.stack=Lt.stack},et.DOMException.prototype=Object.create(Error.prototype),et.DOMException.prototype.constructor=et.DOMException}function Ct(yt,Pt){return new Promise(function(wt,Lt){var vt=new St(yt,Pt);if(vt.signal&&vt.signal.aborted)return Lt(new et.DOMException("Aborted","AbortError"));var xt=new XMLHttpRequest;function Ut(){xt.abort()}xt.onload=function(){var Et={status:xt.status,statusText:xt.statusText,headers:Rt(xt.getAllResponseHeaders()||"")};Et.url="responseURL"in xt?xt.responseURL:Et.headers.get("X-Request-URL");var Dt="response"in xt?xt.response:xt.responseText;wt(new Ft(Dt,Et))},xt.onerror=function(){Lt(new TypeError("Network request failed"))},xt.ontimeout=function(){Lt(new TypeError("Network request failed"))},xt.onabort=function(){Lt(new et.DOMException("Aborted","AbortError"))},xt.open(vt.method,vt.url,!0),vt.credentials==="include"?xt.withCredentials=!0:vt.credentials==="omit"&&(xt.withCredentials=!1),"responseType"in xt&&tt.blob&&(xt.responseType="blob"),vt.headers.forEach(function(Et,Dt){xt.setRequestHeader(Dt,Et)}),vt.signal&&(vt.signal.addEventListener("abort",Ut),xt.onreadystatechange=function(){xt.readyState===4&&vt.signal.removeEventListener("abort",Ut)}),xt.send(typeof vt._bodyInit>"u"?null:vt._bodyInit)})}return Ct.polyfill=!0,_e.fetch||(_e.fetch=Ct,_e.Headers=lt,_e.Request=St,_e.Response=Ft),et.Headers=lt,et.Request=St,et.Response=Ft,et.fetch=Ct,Object.defineProperty(et,"__esModule",{value:!0}),et})({})})($),$.fetch.ponyfill=!0,delete $.fetch.polyfill;var j=$;s=j.fetch,s.default=j.fetch,s.fetch=j.fetch,s.Headers=j.Headers,s.Request=j.Request,s.Response=j.Response,o.exports=s})(browserPonyfill,browserPonyfill.exports);var browserPonyfillExports=browserPonyfill.exports;const fetch$1=getDefaultExportFromCjs(browserPonyfillExports),FETCHING=o=>o+"_FETCHING",SUCCESS=o=>o+"_SUCCESS",FAILURE=o=>o+"_FAILURE",SET_ALERT="SET_ALERT",RESET_ALERT="RESET_ALERT",ACTIVATE_CARD_ALIAS="ACTIVATE_CARD_ALIAS",GET_ANALYTICS_FETCHING="GET_ANALYTICS_FETCHING",GET_ANALYTICS_SUCCESS="GET_ANALYTICS_SUCCESS",GET_ANALYTICS_FAILURE="GET_ANALYTICS_FAILURE",GET_ANALYTICS_FOR_ORGANIZATION_FETCHING="GET_ANALYTICS_FOR_ORGANIZATION_FETCHING",GET_ANALYTICS_FOR_ORGANIZATION_SUCCESS="GET_ANALYTICS_FOR_ORGANIZATION_SUCCESS",GET_ANALYTICS_FOR_ORGANIZATION_FAILURE="GET_ANALYTICS_FOR_ORGANIZATION_FAILURE",GET_RECENT_ACTIVITY_FETCHING="GET_RECENT_ACTIVITY_FETCHING",GET_RECENT_ACTIVITY_SUCCESS="GET_RECENT_ACTIVITY_SUCCESS",GET_RECENT_ACTIVITY_FAILURE="GET_RECENT_ACTIVITY_FAILURE",GET_RECENT_ACTIVITY_FOR_ORGANIZATION_FETCHING="GET_RECENT_ACTIVITY_FOR_ORGANIZATION_FETCHING",GET_RECENT_ACTIVITY_FOR_ORGANIZATION_SUCCESS="GET_RECENT_ACTIVITY_FOR_ORGANIZATION_SUCCESS",GET_RECENT_ACTIVITY_FOR_ORGANIZATION_FAILURE="GET_RECENT_ACTIVITY_FOR_ORGANIZATION_FAILURE",CREATE_STRIPE_CHECKOUT_SESSION_FINISHED="CREATE_STRIPE_CHECKOUT_SESSION_FINISHED",CREATE_STRIPE_CHECKOUT_SESSION_STARTED="CREATE_STRIPE_CHECKOUT_SESSION_STARTED",GET_TILE_ANALYTICS_FETCHING="GET_TILE_ANALYTICS_FETCHING",GET_TILE_ANALYTICS_SUCCESS="GET_TILE_ANALYTICS_SUCCESS",GET_TILE_ANALYTICS_FAILURE="GET_TILE_ANALYTICS_FAILURE",CREATE_CONNECTION="CREATE_CONNECTION",DELETE_CONNECTION_WITH_CARD="DELETE_CONNECTION_WITH_CARD",ACCEPT_CONNECTION_REQUEST_FETCHING="ACCEPT_CONNECTION_REQUEST_FETCHING",ACCEPT_CONNECTION_REQUEST_SUCCESS="ACCEPT_CONNECTION_REQUEST_SUCCESS",CREATE_CONNECTION_REQUEST="CREATE_CONNECTION_REQUEST",CREATE_CONNECTION_REQUEST_FETCHING="CREATE_CONNECTION_REQUEST_FETCHING",CREATE_CONNECTION_REQUEST_SUCCESS="CREATE_CONNECTION_REQUEST_SUCCESS",CONNECTION_REQUEST_NOTE_SUBMITTED="CONNECTION_REQUEST_NOTE_SUBMITTED",SET_SHOW_CONNECTION_REQUEST_NOTE_PROMPT="SET_SHOW_CONNECTION_REQUEST_NOTE_PROMPT",GET_CONNECTION_REQUESTS_FETCHING="GET_CONNECTION_REQUESTS_FETCHING",GET_CONNECTION_REQUESTS_SUCCESS="GET_CONNECTION_REQUESTS_SUCCESS",MARK_CONNECTION_REQUESTS_AS_READ_FETCHING="MARK_CONNECTION_REQUESTS_AS_READ_FETCHING",MARK_CONNECTION_REQUESTS_AS_READ_SUCCESS="MARK_CONNECTION_REQUESTS_AS_READ_SUCCESS",REJECT_CONNECTION_REQUEST_FETCHING="REJECT_CONNECTION_REQUEST_FETCHING",REJECT_CONNECTION_REQUEST_SUCCESS="REJECT_CONNECTION_REQUEST_SUCCESS",GET_EVENT_FETCHING="GET_EVENT_FETCHING",GET_EVENT_SUCCESS="GET_EVENT_SUCCESS",GET_EVENT_FAILURE="GET_EVENT_FAILURE",REGISTER_FOR_EVENT="REGISTER_FOR_EVENT",REGISTER_FOR_EVENT_FETCHING="REGISTER_FOR_EVENT_FETCHING",REGISTER_FOR_EVENT_SUCCESS="REGISTER_FOR_EVENT_SUCCESS",REGISTER_FOR_EVENT_FAILURE="REGISTER_FOR_EVENT_FAILURE",STOP_LOADING="STOP_LOADING",START_LOADING="START_LOADING",LOG_OUT_CURRENT_USER="LOG_OUT_CURRENT_USER",RESET_ALL_MODAL_STATE="RESET_ALL_MODAL_STATE",RESET_ORGANIZATION_LOADING_STATE="RESET_ORGANIZATION_LOADING_STATE",CREATE_LEAD="CREATE_LEAD",DELETE_LEAD="DELETE_LEAD",GET_LEADS_FETCHING="GET_LEADS_FETCHING",GET_LEADS_SUCCESS="GET_LEADS_SUCCESS",GET_LEADS_FAILURE="GET_LEADS_FAILURE",CANCEL_SELECT_CARD_FLOW="CANCEL_SELECT_CARD_FLOW",SELECT_CARD_MODAL_CARD_SELECTED="SELECT_CARD_MODAL_CARD_SELECTED",SET_SELECT_CARD_MODAL="SET_SELECT_CARD_MODAL",SWITCH_VIEWING_CURRENT_USER_CARD="SWITCH_VIEWING_CURRENT_USER_CARD",GET_AVAILABLE_TILE_TYPES_FOR_TILE_GROUP_FOR_ORGANIZATION_FETCHING="GET_AVAILABLE_TILE_TYPES_FOR_TILE_GROUP_FOR_ORGANIZATION_FETCHING",GET_AVAILABLE_TILE_TYPES_FOR_TILE_GROUP_FOR_ORGANIZATION_SUCCESS="GET_AVAILABLE_TILE_TYPES_FOR_TILE_GROUP_FOR_ORGANIZATION_SUCCESS",GET_AVAILABLE_TILE_TYPES_FOR_TILE_GROUP_FOR_ORGANIZATION_FAILURE="GET_AVAILABLE_TILE_TYPES_FOR_TILE_GROUP_FOR_ORGANIZATION_FAILURE",CONTACT_CARD_TILE_SET_PREVIEW_STATE="CONTACT_CARD_TILE_SET_PREVIEW_STATE",CONTACT_CARD_TILE_SET_PREVIEW_SHOULD_SHOW="CONTACT_CARD_TILE_SET_PREVIEW_SHOULD_SHOW",LEADS_FORM_TILE_CREATE_LEAD_FETCHING="LEADS_FORM_TILE_CREATE_LEAD_FETCHING",LEADS_FORM_TILE_CREATE_LEAD_SUCCESS="LEADS_FORM_TILE_CREATE_LEAD_SUCCESS",GET_USER_LINQ_PRODUCTS_FETCHING="GET_USER_LINQ_PRODUCTS_FETCHING",GET_USER_LINQ_PRODUCTS_SUCCESS="GET_USER_LINQ_PRODUCTS_SUCCESS",GET_USER_LINQ_PRODUCTS_FAILURE="GET_USER_LINQ_PRODUCTS_FAILURE",CREATE_USER_LINQ_PRODUCT="CREATE_USER_LINQ_PRODUCT",UPDATE_USER_LINQ_PRODUCT_FETCHING="UPDATE_USER_LINQ_PRODUCT_FETCHING",UPDATE_USER_LINQ_PRODUCT_SUCCESS="UPDATE_USER_LINQ_PRODUCT_SUCCESS",UPDATE_USER_LINQ_PRODUCT_FAILURE="UPDATE_USER_LINQ_PRODUCT_FAILURE",DELETE_USER_LINQ_PRODUCT_FETCHING="DELETE_USER_LINQ_PRODUCT_FETCHING",DELETE_USER_LINQ_PRODUCT_SUCCESS="DELETE_USER_LINQ_PRODUCT_SUCCESS",DELETE_USER_LINQ_PRODUCT_FAILURE="DELETE_USER_LINQ_PRODUCT_FAILURE",REGISTER_EVENT_BADGE_USER_LINQ_PRODUCT="REGISTER_EVENT_BADGE_USER_LINQ_PRODUCT",SHOW_PRODUCT_ACTIVATION_FLOW_MODAL="SHOW_PRODUCT_ACTIVATION_FLOW_MODAL",SET_POST_PRODUCT_ACTIVATION_MODAL="SET_POST_PRODUCT_ACTIVATION_MODAL",RESET_PRODUCT_CALLOUTS="RESET_PRODUCT_CALLOUTS",SET_ADD_CONTENT_BUTTON_BADGE_SHOWN="SET_ADD_CONTENT_BUTTON_BADGE_SHOWN",UPDATE_ORGANIZATION_FETCHING="UPDATE_ORGANIZATION_FETCHING",UPDATE_ORGANIZATION_SUCCESS="UPDATE_ORGANIZATION_SUCCESS",UPDATE_ORGANIZATION_FAILURE="UPDATE_ORGANIZATION_FAILURE",SET_MANAGE_TEAM_INVITE_MODAL_SHOWN="SET_MANAGE_TEAM_INVITE_MODAL_SHOWN",CHOOSE_LINQ_PAGE_TO_ADD_TO_TEAM="CHOOSE_LINQ_PAGE_TO_ADD_TO_TEAM",SUBMIT_APP_FEEDBACK_STARTED="SUBMIT_APP_FEEDBACK_STARTED",SUBMIT_APP_FEEDBACK_SUCCESS="SUBMIT_APP_FEEDBACK_SUCCESS",SUBMIT_APP_FEEDBACK_FAILURE="SUBMIT_APP_FEEDBACK_FAILURE",SET_SHOULD_SHOW_APP_FEEDBACK_PROMPT="SET_SHOULD_SHOW_APP_FEEDBACK_PROMPT",INCREMENT_ALERT_RENDERED_COUNT="INCREMENT_ALERT_RENDERED_COUNT",LINQ_PAY_DETAILS="LINQ_PAY_DETAILS",CREATE_STRIPE_ACCOUNT_LINK="CREATE_STRIPE_ACCOUNT_LINK",GET_LINQ_PAY_STRIPE_CHECKOUT_SESSION="GET_LINQ_PAY_STRIPE_CHECKOUT_SESSION",GET_LINQ_PAY_CHARGES_LIST="GET_LINQ_PAY_CHARGES_LIST",SAVE_LINQ_PAY_RECORD="SAVE_LINQ_PAY_RECORD",DUPLICATE_CARD="DUPLICATE_CARD",GET_LINQ_PRODUCTS="GET_LINQ_PRODUCTS",SET_SHOW_LOGGED_IN_AS_DISPLAY="SET_SHOW_LOGGED_IN_AS_DISPLAY",GET_STRIPE_CHECKOUT_LINK="GET_STRIPE_CHECKOUT_LINK",PRELOAD_BOTTOM_SHEET_DEPRECATED="PRELOAD_BOTTOM_SHEET_DEPRECATED",SHOW_BOTTOM_SHEET_DEPRECATED="SHOW_BOTTOM_SHEET_DEPRECATED",CLOSE_BOTTOM_SHEET_DEPRECATED="CLOSE_BOTTOM_SHEET_DEPRECATED",RESET_BOTTOM_SHEET_DEPRECATED="RESET_BOTTOM_SHEET_DEPRECATED",SHOW_ION_BOTTOM_SHEET="SHOW_ION_BOTTOM_SHEET",CLOSE_ION_BOTTOM_SHEET="CLOSE_ION_BOTTOM_SHEET",SET_PREVIEW_PAGE_STEP="SET_PREVIEW_PAGE_STEP",SHOW_MODAL="SHOW_MODAL",CLOSE_MODAL="CLOSE_MODAL";var ALERT_TYPES=(o=>(o.SHOW_ALERT="SHOW_ALERT",o.CLOSE_ALERT="CLOSE_ALERT",o.RESET_ALERT="RESET_ALERT",o.SHOW_EXTRA_ALERT_MODAL="SHOW_EXTRA_ALERT_MODAL",o.CLOSE_EXTRA_ALERT_MODAL="CLOSE_EXTRA_ALERT_MODAL",o.CLOSE_ALL_EXTRA_ALERT_MODALS="CLOSE_ALL_EXTRA_ALERT_MODALS",o))(ALERT_TYPES||{}),POPOVER_PROMPT_ACTIONS=(o=>(o.SHOW_POPOVER_PROMPT="SHOW_POPOVER_PROMPT",o.CLOSE_POPOVER_PROMPT="CLOSE_POPOVER_PROMPT",o.RESET_POPOVER_PROMPT="RESET_POPOVER_PROMPT",o))(POPOVER_PROMPT_ACTIONS||{}),TOOLTIP_ACTIONS=(o=>(o.SHOW_TOOLTIP="SHOW_TOOLTIP",o.CLOSE_TOOLTIP="CLOSE_TOOLTIP",o.RESET_TOOLTIP="RESET_TOOLTIP",o))(TOOLTIP_ACTIONS||{}),ADMIN_ONBOARDING_ACTIONS=(o=>(o.SET_ADMIN_ONBOARDING_COMPLETE="SET_ADMIN_ONBOARDING_COMPLETE",o.RESET_ADMIN_ONBOARDING_COMPLETE="RESET_ADMIN_ONBOARDING_COMPLETE",o))(ADMIN_ONBOARDING_ACTIONS||{}),SLIDING_DRAWER_ACTIONS=(o=>(o.SHOW_SLIDING_DRAWER="SHOW_SLIDING_DRAWER",o.CLOSE_SLIDING_DRAWER="CLOSE_SLIDING_DRAWER",o.RESET_SLIDING_DRAWER="RESET_SLIDING_DRAWER",o.SET_SLIDING_DRAWER="SET_SLIDING_DRAWER",o.SET_SLIDING_DRAWER_WARN_ON_CLOSE="SET_SLIDING_DRAWER_WARN_ON_CLOSE",o.SHOW_SECONDARY_PANEL="SHOW_SECONDARY_PANEL",o.ADD_SLIDING_DRAWER_TO_STACK="ADD_SLIDING_DRAWER_TO_STACK",o.REMOVE_SLIDING_DRAWER_FROM_STACK="REMOVE_SLIDING_DRAWER_FROM_STACK",o.SET_SLIDING_DRAWER_TO_STACK_WARN_ON_CLOSE="SET_SLIDING_DRAWER_TO_STACK_WARN_ON_CLOSE",o.DISMISS_SLIDING_DRAWER_WARN_ON_CLOSE="DISMISS_SLIDING_DRAWER_WARN_ON_CLOSE",o.DISMISS_STACKED_SLIDING_DRAWER_WARN_ON_CLOSE="DISMISS_STACKED_SLIDING_DRAWER_WARN_ON_CLOSE",o))(SLIDING_DRAWER_ACTIONS||{}),ADMIN_PAGES_PAGE_ACTIONS=(o=>(o.SET_ADMIN_PAGES="SET_ADMIN_PAGES",o.CLEAR_ADMIN_PAGES_FILTERS="CLEAR_ADMIN_PAGES_FILTERS",o.SELECT_ALL_PAGES="SELECT_ALL_PAGES",o.DESELECT_ALL_PAGES="DESELECT_ALL_PAGES",o.DESELECT_PAGE="DESELECT_PAGE",o.SELECT_PAGE="SELECT_PAGE",o.SET_PREVIEWING_PAGE="SET_PREVIEWING_PAGE",o.TOGGLE_SELECT_PAGE="TOGGLE_SELECT_PAGE",o))(ADMIN_PAGES_PAGE_ACTIONS||{}),ADMIN_INSPIRATION_PAGE_ACTIONS=(o=>(o.SET_ADMIN_INSPIRATION="SET_ADMIN_INSPIRATION",o.CLEAR_ADMIN_INSPIRATION_FILTERS="CLEAR_ADMIN_INSPIRATION_FILTERS",o.SET_PREVIEWING_PAGE="SET_PREVIEWING_PAGE",o))(ADMIN_INSPIRATION_PAGE_ACTIONS||{}),ADMIN_PAGES_ACTIONS=(o=>(o.SET_ADMIN_PAGE="SET_ADMIN_PAGES",o))(ADMIN_PAGES_ACTIONS||{}),ADMIN_SHOPPING_CART_ACTIONS=(o=>(o.ADD_ITEM_TO_CART="ADD_ITEM_TO_CART",o.REMOVE_ITEM_FROM_CART="REMOVE_ITEM_FROM_CART",o.CLEAR_CART="CLEAR_CART",o.SET_ITEM_QUANTITY="SET_ITEM_QUANTITY",o))(ADMIN_SHOPPING_CART_ACTIONS||{}),SUBMIT_LFT_FORM_ACTIONS=(o=>(o.SET_LAST_FILLED_OUT_LFT_FORM="SET_LAST_FILLED_OUT_LFT_FORM",o))(SUBMIT_LFT_FORM_ACTIONS||{}),CONTACT_FILTERS_ACTIONS=(o=>(o.SET_CONTACT_FILTERS="SET_CONTACT_FILTERS",o.RESET_CONTACT_FILTERS="RESET_CONTACT_FILTERS",o))(CONTACT_FILTERS_ACTIONS||{}),NEW_BOTTOM_SHEET_ACTIONS=(o=>(o.SHOW_NEW_BOTTOM_SHEET="SHOW_NEW_BOTTOM_SHEET",o.CLOSE_NEW_BOTTOM_SHEET="CLOSE_NEW_BOTTOM_SHEET",o.UPDATE_NEW_BOTTOM_SHEET="RESIZE_NEW_BOTTOM_SHEET",o))(NEW_BOTTOM_SHEET_ACTIONS||{}),POLL_USER_TYPES=(o=>(o.START_USER_POLLING="START_USER_POLLING",o.STOP_USER_POLLING="STOP_USER_POLLING",o.SET_USER_POLLING_TIMEOUT="SET_USER_POLLING_TIMEOUT",o))(POLL_USER_TYPES||{}),RECENT_SCANNED_BUSINESS_CARD_ACTIONS=(o=>(o.SET_RECENT_SCANNED_BUSINESS_CARD="SET_RECENT_SCANNED_BUSINESS_CARD",o))(RECENT_SCANNED_BUSINESS_CARD_ACTIONS||{}),USER_ENRICHMENT_ACTIONS=(o=>(o.REQUEST_ENRICHMENT="REQUEST_ENRICHMENT",o.ENRICHMENT_SUCCESSFUL="ENRICHMENT_SUCCESSFUL",o.ENRICHMENT_FAILED="ENRICHMENT_FAILED",o))(USER_ENRICHMENT_ACTIONS||{}),USER_SUBSCRIPTION_MODAL_ACTIONS=(o=>(o.SET_LAST_SHOW_UPGRADE_MONTHLY_TO_ANNUAL_PRO_MODAL_DATE="SET_LAST_SHOW_UPGRADE_MONTHLY_TO_ANNUAL_PRO_MODAL_DATE",o))(USER_SUBSCRIPTION_MODAL_ACTIONS||{}),PURCHASE_LINQ_ONE_ACTIONS=(o=>(o.SET_LAST_PURCHASE="SET_LAST_PURCHASE",o))(PURCHASE_LINQ_ONE_ACTIONS||{}),API_METHODS=(o=>(o.POST="POST",o.GET="GET",o.PUT="PUT",o.DELETE="DELETE",o))(API_METHODS||{}),hasOwn=Object.prototype.hasOwnProperty,toStr=Object.prototype.toString,isPlainObject=function(s){if(!s||toStr.call(s)!=="[object Object]")return!1;var a=hasOwn.call(s,"constructor"),$=s.constructor&&s.constructor.prototype&&hasOwn.call(s.constructor.prototype,"isPrototypeOf");if(s.constructor&&!a&&!$)return!1;var j;for(j in s);return typeof j>"u"||hasOwn.call(s,j)};function merge$1(){var o,s,a,$,j,_e={},et=null,tt=arguments.length;for(o=0;o<tt;o++)if(et=arguments[o],et!=null)for(j in et)s=_e[j],a=et[j],_e!==a&&(a&&isPlainObject(a)?($=s&&isPlainObject(s)?s:{},_e[j]=merge$1($,a)):typeof a<"u"&&(_e[j]=a));return _e}var merge_1=merge$1,merge=merge_1,RollbarJSON={};function setupJSON(o){isFunction(RollbarJSON.stringify)&&isFunction(RollbarJSON.parse)||(isDefined(JSON)&&(o?(isNativeFunction(JSON.stringify)&&(RollbarJSON.stringify=JSON.stringify),isNativeFunction(JSON.parse)&&(RollbarJSON.parse=JSON.parse)):(isFunction(JSON.stringify)&&(RollbarJSON.stringify=JSON.stringify),isFunction(JSON.parse)&&(RollbarJSON.parse=JSON.parse))),(!isFunction(RollbarJSON.stringify)||!isFunction(RollbarJSON.parse))&&o&&o(RollbarJSON))}function isType(o,s){return s===typeName(o)}function typeName(o){var s=typeof o;return s!=="object"?s:o?o instanceof Error?"error":{}.toString.call(o).match(/\s([a-zA-Z]+)/)[1].toLowerCase():"null"}function isFunction(o){return isType(o,"function")}function isNativeFunction(o){var s=/[\\^$.*+?()[\]{}|]/g,a=Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?"),$=RegExp("^"+a+"$");return isObject(o)&&$.test(o)}function isObject(o){var s=typeof o;return o!=null&&(s=="object"||s=="function")}function isString$1(o){return typeof o=="string"||o instanceof String}function isFiniteNumber(o){return Number.isFinite(o)}function isDefined(o){return!isType(o,"undefined")}function isIterable(o){var s=typeName(o);return s==="object"||s==="array"}function isError(o){return isType(o,"error")||isType(o,"exception")}function isPromise(o){return isObject(o)&&isType(o.then,"function")}function redact(){return"********"}function uuid4(){var o=now(),s="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var $=(o+Math.random()*16)%16|0;return o=Math.floor(o/16),(a==="x"?$:$&7|8).toString(16)});return s}var LEVELS={debug:0,info:1,warning:2,error:3,critical:4};function sanitizeUrl(o){var s=parseUri(o);return s?(s.anchor===""&&(s.source=s.source.replace("#","")),o=s.source.replace("?"+s.query,""),o):"(unknown)"}var parseUriOptions={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};function parseUri(o){if(isType(o,"string")){for(var s=parseUriOptions,a=s.parser.loose.exec(o),$={},j=0,_e=s.key.length;j<_e;++j)$[s.key[j]]=a[j]||"";return $[s.q.name]={},$[s.key[12]].replace(s.q.parser,function(et,tt,nt){tt&&($[s.q.name][tt]=nt)}),$}}function addParamsAndAccessTokenToPath(o,s,a){a=a||{},a.access_token=o;var $=[],j;for(j in a)Object.prototype.hasOwnProperty.call(a,j)&&$.push([j,a[j]].join("="));var _e="?"+$.sort().join("&");s=s||{},s.path=s.path||"";var et=s.path.indexOf("?"),tt=s.path.indexOf("#"),nt;et!==-1&&(tt===-1||tt>et)?(nt=s.path,s.path=nt.substring(0,et)+_e+"&"+nt.substring(et+1)):tt!==-1?(nt=s.path,s.path=nt.substring(0,tt)+_e+nt.substring(tt)):s.path=s.path+_e}function formatUrl(o,s){if(s=s||o.protocol,!s&&o.port&&(o.port===80?s="http:":o.port===443&&(s="https:")),s=s||"https:",!o.hostname)return null;var a=s+"//"+o.hostname;return o.port&&(a=a+":"+o.port),o.path&&(a=a+o.path),a}function stringify(o,s){var a,$;try{a=RollbarJSON.stringify(o)}catch(j){if(s&&isFunction(s))try{a=s(o)}catch(_e){$=_e}else $=j}return{error:$,value:a}}function maxByteSize(o){for(var s=0,a=o.length,$=0;$<a;$++){var j=o.charCodeAt($);j<128?s=s+1:j<2048?s=s+2:j<65536&&(s=s+3)}return s}function jsonParse(o){var s,a;try{s=RollbarJSON.parse(o)}catch($){a=$}return{error:a,value:s}}function makeUnhandledStackInfo(o,s,a,$,j,_e,et,tt){var nt={url:s||"",line:a,column:$};nt.func=tt.guessFunctionName(nt.url,nt.line),nt.context=tt.gatherContext(nt.url,nt.line);var it=typeof document<"u"&&document&&document.location&&document.location.href,rt=typeof window<"u"&&window&&window.navigator&&window.navigator.userAgent;return{mode:_e,message:j?String(j):o||et,url:it,stack:[nt],useragent:rt}}function wrapCallback(o,s){return function(a,$){try{s(a,$)}catch(j){o.error(j)}}}function nonCircularClone(o){var s=[o];function a($,j){var _e,et,tt,nt={};try{for(et in $){if(_e=$[et],_e&&(isType(_e,"object")||isType(_e,"array"))){j.includes(_e)?nt[et]="Removed circular reference: "+typeName(_e):(tt=j.slice(),tt.push(_e),nt[et]=a(_e,tt));continue}nt[et]=_e}}catch(it){nt="Failed cloning custom data: "+it.message}return nt}return a(o,s)}function createItem(o,s,a,$,j){for(var _e,et,tt,nt,it,rt,st=[],ot={},at=[],lt=0,ct=o.length;lt<ct;++lt){rt=o[lt];var ht=typeName(rt);switch(at.push(ht),ht){case"undefined":break;case"string":_e?st.push(rt):_e=rt;break;case"function":nt=wrapCallback(s,rt);break;case"date":st.push(rt);break;case"error":case"domexception":case"exception":et?st.push(rt):et=rt;break;case"object":case"array":if(rt instanceof Error||typeof DOMException<"u"&&rt instanceof DOMException){et?st.push(rt):et=rt;break}if($&&ht==="object"&&!it){for(var dt=0,ut=$.length;dt<ut;++dt)if(rt[$[dt]]!==void 0){it=rt;break}if(it)break}tt?st.push(rt):tt=rt;break;default:if(rt instanceof Error||typeof DOMException<"u"&&rt instanceof DOMException){et?st.push(rt):et=rt;break}st.push(rt)}}tt&&(tt=nonCircularClone(tt)),st.length>0&&(tt||(tt=nonCircularClone({})),tt.extraArgs=nonCircularClone(st));var pt={message:_e,err:et,custom:tt,timestamp:now(),callback:nt,notifier:a,diagnostic:ot,uuid:uuid4()};return setCustomItemKeys(pt,tt),$&&it&&(pt.request=it),j&&(pt.lambdaContext=j),pt._originalArgs=o,pt.diagnostic.original_arg_types=at,pt}function setCustomItemKeys(o,s){s&&s.level!==void 0&&(o.level=s.level,delete s.level),s&&s.skipFrames!==void 0&&(o.skipFrames=s.skipFrames,delete s.skipFrames)}function addErrorContext$1(o,s){var a=o.data.custom||{},$=!1;try{for(var j=0;j<s.length;++j)s[j].hasOwnProperty("rollbarContext")&&(a=merge(a,nonCircularClone(s[j].rollbarContext)),$=!0);$&&(o.data.custom=a)}catch(_e){o.diagnostic.error_context="Failed: "+_e.message}}var TELEMETRY_TYPES=["log","network","dom","navigation","error","manual"],TELEMETRY_LEVELS=["critical","error","warning","info","debug"];function arrayIncludes(o,s){for(var a=0;a<o.length;++a)if(o[a]===s)return!0;return!1}function createTelemetryEvent(o){for(var s,a,$,j,_e=0,et=o.length;_e<et;++_e){j=o[_e];var tt=typeName(j);switch(tt){case"string":!s&&arrayIncludes(TELEMETRY_TYPES,j)?s=j:!$&&arrayIncludes(TELEMETRY_LEVELS,j)&&($=j);break;case"object":a=j;break}}var nt={type:s||"manual",metadata:a||{},level:$};return nt}function get$1(o,s){if(o){var a=s.split("."),$=o;try{for(var j=0,_e=a.length;j<_e;++j)$=$[a[j]]}catch{$=void 0}return $}}function set$1(o,s,a){if(o){var $=s.split("."),j=$.length;if(!(j<1)){if(j===1){o[$[0]]=a;return}try{for(var _e=o[$[0]]||{},et=_e,tt=1;tt<j-1;++tt)_e[$[tt]]=_e[$[tt]]||{},_e=_e[$[tt]];_e[$[j-1]]=a,o[$[0]]=et}catch{return}}}}function formatArgsAsString(o){var s,a,$,j=[];for(s=0,a=o.length;s<a;++s){switch($=o[s],typeName($)){case"object":$=stringify($),$=$.error||$.value,$.length>500&&($=$.substr(0,497)+"...");break;case"null":$="null";break;case"undefined":$="undefined";break;case"symbol":$=$.toString();break}j.push($)}return j.join(" ")}function now(){return Date.now?+Date.now():+new Date}function filterIp(o,s){if(!(!o||!o.user_ip||s===!0)){var a=o.user_ip;if(!s)a=null;else try{var $;if(a.indexOf(".")!==-1)$=a.split("."),$.pop(),$.push("0"),a=$.join(".");else if(a.indexOf(":")!==-1){if($=a.split(":"),$.length>2){var j=$.slice(0,3),_e=j[2].indexOf("/");_e!==-1&&(j[2]=j[2].substring(0,_e));var et="0000:0000:0000:0000:0000";a=j.concat(et).join(":")}}else a=null}catch{a=null}o.user_ip=a}}function handleOptions(o,s,a,$){var j=merge(o,s,a);return j=updateDeprecatedOptions(j,$),!s||s.overwriteScrubFields||s.scrubFields&&(j.scrubFields=(o.scrubFields||[]).concat(s.scrubFields)),j}function updateDeprecatedOptions(o,s){return o.hostWhiteList&&!o.hostSafeList&&(o.hostSafeList=o.hostWhiteList,o.hostWhiteList=void 0,s&&s.log("hostWhiteList is deprecated. Use hostSafeList.")),o.hostBlackList&&!o.hostBlockList&&(o.hostBlockList=o.hostBlackList,o.hostBlackList=void 0,s&&s.log("hostBlackList is deprecated. Use hostBlockList.")),o}var utility={addParamsAndAccessTokenToPath,createItem,addErrorContext:addErrorContext$1,createTelemetryEvent,filterIp,formatArgsAsString,formatUrl,get:get$1,handleOptions,isError,isFiniteNumber,isFunction,isIterable,isNativeFunction,isObject,isString:isString$1,isType,isPromise,jsonParse,LEVELS,makeUnhandledStackInfo,merge,now,redact,RollbarJSON,sanitizeUrl,set:set$1,setupJSON,stringify,maxByteSize,typeName,uuid4},_$e=utility;function RateLimiter$1(o){this.startTime=_$e.now(),this.counter=0,this.perMinCounter=0,this.platform=null,this.platformOptions={},this.configureGlobal(o)}RateLimiter$1.globalSettings={startTime:_$e.now(),maxItems:void 0,itemsPerMinute:void 0};RateLimiter$1.prototype.configureGlobal=function(o){o.startTime!==void 0&&(RateLimiter$1.globalSettings.startTime=o.startTime),o.maxItems!==void 0&&(RateLimiter$1.globalSettings.maxItems=o.maxItems),o.itemsPerMinute!==void 0&&(RateLimiter$1.globalSettings.itemsPerMinute=o.itemsPerMinute)};RateLimiter$1.prototype.shouldSend=function(o,s){s=s||_$e.now();var a=s-this.startTime;(a<0||a>=6e4)&&(this.startTime=s,this.perMinCounter=0);var $=RateLimiter$1.globalSettings.maxItems,j=RateLimiter$1.globalSettings.itemsPerMinute;if(checkRate(o,$,this.counter))return shouldSendValue(this.platform,this.platformOptions,$+" max items reached",!1);if(checkRate(o,j,this.perMinCounter))return shouldSendValue(this.platform,this.platformOptions,j+" items per minute reached",!1);this.counter++,this.perMinCounter++;var _e=!checkRate(o,$,this.counter),et=_e;return _e=_e&&!checkRate(o,j,this.perMinCounter),shouldSendValue(this.platform,this.platformOptions,null,_e,$,j,et)};RateLimiter$1.prototype.setPlatformOptions=function(o,s){this.platform=o,this.platformOptions=s};function checkRate(o,s,a){return!o.ignoreRateLimit&&s>=1&&a>s}function shouldSendValue(o,s,a,$,j,_e,et){var tt=null;return a&&(a=new Error(a)),!a&&!$&&(tt=rateLimitPayload(o,s,j,_e,et)),{error:a,shouldSend:$,payload:tt}}function rateLimitPayload(o,s,a,$,j){var _e=s.environment||s.payload&&s.payload.environment,et;j?et="item per minute limit reached, ignoring errors until timeout":et="maxItems has been hit, ignoring errors until reset.";var tt={body:{message:{body:et,extra:{maxItems:a,itemsPerMinute:$}}},language:"javascript",environment:_e,notifier:{version:s.notifier&&s.notifier.version||s.version}};return o==="browser"?(tt.platform="browser",tt.framework="browser-js",tt.notifier.name="rollbar-browser-js"):o==="server"?(tt.framework=s.framework||"node-js",tt.notifier.name=s.notifier.name):o==="react-native"&&(tt.framework=s.framework||"react-native",tt.notifier.name=s.notifier.name),tt}var rateLimiter=RateLimiter$1,_$d=utility;function Queue$1(o,s,a,$){this.rateLimiter=o,this.api=s,this.logger=a,this.options=$,this.predicates=[],this.pendingItems=[],this.pendingRequests=[],this.retryQueue=[],this.retryHandle=null,this.waitCallback=null,this.waitIntervalID=null}Queue$1.prototype.configure=function(o){this.api&&this.api.configure(o);var s=this.options;return this.options=_$d.merge(s,o),this};Queue$1.prototype.addPredicate=function(o){return _$d.isFunction(o)&&this.predicates.push(o),this};Queue$1.prototype.addPendingItem=function(o){this.pendingItems.push(o)};Queue$1.prototype.removePendingItem=function(o){var s=this.pendingItems.indexOf(o);s!==-1&&this.pendingItems.splice(s,1)};Queue$1.prototype.addItem=function(o,s,a,$){(!s||!_$d.isFunction(s))&&(s=function(){});var j=this._applyPredicates(o);if(j.stop){this.removePendingItem($),s(j.err);return}if(this._maybeLog(o,a),this.removePendingItem($),!this.options.transmit){s(new Error("Transmit disabled"));return}this.pendingRequests.push(o);try{this._makeApiRequest(o,(function(_e,et){this._dequeuePendingRequest(o),s(_e,et)}).bind(this))}catch(_e){this._dequeuePendingRequest(o),s(_e)}};Queue$1.prototype.wait=function(o){_$d.isFunction(o)&&(this.waitCallback=o,!this._maybeCallWait()&&(this.waitIntervalID&&(this.waitIntervalID=clearInterval(this.waitIntervalID)),this.waitIntervalID=setInterval((function(){this._maybeCallWait()}).bind(this),500)))};Queue$1.prototype._applyPredicates=function(o){for(var s=null,a=0,$=this.predicates.length;a<$;a++)if(s=this.predicates[a](o,this.options),!s||s.err!==void 0)return{stop:!0,err:s.err};return{stop:!1,err:null}};Queue$1.prototype._makeApiRequest=function(o,s){var a=this.rateLimiter.shouldSend(o);a.shouldSend?this.api.postItem(o,(function($,j){$?this._maybeRetry($,o,s):s($,j)}).bind(this)):a.error?s(a.error):this.api.postItem(a.payload,s)};var RETRIABLE_ERRORS=["ECONNRESET","ENOTFOUND","ESOCKETTIMEDOUT","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH","EPIPE","EAI_AGAIN"];Queue$1.prototype._maybeRetry=function(o,s,a){var $=!1;if(this.options.retryInterval){for(var j=0,_e=RETRIABLE_ERRORS.length;j<_e;j++)if(o.code===RETRIABLE_ERRORS[j]){$=!0;break}$&&_$d.isFiniteNumber(this.options.maxRetries)&&(s.retries=s.retries?s.retries+1:1,s.retries>this.options.maxRetries&&($=!1))}$?this._retryApiRequest(s,a):a(o)};Queue$1.prototype._retryApiRequest=function(o,s){this.retryQueue.push({item:o,callback:s}),this.retryHandle||(this.retryHandle=setInterval((function(){for(;this.retryQueue.length;){var a=this.retryQueue.shift();this._makeApiRequest(a.item,a.callback)}}).bind(this),this.options.retryInterval))};Queue$1.prototype._dequeuePendingRequest=function(o){var s=this.pendingRequests.indexOf(o);s!==-1&&(this.pendingRequests.splice(s,1),this._maybeCallWait())};Queue$1.prototype._maybeLog=function(o,s){if(this.logger&&this.options.verbose){var a=s;if(a=a||_$d.get(o,"body.trace.exception.message"),a=a||_$d.get(o,"body.trace_chain.0.exception.message"),a){this.logger.error(a);return}a=_$d.get(o,"body.message.body"),a&&this.logger.log(a)}};Queue$1.prototype._maybeCallWait=function(){return _$d.isFunction(this.waitCallback)&&this.pendingItems.length===0&&this.pendingRequests.length===0?(this.waitIntervalID&&(this.waitIntervalID=clearInterval(this.waitIntervalID)),this.waitCallback(),!0):!1};var queue$1=Queue$1,_$c=utility;function Notifier$1(o,s){this.queue=o,this.options=s,this.transforms=[],this.diagnostic={}}Notifier$1.prototype.configure=function(o){this.queue&&this.queue.configure(o);var s=this.options;return this.options=_$c.merge(s,o),this};Notifier$1.prototype.addTransform=function(o){return _$c.isFunction(o)&&this.transforms.push(o),this};Notifier$1.prototype.log=function(o,s){if((!s||!_$c.isFunction(s))&&(s=function(){}),!this.options.enabled)return s(new Error("Rollbar is not enabled"));this.queue.addPendingItem(o);var a=o.err;this._applyTransforms(o,(function($,j){if($)return this.queue.removePendingItem(o),s($,null);this.queue.addItem(j,s,a,o)}).bind(this))};Notifier$1.prototype._applyTransforms=function(o,s){var a=-1,$=this.transforms.length,j=this.transforms,_e=this.options,et=function(tt,nt){if(tt){s(tt,null);return}if(a++,a===$){s(null,nt);return}j[a](nt,_e,et)};et(null,o)};var notifier=Notifier$1,RateLimiter=rateLimiter,Queue=queue$1,Notifier=notifier,_$b=utility;function Rollbar$2(o,s,a,$,j){this.options=_$b.merge(o),this.logger=a,Rollbar$2.rateLimiter.configureGlobal(this.options),Rollbar$2.rateLimiter.setPlatformOptions(j,this.options),this.api=s,this.queue=new Queue(Rollbar$2.rateLimiter,s,a,this.options);var _e=this.options.tracer||null;validateTracer(_e)?(this.tracer=_e,this.options.tracer="opentracing-tracer-enabled",this.options._configuredOptions.tracer="opentracing-tracer-enabled"):this.tracer=null,this.notifier=new Notifier(this.queue,this.options),this.telemeter=$,setStackTraceLimit(o),this.lastError=null,this.lastErrorHash="none"}var defaultOptions$3={maxItems:0,itemsPerMinute:60};Rollbar$2.rateLimiter=new RateLimiter(defaultOptions$3);Rollbar$2.prototype.global=function(o){return Rollbar$2.rateLimiter.configureGlobal(o),this};Rollbar$2.prototype.configure=function(o,s){var a=this.options,$={};s&&($={payload:s}),this.options=_$b.merge(a,o,$);var j=this.options.tracer||null;return validateTracer(j)?(this.tracer=j,this.options.tracer="opentracing-tracer-enabled",this.options._configuredOptions.tracer="opentracing-tracer-enabled"):this.tracer=null,this.notifier&&this.notifier.configure(this.options),this.telemeter&&this.telemeter.configure(this.options),setStackTraceLimit(o),this.global(this.options),validateTracer(o.tracer)&&(this.tracer=o.tracer),this};Rollbar$2.prototype.log=function(o){var s=this._defaultLogLevel();return this._log(s,o)};Rollbar$2.prototype.debug=function(o){this._log("debug",o)};Rollbar$2.prototype.info=function(o){this._log("info",o)};Rollbar$2.prototype.warn=function(o){this._log("warning",o)};Rollbar$2.prototype.warning=function(o){this._log("warning",o)};Rollbar$2.prototype.error=function(o){this._log("error",o)};Rollbar$2.prototype.critical=function(o){this._log("critical",o)};Rollbar$2.prototype.wait=function(o){this.queue.wait(o)};Rollbar$2.prototype.captureEvent=function(o,s,a){return this.telemeter&&this.telemeter.captureEvent(o,s,a)};Rollbar$2.prototype.captureDomContentLoaded=function(o){return this.telemeter&&this.telemeter.captureDomContentLoaded(o)};Rollbar$2.prototype.captureLoad=function(o){return this.telemeter&&this.telemeter.captureLoad(o)};Rollbar$2.prototype.buildJsonPayload=function(o){return this.api.buildJsonPayload(o)};Rollbar$2.prototype.sendJsonPayload=function(o){this.api.postJsonPayload(o)};Rollbar$2.prototype._log=function(o,s){var a;if(s.callback&&(a=s.callback,delete s.callback),this.options.ignoreDuplicateErrors&&this._sameAsLastError(s)){if(a){var $=new Error("ignored identical item");$.item=s,a($)}return}try{this._addTracingInfo(s),s.level=s.level||o,this.telemeter&&this.telemeter._captureRollbarItem(s),s.telemetryEvents=this.telemeter&&this.telemeter.copyEvents()||[],this.notifier.log(s,a)}catch(j){a&&a(j),this.logger.error(j)}};Rollbar$2.prototype._defaultLogLevel=function(){return this.options.logLevel||"debug"};Rollbar$2.prototype._sameAsLastError=function(o){if(!o._isUncaught)return!1;var s=generateItemHash(o);return this.lastErrorHash===s?!0:(this.lastError=o.err,this.lastErrorHash=s,!1)};Rollbar$2.prototype._addTracingInfo=function(o){if(this.tracer){var s=this.tracer.scope().active();if(validateSpan(s)){s.setTag("rollbar.error_uuid",o.uuid),s.setTag("rollbar.has_error",!0),s.setTag("error",!0),s.setTag("rollbar.item_url",`https://rollbar.com/item/uuid/?uuid=${o.uuid}`),s.setTag("rollbar.occurrence_url",`https://rollbar.com/occurrence/uuid/?uuid=${o.uuid}`);var a=s.context().toSpanId(),$=s.context().toTraceId();o.custom?(o.custom.opentracing_span_id=a,o.custom.opentracing_trace_id=$):o.custom={opentracing_span_id:a,opentracing_trace_id:$}}}};function generateItemHash(o){var s=o.message||"",a=(o.err||{}).stack||String(o.err);return s+"::"+a}function setStackTraceLimit(o){o.stackTraceLimit&&(Error.stackTraceLimit=o.stackTraceLimit)}function validateTracer(o){if(!o||!o.scope||typeof o.scope!="function")return!1;var s=o.scope();return!(!s||!s.active||typeof s.active!="function")}function validateSpan(o){if(!o||!o.context||typeof o.context!="function")return!1;var s=o.context();return!(!s||!s.toSpanId||!s.toTraceId||typeof s.toSpanId!="function"||typeof s.toTraceId!="function")}var rollbar=Rollbar$2,_$a=utility;function buildPayload(o,s,a){if(!_$a.isType(s.context,"string")){var $=_$a.stringify(s.context,a);$.error?s.context="Error: could not serialize 'context'":s.context=$.value||"",s.context.length>255&&(s.context=s.context.substr(0,255))}return{access_token:o,data:s}}function getTransportFromOptions(o,s,a){var $=s.hostname,j=s.protocol,_e=s.port,et=s.path,tt=s.search,nt=o.timeout,it=detectTransport(o),rt=o.proxy;if(o.endpoint){var st=a.parse(o.endpoint);$=st.hostname,j=st.protocol,_e=st.port,et=st.pathname,tt=st.search}return{timeout:nt,hostname:$,protocol:j,port:_e,path:et,search:tt,proxy:rt,transport:it}}function detectTransport(o){var s=typeof window<"u"&&window||typeof self<"u"&&self,a=o.defaultTransport||"xhr";return typeof s.fetch>"u"&&(a="xhr"),typeof s.XMLHttpRequest>"u"&&(a="fetch"),a}function transportOptions(o,s){var a=o.protocol||"https:",$=o.port||(a==="http:"?80:a==="https:"?443:void 0),j=o.hostname,_e=o.path,et=o.timeout,tt=o.transport;return o.search&&(_e=_e+o.search),o.proxy&&(_e=a+"//"+j+_e,j=o.proxy.host||o.proxy.hostname,$=o.proxy.port,a=o.proxy.protocol||a),{timeout:et,protocol:a,hostname:j,path:_e,port:$,method:s,transport:tt}}function appendPathToPath(o,s){var a=/\/$/.test(o),$=/^\//.test(s);return a&&$?s=s.substring(1):!a&&!$&&(s="/"+s),o+s}var apiUtility={buildPayload,getTransportFromOptions,transportOptions,appendPathToPath},_$9=utility,helpers=apiUtility,defaultOptions$2={hostname:"api.rollbar.com",path:"/api/1/item/",search:null,version:"1",protocol:"https:",port:443};function Api(o,s,a,$,j){this.options=o,this.transport=s,this.url=a,this.truncation=$,this.jsonBackup=j,this.accessToken=o.accessToken,this.transportOptions=_getTransport(o,a)}Api.prototype.postItem=function(o,s){var a=helpers.transportOptions(this.transportOptions,"POST"),$=helpers.buildPayload(this.accessToken,o,this.jsonBackup),j=this;setTimeout(function(){j.transport.post(j.accessToken,a,$,s)},0)};Api.prototype.buildJsonPayload=function(o,s){var a=helpers.buildPayload(this.accessToken,o,this.jsonBackup),$;return this.truncation?$=this.truncation.truncate(a):$=_$9.stringify(a),$.error?(s&&s($.error),null):$.value};Api.prototype.postJsonPayload=function(o,s){var a=helpers.transportOptions(this.transportOptions,"POST");this.transport.postJsonPayload(this.accessToken,a,o,s)};Api.prototype.configure=function(o){var s=this.oldOptions;return this.options=_$9.merge(s,o),this.transportOptions=_getTransport(this.options,this.url),this.options.accessToken!==void 0&&(this.accessToken=this.options.accessToken),this};function _getTransport(o,s){return helpers.getTransportFromOptions(o,defaultOptions$2,s)}var api$1=Api;(function(o){o.console||(o.console={});for(var s=o.console,a,$,j=function(){},_e=["memory"],et="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");a=_e.pop();)s[a]||(s[a]={});for(;$=et.pop();)s[$]||(s[$]=j)})(typeof window>"u"?commonjsGlobal$1:window);function getIEVersion(){var o;if(typeof document>"u")return o;for(var s=3,a=document.createElement("div"),$=a.getElementsByTagName("i");a.innerHTML="<!--[if gt IE "+ ++s+"]><i></i><![endif]-->",$[0];);return s>4?s:o}var Detection={ieVersion:getIEVersion},detection$1=Detection,detection=detection$1,_$8=utility;function error(){var o=Array.prototype.slice.call(arguments,0);o.unshift("Rollbar:"),detection.ieVersion()<=8?console.error(_$8.formatArgsAsString(o)):console.error.apply(console,o)}function info(){var o=Array.prototype.slice.call(arguments,0);o.unshift("Rollbar:"),detection.ieVersion()<=8?console.info(_$8.formatArgsAsString(o)):console.info.apply(console,o)}function log$1(){var o=Array.prototype.slice.call(arguments,0);o.unshift("Rollbar:"),detection.ieVersion()<=8?console.log(_$8.formatArgsAsString(o)):console.log.apply(console,o)}var logger$4={error,info,log:log$1};function captureUncaughtExceptions(o,s,a){if(o){var $;if(typeof s._rollbarOldOnError=="function")$=s._rollbarOldOnError;else if(o.onerror){for($=o.onerror;$._rollbarOldOnError;)$=$._rollbarOldOnError;s._rollbarOldOnError=$}s.handleAnonymousErrors();var j=function(){var _e=Array.prototype.slice.call(arguments,0);_rollbarWindowOnError(o,s,$,_e)};a&&(j._rollbarOldOnError=$),o.onerror=j}}function _rollbarWindowOnError(o,s,a,$){o._rollbarWrappedError&&($[4]||($[4]=o._rollbarWrappedError),$[5]||($[5]=o._rollbarWrappedError._rollbarContext),o._rollbarWrappedError=null);var j=s.handleUncaughtException.apply(s,$);a&&a.apply(o,$),j==="anonymous"&&(s.anonymousErrorsPending+=1)}function captureUnhandledRejections(o,s,a){if(o){typeof o._rollbarURH=="function"&&o._rollbarURH.belongsToShim&&o.removeEventListener("unhandledrejection",o._rollbarURH);var $=function(j){var _e,et,tt;try{_e=j.reason}catch{_e=void 0}try{et=j.promise}catch{et="[unhandledrejection] error getting `promise` from event"}try{tt=j.detail,!_e&&tt&&(_e=tt.reason,et=tt.promise)}catch{}_e||(_e="[unhandledrejection] error getting `reason` from event"),s&&s.handleUnhandledRejection&&s.handleUnhandledRejection(_e,et)};$.belongsToShim=a,o._rollbarURH=$,o.addEventListener("unhandledrejection",$)}}var globalSetup={captureUncaughtExceptions,captureUnhandledRejections},logger$3=logger$4,_$7=utility;function makeFetchRequest$1(o,s,a,$,j,_e){var et,tt;_$7.isFiniteNumber(_e)&&(et=new AbortController,tt=setTimeout(function(){et.abort()},_e)),fetch(s,{method:a,headers:{"Content-Type":"application/json","X-Rollbar-Access-Token":o,signal:et&&et.signal},body:$}).then(function(nt){return tt&&clearTimeout(tt),nt.json()}).then(function(nt){j(null,nt)}).catch(function(nt){logger$3.error(nt.message),j(nt)})}var fetch_1=makeFetchRequest$1,_$6=utility,logger$2=logger$4;function makeXhrRequest$1(o,s,a,$,j,_e,et){var tt;if(_e?tt=_e():tt=_createXMLHTTPObject(),!tt)return j(new Error("No way to send a request"));try{try{var nt=function(){try{if(nt&&tt.readyState===4){nt=void 0;var rt=_$6.jsonParse(tt.responseText);if(_isSuccess(tt)){j(rt.error,rt.value);return}else if(_isNormalFailure(tt)){if(tt.status===403){var st=rt.value&&rt.value.message;logger$2.error(st)}j(new Error(String(tt.status)))}else{var ot="XHR response had no status code (likely connection failure)";j(_newRetriableError(ot))}}}catch(lt){var at;lt&&lt.stack?at=lt:at=new Error(lt),j(at)}};tt.open(a,s,!0),tt.setRequestHeader&&(tt.setRequestHeader("Content-Type","application/json"),tt.setRequestHeader("X-Rollbar-Access-Token",o)),_$6.isFiniteNumber(et)&&(tt.timeout=et),tt.onreadystatechange=nt,tt.send($)}catch{if(typeof XDomainRequest<"u"){if(!window||!window.location)return j(new Error("No window available during request, unknown environment"));window.location.href.substring(0,5)==="http:"&&s.substring(0,5)==="https"&&(s="http"+s.substring(5));var it=new XDomainRequest;it.onprogress=function(){},it.ontimeout=function(){var st="Request timed out",ot="ETIMEDOUT";j(_newRetriableError(st,ot))},it.onerror=function(){j(new Error("Error during request"))},it.onload=function(){var st=_$6.jsonParse(it.responseText);j(st.error,st.value)},it.open(a,s,!0),it.send($)}else j(new Error("Cannot find a method to transport a request"))}}catch(rt){j(rt)}}function _createXMLHTTPObject(){var o=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],s,a,$=o.length;for(a=0;a<$;a++)try{s=o[a]();break}catch{}return s}function _isSuccess(o){return o&&o.status&&o.status===200}function _isNormalFailure(o){return o&&_$6.isType(o.status,"number")&&o.status>=400&&o.status<600}function _newRetriableError(o,s){var a=new Error(o);return a.code=s||"ENOTFOUND",a}var xhr=makeXhrRequest$1,_$5=utility,makeFetchRequest=fetch_1,makeXhrRequest=xhr;function Transport$1(o){this.truncation=o}Transport$1.prototype.get=function(o,s,a,$,j){(!$||!_$5.isFunction($))&&($=function(){}),_$5.addParamsAndAccessTokenToPath(o,s,a);var _e="GET",et=_$5.formatUrl(s);this._makeZoneRequest(o,et,_e,null,$,j,s.timeout,s.transport)};Transport$1.prototype.post=function(o,s,a,$,j){if((!$||!_$5.isFunction($))&&($=function(){}),!a)return $(new Error("Cannot send empty request"));var _e;if(this.truncation?_e=this.truncation.truncate(a):_e=_$5.stringify(a),_e.error)return $(_e.error);var et=_e.value,tt="POST",nt=_$5.formatUrl(s);this._makeZoneRequest(o,nt,tt,et,$,j,s.timeout,s.transport)};Transport$1.prototype.postJsonPayload=function(o,s,a,$,j){(!$||!_$5.isFunction($))&&($=function(){});var _e="POST",et=_$5.formatUrl(s);this._makeZoneRequest(o,et,_e,a,$,j,s.timeout,s.transport)};Transport$1.prototype._makeZoneRequest=function(){var o=typeof window<"u"&&window||typeof j<"u"&&j,s=o&&o.Zone&&o.Zone.current,a=Array.prototype.slice.call(arguments);if(s&&s._name==="angular"){var $=s._parent,j=this;$.run(function(){j._makeRequest.apply(void 0,a)})}else this._makeRequest.apply(void 0,a)};Transport$1.prototype._makeRequest=function(o,s,a,$,j,_e,et,tt){if(typeof RollbarProxy<"u")return _proxyRequest($,j);tt==="fetch"?makeFetchRequest(o,s,a,$,j,et):makeXhrRequest(o,s,a,$,j,_e,et)};function _proxyRequest(o,s){var a=new RollbarProxy;a.sendJsonPayload(o,function($){},function($){s(new Error($))})}var transport=Transport$1;function parse$1(o){var s={protocol:null,auth:null,host:null,path:null,hash:null,href:o,hostname:null,port:null,pathname:null,search:null,query:null},a,$;if(a=o.indexOf("//"),a!==-1?(s.protocol=o.substring(0,a),$=a+2):$=0,a=o.indexOf("@",$),a!==-1&&(s.auth=o.substring($,a),$=a+1),a=o.indexOf("/",$),a===-1){if(a=o.indexOf("?",$),a===-1)return a=o.indexOf("#",$),a===-1?s.host=o.substring($):(s.host=o.substring($,a),s.hash=o.substring(a)),s.hostname=s.host.split(":")[0],s.port=s.host.split(":")[1],s.port&&(s.port=parseInt(s.port,10)),s;s.host=o.substring($,a),s.hostname=s.host.split(":")[0],s.port=s.host.split(":")[1],s.port&&(s.port=parseInt(s.port,10)),$=a}else s.host=o.substring($,a),s.hostname=s.host.split(":")[0],s.port=s.host.split(":")[1],s.port&&(s.port=parseInt(s.port,10)),$=a;if(a=o.indexOf("#",$),a===-1?s.path=o.substring($):(s.path=o.substring($,a),s.hash=o.substring(a)),s.path){var j=s.path.split("?");s.pathname=j[0],s.query=j[1],s.search=s.query?"?"+s.query:null}return s}var url={parse:parse$1},errorStackParser={exports:{}},stackframe={exports:{}},hasRequiredStackframe;function requireStackframe(){return hasRequiredStackframe||(hasRequiredStackframe=1,function(o,s){(function(a,$){o.exports=$()})(commonjsGlobal$1,function(){function a(ct){return!isNaN(parseFloat(ct))&&isFinite(ct)}function $(ct){return ct.charAt(0).toUpperCase()+ct.substring(1)}function j(ct){return function(){return this[ct]}}var _e=["isConstructor","isEval","isNative","isToplevel"],et=["columnNumber","lineNumber"],tt=["fileName","functionName","source"],nt=["args"],it=["evalOrigin"],rt=_e.concat(et,tt,nt,it);function st(ct){if(ct)for(var ht=0;ht<rt.length;ht++)ct[rt[ht]]!==void 0&&this["set"+$(rt[ht])](ct[rt[ht]])}st.prototype={getArgs:function(){return this.args},setArgs:function(ct){if(Object.prototype.toString.call(ct)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=ct},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(ct){if(ct instanceof st)this.evalOrigin=ct;else if(ct instanceof Object)this.evalOrigin=new st(ct);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var ct=this.getFileName()||"",ht=this.getLineNumber()||"",dt=this.getColumnNumber()||"",ut=this.getFunctionName()||"";return this.getIsEval()?ct?"[eval] ("+ct+":"+ht+":"+dt+")":"[eval]:"+ht+":"+dt:ut?ut+" ("+ct+":"+ht+":"+dt+")":ct+":"+ht+":"+dt}},st.fromString=function(ht){var dt=ht.indexOf("("),ut=ht.lastIndexOf(")"),pt=ht.substring(0,dt),ft=ht.substring(dt+1,ut).split(","),mt=ht.substring(ut+1);if(mt.indexOf("@")===0)var gt=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(mt,""),bt=gt[1],St=gt[2],Nt=gt[3];return new st({functionName:pt,args:ft||void 0,fileName:bt,lineNumber:St||void 0,columnNumber:Nt||void 0})};for(var ot=0;ot<_e.length;ot++)st.prototype["get"+$(_e[ot])]=j(_e[ot]),st.prototype["set"+$(_e[ot])]=function(ct){return function(ht){this[ct]=!!ht}}(_e[ot]);for(var at=0;at<et.length;at++)st.prototype["get"+$(et[at])]=j(et[at]),st.prototype["set"+$(et[at])]=function(ct){return function(ht){if(!a(ht))throw new TypeError(ct+" must be a Number");this[ct]=Number(ht)}}(et[at]);for(var lt=0;lt<tt.length;lt++)st.prototype["get"+$(tt[lt])]=j(tt[lt]),st.prototype["set"+$(tt[lt])]=function(ct){return function(ht){this[ct]=String(ht)}}(tt[lt]);return st})}(stackframe)),stackframe.exports}(function(o,s){(function(a,$){o.exports=$(requireStackframe())})(commonjsGlobal$1,function($){var j=/(^|@)\S+:\d+/,_e=/^\s*at .*(\S+:\d+|\(native\))/m,et=/^(eval@)?(\[native code])?$/;return{parse:function(nt){if(typeof nt.stacktrace<"u"||typeof nt["opera#sourceloc"]<"u")return this.parseOpera(nt);if(nt.stack&&nt.stack.match(_e))return this.parseV8OrIE(nt);if(nt.stack)return this.parseFFOrSafari(nt);throw new Error("Cannot parse given Error object")},extractLocation:function(nt){if(nt.indexOf(":")===-1)return[nt];var it=/(.+?)(?::(\d+))?(?::(\d+))?$/,rt=it.exec(nt.replace(/[()]/g,""));return[rt[1],rt[2]||void 0,rt[3]||void 0]},parseV8OrIE:function(nt){var it=nt.stack.split(`
`).filter(function(rt){return!!rt.match(_e)},this);return it.map(function(rt){rt.indexOf("(eval ")>-1&&(rt=rt.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var st=rt.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),ot=st.match(/ (\(.+\)$)/);st=ot?st.replace(ot[0],""):st;var at=this.extractLocation(ot?ot[1]:st),lt=ot&&st||void 0,ct=["eval","<anonymous>"].indexOf(at[0])>-1?void 0:at[0];return new $({functionName:lt,fileName:ct,lineNumber:at[1],columnNumber:at[2],source:rt})},this)},parseFFOrSafari:function(nt){var it=nt.stack.split(`
`).filter(function(rt){return!rt.match(et)},this);return it.map(function(rt){if(rt.indexOf(" > eval")>-1&&(rt=rt.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),rt.indexOf("@")===-1&&rt.indexOf(":")===-1)return new $({functionName:rt});var st=/((.*".+"[^@]*)?[^@]*)(?:@)/,ot=rt.match(st),at=ot&&ot[1]?ot[1]:void 0,lt=this.extractLocation(rt.replace(st,""));return new $({functionName:at,fileName:lt[0],lineNumber:lt[1],columnNumber:lt[2],source:rt})},this)},parseOpera:function(nt){return!nt.stacktrace||nt.message.indexOf(`
`)>-1&&nt.message.split(`
`).length>nt.stacktrace.split(`
`).length?this.parseOpera9(nt):nt.stack?this.parseOpera11(nt):this.parseOpera10(nt)},parseOpera9:function(nt){for(var it=/Line (\d+).*script (?:in )?(\S+)/i,rt=nt.message.split(`
`),st=[],ot=2,at=rt.length;ot<at;ot+=2){var lt=it.exec(rt[ot]);lt&&st.push(new $({fileName:lt[2],lineNumber:lt[1],source:rt[ot]}))}return st},parseOpera10:function(nt){for(var it=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,rt=nt.stacktrace.split(`
`),st=[],ot=0,at=rt.length;ot<at;ot+=2){var lt=it.exec(rt[ot]);lt&&st.push(new $({functionName:lt[3]||void 0,fileName:lt[2],lineNumber:lt[1],source:rt[ot]}))}return st},parseOpera11:function(nt){var it=nt.stack.split(`
`).filter(function(rt){return!!rt.match(j)&&!rt.match(/^Error created at/)},this);return it.map(function(rt){var st=rt.split("@"),ot=this.extractLocation(st.pop()),at=st.shift()||"",lt=at.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,ct;at.match(/\(([^)]*)\)/)&&(ct=at.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var ht=ct===void 0||ct==="[arguments not available]"?void 0:ct.split(",");return new $({functionName:lt,args:ht,fileName:ot[0],lineNumber:ot[1],columnNumber:ot[2],source:rt})},this)}}})})(errorStackParser);var errorStackParserExports=errorStackParser.exports,ErrorStackParser=errorStackParserExports,UNKNOWN_FUNCTION$1="?",ERR_CLASS_REGEXP=new RegExp("^(([a-zA-Z0-9-_$ ]*): *)?(Uncaught )?([a-zA-Z0-9-_$ ]*): ");function guessFunctionName(){return UNKNOWN_FUNCTION$1}function gatherContext(){return null}function Frame(o){var s={};return s._stackFrame=o,s.url=o.fileName,s.line=o.lineNumber,s.func=o.functionName,s.column=o.columnNumber,s.args=o.args,s.context=gatherContext(),s}function Stack(o,s){function a(){var $=[];s=s||0;try{$=ErrorStackParser.parse(o)}catch{$=[]}for(var j=[],_e=s;_e<$.length;_e++)j.push(new Frame($[_e]));return j}return{stack:a(),message:o.message,name:_mostSpecificErrorName(o),rawStack:o.stack,rawException:o}}function parse(o,s){var a=o;if(a.nested||a.cause){for(var $=[];a;)$.push(new Stack(a,s)),a=a.nested||a.cause,s=0;return $[0].traceChain=$,$[0]}else return new Stack(a,s)}function guessErrorClass(o){if(!o||!o.match)return["Unknown error. There was no error message to display.",""];var s=o.match(ERR_CLASS_REGEXP),a="(unknown)";return s&&(a=s[s.length-1],o=o.replace((s[s.length-2]||"")+a+":",""),o=o.replace(/(^[\s]+|[\s]+$)/g,"")),[a,o]}function _mostSpecificErrorName(o){var s=o.name&&o.name.length&&o.name,a=o.constructor.name&&o.constructor.name.length&&o.constructor.name;return!s||!a?s||a:s==="Error"?a:s}var errorParser$2={guessFunctionName,guessErrorClass,gatherContext,parse,Stack,Frame},_$4=utility,errorParser$1=errorParser$2,logger$1=logger$4;function handleDomException(o,s,a){if(o.err&&errorParser$1.Stack(o.err).name==="DOMException"){var $=new Error;$.name=o.err.name,$.message=o.err.message,$.stack=o.err.stack,$.nested=o.err,o.err=$}a(null,o)}function handleItemWithError(o,s,a){if(o.data=o.data||{},o.err)try{o.stackInfo=o.err._savedStackTrace||errorParser$1.parse(o.err,o.skipFrames),s.addErrorContext&&addErrorContext(o)}catch($){logger$1.error("Error while parsing the error object.",$);try{o.message=o.err.message||o.err.description||o.message||String(o.err)}catch(j){o.message=String(o.err)||String(j)}delete o.err}a(null,o)}function addErrorContext(o){var s=[],a=o.err;for(s.push(a);a.nested||a.cause;)a=a.nested||a.cause,s.push(a);_$4.addErrorContext(o,s)}function ensureItemHasSomethingToSay(o,s,a){!o.message&&!o.stackInfo&&!o.custom&&a(new Error("No message, stack info, or custom data"),null),a(null,o)}function addBaseInfo(o,s,a){var $=s.payload&&s.payload.environment||s.environment;o.data=_$4.merge(o.data,{environment:$,level:o.level,endpoint:s.endpoint,platform:"browser",framework:"browser-js",language:"javascript",server:{},uuid:o.uuid,notifier:{name:"rollbar-browser-js",version:s.version},custom:o.custom}),a(null,o)}function addRequestInfo(o){return function(s,a,$){var j={};o&&o.location&&(j.url=o.location.href,j.query_string=o.location.search);var _e="$remote_ip";a.captureIp?a.captureIp!==!0&&(_e+="_anonymize"):_e=null,_e&&(j.user_ip=_e),Object.keys(j).length>0&&_$4.set(s,"data.request",j),$(null,s)}}function addClientInfo(o){return function(s,a,$){if(!o)return $(null,s);var j=o.navigator||{},_e=o.screen||{};_$4.set(s,"data.client",{runtime_ms:s.timestamp-o._rollbarStartTime,timestamp:Math.round(s.timestamp/1e3),javascript:{browser:j.userAgent,language:j.language,cookie_enabled:j.cookieEnabled,screen:{width:_e.width,height:_e.height}}}),$(null,s)}}function addPluginInfo(o){return function(s,a,$){if(!o||!o.navigator)return $(null,s);for(var j=[],_e=o.navigator.plugins||[],et,tt=0,nt=_e.length;tt<nt;++tt)et=_e[tt],j.push({name:et.name,description:et.description});_$4.set(s,"data.client.javascript.plugins",j),$(null,s)}}function addBody(o,s,a){o.stackInfo?o.stackInfo.traceChain?addBodyTraceChain(o,s,a):addBodyTrace(o,s,a):addBodyMessage(o,s,a)}function addBodyMessage(o,s,a){var $=o.message,j=o.custom;$||($="Item sent with null or missing arguments.");var _e={body:$};j&&(_e.extra=_$4.merge(j)),_$4.set(o,"data.body",{message:_e}),a(null,o)}function stackFromItem(o){var s=o.stackInfo.stack;return s&&s.length===0&&o._unhandledStackInfo&&o._unhandledStackInfo.stack&&(s=o._unhandledStackInfo.stack),s}function addBodyTraceChain(o,s,a){for(var $=o.stackInfo.traceChain,j=[],_e=$.length,et=0;et<_e;et++){var tt=buildTrace(o,$[et],s);j.push(tt)}_$4.set(o,"data.body",{trace_chain:j}),a(null,o)}function addBodyTrace(o,s,a){var $=stackFromItem(o);if($){var j=buildTrace(o,o.stackInfo,s);_$4.set(o,"data.body",{trace:j}),a(null,o)}else{var _e=o.stackInfo,et=errorParser$1.guessErrorClass(_e.message),tt=errorClass(_e,et[0],s),nt=et[1];o.message=tt+": "+nt,addBodyMessage(o,s,a)}}function buildTrace(o,s,a){var $=o&&o.data.description,j=o&&o.custom,_e=stackFromItem(o),et=errorParser$1.guessErrorClass(s.message),tt=errorClass(s,et[0],a),nt=et[1],it={exception:{class:tt,message:nt}};if($&&(it.exception.description=$),_e){_e.length===0&&(it.exception.stack=s.rawStack,it.exception.raw=String(s.rawException));var rt,st,ot,at,lt,ct,ht,dt;for(it.frames=[],ht=0;ht<_e.length;++ht)rt=_e[ht],st={filename:rt.url?_$4.sanitizeUrl(rt.url):"(unknown)",lineno:rt.line||null,method:!rt.func||rt.func==="?"?"[anonymous]":rt.func,colno:rt.column},a.sendFrameUrl&&(st.url=rt.url),!(st.method&&st.method.endsWith&&st.method.endsWith("_rollbar_wrapped"))&&(ot=at=lt=null,ct=rt.context?rt.context.length:0,ct&&(dt=Math.floor(ct/2),at=rt.context.slice(0,dt),ot=rt.context[dt],lt=rt.context.slice(dt)),ot&&(st.code=ot),(at||lt)&&(st.context={},at&&at.length&&(st.context.pre=at),lt&&lt.length&&(st.context.post=lt)),rt.args&&(st.args=rt.args),it.frames.push(st));it.frames.reverse(),j&&(it.extra=_$4.merge(j))}return it}function errorClass(o,s,a){return o.name?o.name:a.guessErrorClass?s:"(unknown)"}function addScrubber(o){return function(s,a,$){if(o){var j=a.scrubFields||[],_e=a.scrubPaths||[];s.data=o(s.data,j,_e)}$(null,s)}}var transforms$2={handleDomException,handleItemWithError,ensureItemHasSomethingToSay,addBaseInfo,addRequestInfo,addClientInfo,addPluginInfo,addBody,addScrubber},_$3=utility;function itemToPayload(o,s,a){var $=o.data;o._isUncaught&&($._isUncaught=!0),o._originalArgs&&($._originalArgs=o._originalArgs),a(null,$)}function addPayloadOptions(o,s,a){var $=s.payload||{};$.body&&delete $.body,o.data=_$3.merge(o.data,$),a(null,o)}function addTelemetryData(o,s,a){o.telemetryEvents&&_$3.set(o,"data.body.telemetry",o.telemetryEvents),a(null,o)}function addMessageWithError(o,s,a){if(!o.message){a(null,o);return}var $="data.body.trace_chain.0",j=_$3.get(o,$);if(j||($="data.body.trace",j=_$3.get(o,$)),j){if(!(j.exception&&j.exception.description)){_$3.set(o,$+".exception.description",o.message),a(null,o);return}var _e=_$3.get(o,$+".extra")||{},et=_$3.merge(_e,{message:o.message});_$3.set(o,$+".extra",et)}a(null,o)}function userTransform(o){return function(s,a,$){var j=_$3.merge(s),_e=null;try{_$3.isFunction(a.transform)&&(_e=a.transform(j.data,s))}catch(et){a.transform=null,o.error("Error while calling custom transform() function. Removing custom transform().",et),$(null,s);return}_$3.isPromise(_e)?_e.then(function(et){et&&(j.data=et),$(null,j)},function(et){$(et,s)}):$(null,j)}}function addConfigToPayload(o,s,a){if(!s.sendConfig)return a(null,o);var $="_rollbarConfig",j=_$3.get(o,"data.custom")||{};j[$]=s,o.data.custom=j,a(null,o)}function addFunctionOption(o,s){_$3.isFunction(o[s])&&(o[s]=o[s].toString())}function addConfiguredOptions(o,s,a){var $=s._configuredOptions;addFunctionOption($,"transform"),addFunctionOption($,"checkIgnore"),addFunctionOption($,"onSendCallback"),delete $.accessToken,o.data.notifier.configured_options=$,a(null,o)}function addDiagnosticKeys(o,s,a){var $=_$3.merge(o.notifier.client.notifier.diagnostic,o.diagnostic);if(_$3.get(o,"err._isAnonymous")&&($.is_anonymous=!0),o._isUncaught&&($.is_uncaught=o._isUncaught),o.err)try{$.raw_error={message:o.err.message,name:o.err.name,constructor_name:o.err.constructor&&o.err.constructor.name,filename:o.err.fileName,line:o.err.lineNumber,column:o.err.columnNumber,stack:o.err.stack}}catch(j){$.raw_error={failed:String(j)}}o.data.notifier.diagnostic=_$3.merge(o.data.notifier.diagnostic,$),a(null,o)}var transforms$1={itemToPayload,addPayloadOptions,addTelemetryData,addMessageWithError,userTransform,addConfigToPayload,addConfiguredOptions,addDiagnosticKeys},_$2=utility;function checkIgnore(o,s){return _$2.get(s,"plugins.jquery.ignoreAjaxErrors")?!_$2.get(o,"body.message.extra.isAjax"):!0}var predicates$2={checkIgnore},_$1=utility;function checkLevel(o,s){var a=o.level,$=_$1.LEVELS[a]||0,j=s.reportLevel,_e=_$1.LEVELS[j]||0;return!($<_e)}function userCheckIgnore(o){return function(s,a){var $=!!s._isUncaught;delete s._isUncaught;var j=s._originalArgs;delete s._originalArgs;try{_$1.isFunction(a.onSendCallback)&&a.onSendCallback($,j,s)}catch(_e){a.onSendCallback=null,o.error("Error while calling onSendCallback, removing",_e)}try{if(_$1.isFunction(a.checkIgnore)&&a.checkIgnore($,j,s))return!1}catch(_e){a.checkIgnore=null,o.error("Error while calling custom checkIgnore(), removing",_e)}return!0}}function urlIsNotBlockListed(o){return function(s,a){return!urlIsOnAList(s,a,"blocklist",o)}}function urlIsSafeListed(o){return function(s,a){return urlIsOnAList(s,a,"safelist",o)}}function matchFrames(o,s,a){if(!o)return!a;var $=o.frames;if(!$||$.length===0)return!a;for(var j,_e,et,tt,nt=s.length,it=$.length,rt=0;rt<it;rt++){if(j=$[rt],_e=j.filename,!_$1.isType(_e,"string"))return!a;for(var st=0;st<nt;st++)if(et=s[st],tt=new RegExp(et),tt.test(_e))return!0}return!1}function urlIsOnAList(o,s,a,$){var j=!1;a==="blocklist"&&(j=!0);var _e,et;try{if(_e=j?s.hostBlockList:s.hostSafeList,et=_$1.get(o,"body.trace_chain")||[_$1.get(o,"body.trace")],!_e||_e.length===0||et.length===0||!et[0])return!j;for(var tt=et.length,nt=0;nt<tt;nt++)if(matchFrames(et[nt],_e,j))return!0}catch(rt){j?s.hostBlockList=null:s.hostSafeList=null;var it=j?"hostBlockList":"hostSafeList";return $.error("Error while reading your configuration's "+it+" option. Removing custom "+it+".",rt),!j}return!1}function messageIsIgnored(o){return function(s,a){var $,j,_e,et,tt,nt,it;try{if(tt=!1,_e=a.ignoredMessages,!_e||_e.length===0||(it=messagesFromItem(s),it.length===0))return!0;for(et=_e.length,$=0;$<et;$++)for(nt=new RegExp(_e[$],"gi"),j=0;j<it.length;j++)if(tt=nt.test(it[j]),tt)return!1}catch{a.ignoredMessages=null,o.error("Error while reading your configuration's ignoredMessages option. Removing custom ignoredMessages.")}return!0}}function messagesFromItem(o){var s=o.body,a=[];if(s.trace_chain)for(var $=s.trace_chain,j=0;j<$.length;j++){var _e=$[j];a.push(_$1.get(_e,"exception.message"))}return s.trace&&a.push(_$1.get(s,"trace.exception.message")),s.message&&a.push(_$1.get(s,"message.body")),a}var predicates$1={checkLevel,userCheckIgnore,urlIsNotBlockListed,urlIsSafeListed,messageIsIgnored},defaults$1,hasRequiredDefaults;function requireDefaults(){return hasRequiredDefaults||(hasRequiredDefaults=1,defaults$1={version:"2.26.2",endpoint:"api.rollbar.com/api/1/item/",logLevel:"debug",reportLevel:"debug",uncaughtErrorLevel:"error",maxItems:0,itemsPerMin:60}),defaults$1}var scrubFields$1,hasRequiredScrubFields;function requireScrubFields(){return hasRequiredScrubFields||(hasRequiredScrubFields=1,scrubFields$1={scrubFields:["pw","pass","passwd","password","secret","confirm_password","confirmPassword","password_confirmation","passwordConfirmation","access_token","accessToken","X-Rollbar-Access-Token","secret_key","secretKey","secretToken","cc-number","card number","cardnumber","cardnum","ccnum","ccnumber","cc num","creditcardnumber","credit card number","newcreditcardnumber","new credit card","creditcardno","credit card no","card#","card #","cc-csc","cvc","cvc2","cvv2","ccv2","security code","card verification","name on credit card","name on card","nameoncard","cardholder","card holder","name des karteninhabers","ccname","card type","cardtype","cc type","cctype","payment type","expiration date","expirationdate","expdate","cc-exp","ccmonth","ccyear"]}),scrubFields$1}var Client=rollbar,_=utility,API=api$1,logger=logger$4,globals=globalSetup,Transport=transport,urllib=url,transforms=transforms$2,sharedTransforms=transforms$1,predicates=predicates$2,sharedPredicates=predicates$1,errorParser=errorParser$2;function Rollbar(o,s){this.options=_.handleOptions(defaultOptions$1,o,null,logger),this.options._configuredOptions=o;var a=this.components.telemeter,$=this.components.instrumenter,j=this.components.polyfillJSON;this.wrapGlobals=this.components.wrapGlobals,this.scrub=this.components.scrub;var _e=this.components.truncation,et=new Transport(_e),tt=new API(this.options,et,urllib,_e);a&&(this.telemeter=new a(this.options)),this.client=s||new Client(this.options,tt,logger,this.telemeter,"browser");var nt=_gWindow(),it=typeof document<"u"&&document;this.isChrome=nt.chrome&&nt.chrome.runtime,this.anonymousErrorsPending=0,addTransformsToNotifier(this.client.notifier,this,nt),addPredicatesToQueue(this.client.queue),this.setupUnhandledCapture(),$&&(this.instrumenter=new $(this.options,this.client.telemeter,this,nt,it),this.instrumenter.instrument()),_.setupJSON(j),this.rollbar=this}var _instance=null;Rollbar.init=function(o,s){return _instance?_instance.global(o).configure(o):(_instance=new Rollbar(o,s),_instance)};Rollbar.prototype.components={};Rollbar.setComponents=function(o){Rollbar.prototype.components=o};function handleUninitialized(o){var s="Rollbar is not initialized";logger.error(s),o&&o(new Error(s))}Rollbar.prototype.global=function(o){return this.client.global(o),this};Rollbar.global=function(o){if(_instance)return _instance.global(o);handleUninitialized()};Rollbar.prototype.configure=function(o,s){var a=this.options,$={};return s&&($={payload:s}),this.options=_.handleOptions(a,o,$,logger),this.options._configuredOptions=_.handleOptions(a._configuredOptions,o,$),this.client.configure(this.options,s),this.instrumenter&&this.instrumenter.configure(this.options),this.setupUnhandledCapture(),this};Rollbar.configure=function(o,s){if(_instance)return _instance.configure(o,s);handleUninitialized()};Rollbar.prototype.lastError=function(){return this.client.lastError};Rollbar.lastError=function(){if(_instance)return _instance.lastError();handleUninitialized()};Rollbar.prototype.log=function(){var o=this._createItem(arguments),s=o.uuid;return this.client.log(o),{uuid:s}};Rollbar.log=function(){if(_instance)return _instance.log.apply(_instance,arguments);var o=_getFirstFunction(arguments);handleUninitialized(o)};Rollbar.prototype.debug=function(){var o=this._createItem(arguments),s=o.uuid;return this.client.debug(o),{uuid:s}};Rollbar.debug=function(){if(_instance)return _instance.debug.apply(_instance,arguments);var o=_getFirstFunction(arguments);handleUninitialized(o)};Rollbar.prototype.info=function(){var o=this._createItem(arguments),s=o.uuid;return this.client.info(o),{uuid:s}};Rollbar.info=function(){if(_instance)return _instance.info.apply(_instance,arguments);var o=_getFirstFunction(arguments);handleUninitialized(o)};Rollbar.prototype.warn=function(){var o=this._createItem(arguments),s=o.uuid;return this.client.warn(o),{uuid:s}};Rollbar.warn=function(){if(_instance)return _instance.warn.apply(_instance,arguments);var o=_getFirstFunction(arguments);handleUninitialized(o)};Rollbar.prototype.warning=function(){var o=this._createItem(arguments),s=o.uuid;return this.client.warning(o),{uuid:s}};Rollbar.warning=function(){if(_instance)return _instance.warning.apply(_instance,arguments);var o=_getFirstFunction(arguments);handleUninitialized(o)};Rollbar.prototype.error=function(){var o=this._createItem(arguments),s=o.uuid;return this.client.error(o),{uuid:s}};Rollbar.error=function(){if(_instance)return _instance.error.apply(_instance,arguments);var o=_getFirstFunction(arguments);handleUninitialized(o)};Rollbar.prototype.critical=function(){var o=this._createItem(arguments),s=o.uuid;return this.client.critical(o),{uuid:s}};Rollbar.critical=function(){if(_instance)return _instance.critical.apply(_instance,arguments);var o=_getFirstFunction(arguments);handleUninitialized(o)};Rollbar.prototype.buildJsonPayload=function(o){return this.client.buildJsonPayload(o)};Rollbar.buildJsonPayload=function(){if(_instance)return _instance.buildJsonPayload.apply(_instance,arguments);handleUninitialized()};Rollbar.prototype.sendJsonPayload=function(o){return this.client.sendJsonPayload(o)};Rollbar.sendJsonPayload=function(){if(_instance)return _instance.sendJsonPayload.apply(_instance,arguments);handleUninitialized()};Rollbar.prototype.setupUnhandledCapture=function(){var o=_gWindow();this.unhandledExceptionsInitialized||(this.options.captureUncaught||this.options.handleUncaughtExceptions)&&(globals.captureUncaughtExceptions(o,this),this.wrapGlobals&&this.options.wrapGlobalEventHandlers&&this.wrapGlobals(o,this),this.unhandledExceptionsInitialized=!0),this.unhandledRejectionsInitialized||(this.options.captureUnhandledRejections||this.options.handleUnhandledRejections)&&(globals.captureUnhandledRejections(o,this),this.unhandledRejectionsInitialized=!0)};Rollbar.prototype.handleUncaughtException=function(o,s,a,$,j,_e){if(!(!this.options.captureUncaught&&!this.options.handleUncaughtExceptions)){if(this.options.inspectAnonymousErrors&&this.isChrome&&j===null&&s==="")return"anonymous";var et,tt=_.makeUnhandledStackInfo(o,s,a,$,j,"onerror","uncaught exception",errorParser);_.isError(j)?(et=this._createItem([o,j,_e]),et._unhandledStackInfo=tt):_.isError(s)?(et=this._createItem([o,s,_e]),et._unhandledStackInfo=tt):(et=this._createItem([o,_e]),et.stackInfo=tt),et.level=this.options.uncaughtErrorLevel,et._isUncaught=!0,this.client.log(et)}};Rollbar.prototype.handleAnonymousErrors=function(){if(!this.options.inspectAnonymousErrors||!this.isChrome)return;var o=this;function s(a,$){if(o.options.inspectAnonymousErrors&&o.anonymousErrorsPending){if(o.anonymousErrorsPending-=1,!a)return;a._isAnonymous=!0,o.handleUncaughtException(a.message,null,null,null,a)}return a.stack}try{Error.prepareStackTrace=s}catch(a){this.options.inspectAnonymousErrors=!1,this.error("anonymous error handler failed",a)}};Rollbar.prototype.handleUnhandledRejection=function(o,s){if(!(!this.options.captureUnhandledRejections&&!this.options.handleUnhandledRejections)){var a="unhandled rejection was null or undefined!";if(o)if(o.message)a=o.message;else{var $=_.stringify(o);$.value&&(a=$.value)}var j=o&&o._rollbarContext||s&&s._rollbarContext,_e;_.isError(o)?_e=this._createItem([a,o,j]):(_e=this._createItem([a,o,j]),_e.stackInfo=_.makeUnhandledStackInfo(a,"",0,0,null,"unhandledrejection","",errorParser)),_e.level=this.options.uncaughtErrorLevel,_e._isUncaught=!0,_e._originalArgs=_e._originalArgs||[],_e._originalArgs.push(s),this.client.log(_e)}};Rollbar.prototype.wrap=function(o,s,a){try{var $;if(_.isFunction(s)?$=s:$=function(){return s||{}},!_.isFunction(o)||o._isWrap)return o;if(!o._rollbar_wrapped&&(o._rollbar_wrapped=function(){a&&_.isFunction(a)&&a.apply(this,arguments);try{return o.apply(this,arguments)}catch(et){var _e=et;throw _e&&window._rollbarWrappedError!==_e&&(_.isType(_e,"string")&&(_e=new String(_e)),_e._rollbarContext=$()||{},_e._rollbarContext._wrappedSource=o.toString(),window._rollbarWrappedError=_e),_e}},o._rollbar_wrapped._isWrap=!0,o.hasOwnProperty))for(var j in o)o.hasOwnProperty(j)&&j!=="_rollbar_wrapped"&&(o._rollbar_wrapped[j]=o[j]);return o._rollbar_wrapped}catch{return o}};Rollbar.wrap=function(o,s){if(_instance)return _instance.wrap(o,s);handleUninitialized()};Rollbar.prototype.captureEvent=function(){var o=_.createTelemetryEvent(arguments);return this.client.captureEvent(o.type,o.metadata,o.level)};Rollbar.captureEvent=function(){if(_instance)return _instance.captureEvent.apply(_instance,arguments);handleUninitialized()};Rollbar.prototype.captureDomContentLoaded=function(o,s){return s||(s=new Date),this.client.captureDomContentLoaded(s)};Rollbar.prototype.captureLoad=function(o,s){return s||(s=new Date),this.client.captureLoad(s)};function addTransformsToNotifier(o,s,a){o.addTransform(transforms.handleDomException).addTransform(transforms.handleItemWithError).addTransform(transforms.ensureItemHasSomethingToSay).addTransform(transforms.addBaseInfo).addTransform(transforms.addRequestInfo(a)).addTransform(transforms.addClientInfo(a)).addTransform(transforms.addPluginInfo(a)).addTransform(transforms.addBody).addTransform(sharedTransforms.addMessageWithError).addTransform(sharedTransforms.addTelemetryData).addTransform(sharedTransforms.addConfigToPayload).addTransform(transforms.addScrubber(s.scrub)).addTransform(sharedTransforms.addPayloadOptions).addTransform(sharedTransforms.userTransform(logger)).addTransform(sharedTransforms.addConfiguredOptions).addTransform(sharedTransforms.addDiagnosticKeys).addTransform(sharedTransforms.itemToPayload)}function addPredicatesToQueue(o){o.addPredicate(sharedPredicates.checkLevel).addPredicate(predicates.checkIgnore).addPredicate(sharedPredicates.userCheckIgnore(logger)).addPredicate(sharedPredicates.urlIsNotBlockListed(logger)).addPredicate(sharedPredicates.urlIsSafeListed(logger)).addPredicate(sharedPredicates.messageIsIgnored(logger))}Rollbar.prototype.loadFull=function(){logger.info("Unexpected Rollbar.loadFull() called on a Notifier instance. This can happen when Rollbar is loaded multiple times.")};Rollbar.prototype._createItem=function(o){return _.createItem(o,logger,this)};function _getFirstFunction(o){for(var s=0,a=o.length;s<a;++s)if(_.isFunction(o[s]))return o[s]}function _gWindow(){return typeof window<"u"&&window||typeof self<"u"&&self}var defaults=requireDefaults(),scrubFields=requireScrubFields(),defaultOptions$1={version:defaults.version,scrubFields:scrubFields.scrubFields,logLevel:defaults.logLevel,reportLevel:defaults.reportLevel,uncaughtErrorLevel:defaults.uncaughtErrorLevel,endpoint:defaults.endpoint,verbose:!1,enabled:!0,transmit:!0,sendConfig:!1,includeItemsInTelemetry:!0,captureIp:!0,inspectAnonymousErrors:!0,ignoreDuplicateErrors:!0,wrapGlobalEventHandlers:!1},core=Rollbar;const Rollbar$1=getDefaultExportFromCjs(core),sendErrorLog=({errorMessage:o,errorObject:s})=>async(a,$)=>{try{configureRollbar($().user.currentUser).error(o,{errorObject:s,currentState:$()})}catch(j){console.log("error in the error logger",j)}},configureRollbar=(o,s)=>(s||(s=new Rollbar$1({accessToken:"999fc2a6695f4155bd81d8eca3617147"})),s.configure({captureUncaught:!0,captureUnhandledRejections:!0,ignoredMessages:ROLLBAR_IGNORE_MESSAGES,checkIgnore:function(a,$,j){try{return!!j.body.trace.exception.description.includes("https://admin.typeform.com/")}catch{return!1}},transform:a=>{var nt;var $=(nt=a==null?void 0:a.body)==null?void 0:nt.trace,j=/^(?:capacitor|http):\/\/localhost(.*)/;if($&&$.frames)for(var _e=0;_e<$.frames.length;_e++){var et=$.frames[_e].filename;if(et){var tt=et.match(j);tt&&($.frames[_e].filename=`${WEB_APP_URL}`+tt[1])}}},payload:{person:o?{id:o.id,username:o.name,email:o.email}:{},environment:rollbarEnvironment(),client:rollbarClient()}}),s),rollbarEnvironment=()=>"production",rollbarClient=()=>({javascript:{source_map_enabled:!0,code_version:"768e122882f9a9d48aaa8b453b4729eb5ee257ac"}}),apiHeaders=o=>({Accept:"application/json","Content-Type":"application/json","X-LINQ-API-TOKEN":o.auth.apiToken,"X-GA":API_SECRET,...ENVIRONMENT==="development"});function handleErrors(o){if(!o.ok)throw Error(o.bodyUsed?o.json().errors:o.statusText);return o}function handleErrorsAndJSON(o){return o.ok===!0?o:o.json().then(s=>{var j;const a=(j=s.error)!=null&&j.messages?s.error.messages.join(": "):null,$=Object.assign({},s,{error:!0,status:o.status,statusText:o.statusText,message:a});return Promise.reject($)})}function createGetCurrentUserRequest(){return{type:"CREATE_GET_CURRENT_USER_REQUEST"}}function receivedGetCurrentUserResponse(o){return{type:"RECEIVED_GET_CURRENT_USER_RESPONSE",json:o}}function logOutCurrentUserLocal(){return{type:"LOG_OUT_CURRENT_USER"}}const logOutCurrentUserFetching=()=>({type:FETCHING(LOG_OUT_CURRENT_USER)}),logOutCurrentUserSuccess=()=>({type:SUCCESS(LOG_OUT_CURRENT_USER)}),logOutCurrentUserFailure=()=>({type:FAILURE(LOG_OUT_CURRENT_USER)});function logOutCurrentUser(){return async(o,s)=>{const a=await Device.getId(),$=s().user.currentUser;if(!$||!$.uuid)return;const j=$.uuid;return o(logOutCurrentUserLocal()),o(logOutCurrentUserFetching()),fetch$1(`${BASE_API_URL}/api/v3/users/${j}/log_out`,{method:API_METHODS.POST,headers:apiHeaders(s()),body:JSON.stringify({device_uuid:a.identifier})}).then(handleErrors).then(_e=>{o(logOutCurrentUserSuccess())}).catch(_e=>{o(logOutCurrentUserFailure())})}}function getCurrentUser(o,s){return(a,$)=>(a(createGetCurrentUserRequest()),fetch$1(`${BASE_API_URL}/api/v1/users/${s}`,{method:API_METHODS.GET,headers:apiHeaders($())}).then(handleErrors).then(j=>j.json()).then(j=>{a(receivedGetCurrentUserResponse(j))}))}function refreshCurrentUser(){return(o,s)=>{const a=s().user.currentUser;a&&a.uuid&&o(getCurrentUser(null,a.uuid))}}function setCurrentUser(o){return{type:"SET_CURRENT_USER",user:o}}function setPendingConnection(o){return{type:"SET_PENDING_CONNECTION",set:o}}const getLinqPayDetailsRequestStarted=()=>({type:FETCHING(LINQ_PAY_DETAILS)}),receivedLinqPayDetailsResponse=o=>({type:SUCCESS(LINQ_PAY_DETAILS),json:o}),receivedLinqPayDetailsError=()=>({type:FAILURE(LINQ_PAY_DETAILS)}),fetchLinqPayDetails=()=>(o,s)=>(o(getLinqPayDetailsRequestStarted()),fetch$1(`${BASE_API_URL}/api/v1/users/linq_pay_details`,{method:API_METHODS.GET,headers:apiHeaders(s())}).then(handleErrors).then(a=>a.json()).then(a=>{o(receivedLinqPayDetailsResponse(a))}).catch(a=>{o(sendErrorLog({errorMessage:"error loading linq pay details",errorObject:a})),o(receivedLinqPayDetailsError())})),createStripeAccountLink=()=>(o,s)=>{o({type:FETCHING(CREATE_STRIPE_ACCOUNT_LINK)});const a=WEB_APP_URL;return fetch$1(`${BASE_API_URL}/api/v1/stripe/create_account_link`,{method:API_METHODS.POST,headers:apiHeaders(s()),body:JSON.stringify({return_url:`${a}/pay/settings/stripe_auth_success`,refresh_url:`${a}/pay/settings`})}).then(handleErrors).then($=>$.json()).then($=>{Browser.open({url:$.account_link.url}),o({type:SUCCESS(CREATE_STRIPE_ACCOUNT_LINK),account_link:$.account_link})}).catch($=>{o({type:FAILURE(CREATE_STRIPE_ACCOUNT_LINK)}),o(sendErrorLog({errorMessage:"error creating stripe account link",errorObject:$}))})},getLinqPayChargesList=()=>(o,s)=>(o({type:FETCHING(GET_LINQ_PAY_CHARGES_LIST)}),fetch$1(`${BASE_API_URL}/api/v1/stripe/linq_pay_charges_list`,{method:API_METHODS.GET,headers:apiHeaders(s())}).then(handleErrors).then(a=>a.json()).then(a=>{o({type:SUCCESS(GET_LINQ_PAY_CHARGES_LIST),charges:a.charges})}).catch(a=>{o({type:FAILURE(GET_LINQ_PAY_CHARGES_LIST)}),o(sendErrorLog({errorMessage:"error getting connected account charges",errorObject:a}))})),saveLinqPayRecord=(o,s)=>(a,$)=>(a({type:FETCHING(SAVE_LINQ_PAY_RECORD)}),fetch$1(`${BASE_API_URL}/api/v1/stripe/linq_pay_record`,{method:API_METHODS.POST,headers:apiHeaders($()),body:JSON.stringify({checkout_session_id:s,paid_to_card_code:o})}).then(handleErrors).then(j=>j.json()).then(j=>{a({type:SUCCESS(SAVE_LINQ_PAY_RECORD),json:j})}).catch(j=>{a({type:FAILURE(SAVE_LINQ_PAY_RECORD)}),a(sendErrorLog({errorMessage:"error saving linq pay record",errorObject:j}))})),getCardsRequestStarted=()=>({type:"GET_CARDS_REQUEST_STARTED"}),getCardsResponseReceived=o=>({type:"GET_CARDS_RESPONSE_RECEIVED",cards:o}),getCards=(o=null)=>async(s,a)=>(o||(o=a().user.currentUser.uuid),s(getCardsRequestStarted()),fetch(`${BASE_API_URL}/api/v1/users/${o}/cards`,{method:API_METHODS.GET,headers:apiHeaders(a())}).then(handleErrors).then($=>$.json()).then($=>{s(getCardsResponseReceived($.cards))}).catch($=>console.log("Error getting user cards",$))),getCardUnactivatedAliasResponseReceived=o=>({type:"GET_CARD_UNACTIVATED_ALIAS_RESPONSE_RECEIVED",json:o});function resetAliasLocalState(){return{type:"RESET_ALIAS_LOCAL_STATE"}}const activateCardAlias=o=>({type:ACTIVATE_CARD_ALIAS,aliasCode:o}),deleteCardRequestStarted=()=>({type:"DELETE_CARD_REQUEST_STARTED"}),deleteCardResponseReceived=o=>({type:"DELETE_CARD_RESPONSE_RECEIVED",deletedCardId:o}),deleteCard=(o,s,a)=>async($,j)=>{if((s==null?void 0:s.length)===1)return alert("Uh oh! You can't delete your last page!");{const _e=j().user.currentUser.uuid,et=o.id;return $(deleteCardRequestStarted()),fetch(`${BASE_API_URL}/api/v1/users/${_e}/cards/${et}/delete`,{method:API_METHODS.DELETE,headers:apiHeaders(j()),body:JSON.stringify({force:!0})}).then(handleErrors).then(()=>{$(deleteCardResponseReceived(et)),a.replace("/profile"),o.is_primary&&$(getCards()),$(setToast({toastMessage:`${o.connecting_code} has been deleted!`}))}).catch(tt=>console.log(`Error deleting user page ${et}`,tt))}},updateCardRequestStarted=()=>({type:"UPDATE_CARD_REQUEST_STARTED"}),updateCardResponseReceived=o=>({type:"UPDATE_CARD_RESPONSE_RECEIVED",card:o}),adminUpdateOtherUserCardResponseReceived=()=>({type:"ADMIN_UPDATE_OTHER_USER_CARD_RESPONSE_RECEIVED"}),updateCard=(o,s,a={})=>async($,j)=>{var nt;const{onSuccessNavigateTo:_e=`/${o.viewing_code}`,toastMessage:et=`${o.connecting_code} has been saved`}=a,tt=j().user.currentUser.uuid;return $(updateCardRequestStarted()),o={...o,team_id:(nt=o.team)==null?void 0:nt.id},o.team_id===void 0&&(o.team_id=null),fetch(`${BASE_API_URL}/api/v1/users/${tt}/cards/${o.id}/update`,{method:API_METHODS.PUT,headers:apiHeaders(j()),body:JSON.stringify(o)}).then(handleErrors).then(it=>it.json()).then(it=>{it.card.user_id===j().user.currentUser.id?$(updateCardResponseReceived(it.card)):$(adminUpdateOtherUserCardResponseReceived()),setTimeout(()=>{$(setToast({toastMessage:et}))},250)}).catch(it=>{$(sendErrorLog({errorMessage:"Error updating page",errorObject:it})),alert("Error updating page")})},shareCard=(o,s,a,$)=>async(j,_e)=>{const et={name:$};return et[a]=s,fetch(`${BASE_API_URL}/api/v1/cards/${o}/share`,{method:API_METHODS.POST,headers:apiHeaders(_e()),body:JSON.stringify(et)}).then(handleErrors).then(tt=>tt.json()).then(tt=>{j(setToast({toastMessage:`We shared your page with ${tt.address}`}))}).catch(tt=>{alert(`There was an error sharing your page with ${s}`)})},hideSelectCardModal=()=>({type:"HIDE_SELECT_CARD_MODAL"}),selectCardModalCardSelected=o=>({type:SELECT_CARD_MODAL_CARD_SELECTED,selectedCard:o}),cancelSelectCardFlow=()=>({type:CANCEL_SELECT_CARD_FLOW}),setWelcomeAlertShowPending=o=>({type:"SET_WELCOME_ALERT_SHOW_PENDING",showPending:o}),showWelcomeAlert=(o,s,a,$)=>({type:"SHOW_WELCOME_ALERT",welcomeAlertHeaderText:o,welcomeAlertSubheaderText:s,redirectRoute:a,buttonText:$}),showColdStartWelcomeAlert=()=>({type:"SHOW_COLD_START_WELCOME_ALERT"}),hideColdStartWelcomeAlert=()=>({type:"HIDE_COLD_START_WELCOME_ALERT"}),hideWelcomeAlert=()=>({type:"HIDE_WELCOME_ALERT"}),setShowConnectionRequestNotePrompt=o=>({type:SET_SHOW_CONNECTION_REQUEST_NOTE_PROMPT,show:o}),setShowLoggedInAsDisplay=o=>({type:SET_SHOW_LOGGED_IN_AS_DISPLAY,show:o}),setLastShowUpgradeMonthlyToAnnualProModal=o=>({type:USER_SUBSCRIPTION_MODAL_ACTIONS.SET_LAST_SHOW_UPGRADE_MONTHLY_TO_ANNUAL_PRO_MODAL_DATE,submitDate:o}),resetModalState=()=>({type:RESET_ALL_MODAL_STATE}),InAppReview=registerPlugin("InAppReview",{web:()=>__vitePreload(()=>import("./web-CvbSf8Ve.js"),[]).then(o=>new o.InAppReviewWeb)});var define_import_meta_env_default={VITE_STRIPE_PRO_PLUS_YEARLY_PRICE_KEY:"price_1OrndtH5ocKrGenqidoGHkTb",VITE_STRIPE_TEAMS_YEARLY_49_PRICE_KEY:"price_1IPD9WH5ocKrGenqFHK2Tu30",VITE_STRIPE_TEAMS_YEARLY_59_PRICE_KEY:"price_1IYEwGH5ocKrGenqf9KpOQSj",VITE_ROLLBAR_SERVER_TOKEN:"eb3b85b1465646edab365585c9ae6e87",VITE_SIMON_ENVIRONMENT:"prod",VITE_STRIPE_PRO_25_PERCENT_OFF_COUPON_ID:"hMfb04UP",VITE_MARKETING_SITE_URL:"https://buy.linqapp.com",VITE_STRIPE_TEAMS_YEARLY_69_PRICE_KEY:"price_1IYeQ3H5ocKrGenqQWbvC93s",VITE_SIMON_PARTNER_ID:"f38ed12a4f47d0cf02e3f90037eb1f0cd97a9f66",VITE_GOOGLE_ANALYTICS_ID:"G-GEK3VL33YR",VITE_X_API_SECRET:"omGfxn7BTdxEoCS9",VITE_STRIPE_TEAMS_YEARLY_79_PRICE_KEY:"price_1IJlN9H5ocKrGenqOkI1WrTF",VITE_STRIPE_NEW_YEARLY_PRICE_KEY:"price_1MnoBiH5ocKrGenqJs6O45HW",VITE_COUPON_FREE_1_SEAT_MONTHLY:"qEqUqhGR",VITE_JOIN_THE_PRO_HOME_PAGE_BACKGROUND_URL:"https://res.cloudinary.com/linq/image/upload/v1689951972/home_screen_images/Join_the_Pros_zecsvc.png",VITE_STRIPE_COUPON_19_OFF_MONTHLY:"25XSNZvn",VITE_SHOPIFY_API_KEY:"ca81b1e8ef4c91b2ffc4ed8f0e7df960",VITE_STRIPE_TEAMS_YEARLY_109_PRICE_KEY:"price_1LKPozH5ocKrGenqG1ewoxKE",VITE_CLOUDINARY_CLOUD_NAME:"linq",VITE_STRIPE_LINQ_ONE_MONTHLY_5_PRICE_KEY:"price_1QCkTiH5ocKrGenqKmlrFg7f",VITE_STRIPE_PRO_PLUS_MONTHLY_PRICE_KEY:"price_1OrneAH5ocKrGenqFVTTIy6z",VITE_STRIPE_LINQ_ONE_YEARLY_PRICE_KEY:"price_1PvMMRH5ocKrGenqh3YFGPLH",VITE_STRIPE_KEY:"pk_live_sUBTFEqEgAvDrfUNFq4X12Q900NMWEtpTa",VITE_STRIPE_COUPON_50_OFF_ANNUAL:"9MuGsBQe",VITE_HUBSPOT_API_KEY:"90f4dd30-8d33-4a7c-a66d-825515ffc273",VITE_STRIPE_LINQ_ONE_YEARLY_50_PRICE_KEY:"price_1QCkaYH5ocKrGenqKAcJ0X91",VITE_STRIPE_NEW_MONTHLY_PRICE_KEY:"price_1MnoC8H5ocKrGenqRnTJcwEr",VITE_SHOPIFY_API_PASSWORD:"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",VITE_WEB_APP_URL:"https://linqapp.com",VITE_AR_APP_URL:"https://ar.linqapp.com",VITE_STRIPE_CUSTOM_CARD_DISCOUNT_ID:"j86usfxk",VITE_STRIPE_LINQ_ONE_MONTHLY_PRICE_KEY:"price_1PvMMRH5ocKrGenqLAFZeLRf",VITE_STREAM_CHAT_SECRET:"hxpm2nze4y3pfdbvuv7jqgubnc7gjkmfs45gysgwptdm85zzcv3kusgca93jdb47",VITE_ROLLBAR_CLIENT_TOKEN:"999fc2a6695f4155bd81d8eca3617147",VITE_SIMON_DOMAIN:".linqapp.com",VITE_STRIPE_CUSTOM_CARD_PRICE_KEY:"price_1JLU9tH5ocKrGenqNiR91NLT",VITE_STRIPE_50_OFF_CUSTOM_CARD_DISCOUNT_ID:"pffSALqt",VITE_AMPLITUDE_KEY:"a4481065c6c11431c88a4ede5ff1d337",VITE_STRIPE_LINQ_ONE_MONTHLY_19_PRICE_KEY:"price_1QCkc1H5ocKrGenqjFSvGXAM",VITE_IAPTIC_SECRET_KEY:"bdeded86-75ea-4496-92f5-3013bdf2803e",VITE_INTERCOM_APP_ID:"rycjiir6",VITE_ENVIRONMENT:"production",VITE_USE_AMPLITUDE:"true",VITE_STRIPE_YEARLY_PRICE_KEY:"price_1H7S9pH5ocKrGenqtOELyqov",VITE_GIT_SHA:"768e122882f9a9d48aaa8b453b4729eb5ee257ac",VITE_USE_ANALYTICS:"true",VITE_STRIPE_COUPON_149_OFF_ANNUAL:"5oSJvC8x",VITE_META_PIXEL_ID:"3001627433285534",VITE_PRO_PLUS_ENABLED:"true",VITE_STRIPE_LINQ_PHONE_YEARLY_PRICE:"price_1OWmlcH5ocKrGenqQuA7EwHK",VITE_HUBSPOT_LFT_TRIAL_FORM_GUID:"67d9ef16-a180-4ce9-9fc0-1364d2742683",VITE_CLOUDINARY_API_KEY:"966587883827855",VITE_STRIPE_LINQ_ONE_YEARLY_149_PRICE_KEY:"price_1QCkcLH5ocKrGenqw0XgcIjh",VITE_ALLOW_VOIP_ON_WEB:"true",VITE_STRIPE_COUPON_5_OFF_MONTHLY:"iuKyYcPt",VITE_STREAM_CHAT_KEY:"b7wkdughndvm",VITE_FEATURE_IMMELMANN:"true",VITE_STRIPE_25_PERCENT_OFF_FOR_ALL_COUPON_ID:"kpa3smjk",VITE_STRIPE_TEAMS_YEARLY_PRICE_KEY:"price_1IGACBH5ocKrGenqDeLj6EIe",VITE_COUPON_249_OFF_YEARLY:"EtvQ0kb2",VITE_STRIPE_PRO_PLUS_25_PERCENT_OFF_COUPON_ID:"3Crvl7DY",VITE_STRIPE_MONTHLY_PRICE_KEY:"price_1H7S9bH5ocKrGenqOdMClc0y",VITE_SAASQUATCH_TENANT_ALIAS:"aurgy5hawgoad",VITE_STRIPE_TEAMS_MONTHLY_9_PRICE_KEY:"price_1LmNQ5H5ocKrGenqWEv6HnGK",VITE_STRIPE_LINQ_PHONE_MONTHLY_PRICE:"price_1OUwYKH5ocKrGenqEntR4Imb",VITE_DEEP_LINK_URL:"https://web.linqapp.com",VITE_HUBSPOT_LFT_REFER_A_BUSINESS_FORM_GUID:"51ba0102-3e8d-4aa4-863a-51b6ba3223f2",VITE_STRIPE_TEAMS_MONTHLY_PRICE_KEY:"price_1IBr1hH5ocKrGenqyyu88Sb6",VITE_API_URL:"https://api.linqapp.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const ENV={PLAYWRIGHT:!!define_import_meta_env_default.VITE_PLAYWRIGHT,STORYBOOK:!!define_import_meta_env_default.VITE_STORYBOOK,ALLOW_VOIP_ON_WEB:!0,ALLOW_ADMIN_ON_MOBILE:!!define_import_meta_env_default.VITE_ALLOW_ADMIN_ON_MOBILE,WEB_APP_URL:"https://linqapp.com",ENVIRONMENT:"production",VERSION:"768e122882f9a9d48aaa8b453b4729eb5ee257ac"},App$1=registerPlugin("App",{web:()=>__vitePreload(()=>import("./web-BWJpI3fi.js"),[]).then(o=>new o.AppWeb)}),[GENERAL,IPHONE_NEW,IPHONE_OLD_IOS_13,IPHONE_OLD_IOS_14,IPHONE_PRE_NFC,ANDROID]=["general","iphone_new","iphone_old_ios_13","iphone_old_ios_14","iphone_pre_nfc","android"],ALL_DEVICE_INSTRUCTION_BUCKETS=[GENERAL,IPHONE_NEW,IPHONE_OLD_IOS_13,IPHONE_OLD_IOS_14,IPHONE_PRE_NFC,ANDROID],getPlatform=async()=>(await Device.getInfo()).platform,getOS=async()=>(await Device.getInfo()).operatingSystem,getAppInfo=async()=>{let o={version:"WEB",build:""};return Capacitor.isNative&&(o=await App$1.getInfo()),o},getDeviceModelName=async()=>{const o=await Device.getInfo();return`${o.manufacturer} ${o.model}`},getDeviceModelIdentifier=async()=>{const o=await Device.getInfo();return`${o.manufacturer} ${o.model}`},deviceNFCInstructionBucket=async()=>{try{const o=await Device.getInfo(),s=await getPlatform();if(s==="android"||o.operatingSystem==="android")return ANDROID;if(s==="ios"){const $=(await getDeviceModelIdentifier()).match(/iPhone(\d+),\d+/);if($)return convertIphoneNumberToBucket(parseInt($[1]))}else return o.operatingSystem==="ios"?IPHONE_NEW:"Unknown"}catch{return"Unknown"}},convertIphoneNumberToBucket=async o=>{if(o<=8)return IPHONE_PRE_NFC;if(o<=10)return parseInt((await Device.getInfo()).osVersion)<14?IPHONE_OLD_IOS_13:IPHONE_OLD_IOS_14;if(o>10)return IPHONE_NEW};function useSelectCurrentUser(){return useSelector(s=>s.user.currentUser)}function useSelectCurrentUserCards(){return useSelector(s=>s.cards.currentUserCards)}function useSelectPrimaryCard(){const o=useSelector(s=>s.cards.currentUserCards);return o==null?void 0:o.find(s=>s.is_primary)}function useSelectAvailibleTileTypes(){return useSelector(o=>o.tiles.availibleTileTypes)}function useSelectContactFilters(){return useSelector(o=>o.contactFilters)}function useSelectApiToken(){return useSelector(o=>o.auth.apiToken)}function useSelectPollUser(){return useSelector(o=>o.pollUser)}function useSelectSlidingDrawer(){return useSelector(o=>o.slidingDrawer)}function useSelectAdminPages(){return useSelector(o=>o.adminPagesPage)}function useSelectInspirationPages(){return useSelector(o=>o.adminInspirationPage)}function useSelectProductsPage(){return useSelector(o=>o.adminPages.products)}function useSelectWorkflowsPage(){return useSelector(o=>o.adminPages.workflows)}function useSelectPhoneNumberPage(){return useSelector(o=>o.adminPages.phoneNumbers)}function useSelectInboxesPage(){return useSelector(o=>o.adminPages.inboxes)}function useSelectAdminShoppingCart(){return useSelector(o=>o.adminShoppingCart.items)}function useSelectCRMPage(){return useSelector(o=>o.adminPages.crm)}function useSelectUserEnrichment(){return useSelector(o=>o.userEnrichment)}function useSelectPhoneAutomations(){return useSelector(o=>o.phoneAutomations)}var OrganizationRoleType=(o=>(o.ADMIN="admin",o.MANAGER="manager",o.MEMBER="member",o))(OrganizationRoleType||{});const checkIsAdmin=o=>o?o.is_admin?!0:o.role===OrganizationRoleType.ADMIN:!1,checkIsOrgManager=o=>o?checkIsAdmin(o)?!0:o.role===OrganizationRoleType.MANAGER:!1,useIsAdmin=o=>{const s=useSelectCurrentUser();return reactExports.useMemo(()=>checkIsAdmin(o||s),[o,s])},useIsOrgManager=o=>{const s=useSelectCurrentUser();return reactExports.useMemo(()=>checkIsOrgManager(s),[o,s])};function wait(o=0){return new Promise(s=>{setTimeout(s,o)})}const waitUntilUserInfoIsReady=async(o,s)=>{const a=()=>o().auth.apiToken!==null,$=()=>o().user.currentUser===null&&!o().user.currentUserFetched,j=()=>o().cards.isCardsFetching&&o().cards.currentUserCards.length===0;for(;a()&&($()||j());)await wait(s)},track=(o,s={},a=!0,$=!0)=>ENV.STORYBOOK?{type:"STORYBOOK"}:async(j,_e)=>{const et=new URLSearchParams(window.location.search);if(s.personIdentifierId=et.get("_i"),window.navigator.userAgent.includes("Prerender"))console.log("skipped analytics log because Prerender");else{if(await waitUntilUserInfoIsReady(_e,1e3),a){const tt=await getPlatform(),nt=await getAppInfo();amplitude.getInstance().logEvent(o,{device_platform:tt,app_version:nt.version,...s})}$&&sendToServer(o,s,_e())}},analyticsIdentify=()=>async(o,s)=>{var a,$,j,_e,et,tt,nt,it,rt,st;if(window.navigator.userAgent.includes("Prerender"))console.warn("skipped analytics identify because Prerender");else{await waitUntilUserInfoIsReady(s,100);const ot=s().user.currentUser,at=useIsAdmin(),lt=s().cards.currentUserCards,ct=lt.find(ut=>ut.is_primary),ht=ot==null?void 0:ot.organization,dt={email_domain:($=ot==null?void 0:ot.email)==null?void 0:$.substring(((a=ot==null?void 0:ot.email)==null?void 0:a.indexOf("@"))+1),is_pro:ot==null?void 0:ot.is_pro,is_admin:ot==null?void 0:ot.is_admin,is_org_admin:at,enable_experimental_features:ot==null?void 0:ot.enable_experimental_features,user_organizations_count:ot!=null&&ot.organization?1:0,user_organization_name:ht==null?void 0:ht.name,is_on_team:!!(ot!=null&&ot.organization),user_organization_size:(j=ht==null?void 0:ht.organization_subscription)==null?void 0:j.seat_count,subscription_interval:ot==null?void 0:ot.subscription_interval,subscription_kind:ot==null?void 0:ot.subscription_kind,subscription_status:ot==null?void 0:ot.subscription_status,cards_count:lt==null?void 0:lt.length,primary_card_location:(_e=ct==null?void 0:ct.contact)==null?void 0:_e.location,primary_card_company:(et=ct==null?void 0:ct.contact)==null?void 0:et.company,primary_card_title:(tt=ct==null?void 0:ct.contact)==null?void 0:tt.title,primary_card_email_domain:(st=(nt=ct==null?void 0:ct.contact)==null?void 0:nt.email)==null?void 0:st.substring(((rt=(it=ct==null?void 0:ct.contact)==null?void 0:it.email)==null?void 0:rt.indexOf("@"))+1)};amplitude.getInstance().setUserProperties(dt)}};function getAnalyticsFetching(o){return{type:GET_ANALYTICS_FETCHING,requestTime:o}}const getAnalyticsSuccess=(o,s)=>({type:GET_ANALYTICS_SUCCESS,json:o,requestTime:s}),getAnalyticsFailure=(o,s)=>({type:GET_ANALYTICS_FAILURE,json:o,requestTime:s}),getAnalytics=o=>(s,a)=>{const $=Date.now();return s(getAnalyticsFetching($)),fetch$1(`${BASE_API_URL}/api/v1/cards/${o}/analytics`,{method:API_METHODS.GET,headers:apiHeaders(a())}).then(handleErrors).then(j=>j.json()).then(j=>{s(getAnalyticsSuccess(j,$))}).catch(j=>{const _e=j.message;s(sendErrorLog({errorMessage:_e,errorObject:j})),s(getAnalyticsFailure({},$)),alert(_e)}).catch(j=>{console.error(j)})},getAnalyticsForOrganizationFetching=o=>({type:GET_ANALYTICS_FOR_ORGANIZATION_FETCHING,requestTime:o}),getAnalyticsForOrganizationSuccess=(o,s)=>({type:GET_ANALYTICS_FOR_ORGANIZATION_SUCCESS,json:o,requestTime:s}),getAnalyticsForOrganizationFailure=(o,s)=>({type:GET_ANALYTICS_FOR_ORGANIZATION_FAILURE,json:o,requestTime:s}),getAnalyticsForOrganization=o=>(s,a)=>{const $=Date.now();return s(getAnalyticsForOrganizationFetching($)),fetch$1(`${BASE_API_URL}/api/v1/organizations/${o}/analytics`,{method:API_METHODS.GET,headers:apiHeaders(a())}).then(handleErrors).then(j=>j.json()).then(j=>{s(getAnalyticsForOrganizationSuccess(j,$))}).catch(j=>{alert("Uh oh! Looks like we couldn't retrieve analytics for that organization. Let us know if this continues to happen!"),s(getAnalyticsForOrganizationFailure({},$))})},getRecentActivityFetching=()=>({type:GET_RECENT_ACTIVITY_FETCHING}),getRecentActivitySuccess=o=>({type:GET_RECENT_ACTIVITY_SUCCESS,json:o}),getRecentActivity=o=>(s,a)=>(s(getRecentActivityFetching()),fetch$1(`${BASE_API_URL}/api/v1/cards/${o}/analytics/recent_activity`,{method:API_METHODS.GET,headers:apiHeaders(a())}).then(handleErrors).then($=>$.json()).then($=>{s(getRecentActivitySuccess($))}).catch($=>{const j=$.message;s(sendErrorLog({errorMessage:j,errorObject:$})),alert(j)}).catch($=>{console.error($)})),getRecentActivityForOrganizationFetching=()=>({type:GET_RECENT_ACTIVITY_FOR_ORGANIZATION_FETCHING}),getRecentActivityForOrganizationSuccess=o=>({type:GET_RECENT_ACTIVITY_FOR_ORGANIZATION_SUCCESS,json:o}),getRecentActivityForOrganizationFailure=o=>({type:GET_RECENT_ACTIVITY_FOR_ORGANIZATION_FAILURE,json:o}),getRecentActivityForOrganization=o=>(s,a)=>(s(getRecentActivityForOrganizationFetching()),fetch$1(`${BASE_API_URL}/api/v1/organizations/${o}/analytics/recent_activity`,{method:API_METHODS.GET,headers:apiHeaders(a())}).then(handleErrors).then($=>$.json()).then($=>{s(getRecentActivityForOrganizationSuccess($))}).catch($=>{s(getRecentActivityForOrganizationFailure([]));const j=$.message;s(sendErrorLog({errorMessage:j,errorObject:$})),alert(j)}).catch($=>{console.error($)})),sendToServer=async(o,s,a)=>{let $=null;$=amplitude.getInstance().options.deviceId;const j=await getPlatform(),_e=await getAppInfo();return fetch$1(`${BASE_API_URL}/api/v1/analytics/`,{method:API_METHODS.POST,headers:apiHeaders(a),body:JSON.stringify({external_device_id:$,event_name:o,actionable_type:s.actionableType,actionable_id:s.actionableId,page:window.location.pathname,device_platform:j,app_version:_e.version,person_identifier_id:s.personIdentifierId,is_app_clip:s.isAppClip})})},getTileAnalyticsFetching=()=>({type:GET_TILE_ANALYTICS_FETCHING}),getTileAnalyticsSuccess=o=>({type:GET_TILE_ANALYTICS_SUCCESS,json:o}),getTileAnalyticsFailure=()=>({type:GET_TILE_ANALYTICS_FAILURE}),getTileAnalyticsForCard=(o,s)=>(a,$)=>{a(getTileAnalyticsFetching());const j=new URLSearchParams(s);return fetch$1(`${BASE_API_URL}/api/v1/cards/${o}/tiles/analytics?${j}`,{method:API_METHODS.GET,headers:apiHeaders($())}).then(handleErrors).then(_e=>_e.json()).then(_e=>{a(getTileAnalyticsSuccess(_e))}).catch(_e=>{const et=_e.message;a(sendErrorLog({errorMessage:et,errorObject:_e})),a(getTileAnalyticsFailure())}).catch(_e=>{console.error(_e)})},incrementAlertRenderedCount=()=>({type:INCREMENT_ALERT_RENDERED_COUNT}),submitAppFeedbackStarted=()=>({type:SUBMIT_APP_FEEDBACK_STARTED}),submitAppFeedbackSuccess=o=>({type:SUBMIT_APP_FEEDBACK_SUCCESS,json:o}),submitAppFeedbackFailure=()=>({type:SUBMIT_APP_FEEDBACK_FAILURE}),submitAppFeedback=o=>(s,a)=>(s(submitAppFeedbackStarted()),fetch(`${BASE_API_URL}/api/v1/app_feedback`,{method:API_METHODS.POST,headers:apiHeaders(a()),body:JSON.stringify(o)}).then(handleErrors).then($=>$.json()).then($=>{s(submitAppFeedbackSuccess($)),o.is_positive===!0&&alert("todo: trigger native rate app dialog")}).catch($=>{s(submitAppFeedbackFailure()),console.log("Error creating user feedback.",$),s(setToast({toastMessage:"Thank you for the feedback!"}))})),setShouldShowAppFeedbackPrompt=o=>({type:SET_SHOULD_SHOW_APP_FEEDBACK_PROMPT,shown:o}),promptForFeedback=o=>(s,a)=>fetch(`${BASE_API_URL}/api/v1/app_feedback/should_prompt_for_feedback?launch_count=${o}`,{method:API_METHODS.GET,headers:apiHeaders(a())}).then(handleErrors).then($=>$.json()).then($=>{$.should_prompt&&(s(track("showed enjoying linq prompt")),s(setShouldShowAppFeedbackPrompt(!0)))}).catch($=>{console.log($)});var ImpactStyle;(function(o){o.Heavy="HEAVY",o.Medium="MEDIUM",o.Light="LIGHT"})(ImpactStyle||(ImpactStyle={}));var NotificationType;(function(o){o.Success="SUCCESS",o.Warning="WARNING",o.Error="ERROR"})(NotificationType||(NotificationType={}));const Haptics=registerPlugin("Haptics",{web:()=>__vitePreload(()=>import("./web-DiV_SCJu.js"),[]).then(o=>new o.HapticsWeb)});class HapticsUtil{static async hapticsImpact(s=ImpactStyle.Heavy){await getPlatform()!=="web"&&Haptics.impact({style:s})}static hapticsImpactMedium(){this.hapticsImpact(ImpactStyle.Medium)}static hapticsImpactLight(){this.hapticsImpact(ImpactStyle.Light)}static hapticsVibrate(){Haptics.vibrate()}static hapticsSelectionStart(){Haptics.selectionStart()}static hapticsSelectionChanged(){Haptics.selectionChanged()}static hapticsSelectionEnd(){Haptics.selectionEnd()}}const AppRateFeedbackPrompt=()=>{const o=useDispatch(),s=useSelector(it=>it.user.currentUser),a=useSelector(it=>it.appFeedback.isFeedbackPromptShown),$=useSelector(it=>it.appFeedback.promptRenderCount),[j,_e]=reactExports.useState(!1);reactExports.useEffect(()=>{async function it(){const rt=await getPlatform();s&&(rt!=="web"&&o(promptForFeedback($)),o(incrementAlertRenderedCount()))}it()},[]);const et=()=>{HapticsUtil.hapticsImpactLight(),o(track("clicked no on enjoying linq prompt")),o(setShouldShowAppFeedbackPrompt(!1)),_e(!0)},tt=()=>{HapticsUtil.hapticsImpact(),o(track("clicked yes on enjoying linq prompt")),o(submitAppFeedback({is_positive:!0})),o(setShouldShowAppFeedbackPrompt(!1)),InAppReview.requestReview()},nt=it=>{HapticsUtil.hapticsImpact();const{message:rt}=it;o(track("submited written feedback on enjoying linq prompt")),_e(!1),o(submitAppFeedback({is_positive:!1,message:rt}))};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(IonAlert,{onDidDismiss:()=>{o(setShouldShowAppFeedbackPrompt(!1))},mode:"md",isOpen:a,header:"Enjoying Linq?",subHeader:"We are always improving Linq based on feedback from users! ",message:"Let us know what you think.",buttons:[{text:"No, I am Not",cssClass:"linq-alert-button secondary",handler:et},{text:"Yes!",cssClass:"linq-alert-button",handler:tt}]}),jsxRuntimeExports.jsx(IonAlert,{onDidDismiss:()=>{_e(!1)},mode:"md",isOpen:j,header:"How could we improve?",message:"We actually read this feedback, we promise!",inputs:[{id:"message",name:"message",type:"textarea",label:"message",autoFocus:!0,placeholder:"Write your feedback here...",maxlength:5e3}],buttons:[{text:"Back",cssClass:"linq-alert-button",handler:()=>{HapticsUtil.hapticsImpactLight(),o(track("clicked back on enjoying linq prompt written prompt")),_e(!1),o(setShouldShowAppFeedbackPrompt(!0))}},{text:"Submit",cssClass:"linq-alert-button primary-100",handler:it=>nt(it)}]})]})},getLinqProducts=()=>(o,s)=>(o({type:FETCHING(GET_LINQ_PRODUCTS)}),fetch$1(`${BASE_API_URL}/api/v1/linq_products`,{method:API_METHODS.GET,headers:apiHeaders(s())}).then(handleErrors).then(a=>a.json()).then(a=>{o({type:SUCCESS(GET_LINQ_PRODUCTS),linq_products:a.linq_products})}).catch(a=>{o(sendErrorLog({errorMessage:"error in getLinqProducts",errorObject:a})),o({type:FAILURE(GET_LINQ_PRODUCTS)})})),DeepLinkingHandlerDesktop=({children:o=null})=>{const s=useLocation(),a=useHistory();return reactExports.useEffect(()=>{(()=>{const j=new URL(window.location.href),_e=new URLSearchParams(j.search),et=_e.get("$deeplink_path")||_e.get("%24deeplink_path");if(et){const tt=decodeURIComponent(et),[,nt]=tt.split("?");new URLSearchParams(nt).has("activate-code")||a.push(tt)}})()},[s,a]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:o})},LoadingIndicator=({"data-test":o,topMargin:s=!0,safeAreaTop:a=!1,className:$})=>jsxRuntimeExports.jsx("div",{"data-test":o,className:clsx("w-full","flex","items-center","justify-center",s&&!a&&"ion-margin-top",a&&"ion-safe-area-top",$),children:jsxRuntimeExports.jsx(IonSpinner,{style:{"--color":"currentColor"},name:"dots"})}),add$1="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Add</title><path stroke-linecap='round' stroke-linejoin='round' d='M256 112v288M400 256H112' class='ionicon-fill-none ionicon-stroke-width'/></svg>",addCircle="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Add Circle</title><path d='M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm80 224h-64v64a16 16 0 01-32 0v-64h-64a16 16 0 010-32h64v-64a16 16 0 0132 0v64h64a16 16 0 010 32z'/></svg>",addCircleOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Add Circle</title><path d='M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M256 176v160M336 256H176' class='ionicon-fill-none ionicon-stroke-width'/></svg>",addOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Add</title><path stroke-linecap='round' stroke-linejoin='round' d='M256 112v288M400 256H112' class='ionicon-fill-none ionicon-stroke-width'/></svg>",alarmOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Alarm</title><path d='M416.07 272a160 160 0 10-160 160 160 160 0 00160-160zM142.12 91.21A46.67 46.67 0 00112 80l-2.79.08C83.66 81.62 64 104 64.07 131c0 13.21 4.66 19.37 10.88 27.23a4.55 4.55 0 003.24 1.77h.88a3.23 3.23 0 002.54-1.31L142.38 99a5.38 5.38 0 001.55-4 5.26 5.26 0 00-1.81-3.79zM369.88 91.21A46.67 46.67 0 01400 80l2.79.08C428.34 81.62 448 104 447.93 131c0 13.21-4.66 19.37-10.88 27.23a4.55 4.55 0 01-3.24 1.76h-.88a3.23 3.23 0 01-2.54-1.31L369.62 99a5.38 5.38 0 01-1.55-4 5.26 5.26 0 011.81-3.79z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M256.07 160v112h-80M416.07 432l-40-40M96.07 432l40-40' class='ionicon-fill-none ionicon-stroke-width'/></svg>",alertCircleOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Alert Circle</title><path d='M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path d='M250.26 166.05L256 288l5.73-121.95a5.74 5.74 0 00-5.79-6h0a5.74 5.74 0 00-5.68 6z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M256 367.91a20 20 0 1120-20 20 20 0 01-20 20z'/></svg>",arrowBack="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Arrow Back</title><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M244 400L100 256l144-144M120 256h292' class='ionicon-fill-none'/></svg>",arrowBackOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Arrow Back</title><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M244 400L100 256l144-144M120 256h292' class='ionicon-fill-none'/></svg>",arrowDownOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Arrow Down</title><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 268l144 144 144-144M256 392V100' class='ionicon-fill-none'/></svg>",arrowForward="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Arrow Forward</title><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M268 112l144 144-144 144M392 256H100' class='ionicon-fill-none'/></svg>",arrowForwardCircleOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Arrow Forward Circle</title><path stroke-linecap='round' stroke-linejoin='round' d='M262.62 336L342 256l-79.38-80M330.97 256H170' class='ionicon-fill-none ionicon-stroke-width'/><path d='M256 448c106 0 192-86 192-192S362 64 256 64 64 150 64 256s86 192 192 192z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/></svg>",arrowForwardOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Arrow Forward</title><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M268 112l144 144-144 144M392 256H100' class='ionicon-fill-none'/></svg>",arrowRedo="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Arrow Redo</title><path d='M58.79 439.13A16 16 0 0148 424c0-73.1 14.68-131.56 43.65-173.77 35-51 90.21-78.46 164.35-81.87V88a16 16 0 0127.05-11.57l176 168a16 16 0 010 23.14l-176 168A16 16 0 01256 424v-79.77c-45 1.36-79 8.65-106.07 22.64-29.25 15.12-50.46 37.71-73.32 67a16 16 0 01-17.82 5.28z'/></svg>",arrowUndo="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Arrow Undo</title><path d='M448 440a16 16 0 01-12.61-6.15c-22.86-29.27-44.07-51.86-73.32-67C335 352.88 301 345.59 256 344.23V424a16 16 0 01-27 11.57l-176-168a16 16 0 010-23.14l176-168A16 16 0 01256 88v80.36c74.14 3.41 129.38 30.91 164.35 81.87C449.32 292.44 464 350.9 464 424a16 16 0 01-16 16z'/></svg>",arrowUpOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Arrow Up</title><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 244l144-144 144 144M256 120v292' class='ionicon-fill-none'/></svg>",atOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>At</title><path d='M320 254.27c-4.5 51-40.12 80-80.55 80s-67.34-35.82-63.45-80 37.12-80 77.55-80 70.33 36 66.45 80z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M319.77 415.77c-28.56 12-47.28 14.5-79.28 14.5-97.2 0-169-78.8-160.49-176s94.31-176 191.51-176C381 78.27 441.19 150 432.73 246c-6.31 71.67-52.11 92.32-76.09 88.07-22.56-4-41.18-24.42-37.74-63.5l8.48-96.25' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",attach="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Attach</title><path d='M216.08 192v143.85a40.08 40.08 0 0080.15 0l.13-188.55a67.94 67.94 0 10-135.87 0v189.82a95.51 95.51 0 10191 0V159.74' stroke-linecap='round' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/></svg>",backspaceSharp="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Backspace</title><path d='M144 96L32 256l112 160h304V96zm215.3 226.34L336.67 345l-65-65-65 65L184 322.34l65-65-65-65 22.63-22.63 65 65 65-65 22.63 22.63-65 65z'/></svg>",bagCheckOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Bag Check</title><path stroke-linecap='round' stroke-linejoin='round' d='M320 264l-89.6 112-38.4-44.88' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M80 176a16 16 0 00-16 16v216c0 30.24 25.76 56 56 56h272c30.24 0 56-24.51 56-54.75V192a16 16 0 00-16-16zM160 176v-32a96 96 0 0196-96h0a96 96 0 0196 96v32' class='ionicon-fill-none ionicon-stroke-width'/></svg>",bagHandleOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Bag Handle</title><path d='M80 176a16 16 0 00-16 16v216c0 30.24 25.76 56 56 56h272c30.24 0 56-24.51 56-54.75V192a16 16 0 00-16-16zM160 176v-32a96 96 0 0196-96h0a96 96 0 0196 96v32' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M160 224v16a96 96 0 0096 96h0a96 96 0 0096-96v-16' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",barChartOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Bar Chart</title><path d='M32 32v432a16 16 0 0016 16h432' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><rect x='96' y='224' width='80' height='192' rx='20' ry='20' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><rect x='240' y='176' width='80' height='240' rx='20' ry='20' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><rect x='383.64' y='112' width='80' height='304' rx='20' ry='20' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",bookOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Book</title><path d='M256 160c16-63.16 76.43-95.41 208-96a15.94 15.94 0 0116 16v288a16 16 0 01-16 16c-128 0-177.45 25.81-208 64-30.37-38-80-64-208-64-9.88 0-16-8.05-16-17.93V80a15.94 15.94 0 0116-16c131.57.59 192 32.84 208 96zM256 160v288' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",briefcaseOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Briefcase</title><rect x='32' y='128' width='448' height='320' rx='48' ry='48' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M144 128V96a32 32 0 0132-32h160a32 32 0 0132 32v32M480 240H32M320 240v24a8 8 0 01-8 8H200a8 8 0 01-8-8v-24' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",brushOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Brush</title><path d='M452.37 59.63h0a40.49 40.49 0 00-57.26 0L184 294.74c23.08 4.7 46.12 27.29 49.26 49.26l219.11-227.11a40.49 40.49 0 000-57.26zM138 336c-29.88 0-54 24.5-54 54.86 0 23.95-20.88 36.57-36 36.57C64.56 449.74 92.82 464 120 464c39.78 0 72-32.73 72-73.14 0-30.36-24.12-54.86-54-54.86z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",buildOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Build</title><path d='M393.87 190a32.1 32.1 0 01-45.25 0l-26.57-26.57a32.09 32.09 0 010-45.26L382.19 58a1 1 0 00-.3-1.64c-38.82-16.64-89.15-8.16-121.11 23.57-30.58 30.35-32.32 76-21.12 115.84a31.93 31.93 0 01-9.06 32.08L64 380a48.17 48.17 0 1068 68l153.86-167a31.93 31.93 0 0131.6-9.13c39.54 10.59 84.54 8.6 114.72-21.19 32.49-32 39.5-88.56 23.75-120.93a1 1 0 00-1.6-.26z' stroke-linecap='round' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='96' cy='416' r='16'/></svg>",business="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Business</title><path d='M432 176H320V64a48 48 0 00-48-48H80a48 48 0 00-48 48v416a16 16 0 0016 16h104a8 8 0 008-8v-71.55c0-8.61 6.62-16 15.23-16.43A16 16 0 01192 416v72a8 8 0 008 8h264a16 16 0 0016-16V224a48 48 0 00-48-48zM98.08 431.87a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zm0-80a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zm0-80a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zm0-80a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zm0-80a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zm80 240a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zm0-80a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zm0-80a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zm0-80a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zm80 320a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zm0-80a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zm0-80a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zm0-80a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zm0-80a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zM444 464H320V208h112a16 16 0 0116 16v236a4 4 0 01-4 4z'/><path d='M400 400a16 16 0 1016 16 16 16 0 00-16-16zM400 320a16 16 0 1016 16 16 16 0 00-16-16zM400 240a16 16 0 1016 16 16 16 0 00-16-16zM336 400a16 16 0 1016 16 16 16 0 00-16-16zM336 320a16 16 0 1016 16 16 16 0 00-16-16zM336 240a16 16 0 1016 16 16 16 0 00-16-16z'/></svg>",businessOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Business</title><path stroke-linecap='round' stroke-linejoin='round' d='M176 416v64M80 32h192a32 32 0 0132 32v412a4 4 0 01-4 4H48h0V64a32 32 0 0132-32zM320 192h112a32 32 0 0132 32v256h0-160 0V208a16 16 0 0116-16z' class='ionicon-fill-none ionicon-stroke-width'/><path d='M98.08 431.87a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zM98.08 351.87a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zM98.08 271.87a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zM98.08 191.87a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zM98.08 111.87a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zM178.08 351.87a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zM178.08 271.87a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zM178.08 191.87a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zM178.08 111.87a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zM258.08 431.87a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zM258.08 351.87a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zM258.08 271.87a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79z'/><ellipse cx='256' cy='176' rx='15.95' ry='16.03' transform='rotate(-45 255.99 175.996)'/><path d='M258.08 111.87a16 16 0 1113.79-13.79 16 16 0 01-13.79 13.79zM400 400a16 16 0 1016 16 16 16 0 00-16-16zM400 320a16 16 0 1016 16 16 16 0 00-16-16zM400 240a16 16 0 1016 16 16 16 0 00-16-16zM336 400a16 16 0 1016 16 16 16 0 00-16-16zM336 320a16 16 0 1016 16 16 16 0 00-16-16zM336 240a16 16 0 1016 16 16 16 0 00-16-16z'/></svg>",businessSharp="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Business</title><path d='M320 176V16H32v480h128v-96h32v96h288V176zM112 432H80v-32h32zm0-80H80v-32h32zm0-80H80v-32h32zm0-80H80v-32h32zm0-80H80V80h32zm128-32h32v32h-32zm-48 272h-32v-32h32zm0-80h-32v-32h32zm0-80h-32v-32h32zm0-80h-32V80h32zm80 320h-32v-32h32zm0-80h-32v-32h32zm0-80h-32v-32h32zm0-80h-32v-32h32v32zm176 272H320v-32h32v-32h-32v-48h32v-32h-32v-48h32v-32h-32v-32h128z'/><path d='M384 400h32v32h-32zM384 320h32v32h-32zM384 240h32v32h-32z'/></svg>",calendar="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Calendar</title><path d='M480 128a64 64 0 00-64-64h-16V48.45c0-8.61-6.62-16-15.23-16.43A16 16 0 00368 48v16H144V48.45c0-8.61-6.62-16-15.23-16.43A16 16 0 00112 48v16H96a64 64 0 00-64 64v12a4 4 0 004 4h440a4 4 0 004-4zM32 416a64 64 0 0064 64h320a64 64 0 0064-64V179a3 3 0 00-3-3H35a3 3 0 00-3 3zm344-208a24 24 0 11-24 24 24 24 0 0124-24zm0 80a24 24 0 11-24 24 24 24 0 0124-24zm-80-80a24 24 0 11-24 24 24 24 0 0124-24zm0 80a24 24 0 11-24 24 24 24 0 0124-24zm0 80a24 24 0 11-24 24 24 24 0 0124-24zm-80-80a24 24 0 11-24 24 24 24 0 0124-24zm0 80a24 24 0 11-24 24 24 24 0 0124-24zm-80-80a24 24 0 11-24 24 24 24 0 0124-24zm0 80a24 24 0 11-24 24 24 24 0 0124-24z'/></svg>",calendarOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Calendar</title><rect stroke-linejoin='round' x='48' y='80' width='416' height='384' rx='48' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='296' cy='232' r='24'/><circle cx='376' cy='232' r='24'/><circle cx='296' cy='312' r='24'/><circle cx='376' cy='312' r='24'/><circle cx='136' cy='312' r='24'/><circle cx='216' cy='312' r='24'/><circle cx='136' cy='392' r='24'/><circle cx='216' cy='392' r='24'/><circle cx='296' cy='392' r='24'/><path stroke-linejoin='round' stroke-linecap='round' d='M128 48v32M384 48v32' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linejoin='round' d='M464 160H48' class='ionicon-fill-none ionicon-stroke-width'/></svg>",call$1="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Call</title><path d='M391 480c-19.52 0-46.94-7.06-88-30-49.93-28-88.55-53.85-138.21-103.38C116.91 298.77 93.61 267.79 61 208.45c-36.84-67-30.56-102.12-23.54-117.13C45.82 73.38 58.16 62.65 74.11 52a176.3 176.3 0 0128.64-15.2c1-.43 1.93-.84 2.76-1.21 4.95-2.23 12.45-5.6 21.95-2 6.34 2.38 12 7.25 20.86 16 18.17 17.92 43 57.83 52.16 77.43 6.15 13.21 10.22 21.93 10.23 31.71 0 11.45-5.76 20.28-12.75 29.81-1.31 1.79-2.61 3.5-3.87 5.16-7.61 10-9.28 12.89-8.18 18.05 2.23 10.37 18.86 41.24 46.19 68.51s57.31 42.85 67.72 45.07c5.38 1.15 8.33-.59 18.65-8.47 1.48-1.13 3-2.3 4.59-3.47 10.66-7.93 19.08-13.54 30.26-13.54h.06c9.73 0 18.06 4.22 31.86 11.18 18 9.08 59.11 33.59 77.14 51.78 8.77 8.84 13.66 14.48 16.05 20.81 3.6 9.53.21 17-2 22-.37.83-.78 1.74-1.21 2.75a176.49 176.49 0 01-15.29 28.58c-10.63 15.9-21.4 28.21-39.38 36.58A67.42 67.42 0 01391 480z'/></svg>",callOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Call</title><path d='M451 374c-15.88-16-54.34-39.35-73-48.76-24.3-12.24-26.3-13.24-45.4.95-12.74 9.47-21.21 17.93-36.12 14.75s-47.31-21.11-75.68-49.39-47.34-61.62-50.53-76.48 5.41-23.23 14.79-36c13.22-18 12.22-21 .92-45.3-8.81-18.9-32.84-57-48.9-72.8C119.9 44 119.9 47 108.83 51.6A160.15 160.15 0 0083 65.37C67 76 58.12 84.83 51.91 98.1s-9 44.38 23.07 102.64 54.57 88.05 101.14 134.49S258.5 406.64 310.85 436c64.76 36.27 89.6 29.2 102.91 23s22.18-15 32.83-31a159.09 159.09 0 0013.8-25.8C465 391.17 468 391.17 451 374z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/></svg>",camera="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Camera</title><circle cx='256' cy='272' r='64'/><path d='M432 144h-59c-3 0-6.72-1.94-9.62-5l-25.94-40.94a15.52 15.52 0 00-1.37-1.85C327.11 85.76 315 80 302 80h-92c-13 0-25.11 5.76-34.07 16.21a15.52 15.52 0 00-1.37 1.85l-25.94 41c-2.22 2.42-5.34 5-8.62 5v-8a16 16 0 00-16-16h-24a16 16 0 00-16 16v8h-4a48.05 48.05 0 00-48 48V384a48.05 48.05 0 0048 48h352a48.05 48.05 0 0048-48V192a48.05 48.05 0 00-48-48zM256 368a96 96 0 1196-96 96.11 96.11 0 01-96 96z'/></svg>",card="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Card</title><path d='M32 376a56 56 0 0056 56h336a56 56 0 0056-56V222H32zm66-76a30 30 0 0130-30h48a30 30 0 0130 30v20a30 30 0 01-30 30h-48a30 30 0 01-30-30zM424 80H88a56 56 0 00-56 56v26h448v-26a56 56 0 00-56-56z'/></svg>",cardOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Card</title><rect x='48' y='96' width='416' height='320' rx='56' ry='56' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linejoin='round' stroke-width='60' d='M48 192h416M128 300h48v20h-48z' class='ionicon-fill-none'/></svg>",caretDown="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Caret Down</title><path d='M98 190.06l139.78 163.12a24 24 0 0036.44 0L414 190.06c13.34-15.57 2.28-39.62-18.22-39.62h-279.6c-20.5 0-31.56 24.05-18.18 39.62z'/></svg>",caretDownCircleOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Caret Down Circle</title><path d='M342.43 238.23l-74.13 89.09a16 16 0 01-24.6 0l-74.13-89.09A16 16 0 01181.86 212h148.28a16 16 0 0112.29 26.23z'/><path d='M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/></svg>",caretDownOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Caret Down</title><path d='M98 190.06l139.78 163.12a24 24 0 0036.44 0L414 190.06c13.34-15.57 2.28-39.62-18.22-39.62h-279.6c-20.5 0-31.56 24.05-18.18 39.62z'/></svg>",caretUp="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Caret Up</title><path d='M414 321.94L274.22 158.82a24 24 0 00-36.44 0L98 321.94c-13.34 15.57-2.28 39.62 18.22 39.62h279.6c20.5 0 31.56-24.05 18.18-39.62z'/></svg>",caretUpCircleOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Caret Up Circle</title><path d='M342.43 273.77l-74.13-89.09a16 16 0 00-24.6 0l-74.13 89.09A16 16 0 00181.86 300h148.28a16 16 0 0012.29-26.23z'/><path d='M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/></svg>",caretUpOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Caret Up</title><path d='M414 321.94L274.22 158.82a24 24 0 00-36.44 0L98 321.94c-13.34 15.57-2.28 39.62 18.22 39.62h279.6c20.5 0 31.56-24.05 18.18-39.62z'/></svg>",cartOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Cart</title><circle cx='176' cy='416' r='16' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='400' cy='416' r='16' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M48 80h64l48 272h256' class='ionicon-fill-none ionicon-stroke-width'/><path d='M160 288h249.44a8 8 0 007.85-6.43l28.8-144a8 8 0 00-7.85-9.57H128' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",cashOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Cash</title><rect x='32' y='80' width='448' height='256' rx='16' ry='16' transform='rotate(180 256 208)' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M64 384h384M96 432h320' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='256' cy='208' r='80' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M480 160a80 80 0 01-80-80M32 160a80 80 0 0080-80M480 256a80 80 0 00-80 80M32 256a80 80 0 0180 80' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",cellularOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Cellular</title><rect x='416' y='96' width='64' height='320' rx='8' ry='8' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><rect x='288' y='176' width='64' height='240' rx='8' ry='8' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><rect x='160' y='240' width='64' height='176' rx='8' ry='8' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><rect x='32' y='304' width='64' height='112' rx='8' ry='8' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",chatbox="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Chatbox</title><path d='M144 464a16 16 0 01-16-16v-64h-24a72.08 72.08 0 01-72-72V120a72.08 72.08 0 0172-72h304a72.08 72.08 0 0172 72v192a72.08 72.08 0 01-72 72H245.74l-91.49 76.29A16.05 16.05 0 01144 464z'/></svg>",chatboxEllipsesOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Chatbox Ellipses</title><path d='M408 64H104a56.16 56.16 0 00-56 56v192a56.16 56.16 0 0056 56h40v80l93.72-78.14a8 8 0 015.13-1.86H408a56.16 56.16 0 0056-56V120a56.16 56.16 0 00-56-56z' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='160' cy='216' r='32'/><circle cx='256' cy='216' r='32'/><circle cx='352' cy='216' r='32'/></svg>",chatboxOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Chatbox</title><path d='M408 64H104a56.16 56.16 0 00-56 56v192a56.16 56.16 0 0056 56h40v80l93.72-78.14a8 8 0 015.13-1.86H408a56.16 56.16 0 0056-56V120a56.16 56.16 0 00-56-56z' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",chatbubble="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Chatbubble</title><path d='M76.83 480a25.69 25.69 0 01-25.57-25.74 29.13 29.13 0 011.2-7.63L70.88 380c.77-2.46-.1-4.94-1.23-6.9l-.22-.4c-.08-.13-.46-.66-.73-1.05s-.58-.81-.86-1.22l-.19-.27A215.66 215.66 0 0132 251.37c-.18-57.59 22.35-112 63.46-153.28C138 55.47 194.9 32 255.82 32A227.4 227.4 0 01398 81.84c39.45 31.75 66.87 76 77.21 124.68a213.5 213.5 0 014.78 45c0 58.93-22.64 114.28-63.76 155.87-41.48 42-97.18 65.06-156.83 65.06-21 0-47.87-5.36-60.77-9-15.52-4.34-30.23-10-31.85-10.6a15.12 15.12 0 00-5.37-1 14.75 14.75 0 00-5.8 1.15l-.85.33-67.48 24.38A29.44 29.44 0 0176.83 480zm-2-31.8zM87.48 380z'/></svg>",chatbubbleEllipses="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Chatbubble Ellipses</title><path d='M398 81.84A227.4 227.4 0 00255.82 32C194.9 32 138 55.47 95.46 98.09 54.35 139.33 31.82 193.78 32 251.37a215.66 215.66 0 0035.65 118.76l.19.27c.28.41.57.82.86 1.22s.65.92.73 1.05l.22.4c1.13 2 2 4.44 1.23 6.9l-18.42 66.66a29.13 29.13 0 00-1.2 7.63A25.69 25.69 0 0076.83 480a29.44 29.44 0 0010.45-2.29l67.49-24.36.85-.33a14.75 14.75 0 015.8-1.15 15.12 15.12 0 015.37 1c1.62.63 16.33 6.26 31.85 10.6 12.9 3.6 39.74 9 60.77 9 59.65 0 115.35-23.1 156.83-65.06C457.36 365.77 480 310.42 480 251.49a213.5 213.5 0 00-4.78-45c-10.34-48.62-37.76-92.9-77.22-124.65zM87.48 380zM160 288a32 32 0 1132-32 32 32 0 01-32 32zm96 0a32 32 0 1132-32 32 32 0 01-32 32zm96 0a32 32 0 1132-32 32 32 0 01-32 32z'/></svg>",chatbubbleEllipsesOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Chatbubble Ellipses</title><path d='M87.48 380c1.2-4.38-1.43-10.47-3.94-14.86a42.63 42.63 0 00-2.54-3.8 199.81 199.81 0 01-33-110C47.64 139.09 140.72 48 255.82 48 356.2 48 440 117.54 459.57 209.85a199 199 0 014.43 41.64c0 112.41-89.49 204.93-204.59 204.93-18.31 0-43-4.6-56.47-8.37s-26.92-8.77-30.39-10.11a31.14 31.14 0 00-11.13-2.07 30.7 30.7 0 00-12.08 2.43L81.5 462.78a15.92 15.92 0 01-4.66 1.22 9.61 9.61 0 01-9.58-9.74 15.85 15.85 0 01.6-3.29z' stroke-linecap='round' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='160' cy='256' r='32'/><circle cx='256' cy='256' r='32'/><circle cx='352' cy='256' r='32'/></svg>",checkboxOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Checkbox</title><path stroke-linecap='round' stroke-linejoin='round' d='M352 176L217.6 336 160 272' class='ionicon-fill-none ionicon-stroke-width'/><rect x='64' y='64' width='384' height='384' rx='48' ry='48' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",checkmark="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Checkmark</title><path stroke-linecap='round' stroke-linejoin='round' d='M416 128L192 384l-96-96' class='ionicon-fill-none ionicon-stroke-width'/></svg>",checkmarkCircle="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Checkmark Circle</title><path d='M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm108.25 138.29l-134.4 160a16 16 0 01-12 5.71h-.27a16 16 0 01-11.89-5.3l-57.6-64a16 16 0 1123.78-21.4l45.29 50.32 122.59-145.91a16 16 0 0124.5 20.58z'/></svg>",checkmarkCircleOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Checkmark Circle</title><path d='M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M352 176L217.6 336 160 272' class='ionicon-fill-none ionicon-stroke-width'/></svg>",checkmarkCircleSharp="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Checkmark Circle</title><path d='M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm-38 312.38l-80.6-89.57 23.79-21.41 56 62.22L350 153.46 374.54 174z'/></svg>",checkmarkDone="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Checkmark Done</title><path stroke-linecap='round' stroke-linejoin='round' d='M464 128L240 384l-96-96M144 384l-96-96M368 128L232 284' class='ionicon-fill-none ionicon-stroke-width'/></svg>",checkmarkOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Checkmark</title><path stroke-linecap='round' stroke-linejoin='round' d='M416 128L192 384l-96-96' class='ionicon-fill-none ionicon-stroke-width'/></svg>",chevronBackOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Chevron Back</title><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M328 112L184 256l144 144' class='ionicon-fill-none'/></svg>",chevronDown="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Chevron Down</title><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 184l144 144 144-144' class='ionicon-fill-none'/></svg>",chevronDownOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Chevron Down</title><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 184l144 144 144-144' class='ionicon-fill-none'/></svg>",chevronDownSharp="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Chevron Down</title><path stroke-linecap='square' stroke-miterlimit='10' stroke-width='48' d='M112 184l144 144 144-144' class='ionicon-fill-none'/></svg>",chevronForward="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Chevron Forward</title><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M184 112l144 144-144 144' class='ionicon-fill-none'/></svg>",chevronForwardOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Chevron Forward</title><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M184 112l144 144-144 144' class='ionicon-fill-none'/></svg>",chevronUp="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Chevron Up</title><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 328l144-144 144 144' class='ionicon-fill-none'/></svg>",chevronUpOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Chevron Up</title><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 328l144-144 144 144' class='ionicon-fill-none'/></svg>",chevronUpSharp="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Chevron Up</title><path stroke-linecap='square' stroke-miterlimit='10' stroke-width='48' d='M112 328l144-144 144 144' class='ionicon-fill-none'/></svg>",clipboardOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Clipboard</title><path d='M336 64h32a48 48 0 0148 48v320a48 48 0 01-48 48H144a48 48 0 01-48-48V112a48 48 0 0148-48h32' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><rect x='176' y='32' width='160' height='64' rx='26.13' ry='26.13' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",close="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Close</title><path d='M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z'/></svg>",closeCircle="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Close Circle</title><path d='M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm75.31 260.69a16 16 0 11-22.62 22.62L256 278.63l-52.69 52.68a16 16 0 01-22.62-22.62L233.37 256l-52.68-52.69a16 16 0 0122.62-22.62L256 233.37l52.69-52.68a16 16 0 0122.62 22.62L278.63 256z'/></svg>",closeCircleOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Close Circle</title><path d='M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M320 320L192 192M192 320l128-128' class='ionicon-fill-none ionicon-stroke-width'/></svg>",closeCircleSharp="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Close Circle</title><path d='M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm86.63 272L320 342.63l-64-64-64 64L169.37 320l64-64-64-64L192 169.37l64 64 64-64L342.63 192l-64 64z'/></svg>",closeOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Close</title><path stroke-linecap='round' stroke-linejoin='round' d='M368 368L144 144M368 144L144 368' class='ionicon-fill-none ionicon-stroke-width'/></svg>",cloudDownload="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Cloud Download</title><path d='M472.7 189.5c-13.26-8.43-29.83-14.56-48.08-17.93A16 16 0 01412 159.28c-7.86-34.51-24.6-64.13-49.15-86.58C334.15 46.45 296.21 32 256 32c-35.35 0-68 11.08-94.37 32a150.13 150.13 0 00-41.95 52.83A16.05 16.05 0 01108 125.8c-27.13 4.9-50.53 14.68-68.41 28.7C13.7 174.83 0 203.56 0 237.6 0 305 55.93 352 136 352h104V224.45c0-8.61 6.62-16 15.23-16.43A16 16 0 01272 224v128h124c72.64 0 116-34.24 116-91.6 0-30.05-13.59-54.57-39.3-70.9zM240 425.42l-36.7-36.64a16 16 0 00-22.6 22.65l64 63.89a16 16 0 0022.6 0l64-63.89a16 16 0 00-22.6-22.65L272 425.42V352h-32z'/></svg>",cloudDownloadOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Cloud Download</title><path d='M320 336h76c55 0 100-21.21 100-75.6s-53-73.47-96-75.6C391.11 99.74 329 48 256 48c-69 0-113.44 45.79-128 91.2-60 5.7-112 35.88-112 98.4S70 336 136 336h56M192 400.1l64 63.9 64-63.9M256 224v224.03' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",cloudUploadOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Cloud Upload</title><path d='M320 367.79h76c55 0 100-29.21 100-83.6s-53-81.47-96-83.6c-8.89-85.06-71-136.8-144-136.8-69 0-113.44 45.79-128 91.2-60 5.7-112 43.88-112 106.4s54 106.4 120 106.4h56' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M320 255.79l-64-64-64 64M256 448.21V207.79' class='ionicon-fill-none ionicon-stroke-width'/></svg>",codeSlash="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Code Slash</title><path d='M160 389a20.91 20.91 0 01-13.82-5.2l-128-112a21 21 0 010-31.6l128-112a21 21 0 0127.66 31.61L63.89 256l109.94 96.19A21 21 0 01160 389zM352 389a21 21 0 01-13.84-36.81L448.11 256l-109.94-96.19a21 21 0 0127.66-31.61l128 112a21 21 0 010 31.6l-128 112A20.89 20.89 0 01352 389zM208 437a21 21 0 01-20.12-27l96-320a21 21 0 1140.23 12l-96 320A21 21 0 01208 437z'/></svg>",copy="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Copy</title><path d='M408 480H184a72 72 0 01-72-72V184a72 72 0 0172-72h224a72 72 0 0172 72v224a72 72 0 01-72 72z'/><path d='M160 80h235.88A72.12 72.12 0 00328 32H104a72 72 0 00-72 72v224a72.12 72.12 0 0048 67.88V160a80 80 0 0180-80z'/></svg>",copyOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Copy</title><rect x='128' y='128' width='336' height='336' rx='57' ry='57' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M383.5 128l.5-24a56.16 56.16 0 00-56-56H112a64.19 64.19 0 00-64 64v216a56.16 56.16 0 0056 56h24' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",createOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Create</title><path d='M384 224v184a40 40 0 01-40 40H104a40 40 0 01-40-40V168a40 40 0 0140-40h167.48' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M459.94 53.25a16.06 16.06 0 00-23.22-.56L424.35 65a8 8 0 000 11.31l11.34 11.32a8 8 0 0011.34 0l12.06-12c6.1-6.09 6.67-16.01.85-22.38zM399.34 90L218.82 270.2a9 9 0 00-2.31 3.93L208.16 299a3.91 3.91 0 004.86 4.86l24.85-8.35a9 9 0 003.93-2.31L422 112.66a9 9 0 000-12.66l-9.95-10a9 9 0 00-12.71 0z'/></svg>",documentLockOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Document Lock</title><path d='M288 304v-18c0-16.63-14.26-30-32-30s-32 13.37-32 30v18' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M304 416h-96a32 32 0 01-32-32v-48a32 32 0 0132-32h96a32 32 0 0132 32v48a32 32 0 01-32 32z'/><path d='M416 221.25V416a48 48 0 01-48 48H144a48 48 0 01-48-48V96a48 48 0 0148-48h98.75a32 32 0 0122.62 9.37l141.26 141.26a32 32 0 019.37 22.62z' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M256 50.88V176a32 32 0 0032 32h125.12' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",documentOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Document</title><path d='M416 221.25V416a48 48 0 01-48 48H144a48 48 0 01-48-48V96a48 48 0 0148-48h98.75a32 32 0 0122.62 9.37l141.26 141.26a32 32 0 019.37 22.62z' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M256 56v120a32 32 0 0032 32h120' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",documentText="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Document Text</title><path d='M428 224H288a48 48 0 01-48-48V36a4 4 0 00-4-4h-92a64 64 0 00-64 64v320a64 64 0 0064 64h224a64 64 0 0064-64V228a4 4 0 00-4-4zm-92 160H176a16 16 0 010-32h160a16 16 0 010 32zm0-80H176a16 16 0 010-32h160a16 16 0 010 32z'/><path d='M419.22 188.59L275.41 44.78a2 2 0 00-3.41 1.41V176a16 16 0 0016 16h129.81a2 2 0 001.41-3.41z'/></svg>",documentTextSharp="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Document Text</title><path d='M272 41.69V188a4 4 0 004 4h146.31a2 2 0 001.42-3.41L275.41 40.27a2 2 0 00-3.41 1.42z'/><path d='M248 224a8 8 0 01-8-8V32H92a12 12 0 00-12 12v424a12 12 0 0012 12h328a12 12 0 0012-12V224zm104 160H160v-32h192zm0-80H160v-32h192z'/></svg>",download="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Download</title><path d='M376 160H272v153.37l52.69-52.68a16 16 0 0122.62 22.62l-80 80a16 16 0 01-22.62 0l-80-80a16 16 0 0122.62-22.62L240 313.37V160H136a56.06 56.06 0 00-56 56v208a56.06 56.06 0 0056 56h240a56.06 56.06 0 0056-56V216a56.06 56.06 0 00-56-56zM272 48a16 16 0 00-32 0v112h32z'/></svg>",downloadOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Download</title><path d='M336 176h40a40 40 0 0140 40v208a40 40 0 01-40 40H136a40 40 0 01-40-40V216a40 40 0 0140-40h40' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M176 272l80 80 80-80M256 48v288' class='ionicon-fill-none ionicon-stroke-width'/></svg>",duplicateOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Duplicate</title><rect x='128' y='128' width='336' height='336' rx='57' ry='57' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M383.5 128l.5-24a56.16 56.16 0 00-56-56H112a64.19 64.19 0 00-64 64v216a56.16 56.16 0 0056 56h24M296 216v160M376 296H216' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",easelOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Easel</title><rect x='48' y='80' width='416' height='272' rx='32' ry='32' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M256 416v-64M256 80V48M400 464l-32-112M112 464l32-112' class='ionicon-fill-none ionicon-stroke-width'/></svg>",ellipse="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Ellipse</title><path d='M256 464c-114.69 0-208-93.31-208-208S141.31 48 256 48s208 93.31 208 208-93.31 208-208 208z'/></svg>",ellipsisHorizontal="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Ellipsis Horizontal</title><circle cx='256' cy='256' r='48'/><circle cx='416' cy='256' r='48'/><circle cx='96' cy='256' r='48'/></svg>",ellipsisVertical="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Ellipsis Vertical</title><circle cx='256' cy='256' r='48'/><circle cx='256' cy='416' r='48'/><circle cx='256' cy='96' r='48'/></svg>",eyeOffOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Eye Off</title><path d='M432 448a15.92 15.92 0 01-11.31-4.69l-352-352a16 16 0 0122.62-22.62l352 352A16 16 0 01432 448zM255.66 384c-41.49 0-81.5-12.28-118.92-36.5-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 00.14-2.94L93.5 161.38a2 2 0 00-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 00-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0075.8-12.58 2 2 0 00.77-3.31l-21.58-21.58a4 4 0 00-3.83-1 204.8 204.8 0 01-51.16 6.47zM490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 00-74.89 12.83 2 2 0 00-.75 3.31l21.55 21.55a4 4 0 003.88 1 192.82 192.82 0 0150.21-6.69c40.69 0 80.58 12.43 118.55 37 34.71 22.4 65.74 53.88 89.76 91a.13.13 0 010 .16 310.72 310.72 0 01-64.12 72.73 2 2 0 00-.15 2.95l19.9 19.89a2 2 0 002.7.13 343.49 343.49 0 0068.64-78.48 32.2 32.2 0 00-.1-34.78z'/><path d='M256 160a95.88 95.88 0 00-21.37 2.4 2 2 0 00-1 3.38l112.59 112.56a2 2 0 003.38-1A96 96 0 00256 160zM165.78 233.66a2 2 0 00-3.38 1 96 96 0 00115 115 2 2 0 001-3.38z'/></svg>",eyeOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Eye</title><path d='M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 00-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 000-17.47C428.89 172.28 347.8 112 255.66 112z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='256' cy='256' r='80' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/></svg>",eyedropOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Eyedrop</title><path d='M262.51 204.22L70 396.69C57.56 409.15 48 464 48 464s54.38-9.09 67.31-22L307.8 249.51' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><rect x='211.72' y='172.19' width='192.15' height='64.05' rx='32.03' ry='32.03' transform='rotate(45 307.788 204.2)' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M289.91 141s20.57 8.57 37.22-8.08l54.67-70.63c18.5-19.41 49.26-18.69 67.94 0h0c18.68 18.68 19.34 48.81 0 67.93l-70.68 54.67c-15.65 15.65-8.08 37.22-8.08 37.22M115.31 442s-26.48 17.34-44.56-.73-.75-44.58-.75-44.58' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",filter="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Filter</title><path d='M472 168H40a24 24 0 010-48h432a24 24 0 010 48zM392 280H120a24 24 0 010-48h272a24 24 0 010 48zM296 392h-80a24 24 0 010-48h80a24 24 0 010 48z'/></svg>",flashOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Flash</title><path d='M315.27 33L96 304h128l-31.51 173.23a2.36 2.36 0 002.33 2.77h0a2.36 2.36 0 001.89-.95L416 208H288l31.66-173.25a2.45 2.45 0 00-2.44-2.75h0a2.42 2.42 0 00-1.95 1z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",flashSharp="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Flash</title><path d='M432 208H288l32-192L80 304h144l-32 192z'/></svg>",giftOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Gift</title><path d='M256 104v56h56a56 56 0 10-56-56zM256 104v56h-56a56 56 0 1156-56z' stroke-linecap='round' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><rect x='64' y='160' width='384' height='112' rx='32' ry='32' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M416 272v144a48 48 0 01-48 48H144a48 48 0 01-48-48V272M256 160v304' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",gitMergeOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Git Merge</title><circle cx='129' cy='96' r='48' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='129' cy='416' r='48' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M129 144v224' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='385' cy='288' r='48' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M129 144c0 96 112 144 208 144' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",hammerOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Hammer</title><path d='M277.42 247a24.68 24.68 0 00-4.08-5.47L255 223.44a21.63 21.63 0 00-6.56-4.57 20.93 20.93 0 00-23.28 4.27c-6.36 6.26-18 17.68-39 38.43C146 301.3 71.43 367.89 37.71 396.29a16 16 0 00-1.09 23.54l39 39.43a16.13 16.13 0 0023.67-.89c29.24-34.37 96.3-109 136-148.23 20.39-20.06 31.82-31.58 38.29-37.94a21.76 21.76 0 003.84-25.2zM478.43 201l-34.31-34a5.44 5.44 0 00-4-1.59 5.59 5.59 0 00-4 1.59h0a11.41 11.41 0 01-9.55 3.27c-4.48-.49-9.25-1.88-12.33-4.86-7-6.86 1.09-20.36-5.07-29a242.88 242.88 0 00-23.08-26.72c-7.06-7-34.81-33.47-81.55-52.53a123.79 123.79 0 00-47-9.24c-26.35 0-46.61 11.76-54 18.51-5.88 5.32-12 13.77-12 13.77a91.29 91.29 0 0110.81-3.2 79.53 79.53 0 0123.28-1.49C241.19 76.8 259.94 84.1 270 92c16.21 13 23.18 30.39 24.27 52.83.8 16.69-15.23 37.76-30.44 54.94a7.85 7.85 0 00.4 10.83l21.24 21.23a8 8 0 0011.14.1c13.93-13.51 31.09-28.47 40.82-34.46s17.58-7.68 21.35-8.09a35.71 35.71 0 0121.3 4.62 13.65 13.65 0 013.08 2.38c6.46 6.56 6.07 17.28-.5 23.74l-2 1.89a5.5 5.5 0 000 7.84l34.31 34a5.5 5.5 0 004 1.58 5.65 5.65 0 004-1.58L478.43 209a5.82 5.82 0 000-8z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",helpBuoyOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Help Buoy</title><circle cx='256' cy='256' r='208' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='256' cy='256' r='80' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M208 54l8 132M296 186l8-132M208 458l8-132M296 326l8 132M458 208l-132 8M326 296l132 8M54 208l132 8M186 296l-132 8' class='ionicon-fill-none ionicon-stroke-width'/></svg>",helpCircle="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Help Circle</title><path d='M256 64C150 64 64 150 64 256s86 192 192 192 192-86 192-192S362 64 256 64zm-6 304a20 20 0 1120-20 20 20 0 01-20 20zm33.44-102C267.23 276.88 265 286.85 265 296a14 14 0 01-28 0c0-21.91 10.08-39.33 30.82-53.26C287.1 229.8 298 221.6 298 203.57c0-12.26-7-21.57-21.49-28.46-3.41-1.62-11-3.2-20.34-3.09-11.72.15-20.82 2.95-27.83 8.59C215.12 191.25 214 202.83 214 203a14 14 0 11-28-1.35c.11-2.43 1.8-24.32 24.77-42.8 11.91-9.58 27.06-14.56 45-14.78 12.7-.15 24.63 2 32.72 5.82C312.7 161.34 326 180.43 326 203.57c0 33.83-22.61 49.02-42.56 62.43z'/></svg>",helpCircleOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Help Circle</title><path d='M256 80a176 176 0 10176 176A176 176 0 00256 80z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path d='M200 202.29s.84-17.5 19.57-32.57C230.68 160.77 244 158.18 256 158c10.93-.14 20.69 1.67 26.53 4.45 10 4.76 29.47 16.38 29.47 41.09 0 26-17 37.81-36.37 50.8S251 281.43 251 296' stroke-linecap='round' stroke-miterlimit='10' stroke-width='28' class='ionicon-fill-none'/><circle cx='250' cy='348' r='20'/></svg>",helpOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Help</title><path d='M160 164s1.44-33 33.54-59.46C212.6 88.83 235.49 84.28 256 84c18.73-.23 35.47 2.94 45.48 7.82C318.59 100.2 352 120.6 352 164c0 45.67-29.18 66.37-62.35 89.18S248 298.36 248 324' stroke-linecap='round' stroke-miterlimit='10' stroke-width='40' class='ionicon-fill-none'/><circle cx='248' cy='399.99' r='32'/></svg>",home="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Home</title><path d='M261.56 101.28a8 8 0 00-11.06 0L66.4 277.15a8 8 0 00-2.47 5.79L63.9 448a32 32 0 0032 32H192a16 16 0 0016-16V328a8 8 0 018-8h80a8 8 0 018 8v136a16 16 0 0016 16h96.06a32 32 0 0032-32V282.94a8 8 0 00-2.47-5.79z'/><path d='M490.91 244.15l-74.8-71.56V64a16 16 0 00-16-16h-48a16 16 0 00-16 16v32l-57.92-55.38C272.77 35.14 264.71 32 256 32c-8.68 0-16.72 3.14-22.14 8.63l-212.7 203.5c-6.22 6-7 15.87-1.34 22.37A16 16 0 0043 267.56L250.5 69.28a8 8 0 0111.06 0l207.52 198.28a16 16 0 0022.59-.44c6.14-6.36 5.63-16.86-.76-22.97z'/></svg>",homeOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Home</title><path d='M80 212v236a16 16 0 0016 16h96V328a24 24 0 0124-24h80a24 24 0 0124 24v136h96a16 16 0 0016-16V212' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M480 256L266.89 52c-5-5.28-16.69-5.34-21.78 0L32 256M400 179V64h-48v69' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",image="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Image</title><path d='M416 64H96a64.07 64.07 0 00-64 64v256a64.07 64.07 0 0064 64h320a64.07 64.07 0 0064-64V128a64.07 64.07 0 00-64-64zm-80 64a48 48 0 11-48 48 48.05 48.05 0 0148-48zM96 416a32 32 0 01-32-32v-67.63l94.84-84.3a48.06 48.06 0 0165.8 1.9l64.95 64.81L172.37 416zm352-32a32 32 0 01-32 32H217.63l121.42-121.42a47.72 47.72 0 0161.64-.16L448 333.84z'/></svg>",imageOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Image</title><rect x='48' y='80' width='416' height='352' rx='48' ry='48' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='336' cy='176' r='32' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path d='M304 335.79l-90.66-90.49a32 32 0 00-43.87-1.3L48 352M224 432l123.34-123.34a32 32 0 0143.11-2L464 368' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",imageSharp="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Image</title><path d='M456 64H56a24 24 0 00-24 24v336a24 24 0 0024 24h400a24 24 0 0024-24V88a24 24 0 00-24-24zm-124.38 64.2a48 48 0 11-43.42 43.42 48 48 0 0143.42-43.42zM76 416a12 12 0 01-12-12v-87.63L192.64 202l96.95 96.75L172.37 416zm372-12a12 12 0 01-12 12H217.63l149.53-149.53L448 333.84z'/></svg>",imagesOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Images</title><path d='M432 112V96a48.14 48.14 0 00-48-48H64a48.14 48.14 0 00-48 48v256a48.14 48.14 0 0048 48h16' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><rect x='96' y='128' width='400' height='336' rx='45.99' ry='45.99' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><ellipse cx='372.92' cy='219.64' rx='30.77' ry='30.55' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path d='M342.15 372.17L255 285.78a30.93 30.93 0 00-42.18-1.21L96 387.64M265.23 464l118.59-117.73a31 31 0 0141.46-1.87L496 402.91' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",informationCircle="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Information Circle</title><path d='M256 56C145.72 56 56 145.72 56 256s89.72 200 200 200 200-89.72 200-200S366.28 56 256 56zm0 82a26 26 0 11-26 26 26 26 0 0126-26zm48 226h-88a16 16 0 010-32h28v-88h-16a16 16 0 010-32h32a16 16 0 0116 16v104h28a16 16 0 010 32z'/></svg>",informationCircleOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Information Circle</title><path d='M248 64C146.39 64 64 146.39 64 248s82.39 184 184 184 184-82.39 184-184S349.61 64 248 64z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M220 220h32v116' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-miterlimit='10' d='M208 340h88' class='ionicon-fill-none ionicon-stroke-width'/><path d='M248 130a26 26 0 1026 26 26 26 0 00-26-26z'/></svg>",informationOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Information</title><path stroke-linecap='round' stroke-linejoin='round' stroke-width='40' d='M196 220h64v172' class='ionicon-fill-none'/><path stroke-linecap='round' stroke-miterlimit='10' stroke-width='40' d='M187 396h138' class='ionicon-fill-none'/><path d='M256 160a32 32 0 1132-32 32 32 0 01-32 32z'/></svg>",keyOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Key</title><path d='M218.1 167.17c0 13 0 25.6 4.1 37.4-43.1 50.6-156.9 184.3-167.5 194.5a20.17 20.17 0 00-6.7 15c0 8.5 5.2 16.7 9.6 21.3 6.6 6.9 34.8 33 40 28 15.4-15 18.5-19 24.8-25.2 9.5-9.3-1-28.3 2.3-36s6.8-9.2 12.5-10.4 15.8 2.9 23.7 3c8.3.1 12.8-3.4 19-9.2 5-4.6 8.6-8.9 8.7-15.6.2-9-12.8-20.9-3.1-30.4s23.7 6.2 34 5 22.8-15.5 24.1-21.6-11.7-21.8-9.7-30.7c.7-3 6.8-10 11.4-11s25 6.9 29.6 5.9c5.6-1.2 12.1-7.1 17.4-10.4 15.5 6.7 29.6 9.4 47.7 9.4 68.5 0 124-53.4 124-119.2S408.5 48 340 48s-121.9 53.37-121.9 119.17zM400 144a32 32 0 11-32-32 32 32 0 0132 32z' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",keypad="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Keypad</title><path d='M256 400a48 48 0 1048 48 48 48 0 00-48-48zM256 272a48 48 0 1048 48 48 48 0 00-48-48zM256 144a48 48 0 1048 48 48 48 0 00-48-48zM256 16a48 48 0 1048 48 48 48 0 00-48-48zM384 272a48 48 0 1048 48 48 48 0 00-48-48zM384 144a48 48 0 1048 48 48 48 0 00-48-48zM384 16a48 48 0 1048 48 48 48 0 00-48-48zM128 272a48 48 0 1048 48 48 48 0 00-48-48zM128 144a48 48 0 1048 48 48 48 0 00-48-48zM128 16a48 48 0 1048 48 48 48 0 00-48-48z'/></svg>",keypadOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Keypad</title><circle cx='256' cy='448' r='32' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='256' cy='320' r='32' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path d='M288 192a32 32 0 11-32-32 32 32 0 0132 32z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='256' cy='64' r='32' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='384' cy='320' r='32' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='384' cy='192' r='32' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='384' cy='64' r='32' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='128' cy='320' r='32' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='128' cy='192' r='32' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='128' cy='64' r='32' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/></svg>",leaf="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Leaf</title><path d='M161.35 242a16 16 0 0122.62-.68c73.63 69.36 147.51 111.56 234.45 133.07 11.73-32 12.77-67.22 2.64-101.58-13.44-45.59-44.74-85.31-90.49-114.86-40.84-26.38-81.66-33.25-121.15-39.89-49.82-8.38-96.88-16.3-141.79-63.85-5-5.26-11.81-7.37-18.32-5.66-7.44 2-12.43 7.88-14.82 17.6-5.6 22.75-2 86.51 13.75 153.82 25.29 108.14 65.65 162.86 95.06 189.73 38 34.69 87.62 53.9 136.93 53.9a186 186 0 0027.77-2.04c41.71-6.32 76.43-27.27 96-57.75-89.49-23.28-165.94-67.55-242-139.16a16 16 0 01-.65-22.65zM467.43 384.19c-16.83-2.59-33.13-5.84-49-9.77a157.71 157.71 0 01-12.13 25.68c-.73 1.25-1.5 2.49-2.29 3.71a584.21 584.21 0 0058.56 12 16 16 0 104.87-31.62z'/></svg>",link="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Link</title><path d='M200.66 352H144a96 96 0 010-192h55.41M312.59 160H368a96 96 0 010 192h-56.66M169.07 256h175.86' stroke-linecap='round' stroke-linejoin='round' stroke-width='48' class='ionicon-fill-none'/></svg>",linkOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Link</title><path d='M208 352h-64a96 96 0 010-192h64M304 160h64a96 96 0 010 192h-64M163.29 256h187.42' stroke-linecap='round' stroke-linejoin='round' stroke-width='36' class='ionicon-fill-none'/></svg>",list="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>List</title><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M160 144h288M160 256h288M160 368h288' class='ionicon-fill-none'/><circle cx='80' cy='144' r='16' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='80' cy='256' r='16' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='80' cy='368' r='16' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",listCircleOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>List Circle</title><path stroke-linecap='round' stroke-linejoin='round' d='M224 184h128M224 256h128M224 327h128' class='ionicon-fill-none ionicon-stroke-width'/><path d='M448 258c0-106-86-192-192-192S64 152 64 258s86 192 192 192 192-86 192-192z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='168' cy='184' r='8' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='168' cy='257' r='8' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='168' cy='328' r='8' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",listOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>List</title><path stroke-linecap='round' stroke-linejoin='round' d='M160 144h288M160 256h288M160 368h288' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='80' cy='144' r='16' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='80' cy='256' r='16' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='80' cy='368' r='16' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",locationOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Location</title><path d='M256 48c-79.5 0-144 61.39-144 137 0 87 96 224.87 131.25 272.49a15.77 15.77 0 0025.5 0C304 409.89 400 272.07 400 185c0-75.61-64.5-137-144-137z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='256' cy='192' r='48' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",lockClosed="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Lock Closed</title><path d='M368 192h-16v-80a96 96 0 10-192 0v80h-16a64.07 64.07 0 00-64 64v176a64.07 64.07 0 0064 64h224a64.07 64.07 0 0064-64V256a64.07 64.07 0 00-64-64zm-48 0H192v-80a64 64 0 11128 0z'/></svg>",lockClosedOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Lock Closed</title><path d='M336 208v-95a80 80 0 00-160 0v95' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><rect x='96' y='208' width='320' height='272' rx='48' ry='48' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",lockOpenOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Lock Open</title><path d='M336 112a80 80 0 00-160 0v96' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><rect x='96' y='208' width='320' height='272' rx='48' ry='48' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",logOutOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Log Out</title><path d='M304 336v40a40 40 0 01-40 40H104a40 40 0 01-40-40V136a40 40 0 0140-40h152c22.09 0 48 17.91 48 40v40M368 336l80-80-80-80M176 256h256' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",logoFacebook="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Logo Facebook</title><path d='M480 257.35c0-123.7-100.3-224-224-224s-224 100.3-224 224c0 111.8 81.9 204.47 189 221.29V322.12h-56.89v-64.77H221V208c0-56.13 33.45-87.16 84.61-87.16 24.51 0 50.15 4.38 50.15 4.38v55.13H327.5c-27.81 0-36.51 17.26-36.51 35v42h62.12l-9.92 64.77H291v156.54c107.1-16.81 189-109.48 189-221.31z' fill-rule='evenodd'/></svg>",logoInstagram="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Logo Instagram</title><path d='M349.33 69.33a93.62 93.62 0 0193.34 93.34v186.66a93.62 93.62 0 01-93.34 93.34H162.67a93.62 93.62 0 01-93.34-93.34V162.67a93.62 93.62 0 0193.34-93.34h186.66m0-37.33H162.67C90.8 32 32 90.8 32 162.67v186.66C32 421.2 90.8 480 162.67 480h186.66C421.2 480 480 421.2 480 349.33V162.67C480 90.8 421.2 32 349.33 32z'/><path d='M377.33 162.67a28 28 0 1128-28 27.94 27.94 0 01-28 28zM256 181.33A74.67 74.67 0 11181.33 256 74.75 74.75 0 01256 181.33m0-37.33a112 112 0 10112 112 112 112 0 00-112-112z'/></svg>",logoLinkedin="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Logo Linkedin</title><path d='M444.17 32H70.28C49.85 32 32 46.7 32 66.89v374.72C32 461.91 49.85 480 70.28 480h373.78c20.54 0 35.94-18.21 35.94-38.39V66.89C480.12 46.7 464.6 32 444.17 32zm-273.3 373.43h-64.18V205.88h64.18zM141 175.54h-.46c-20.54 0-33.84-15.29-33.84-34.43 0-19.49 13.65-34.42 34.65-34.42s33.85 14.82 34.31 34.42c-.01 19.14-13.31 34.43-34.66 34.43zm264.43 229.89h-64.18V296.32c0-26.14-9.34-44-32.56-44-17.74 0-28.24 12-32.91 23.69-1.75 4.2-2.22 9.92-2.22 15.76v113.66h-64.18V205.88h64.18v27.77c9.34-13.3 23.93-32.44 57.88-32.44 42.13 0 74 27.77 74 87.64z'/></svg>",logoPinterest="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Logo Pinterest</title><path d='M256.05 32c-123.7 0-224 100.3-224 224 0 91.7 55.2 170.5 134.1 205.2-.6-15.6-.1-34.4 3.9-51.4 4.3-18.2 28.8-122.1 28.8-122.1s-7.2-14.3-7.2-35.4c0-33.2 19.2-58 43.2-58 20.4 0 30.2 15.3 30.2 33.6 0 20.5-13.1 51.1-19.8 79.5-5.6 23.8 11.9 43.1 35.4 43.1 42.4 0 71-54.5 71-119.1 0-49.1-33.1-85.8-93.2-85.8-67.9 0-110.3 50.7-110.3 107.3 0 19.5 5.8 33.3 14.8 43.9 4.1 4.9 4.7 6.9 3.2 12.5-1.1 4.1-3.5 14-4.6 18-1.5 5.7-6.1 7.7-11.2 5.6-31.3-12.8-45.9-47-45.9-85.6 0-63.6 53.7-139.9 160.1-139.9 85.5 0 141.8 61.9 141.8 128.3 0 87.9-48.9 153.5-120.9 153.5-24.2 0-46.9-13.1-54.7-27.9 0 0-13 51.6-15.8 61.6-4.7 17.3-14 34.5-22.5 48a225.13 225.13 0 0063.5 9.2c123.7 0 224-100.3 224-224S379.75 32 256.05 32z'/></svg>",logoSnapchat="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Logo Snapchat</title><path d='M496 347.21a190.31 190.31 0 01-32.79-5.31c-27.28-6.63-54.84-24.26-68.12-52.43-6.9-14.63-2.64-18.59 11.86-24 14.18-5.27 29.8-7.72 36.86-23 5.89-12.76 1.13-27.76-10.41-35.49-15.71-10.53-30.35-.21-46.62 2.07 3.73-46.66 8.66-88.57-22.67-127.73C338.14 48.86 297.34 32 256.29 32s-81.86 16.86-107.81 49.33c-31.38 39.26-26.4 81.18-22.67 127.92-16.32-2.25-30.81-12.79-46.63-2.18-14.72 9.85-17 29.76-5.44 43s31.64 9.5 43.45 20.6c6.49 6.09 3.49 12.61-.35 20.14-14.48 28.4-39.26 45.74-69.84 51.56-4 .76-22.31 2.87-31 3.65 0 9.28.52 16.78 1.63 21.73 2.94 13.06 12.32 23.58 23.69 30.1 11.18 6.4 35.48 6.43 41.68 15.51 3 4.48 1.76 12.28 5.33 17.38a23.8 23.8 0 0015.37 9.75c18.61 3.61 37.32-7.2 56.42-2.1 14.85 3.95 26.52 15.87 39.26 24 15.51 9.85 32.34 16.42 50.83 17.49 38.1 2.21 59.93-18.91 90.58-36.42 19.5-11.14 38.15-3.86 58.88-2.68 20.1 1.15 23.53-9.25 29.62-24.88a27.37 27.37 0 001.54-4.85 10.52 10.52 0 002.28-1.47c2-1.57 10.55-2.34 12.76-2.86 10.28-2.44 20.34-5.15 29.17-11.2 11.31-7.76 17.65-18.5 19.58-32.64a93.73 93.73 0 001.38-15.67zM208 128c8.84 0 16 10.74 16 24s-7.16 24-16 24-16-10.74-16-24 7.16-24 16-24zm103.62 77.7c-15.25 15-35 23.3-55.62 23.3a78.37 78.37 0 01-55.66-23.34 8 8 0 0111.32-11.32A62.46 62.46 0 00256 213c16.39 0 32.15-6.64 44.39-18.7a8 8 0 0111.23 11.4zM304 176c-8.84 0-16-10.75-16-24s7.16-24 16-24 16 10.75 16 24-7.16 24-16 24z'/></svg>",logoTwitch="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Logo Twitch</title><path d='M80 32l-32 80v304h96v64h64l64-64h80l112-112V32zm336 256l-64 64h-96l-64 64v-64h-80V80h304z'/><path d='M320 143h48v129h-48zM208 143h48v129h-48z'/></svg>",logoWhatsapp="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Logo Whatsapp</title><path d='M414.73 97.1A222.14 222.14 0 00256.94 32C134 32 33.92 131.58 33.87 254a220.61 220.61 0 0029.78 111L32 480l118.25-30.87a223.63 223.63 0 00106.6 27h.09c122.93 0 223-99.59 223.06-222A220.18 220.18 0 00414.73 97.1zM256.94 438.66h-.08a185.75 185.75 0 01-94.36-25.72l-6.77-4-70.17 18.32 18.73-68.09-4.41-7A183.46 183.46 0 0171.53 254c0-101.73 83.21-184.5 185.48-184.5a185 185 0 01185.33 184.64c-.04 101.74-83.21 184.52-185.4 184.52zm101.69-138.19c-5.57-2.78-33-16.2-38.08-18.05s-8.83-2.78-12.54 2.78-14.4 18-17.65 21.75-6.5 4.16-12.07 1.38-23.54-8.63-44.83-27.53c-16.57-14.71-27.75-32.87-31-38.42s-.35-8.56 2.44-11.32c2.51-2.49 5.57-6.48 8.36-9.72s3.72-5.56 5.57-9.26.93-6.94-.46-9.71-12.54-30.08-17.18-41.19c-4.53-10.82-9.12-9.35-12.54-9.52-3.25-.16-7-.2-10.69-.2a20.53 20.53 0 00-14.86 6.94c-5.11 5.56-19.51 19-19.51 46.28s20 53.68 22.76 57.38 39.3 59.73 95.21 83.76a323.11 323.11 0 0031.78 11.68c13.35 4.22 25.5 3.63 35.1 2.2 10.71-1.59 33-13.42 37.63-26.38s4.64-24.06 3.25-26.37-5.11-3.71-10.69-6.48z' fill-rule='evenodd'/></svg>",logoYoutube="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Logo Youtube</title><path d='M508.64 148.79c0-45-33.1-81.2-74-81.2C379.24 65 322.74 64 265 64h-18c-57.6 0-114.2 1-169.6 3.6C36.6 67.6 3.5 104 3.5 149 1 184.59-.06 220.19 0 255.79q-.15 53.4 3.4 106.9c0 45 33.1 81.5 73.9 81.5 58.2 2.7 117.9 3.9 178.6 3.8q91.2.3 178.6-3.8c40.9 0 74-36.5 74-81.5 2.4-35.7 3.5-71.3 3.4-107q.34-53.4-3.26-106.9zM207 353.89v-196.5l145 98.2z'/></svg>",mail="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Mail</title><path d='M424 80H88a56.06 56.06 0 00-56 56v240a56.06 56.06 0 0056 56h336a56.06 56.06 0 0056-56V136a56.06 56.06 0 00-56-56zm-14.18 92.63l-144 112a16 16 0 01-19.64 0l-144-112a16 16 0 1119.64-25.26L256 251.73l134.18-104.36a16 16 0 0119.64 25.26z'/></svg>",mailOpenOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Mail Open</title><path d='M441.6 171.61L266.87 85.37a24.57 24.57 0 00-21.74 0L70.4 171.61A40 40 0 0048 207.39V392c0 22.09 18.14 40 40.52 40h335c22.38 0 40.52-17.91 40.52-40V207.39a40 40 0 00-22.44-35.78z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M397.33 368L268.07 267.46a24 24 0 00-29.47 0L109.33 368M309.33 295l136-103M61.33 192l139 105' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",mailOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Mail</title><rect x='48' y='96' width='416' height='320' rx='40' ry='40' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M112 160l144 112 144-112' class='ionicon-fill-none ionicon-stroke-width'/></svg>",mailUnread="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Mail Unread</title><path d='M496 128.05A64 64 0 00389.62 80a64.52 64.52 0 00-12.71 15.3v.06c-.54.9-1.05 1.82-1.55 2.74l-.24.49c-.42.79-.81 1.59-1.19 2.4-.12.25-.23.5-.34.75-.33.73-.65 1.47-.95 2.22-.13.31-.25.62-.37.93-.27.7-.53 1.4-.78 2.11l-.36 1.06c-.22.68-.43 1.37-.63 2.06-.12.39-.23.77-.33 1.16-.19.67-.35 1.35-.51 2-.1.41-.2.82-.29 1.23-.14.68-.27 1.37-.39 2-.08.42-.16.84-.23 1.26-.11.7-.2 1.41-.29 2.12-.05.41-.11.82-.16 1.24-.08.77-.13 1.54-.19 2.32 0 .36-.06.72-.08 1.08-.06 1.14-.1 2.28-.1 3.44 0 1 0 2 .08 2.94v.64q.08 1.41.21 2.82l.06.48c.09.85.19 1.69.32 2.52 0 .17 0 .35.07.52.14.91.31 1.81.49 2.71 0 .22.09.43.13.65.18.86.38 1.72.6 2.57v.19c.23.89.48 1.76.75 2.63l.21.68c.27.85.55 1.68.85 2.51.06.18.13.36.2.54.27.71.55 1.42.84 2.12.08.21.16.41.25.61.34.79.69 1.58 1.06 2.36l.33.67c.35.7.7 1.4 1.07 2.09a64.34 64.34 0 0022.14 23.81 62.22 62.22 0 007.62 4.15l.39.18q2.66 1.2 5.43 2.16l.95.32 1.5.47c.45.14.9.26 1.36.39l1.92.5 1.73.4 1.15.23 1.83.33.94.15c.9.13 1.81.25 2.72.35l.77.07c.73.06 1.47.12 2.21.16l.86.05c1 0 1.94.08 2.92.08 1.16 0 2.3 0 3.44-.1l1.08-.08c.78-.06 1.55-.11 2.32-.19l1.25-.16c.7-.09 1.41-.18 2.11-.29l1.26-.23c.68-.12 1.37-.25 2-.39l1.23-.29c.68-.16 1.36-.32 2-.51.39-.1.77-.21 1.16-.33.69-.2 1.38-.41 2.06-.63l1.06-.36c.71-.25 1.41-.51 2.11-.78l.93-.37c.75-.3 1.49-.62 2.22-.95l.75-.34c.81-.38 1.61-.77 2.4-1.19l.49-.24c.92-.5 1.84-1 2.74-1.55h.06A64.52 64.52 0 00480 170.38a63.81 63.81 0 0016-42.33z'/><path d='M371.38 202.53l-105.56 82.1a16 16 0 01-19.64 0l-144-112a16 16 0 1119.64-25.26L256 251.73l94.22-73.28A95.86 95.86 0 01348.81 80H88a56.06 56.06 0 00-56 56v240a56.06 56.06 0 0056 56h336a56.06 56.06 0 0056-56V211.19a95.85 95.85 0 01-108.62-8.66z'/></svg>",mailUnreadOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Mail Unread</title><path d='M320 96H88a40 40 0 00-40 40v240a40 40 0 0040 40h334.73a40 40 0 0040-40V239' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M112 160l144 112 87-65.67' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='431.95' cy='128.05' r='47.95'/><path d='M432 192a63.95 63.95 0 1163.95-63.95A64 64 0 01432 192zm0-95.9a32 32 0 1031.95 32 32 32 0 00-31.95-32z'/></svg>",megaphoneOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Megaphone</title><path d='M407.94 52.22S321.3 160 240 160H80a16 16 0 00-16 16v96a16 16 0 0016 16h160c81.3 0 167.94 108.23 167.94 108.23 6.06 8 24.06 2.52 24.06-9.83V62c0-12.31-17-18.82-24.06-9.78zM64 256s-16-6-16-32 16-32 16-32M448 246s16-4.33 16-22-16-22-16-22M256 160v128M112 160v128' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M144 288v168a8 8 0 008 8h53a16 16 0 0015.29-20.73C211.91 416.39 192 386.08 192 336h16a16 16 0 0016-16v-16a16 16 0 00-16-16h-16' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",menu="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Menu</title><path stroke-linecap='round' stroke-miterlimit='10' stroke-width='48' d='M88 152h336M88 256h336M88 360h336' class='ionicon-fill-none'/></svg>",menuOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Menu</title><path stroke-linecap='round' stroke-miterlimit='10' d='M80 160h352M80 256h352M80 352h352' class='ionicon-fill-none ionicon-stroke-width'/></svg>",mic="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Mic</title><path stroke-linecap='round' stroke-linejoin='round' d='M192 448h128M384 208v32c0 70.4-57.6 128-128 128h0c-70.4 0-128-57.6-128-128v-32M256 368v80' class='ionicon-fill-none ionicon-stroke-width'/><path d='M256 320a78.83 78.83 0 01-56.55-24.1A80.89 80.89 0 01176 239V128a79.69 79.69 0 0180-80c44.86 0 80 35.14 80 80v111c0 44.66-35.89 81-80 81z'/></svg>",micOffOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Mic Off</title><path stroke-linecap='round' stroke-miterlimit='10' d='M432 400L96 64' class='ionicon-fill-none ionicon-stroke-width'/><path d='M400 240v-31.55c0-8.61-6.62-16-15.23-16.43A16 16 0 00368 208v32a111.58 111.58 0 01-2.45 23.31 4.05 4.05 0 001.07 3.69l21.82 21.81a2 2 0 003.29-.72A143.27 143.27 0 00400 240zM256 352a112.36 112.36 0 01-112-112v-31.55c0-8.61-6.62-16-15.23-16.43A16 16 0 00112 208v32c0 74 56.1 135.12 128 143.11V432h-47.55c-8.61 0-16 6.62-16.43 15.23A16 16 0 00192 464h127.55c8.61 0 16-6.62 16.43-15.23A16 16 0 00320 432h-48v-48.89a143.08 143.08 0 0052-16.22 4 4 0 00.91-6.35L307 342.63a4 4 0 00-4.51-.78A110.78 110.78 0 01256 352zM256 80a47.18 47.18 0 0148 48v74.72a4 4 0 001.17 2.82L332.59 233a2 2 0 003.41-1.42V128.91C336 85 301 48.6 257.14 48a79.66 79.66 0 00-68.47 36.57 4 4 0 00.54 5l19.54 19.54a2 2 0 003.25-.63A47.44 47.44 0 01256 80z'/><path d='M207.27 242.9L179.41 215a2 2 0 00-3.41 1.42V239a80.89 80.89 0 0023.45 56.9 78.55 78.55 0 0077.8 21.19 2 2 0 00.86-3.35l-24.91-24.91a4.08 4.08 0 00-2.42-1.15c-21.65-2.52-39.48-20.44-42.37-42.43a4 4 0 00-1.14-2.35z'/></svg>",moveOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Move</title><path stroke-linecap='round' stroke-linejoin='round' d='M176 112l80-80 80 80M255.98 32l.02 448M176 400l80 80 80-80M400 176l80 80-80 80M112 176l-80 80 80 80M32 256h448' class='ionicon-fill-none ionicon-stroke-width'/></svg>",newspaperOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Newspaper</title><path d='M368 415.86V72a24.07 24.07 0 00-24-24H72a24.07 24.07 0 00-24 24v352a40.12 40.12 0 0040 40h328' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M416 464h0a48 48 0 01-48-48V128h72a24 24 0 0124 24v264a48 48 0 01-48 48z' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M240 128h64M240 192h64M112 256h192M112 320h192M112 384h192' class='ionicon-fill-none ionicon-stroke-width'/><path d='M176 208h-64a16 16 0 01-16-16v-64a16 16 0 0116-16h64a16 16 0 0116 16v64a16 16 0 01-16 16z'/></svg>",notificationsOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Notifications</title><path d='M427.68 351.43C402 320 383.87 304 383.87 217.35 383.87 138 343.35 109.73 310 96c-4.43-1.82-8.6-6-9.95-10.55C294.2 65.54 277.8 48 256 48s-38.21 17.55-44 37.47c-1.35 4.6-5.52 8.71-9.95 10.53-33.39 13.75-73.87 41.92-73.87 121.35C128.13 304 110 320 84.32 351.43 73.68 364.45 83 384 101.61 384h308.88c18.51 0 27.77-19.61 17.19-32.57zM320 384v16a64 64 0 01-128 0v-16' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",openOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Open</title><path d='M384 224v184a40 40 0 01-40 40H104a40 40 0 01-40-40V168a40 40 0 0140-40h167.48M336 64h112v112M224 288L440 72' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",paperPlane="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Paper Plane</title><path d='M473 39.05a24 24 0 00-25.5-5.46L47.47 185h-.08a24 24 0 001 45.16l.41.13 137.3 58.63a16 16 0 0015.54-3.59L422 80a7.07 7.07 0 0110 10L226.66 310.26a16 16 0 00-3.59 15.54l58.65 137.38c.06.2.12.38.19.57 3.2 9.27 11.3 15.81 21.09 16.25h1a24.63 24.63 0 0023-15.46L478.39 64.62A24 24 0 00473 39.05z'/></svg>",paperPlaneOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Paper Plane</title><path d='M53.12 199.94l400-151.39a8 8 0 0110.33 10.33l-151.39 400a8 8 0 01-15-.34l-67.4-166.09a16 16 0 00-10.11-10.11L53.46 215a8 8 0 01-.34-15.06zM460 52L227 285' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",pause="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Pause</title><path d='M208 432h-48a16 16 0 01-16-16V96a16 16 0 0116-16h48a16 16 0 0116 16v320a16 16 0 01-16 16zM352 432h-48a16 16 0 01-16-16V96a16 16 0 0116-16h48a16 16 0 0116 16v320a16 16 0 01-16 16z'/></svg>",pauseCircle="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Pause Circle</title><path d='M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm-32 272a16 16 0 01-32 0V192a16 16 0 0132 0zm96 0a16 16 0 01-32 0V192a16 16 0 0132 0z'/></svg>",pencil="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Pencil</title><path stroke-linecap='round' stroke-linejoin='round' stroke-width='44' d='M358.62 129.28L86.49 402.08 70 442l39.92-16.49 272.8-272.13-24.1-24.1zM413.07 74.84l-11.79 11.78 24.1 24.1 11.79-11.79a16.51 16.51 0 000-23.34l-.75-.75a16.51 16.51 0 00-23.35 0z' class='ionicon-fill-none'/></svg>",pencilOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Pencil</title><path stroke-linecap='round' stroke-linejoin='round' d='M364.13 125.25L87 403l-23 45 44.99-23 277.76-277.13-22.62-22.62zM420.69 68.69l-22.62 22.62 22.62 22.63 22.62-22.63a16 16 0 000-22.62h0a16 16 0 00-22.62 0z' class='ionicon-fill-none ionicon-stroke-width'/></svg>",peopleCircleOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>People Circle</title><path d='M256 464c-114.69 0-208-93.31-208-208S141.31 48 256 48s208 93.31 208 208-93.31 208-208 208zm0-384c-97 0-176 79-176 176s79 176 176 176 176-78.95 176-176S353.05 80 256 80z'/><path d='M323.67 292c-17.4 0-34.21-7.72-47.34-21.73a83.76 83.76 0 01-22-51.32c-1.47-20.7 4.88-39.75 17.88-53.62S303.38 144 323.67 144c20.14 0 38.37 7.62 51.33 21.46s19.47 33 18 53.51a84 84 0 01-22 51.3C357.86 284.28 341.06 292 323.67 292zm55.81-74zM163.82 295.36c-29.76 0-55.93-27.51-58.33-61.33-1.23-17.32 4.15-33.33 15.17-45.08s26.22-18 43.15-18 32.12 6.44 43.07 18.14 16.5 27.82 15.25 45c-2.44 33.77-28.6 61.27-58.31 61.27zM420.37 355.28c-1.59-4.7-5.46-9.71-13.22-14.46-23.46-14.33-52.32-21.91-83.48-21.91-30.57 0-60.23 7.9-83.53 22.25-26.25 16.17-43.89 39.75-51 68.18-1.68 6.69-4.13 19.14-1.51 26.11a192.18 192.18 0 00232.75-80.17zM163.63 401.37c7.07-28.21 22.12-51.73 45.47-70.75a8 8 0 00-2.59-13.77c-12-3.83-25.7-5.88-42.69-5.88-23.82 0-49.11 6.45-68.14 18.17-5.4 3.33-10.7 4.61-14.78 5.75a192.84 192.84 0 0077.78 86.64l1.79-.14a102.82 102.82 0 013.16-20.02z'/></svg>",peopleOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>People</title><path d='M402 168c-2.93 40.67-33.1 72-66 72s-63.12-31.32-66-72c-3-42.31 26.37-72 66-72s69 30.46 66 72z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M336 304c-65.17 0-127.84 32.37-143.54 95.41-2.08 8.34 3.15 16.59 11.72 16.59h263.65c8.57 0 13.77-8.25 11.72-16.59C463.85 335.36 401.18 304 336 304z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path d='M200 185.94c-2.34 32.48-26.72 58.06-53 58.06s-50.7-25.57-53-58.06C91.61 152.15 115.34 128 147 128s55.39 24.77 53 57.94z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M206 306c-18.05-8.27-37.93-11.45-59-11.45-52 0-102.1 25.85-114.65 76.2-1.65 6.66 2.53 13.25 9.37 13.25H154' stroke-linecap='round' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/></svg>",person="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Person</title><path d='M332.64 64.58C313.18 43.57 286 32 256 32c-30.16 0-57.43 11.5-76.8 32.38-19.58 21.11-29.12 49.8-26.88 80.78C156.76 206.28 203.27 256 256 256s99.16-49.71 103.67-110.82c2.27-30.7-7.33-59.33-27.03-80.6zM432 480H80a31 31 0 01-24.2-11.13c-6.5-7.77-9.12-18.38-7.18-29.11C57.06 392.94 83.4 353.61 124.8 326c36.78-24.51 83.37-38 131.2-38s94.42 13.5 131.2 38c41.4 27.6 67.74 66.93 76.18 113.75 1.94 10.73-.68 21.34-7.18 29.11A31 31 0 01432 480z'/></svg>",personAdd="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Person Add</title><path d='M288 256c52.79 0 99.43-49.71 104-110.82 2.27-30.7-7.36-59.33-27.12-80.6C345.33 43.57 318 32 288 32c-30.24 0-57.59 11.5-77 32.38-19.63 21.11-29.2 49.8-27 80.78C188.49 206.28 235.12 256 288 256zM495.38 439.76c-8.44-46.82-34.79-86.15-76.19-113.75C382.42 301.5 335.83 288 288 288s-94.42 13.5-131.19 38c-41.4 27.6-67.75 66.93-76.19 113.75-1.93 10.73.69 21.34 7.19 29.11A30.94 30.94 0 00112 480h352a30.94 30.94 0 0024.21-11.13c6.48-7.77 9.1-18.38 7.17-29.11zM104 288v-40h40a16 16 0 000-32h-40v-40a16 16 0 00-32 0v40H32a16 16 0 000 32h40v40a16 16 0 0032 0z'/></svg>",personAddOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Person Add</title><path d='M376 144c-3.92 52.87-44 96-88 96s-84.15-43.12-88-96c-4-55 35-96 88-96s92 42 88 96z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M288 304c-87 0-175.3 48-191.64 138.6-2 10.92 4.21 21.4 15.65 21.4H464c11.44 0 17.62-10.48 15.65-21.4C463.3 352 375 304 288 304z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M88 176v112M144 232H32' class='ionicon-fill-none ionicon-stroke-width'/></svg>",personCircleOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Person Circle</title><path d='M258.9 48C141.92 46.42 46.42 141.92 48 258.9c1.56 112.19 92.91 203.54 205.1 205.1 117 1.6 212.48-93.9 210.88-210.88C462.44 140.91 371.09 49.56 258.9 48zm126.42 327.25a4 4 0 01-6.14-.32 124.27 124.27 0 00-32.35-29.59C321.37 329 289.11 320 256 320s-65.37 9-90.83 25.34a124.24 124.24 0 00-32.35 29.58 4 4 0 01-6.14.32A175.32 175.32 0 0180 259c-1.63-97.31 78.22-178.76 175.57-179S432 158.81 432 256a175.32 175.32 0 01-46.68 119.25z'/><path d='M256 144c-19.72 0-37.55 7.39-50.22 20.82s-19 32-17.57 51.93C191.11 256 221.52 288 256 288s64.83-32 67.79-71.24c1.48-19.74-4.8-38.14-17.68-51.82C293.39 151.44 275.59 144 256 144z'/></svg>",personOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Person</title><path d='M344 144c-3.92 52.87-44 96-88 96s-84.15-43.12-88-96c-4-55 35-96 88-96s92 42 88 96z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M256 304c-87 0-175.3 48-191.64 138.6C62.39 453.52 68.57 464 80 464h352c11.44 0 17.62-10.48 15.65-21.4C431.3 352 343 304 256 304z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/></svg>",phonePortrait="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Phone Portrait</title><path d='M336 0H176a64 64 0 00-64 64v384a64 64 0 0064 64h160a64 64 0 0064-64V64a64 64 0 00-64-64zm32 448a32 32 0 01-32 32H176a32 32 0 01-32-32V64a32 32 0 0132-32h11.35a7.94 7.94 0 017.3 4.75A32 32 0 00224 56h64a32 32 0 0029.35-19.25 7.94 7.94 0 017.3-4.75H336a32 32 0 0132 32z'/><path d='M336 48a11.88 11.88 0 00-9.53 4.69A48 48 0 01288 72h-64a48 48 0 01-38.47-19.31A11.88 11.88 0 00176 48a16 16 0 00-16 16v384a16 16 0 0016 16h160a16 16 0 0016-16V64a16 16 0 00-16-16z'/><path d='M336 0H176a64 64 0 00-64 64v384a64 64 0 0064 64h160a64 64 0 0064-64V64a64 64 0 00-64-64zm32 448a32 32 0 01-32 32H176a32 32 0 01-32-32V64a32 32 0 0132-32h11.35a7.94 7.94 0 017.3 4.75A32 32 0 00224 56h64a32 32 0 0029.35-19.25 7.94 7.94 0 017.3-4.75H336a32 32 0 0132 32z'/></svg>",phonePortraitOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Phone Portrait</title><rect x='128' y='16' width='256' height='480' rx='48' ry='48' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M176 16h24a8 8 0 018 8h0a16 16 0 0016 16h64a16 16 0 0016-16h0a8 8 0 018-8h24' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",phonePortraitSharp="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Phone Portrait</title><path d='M382 0H130a18 18 0 00-18 18v476a18 18 0 0018 18h252a18 18 0 0018-18V18a18 18 0 00-18-18zM148 448V64h216v384z'/></svg>",play="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Play</title><path d='M133 440a35.37 35.37 0 01-17.5-4.67c-12-6.8-19.46-20-19.46-34.33V111c0-14.37 7.46-27.53 19.46-34.33a35.13 35.13 0 0135.77.45l247.85 148.36a36 36 0 010 61l-247.89 148.4A35.5 35.5 0 01133 440z'/></svg>",playCircleOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Play Circle</title><path d='M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path d='M216.32 334.44l114.45-69.14a10.89 10.89 0 000-18.6l-114.45-69.14a10.78 10.78 0 00-16.32 9.31v138.26a10.78 10.78 0 0016.32 9.31z'/></svg>",pricetag="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Pricetag</title><path d='M467 45.2A44.45 44.45 0 00435.29 32H312.36a30.63 30.63 0 00-21.52 8.89L45.09 286.59a44.82 44.82 0 000 63.32l117 117a44.83 44.83 0 0063.34 0l245.65-245.6A30.6 30.6 0 00480 199.8v-123a44.24 44.24 0 00-13-31.6zM384 160a32 32 0 1132-32 32 32 0 01-32 32z'/></svg>",pricetagOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Pricetag</title><path d='M435.25 48h-122.9a14.46 14.46 0 00-10.2 4.2L56.45 297.9a28.85 28.85 0 000 40.7l117 117a28.85 28.85 0 0040.7 0L459.75 210a14.46 14.46 0 004.2-10.2v-123a28.66 28.66 0 00-28.7-28.8z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M384 160a32 32 0 1132-32 32 32 0 01-32 32z'/></svg>",print="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Print</title><path d='M408 112H106a58 58 0 00-58 58v158a56 56 0 0056 56h8v39.68A40.32 40.32 0 00152.32 464h207.36A40.32 40.32 0 00400 423.68V384h8a56 56 0 0056-56V168a56 56 0 00-56-56zm-40 311.68a8.35 8.35 0 01-8.32 8.32H152.32a8.35 8.35 0 01-8.32-8.32V264.32a8.35 8.35 0 018.32-8.32h207.36a8.35 8.35 0 018.32 8.32zm26-215.76a24 24 0 1122-22 24 24 0 01-22 22zM344 48H168a56.09 56.09 0 00-55.42 48h286.84A56.09 56.09 0 00344 48z'/></svg>",qrCodeOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Qr Code</title><rect x='336' y='336' width='80' height='80' rx='8' ry='8'/><rect x='272' y='272' width='64' height='64' rx='8' ry='8'/><rect x='416' y='416' width='64' height='64' rx='8' ry='8'/><rect x='432' y='272' width='48' height='48' rx='8' ry='8'/><rect x='272' y='432' width='48' height='48' rx='8' ry='8'/><rect x='336' y='96' width='80' height='80' rx='8' ry='8'/><rect x='288' y='48' width='176' height='176' rx='16' ry='16' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><rect x='96' y='96' width='80' height='80' rx='8' ry='8'/><rect x='48' y='48' width='176' height='176' rx='16' ry='16' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><rect x='96' y='336' width='80' height='80' rx='8' ry='8'/><rect x='48' y='288' width='176' height='176' rx='16' ry='16' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",radioButtonOff="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Radio Button Off</title><path d='M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/></svg>",radioButtonOffOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Radio Button Off</title><path d='M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/></svg>",radioButtonOn="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Radio Button On</title><path d='M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='256' cy='256' r='144'/></svg>",readerOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Reader</title><rect x='96' y='48' width='320' height='416' rx='48' ry='48' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M176 128h160M176 208h160M176 288h80' class='ionicon-fill-none ionicon-stroke-width'/></svg>",recording="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Recording</title><path d='M380.79 144.05c-59.1 1.65-107.12 49.71-108.79 108.81a111.64 111.64 0 0030.36 79.77A2 2 0 01301 336h-90a2 2 0 01-1.44-3.37A111.64 111.64 0 00240 252.86c-1.63-59.1-49.65-107.16-108.75-108.81A112.12 112.12 0 0016 255.53C15.75 317.77 67 368 129.24 368h253.52C445 368 496.25 317.77 496 255.53a112.12 112.12 0 00-115.21-111.48z'/></svg>",recordingOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Recording</title><circle cx='128' cy='256' r='96' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><circle cx='384' cy='256' r='96' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M128 352h256' class='ionicon-fill-none ionicon-stroke-width'/></svg>",refreshCircleOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Refresh Circle</title><path d='M288 193s12.18-6-32-6a80 80 0 1080 80' stroke-linecap='round' stroke-miterlimit='10' stroke-width='28' class='ionicon-fill-none'/><path stroke-linecap='round' stroke-linejoin='round' stroke-width='28' d='M256 149l40 40-40 40' class='ionicon-fill-none'/><path d='M256 64C150 64 64 150 64 256s86 192 192 192 192-86 192-192S362 64 256 64z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/></svg>",refreshOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Refresh</title><path d='M320 146s24.36-12-64-12a160 160 0 10160 160' stroke-linecap='round' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M256 58l80 80-80 80' class='ionicon-fill-none ionicon-stroke-width'/></svg>",reloadOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Reload</title><path d='M400 148l-21.12-24.57A191.43 191.43 0 00240 64C134 64 48 150 48 256s86 192 192 192a192.09 192.09 0 00181.07-128' stroke-linecap='round' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path d='M464 97.42V208a16 16 0 01-16 16H337.42c-14.26 0-21.4-17.23-11.32-27.31L436.69 86.1C446.77 76 464 83.16 464 97.42z'/></svg>",removeOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Remove</title><path stroke-linecap='round' stroke-linejoin='round' d='M400 256H112' class='ionicon-fill-none ionicon-stroke-width'/></svg>",reorderTwoOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Reorder Two</title><path stroke-linecap='round' stroke-linejoin='round' d='M112 304h288M112 208h288' class='ionicon-fill-none ionicon-stroke-width'/></svg>",reorderTwoSharp="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Reorder Two</title><path stroke-linecap='square' stroke-linejoin='round' stroke-width='44' d='M118 304h276M118 208h276' class='ionicon-fill-none'/></svg>",repeat="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Repeat</title><path stroke-linecap='round' stroke-linejoin='round' d='M320 120l48 48-48 48' class='ionicon-fill-none ionicon-stroke-width'/><path d='M352 168H144a80.24 80.24 0 00-80 80v16M192 392l-48-48 48-48' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M160 344h208a80.24 80.24 0 0080-80v-16' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",returnUpBack="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Return Up Back</title><path stroke-linecap='round' stroke-linejoin='round' d='M112 160l-64 64 64 64' class='ionicon-fill-none ionicon-stroke-width'/><path d='M64 224h294c58.76 0 106 49.33 106 108v20' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",returnUpForwardOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Return Up Forward</title><path stroke-linecap='round' stroke-linejoin='round' d='M400 160l64 64-64 64' class='ionicon-fill-none ionicon-stroke-width'/><path d='M448 224H154c-58.76 0-106 49.33-106 108v20' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",scan="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Scan</title><path d='M342 444h46a56 56 0 0056-56v-46M444 170v-46a56 56 0 00-56-56h-46M170 444h-46a56 56 0 01-56-56v-46M68 170v-46a56 56 0 0156-56h46' stroke-linecap='round' stroke-linejoin='round' stroke-width='44' class='ionicon-fill-none'/></svg>",school="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>School</title><path d='M256 368a16 16 0 01-7.94-2.11L108 285.84a8 8 0 00-12 6.94V368a16 16 0 008.23 14l144 80a16 16 0 0015.54 0l144-80a16 16 0 008.23-14v-75.22a8 8 0 00-12-6.94l-140.06 80.05A16 16 0 01256 368z'/><path d='M495.92 190.5v-.11a16 16 0 00-8-12.28l-224-128a16 16 0 00-15.88 0l-224 128a16 16 0 000 27.78l224 128a16 16 0 0015.88 0L461 221.28a2 2 0 013 1.74v144.53c0 8.61 6.62 16 15.23 16.43A16 16 0 00496 368V192a14.76 14.76 0 00-.08-1.5z'/></svg>",schoolOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>School</title><path stroke-linecap='round' stroke-linejoin='round' d='M32 192L256 64l224 128-224 128L32 192z' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M112 240v128l144 80 144-80V240M480 368V192M256 320v128' class='ionicon-fill-none ionicon-stroke-width'/></svg>",search$1="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Search</title><path d='M456.69 421.39L362.6 327.3a173.81 173.81 0 0034.84-104.58C397.44 126.38 319.06 48 222.72 48S48 126.38 48 222.72s78.38 174.72 174.72 174.72A173.81 173.81 0 00327.3 362.6l94.09 94.09a25 25 0 0035.3-35.3zM97.92 222.72a124.8 124.8 0 11124.8 124.8 124.95 124.95 0 01-124.8-124.8z'/></svg>",searchOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Search</title><path d='M221.09 64a157.09 157.09 0 10157.09 157.09A157.1 157.1 0 00221.09 64z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-miterlimit='10' d='M338.29 338.29L448 448' class='ionicon-fill-none ionicon-stroke-width'/></svg>",sendOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Send</title><path d='M470.3 271.15L43.16 447.31a7.83 7.83 0 01-11.16-7V327a8 8 0 016.51-7.86l247.62-47c17.36-3.29 17.36-28.15 0-31.44l-247.63-47a8 8 0 01-6.5-7.85V72.59c0-5.74 5.88-10.26 11.16-8L470.3 241.76a16 16 0 010 29.39z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",settingsOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Settings</title><path d='M262.29 192.31a64 64 0 1057.4 57.4 64.13 64.13 0 00-57.4-57.4zM416.39 256a154.34 154.34 0 01-1.53 20.79l45.21 35.46a10.81 10.81 0 012.45 13.75l-42.77 74a10.81 10.81 0 01-13.14 4.59l-44.9-18.08a16.11 16.11 0 00-15.17 1.75A164.48 164.48 0 01325 400.8a15.94 15.94 0 00-8.82 12.14l-6.73 47.89a11.08 11.08 0 01-10.68 9.17h-85.54a11.11 11.11 0 01-10.69-8.87l-6.72-47.82a16.07 16.07 0 00-9-12.22 155.3 155.3 0 01-21.46-12.57 16 16 0 00-15.11-1.71l-44.89 18.07a10.81 10.81 0 01-13.14-4.58l-42.77-74a10.8 10.8 0 012.45-13.75l38.21-30a16.05 16.05 0 006-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 00-6.07-13.94l-38.19-30A10.81 10.81 0 0149.48 186l42.77-74a10.81 10.81 0 0113.14-4.59l44.9 18.08a16.11 16.11 0 0015.17-1.75A164.48 164.48 0 01187 111.2a15.94 15.94 0 008.82-12.14l6.73-47.89A11.08 11.08 0 01213.23 42h85.54a11.11 11.11 0 0110.69 8.87l6.72 47.82a16.07 16.07 0 009 12.22 155.3 155.3 0 0121.46 12.57 16 16 0 0015.11 1.71l44.89-18.07a10.81 10.81 0 0113.14 4.58l42.77 74a10.8 10.8 0 01-2.45 13.75l-38.21 30a16.05 16.05 0 00-6.05 14.08c.33 4.14.55 8.3.55 12.47z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",share="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Share</title><path d='M376 176H272v145a16 16 0 01-32 0V176H136a56.06 56.06 0 00-56 56v192a56.06 56.06 0 0056 56h240a56.06 56.06 0 0056-56V232a56.06 56.06 0 00-56-56zM272 86.63l52.69 52.68a16 16 0 0022.62-22.62l-80-80a16 16 0 00-22.62 0l-80 80a16 16 0 0022.62 22.62L240 86.63V176h32z'/></svg>",shareOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Share</title><path d='M336 192h40a40 40 0 0140 40v192a40 40 0 01-40 40H136a40 40 0 01-40-40V232a40 40 0 0140-40h40M336 128l-80-80-80 80M256 321V48' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",shareSocial="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Share Social</title><path d='M384 336a63.78 63.78 0 00-46.12 19.7l-148-83.27a63.85 63.85 0 000-32.86l148-83.27a63.8 63.8 0 10-15.73-27.87l-148 83.27a64 64 0 100 88.6l148 83.27A64 64 0 10384 336z'/></svg>",shield="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Shield</title><path d='M479.07 111.35a16 16 0 00-13.15-14.75C379.89 81.18 343.69 69.12 266 34.16c-7.76-2.89-12.57-2.84-20 0-77.69 35-113.89 47-199.92 62.44a16 16 0 00-13.15 14.75c-3.85 61.1 4.34 118 24.36 169.15a348.86 348.86 0 0071.43 112.41c44.67 47.43 94.2 75.12 119.74 85.6a20 20 0 0015.11 0c27-10.92 74.69-37.82 119.71-85.62a348.86 348.86 0 0071.43-112.39c20.02-51.14 28.21-108.05 24.36-169.15z'/></svg>",shieldCheckmarkOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Shield Checkmark</title><path stroke-linecap='round' stroke-linejoin='round' d='M336 176L225.2 304 176 255.8' class='ionicon-fill-none ionicon-stroke-width'/><path d='M463.1 112.37C373.68 96.33 336.71 84.45 256 48c-80.71 36.45-117.68 48.33-207.1 64.37C32.7 369.13 240.58 457.79 256 464c15.42-6.21 223.3-94.87 207.1-351.63z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",shuffle="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Shuffle</title><path stroke-linecap='round' stroke-linejoin='round' d='M400 304l48 48-48 48M400 112l48 48-48 48M64 352h85.19a80 80 0 0066.56-35.62L256 256' class='ionicon-fill-none ionicon-stroke-width'/><path d='M64 160h85.19a80 80 0 0166.56 35.62l80.5 120.76A80 80 0 00362.81 352H416M416 160h-53.19a80 80 0 00-66.56 35.62L288 208' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",shuffleOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Shuffle</title><path stroke-linecap='round' stroke-linejoin='round' d='M400 304l48 48-48 48M400 112l48 48-48 48M64 352h85.19a80 80 0 0066.56-35.62L256 256' class='ionicon-fill-none ionicon-stroke-width'/><path d='M64 160h85.19a80 80 0 0166.56 35.62l80.5 120.76A80 80 0 00362.81 352H416M416 160h-53.19a80 80 0 00-66.56 35.62L288 208' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",sparklesSharp="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Sparkles</title><path d='M208 512l-52.38-139.62L16 320l139.62-52.38L208 128l52.38 139.62L400 320l-139.62 52.38zM88 176l-23.57-64.43L0 88l64.43-23.57L88 0l23.57 64.43L176 88l-64.43 23.57zM400 256l-31.11-80.89L288 144l80.89-31.11L400 32l31.11 80.89L512 144l-80.89 31.11z'/></svg>",squareOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Square</title><path d='M416 448H96a32.09 32.09 0 01-32-32V96a32.09 32.09 0 0132-32h320a32.09 32.09 0 0132 32v320a32.09 32.09 0 01-32 32z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",star="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Star</title><path d='M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z'/></svg>",starOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Star</title><path d='M480 208H308L256 48l-52 160H32l140 96-54 160 138-100 138 100-54-160z' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",stopCircleOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Stop Circle</title><path d='M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path d='M310.4 336H201.6a25.62 25.62 0 01-25.6-25.6V201.6a25.62 25.62 0 0125.6-25.6h108.8a25.62 25.62 0 0125.6 25.6v108.8a25.62 25.62 0 01-25.6 25.6z'/></svg>",storefrontOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Storefront</title><path stroke-linecap='round' stroke-linejoin='round' d='M448 448V240M64 240v208M382.47 48H129.53c-21.79 0-41.47 12-49.93 30.46L36.3 173c-14.58 31.81 9.63 67.85 47.19 69h2c31.4 0 56.85-25.18 56.85-52.23 0 27 25.46 52.23 56.86 52.23s56.8-23.38 56.8-52.23c0 27 25.45 52.23 56.85 52.23s56.86-23.38 56.86-52.23c0 28.85 25.45 52.23 56.85 52.23h1.95c37.56-1.17 61.77-37.21 47.19-69l-43.3-94.54C423.94 60 404.26 48 382.47 48zM32 464h448M136 288h80a24 24 0 0124 24v88h0-128 0v-88a24 24 0 0124-24zM288 464V312a24 24 0 0124-24h64a24 24 0 0124 24v152' class='ionicon-fill-none ionicon-stroke-width'/></svg>",swapHorizontal="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Swap Horizontal</title><path stroke-linecap='round' stroke-linejoin='round' d='M304 48l112 112-112 112M398.87 160H96M208 464L96 352l112-112M114 352h302' class='ionicon-fill-none ionicon-stroke-width'/></svg>",swapHorizontalOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Swap Horizontal</title><path stroke-linecap='round' stroke-linejoin='round' d='M304 48l112 112-112 112M398.87 160H96M208 464L96 352l112-112M114 352h302' class='ionicon-fill-none ionicon-stroke-width'/></svg>",swapVerticalOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Swap Vertical</title><path stroke-linecap='round' stroke-linejoin='round' d='M464 208L352 96 240 208M352 113.13V416M48 304l112 112 112-112M160 398V96' class='ionicon-fill-none ionicon-stroke-width'/></svg>",syncOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Sync</title><path d='M434.67 285.59v-29.8c0-98.73-80.24-178.79-179.2-178.79a179 179 0 00-140.14 67.36m-38.53 82v29.8C76.8 355 157 435 256 435a180.45 180.45 0 00140-66.92' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M32 256l44-44 46 44M480 256l-44 44-46-44' class='ionicon-fill-none ionicon-stroke-width'/></svg>",telescopeOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Telescope</title><path stroke-linecap='round' stroke-linejoin='round' d='M39.93 327.56l-4.71-8.13A24 24 0 0144 286.64l86.87-50.07a16 16 0 0121.89 5.86l12.71 22a16 16 0 01-5.86 21.85l-86.85 50.07a24.06 24.06 0 01-32.83-8.79z' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M170.68 273.72L147.12 233a24 24 0 018.8-32.78l124.46-71.75a16 16 0 0121.89 5.86l31.57 54.59a16 16 0 01-5.84 21.84L203.51 282.5a24 24 0 01-32.83-8.78zM341.85 202.21l-46.51-80.43a24 24 0 018.8-32.78l93.29-53.78A24.07 24.07 0 01430.27 44l46.51 80.43a24 24 0 01-8.8 32.79L374.69 211a24.06 24.06 0 01-32.84-8.79zM127.59 480l96.14-207.99M271.8 256.02L368.55 448' class='ionicon-fill-none ionicon-stroke-width'/></svg>",textOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Text</title><path stroke-linecap='round' stroke-linejoin='round' d='M32 415.5l120-320 120 320M230 303.5H74M326 239.5c12.19-28.69 41-48 74-48h0c46 0 80 32 80 80v144' class='ionicon-fill-none ionicon-stroke-width'/><path d='M320 358.5c0 36 26.86 58 60 58 54 0 100-27 100-106v-15c-20 0-58 1-92 5-32.77 3.86-68 19-68 58z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",time="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Time</title><path d='M256 48C141.13 48 48 141.13 48 256s93.13 208 208 208 208-93.13 208-208S370.87 48 256 48zm96 240h-96a16 16 0 01-16-16V128a16 16 0 0132 0v128h80a16 16 0 010 32z'/></svg>",timerOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Timer</title><path d='M112.91 128A191.85 191.85 0 0064 254c-1.18 106.35 85.65 193.8 192 194 106.2.2 192-85.83 192-192 0-104.54-83.55-189.61-187.5-192a4.36 4.36 0 00-4.5 4.37V152' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M233.38 278.63l-79-113a8.13 8.13 0 0111.32-11.32l113 79a32.5 32.5 0 01-37.25 53.26 33.21 33.21 0 01-8.07-7.94z'/></svg>",toggle="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Toggle</title><path d='M368 112H144C64.6 112 0 176.6 0 256s64.6 144 144 144h224c79.4 0 144-64.6 144-144s-64.6-144-144-144zm0 256a112 112 0 11112-112 112.12 112.12 0 01-112 112z'/></svg>",trash="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Trash</title><path d='M296 64h-80a7.91 7.91 0 00-8 8v24h96V72a7.91 7.91 0 00-8-8z' class='ionicon-fill-none'/><path d='M432 96h-96V72a40 40 0 00-40-40h-80a40 40 0 00-40 40v24H80a16 16 0 000 32h17l19 304.92c1.42 26.85 22 47.08 48 47.08h184c26.13 0 46.3-19.78 48-47l19-305h17a16 16 0 000-32zM192.57 416H192a16 16 0 01-16-15.43l-8-224a16 16 0 1132-1.14l8 224A16 16 0 01192.57 416zM272 400a16 16 0 01-32 0V176a16 16 0 0132 0zm32-304h-96V72a7.91 7.91 0 018-8h80a7.91 7.91 0 018 8zm32 304.57A16 16 0 01320 416h-.58A16 16 0 01304 399.43l8-224a16 16 0 1132 1.14z'/></svg>",trashBin="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Trash Bin</title><rect x='32' y='48' width='448' height='80' rx='32' ry='32'/><path d='M74.45 160a8 8 0 00-8 8.83l26.31 252.56a1.5 1.5 0 000 .22A48 48 0 00140.45 464h231.09a48 48 0 0047.67-42.39v-.21l26.27-252.57a8 8 0 00-8-8.83zm248.86 180.69a16 16 0 11-22.63 22.62L256 318.63l-44.69 44.68a16 16 0 01-22.63-22.62L233.37 296l-44.69-44.69a16 16 0 0122.63-22.62L256 273.37l44.68-44.68a16 16 0 0122.63 22.62L278.62 296z'/></svg>",trashBinOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Trash Bin</title><path d='M432 144l-28.67 275.74A32 32 0 01371.55 448H140.46a32 32 0 01-31.78-28.26L80 144' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><rect x='32' y='64' width='448' height='80' rx='16' ry='16' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-linejoin='round' d='M312 240L200 352M312 352L200 240' class='ionicon-fill-none ionicon-stroke-width'/></svg>",trashOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Trash</title><path d='M112 112l20 320c.95 18.49 14.4 32 32 32h184c17.67 0 30.87-13.51 32-32l20-320' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-miterlimit='10' d='M80 112h352' class='ionicon-stroke-width'/><path d='M192 112V72h0a23.93 23.93 0 0124-24h80a23.93 23.93 0 0124 24h0v40M256 176v224M184 176l8 224M328 176l-8 224' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",trendingUp="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Trending Up</title><path stroke-linecap='round' stroke-linejoin='round' d='M352 144h112v112' class='ionicon-fill-none ionicon-stroke-width'/><path d='M48 368l121.37-121.37a32 32 0 0145.26 0l50.74 50.74a32 32 0 0045.26 0L448 160' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",volumeHigh="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Volume High</title><path d='M232 416a23.88 23.88 0 01-14.2-4.68 8.27 8.27 0 01-.66-.51L125.76 336H56a24 24 0 01-24-24V200a24 24 0 0124-24h69.75l91.37-74.81a8.27 8.27 0 01.66-.51A24 24 0 01256 120v272a24 24 0 01-24 24zm-106.18-80zm-.27-159.86zM320 336a16 16 0 01-14.29-23.19c9.49-18.87 14.3-38 14.3-56.81 0-19.38-4.66-37.94-14.25-56.73a16 16 0 0128.5-14.54C346.19 208.12 352 231.44 352 256c0 23.86-6 47.81-17.7 71.19A16 16 0 01320 336z'/><path d='M368 384a16 16 0 01-13.86-24C373.05 327.09 384 299.51 384 256c0-44.17-10.93-71.56-29.82-103.94a16 16 0 0127.64-16.12C402.92 172.11 416 204.81 416 256c0 50.43-13.06 83.29-34.13 120a16 16 0 01-13.87 8z'/><path d='M416 432a16 16 0 01-13.39-24.74C429.85 365.47 448 323.76 448 256c0-66.5-18.18-108.62-45.49-151.39a16 16 0 1127-17.22C459.81 134.89 480 181.74 480 256c0 64.75-14.66 113.63-50.6 168.74A16 16 0 01416 432z'/></svg>",warning="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Warning</title><path d='M449.07 399.08L278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0080 446.25h340.89a32 32 0 0028.18-47.17zm-198.6-1.83a20 20 0 1120-20 20 20 0 01-20 20zm21.72-201.15l-5.74 122a16 16 0 01-32 0l-5.74-121.95a21.73 21.73 0 0121.5-22.69h.21a21.74 21.74 0 0121.73 22.7z'/></svg>",warningOutline="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Warning</title><path d='M85.57 446.25h340.86a32 32 0 0028.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0028.17 47.17z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M250.26 195.39l5.74 122 5.73-121.95a5.74 5.74 0 00-5.79-6h0a5.74 5.74 0 00-5.68 5.95z' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/><path d='M256 397.25a20 20 0 1120-20 20 20 0 01-20 20z'/></svg>",Badge=({color:o="primary",icon:s=null,iconColor:a="danger",text:$=null,size:j=null,slot:_e="end"})=>{const et=_e==="start"?"mr-1":"ml-1";return!$&&!s?jsxRuntimeExports.jsx(IonIcon,{icon:ellipse,color:o,slot:_e,className:et,...j?{size:j}:{style:{fontSize:"8px"}}}):jsxRuntimeExports.jsxs(IonBadge,{color:o,className:`${et}`,slot:_e,style:{borderRadius:"50px",fontSize:"8px"},...j&&{size:j},children:[s&&jsxRuntimeExports.jsx(IonIcon,{icon:s,color:a}),$&&$]})},Button$1=({className:o="",isLoading:s=!1,children:a,disabled:$=!1,btnStyle:j="primary",expand:_e,fill:et="solid",onClick:tt,color:nt,size:it,slot:rt="",type:st="button",badged:ot=!1,badgeColor:at,badgeIcon:lt,badgeIconColor:ct,badgeText:ht,badgeSlot:dt,badgeSize:ut,...pt})=>jsxRuntimeExports.jsx(IonButton,{color:nt,onClick:tt,disabled:$,expand:_e,fill:et,size:it,slot:rt,type:st,className:`
        ${s?"pointer-events-none cursor-not-allowed ":" "}
        ${et==="outline"?`button-${j}-outline`:`button-${j}`} ${o}`,...pt,children:s?jsxRuntimeExports.jsxs("div",{className:"relative flex items-center justify-center",children:[jsxRuntimeExports.jsx("div",{className:"invisible",style:{minWidth:24},children:a}),jsxRuntimeExports.jsx(IonSpinner,{className:"absolute inset-0 m-auto",name:"dots",color:j==="secondary"&&et==="outline"?"primary-100":j==="secondary"?"primary-300":j==="warning"?"nonary":j==="success"&&et==="outline"?"secondary-600":j==="clear"&&et==="outline"||j==="white"?nt:"white"})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[ot&&jsxRuntimeExports.jsx(Badge,{color:at,icon:lt,iconColor:ct,slot:dt,text:ht,size:ut}),a]})}),withButton=({btnStyle:o,children:s,isLoading:a,disabled:$,expand:j,onClick:_e,className:et,fill:tt,color:nt,size:it,slot:rt,type:st,badged:ot,badgeColor:at,...lt})=>jsxRuntimeExports.jsx(Button$1,{color:nt,btnStyle:o,isLoading:a,disabled:$,onClick:_e,expand:j,className:et,fill:tt,size:it,slot:rt,type:st,badged:ot,badgeColor:at,...lt,children:s}),PrimaryButton=({btnStyle:o="primary",...s})=>withButton({btnStyle:o,...s}),SecondaryButton=({btnStyle:o="secondary",...s})=>withButton({btnStyle:o,...s}),CancelButton=({btnStyle:o="cancel",...s})=>withButton({btnStyle:o,...s}),SuccessButton=({btnStyle:o="success",...s})=>withButton({btnStyle:o,...s}),WarningButton=({btnStyle:o="warning",...s})=>withButton({btnStyle:o,...s}),DangerButton=({btnStyle:o="danger",...s})=>withButton({btnStyle:o,...s}),ClearButton=({btnStyle:o="clear",fill:s="clear",...a})=>withButton({btnStyle:o,fill:s,...a}),GradientButton=({btnStyle:o="gradient",...s})=>withButton({btnStyle:o,...s}),WhiteButton=({btnStyle:o="white",...s})=>withButton({btnStyle:o,...s}),OrangeButton=({btnStyle:o="orange",...s})=>withButton({btnStyle:o,...s}),VALUES={"x-small":{iconSize:"text-sm",badgePosition:"right-[1px] top-[1px]"},smaller:{iconSize:"text-lg",badgePosition:"right-[1px] top-[1px]"},small:{iconSize:"text-xl",badgePosition:"right-[1px] top-[1px]"},default:{iconSize:"text-2xl",badgePosition:"right-[1px] top-[1px]"},large:{iconSize:"text-3xl",badgePosition:"right-[-2px] top-[2px]"},larger:{iconSize:"text-4xl",badgePosition:"right-[-2px] top-[2px]"},"x-large":{iconSize:"text-5xl",badgePosition:"right-[-2px] top-[2px]"},"2x-large":{iconSize:"text-7xl",badgePosition:"right-[-2px] top-[2px]"},custom:{iconSize:"",badgePosition:""}},Icon=({"data-test":o,badge:s,size:a="default",prepend:$,append:j,className:_e,fillContainer:et=!1,iconSize:tt,badgePosition:nt,truncate:it,onClick:rt,...st})=>{const{iconSize:ot,badgePosition:at}=VALUES[a];return jsxRuntimeExports.jsxs("div",{"data-test":o,className:clsx("relative",et?"w-full h-full":"w-max",it&&"max-w-full","flex items-center",!(_e!=null&&_e.includes("gap"))&&"gap-1",_e),onClick:rt,children:[$&&jsxRuntimeExports.jsx("span",{children:$}),jsxRuntimeExports.jsx(IonIcon,{className:clsx(tt||ot,et&&"w-full h-full","flex-shrink-0"),...st}),s&&jsxRuntimeExports.jsx("div",{className:clsx("absolute",nt||at),children:s}),j&&jsxRuntimeExports.jsx("span",{className:clsx(it&&"truncate"),children:j})]})},SvgProBadge=o=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:33,height:17,fill:"none",viewBox:"0 0 33 17",...o},reactExports.createElement("path",{fill:"#none",d:"M0.84375 3.89773C0.84375 1.74507 2.58882 0 4.74148 0H29.1023C31.2549 0 33 1.74507 33 3.89773V12.6676C33 14.8203 31.2549 16.5653 29.1023 16.5653H4.74148C2.58882 16.5653 0.84375 14.8203 0.84375 12.6676V3.89773Z"}),reactExports.createElement("path",{fill:"#fff",d:"M5.59123 13.0797C5.24823 13.0797 4.98318 12.9861 4.79609 12.7991C4.609 12.6042 4.51545 12.3352 4.51545 11.9922V5.81823C4.51545 5.46743 4.609 5.19849 4.79609 5.0114C4.99098 4.82431 5.25992 4.73076 5.60292 4.73076H8.47944C9.4149 4.73076 10.136 4.97242 10.6427 5.45574C11.1572 5.93126 11.4144 6.58998 11.4144 7.43189C11.4144 8.2738 11.1572 8.93641 10.6427 9.41973C10.136 9.89525 9.4149 10.133 8.47944 10.133H6.667V11.9922C6.667 12.3352 6.57735 12.6042 6.39806 12.7991C6.21876 12.9861 5.94982 13.0797 5.59123 13.0797ZM6.667 8.48428H8.10526C8.51062 8.48428 8.82244 8.39853 9.04071 8.22703C9.25899 8.04773 9.36812 7.78268 9.36812 7.43189C9.36812 7.0733 9.25899 6.80825 9.04071 6.63675C8.82244 6.46525 8.51062 6.3795 8.10526 6.3795H6.667V8.48428ZM13.4933 13.0797C13.1503 13.0797 12.8852 12.9861 12.6981 12.7991C12.511 12.6042 12.4175 12.3352 12.4175 11.9922V5.81823C12.4175 5.46743 12.511 5.19849 12.6981 5.0114C12.893 4.82431 13.162 4.73076 13.505 4.73076H16.3815C17.3169 4.73076 18.038 4.96073 18.5447 5.42066C19.0592 5.8728 19.3165 6.50423 19.3165 7.31496C19.3165 7.83725 19.1995 8.29329 18.9657 8.68306C18.7396 9.06504 18.4083 9.36126 17.9717 9.57174C17.543 9.77442 17.0129 9.87576 16.3815 9.87576L16.475 9.66529H17.0363C17.3715 9.66529 17.6677 9.74714 17.925 9.91084C18.1822 10.0668 18.3966 10.3084 18.5681 10.6358L19.1528 11.6882C19.2775 11.9143 19.336 12.1364 19.3282 12.3547C19.3204 12.5652 19.2346 12.7406 19.0709 12.8809C18.915 13.0134 18.685 13.0797 18.381 13.0797C18.077 13.0797 17.8275 13.0173 17.6326 12.8926C17.4456 12.7679 17.278 12.573 17.1298 12.3079L16.0658 10.3552C15.9722 10.1837 15.8514 10.0668 15.7033 10.0044C15.563 9.93423 15.3992 9.89915 15.2122 9.89915H14.569V11.9922C14.569 12.3352 14.4794 12.6042 14.3001 12.7991C14.1208 12.9861 13.8518 13.0797 13.4933 13.0797ZM14.569 8.37904H15.9956C16.4088 8.37904 16.7245 8.29718 16.9427 8.13348C17.161 7.96978 17.2702 7.71642 17.2702 7.37342C17.2702 7.04601 17.161 6.80046 16.9427 6.63675C16.7245 6.46525 16.4088 6.3795 15.9956 6.3795H14.569V8.37904ZM24.5921 13.1031C23.758 13.1031 23.0252 12.9277 22.3938 12.5769C21.7623 12.2183 21.2712 11.7194 20.9204 11.0802C20.5774 10.4409 20.4059 9.69647 20.4059 8.84676C20.4059 8.20754 20.5034 7.62678 20.6983 7.10448C20.9009 6.58218 21.1855 6.13395 21.5519 5.75976C21.926 5.38558 22.3704 5.10105 22.8849 4.90616C23.3994 4.70348 23.9685 4.60214 24.5921 4.60214C25.4262 4.60214 26.1551 4.77754 26.7787 5.12833C27.4102 5.47913 27.9013 5.97414 28.2521 6.61337C28.6029 7.2448 28.7783 7.98926 28.7783 8.84676C28.7783 9.48599 28.6769 10.0668 28.4742 10.589C28.2793 11.1113 27.9948 11.5635 27.6206 11.9455C27.2542 12.3196 26.8138 12.6081 26.2993 12.8108C25.7848 13.0056 25.2157 13.1031 24.5921 13.1031ZM24.5921 11.3023C25.0053 11.3023 25.356 11.2049 25.6445 11.01C25.9329 10.8151 26.1551 10.5345 26.311 10.1681C26.4669 9.80171 26.5449 9.36126 26.5449 8.84676C26.5449 8.07501 26.3734 7.47476 26.0304 7.04601C25.6874 6.61726 25.2079 6.40289 24.5921 6.40289C24.1867 6.40289 23.8359 6.50033 23.5397 6.69522C23.2513 6.88231 23.0291 7.15905 22.8732 7.52543C22.7173 7.88403 22.6393 8.32447 22.6393 8.84676C22.6393 9.61851 22.8108 10.2227 23.1538 10.6592C23.4968 11.088 23.9763 11.3023 24.5921 11.3023Z"})),ProBadge=({bgColor:o="primary-100","data-test":s,positioned:a=!1,size:$=4,className:j})=>jsxRuntimeExports.jsx(SvgProBadge,{"data-test":s,className:`
      ${a?"absolute top-0 -right-9":""}
      rounded 
      w-${$*2} 
      h-${$} 
      bg-${o}
      ${j}
      `}),SvgProPlusBadge=o=>reactExports.createElement("svg",{width:62,height:16,viewBox:"0 0 62 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},reactExports.createElement("path",{d:"M0 3.64894C0 1.63368 1.63368 0 3.64894 0H58.3511C60.3663 0 62 1.63368 62 3.64894V12.3511C62 14.3663 60.3663 16 58.3511 16H3.64894C1.63368 16 0 14.3663 0 12.3511V3.64894Z",fill:"url(#paint0_linear_507_3771)"}),reactExports.createElement("path",{d:"M4.71674 12.0106C4.39563 12.0106 4.1475 11.9231 3.97235 11.7479C3.7972 11.5655 3.70963 11.3137 3.70963 10.9926V5.21266C3.70963 4.88426 3.7972 4.63248 3.97235 4.45733C4.1548 4.28218 4.40658 4.19461 4.72768 4.19461H7.4206C8.29634 4.19461 8.9714 4.42084 9.44576 4.87331C9.92742 5.31848 10.1682 5.93515 10.1682 6.72332C10.1682 7.51149 9.92742 8.13181 9.44576 8.58428C8.9714 9.02945 8.29634 9.25203 7.4206 9.25203H5.72384V10.9926C5.72384 11.3137 5.63992 11.5655 5.47207 11.7479C5.30421 11.9231 5.05244 12.0106 4.71674 12.0106ZM5.72384 7.70853H7.0703C7.44979 7.70853 7.7417 7.62826 7.94604 7.4677C8.15038 7.29985 8.25255 7.05173 8.25255 6.72332C8.25255 6.38762 8.15038 6.13949 7.94604 5.97894C7.7417 5.81839 7.44979 5.73811 7.0703 5.73811H5.72384V7.70853ZM12.1144 12.0106C11.7933 12.0106 11.5451 11.9231 11.37 11.7479C11.1949 11.5655 11.1073 11.3137 11.1073 10.9926V5.21266C11.1073 4.88426 11.1949 4.63248 11.37 4.45733C11.5524 4.28218 11.8042 4.19461 12.1253 4.19461H14.8182C15.694 4.19461 16.369 4.4099 16.8434 4.84047C17.3251 5.26375 17.5659 5.85488 17.5659 6.61385C17.5659 7.10281 17.4564 7.52974 17.2375 7.89463C17.0259 8.25223 16.7157 8.52955 16.307 8.72659C15.9056 8.91633 15.4094 9.0112 14.8182 9.0112L14.9058 8.81416H15.4313C15.7451 8.81416 16.0224 8.89079 16.2632 9.04405C16.5041 9.19 16.7047 9.41624 16.8653 9.72275L17.4126 10.708C17.5294 10.9196 17.5841 11.1276 17.5768 11.3319C17.5695 11.529 17.4893 11.6932 17.336 11.8245C17.1901 11.9486 16.9748 12.0106 16.6901 12.0106C16.4055 12.0106 16.172 11.9522 15.9896 11.8355C15.8144 11.7187 15.6575 11.5363 15.5188 11.2881L14.5227 9.46002C14.4351 9.29947 14.322 9.19 14.1833 9.13162C14.052 9.06594 13.8987 9.0331 13.7236 9.0331H13.1215V10.9926C13.1215 11.3137 13.0376 11.5655 12.8697 11.7479C12.7019 11.9231 12.4501 12.0106 12.1144 12.0106ZM13.1215 7.61001H14.457C14.8438 7.61001 15.1394 7.53339 15.3437 7.38013C15.548 7.22687 15.6502 6.98969 15.6502 6.66859C15.6502 6.36208 15.548 6.13219 15.3437 5.97894C15.1394 5.81839 14.8438 5.73811 14.457 5.73811H13.1215V7.61001ZM22.5048 12.0325C21.7239 12.0325 21.0379 11.8683 20.4468 11.5399C19.8557 11.2042 19.3959 10.7372 19.0675 10.1387C18.7464 9.5403 18.5858 8.84335 18.5858 8.04789C18.5858 7.44946 18.6771 6.90577 18.8595 6.41681C19.0492 5.92785 19.3156 5.50823 19.6586 5.15793C20.0089 4.80763 20.4249 4.54126 20.9066 4.35881C21.3882 4.16907 21.921 4.07419 22.5048 4.07419C23.2857 4.07419 23.968 4.2384 24.5518 4.5668C25.143 4.8952 25.6027 5.35862 25.9311 5.95705C26.2595 6.54817 26.4237 7.24512 26.4237 8.04789C26.4237 8.64631 26.3289 9.19 26.1391 9.67896C25.9567 10.1679 25.6903 10.5912 25.34 10.9488C24.997 11.2991 24.5847 11.5691 24.103 11.7589C23.6214 11.9413 23.0886 12.0325 22.5048 12.0325ZM22.5048 10.3467C22.8916 10.3467 23.22 10.2555 23.49 10.073C23.76 9.8906 23.968 9.62788 24.114 9.28488C24.2599 8.94188 24.3329 8.52955 24.3329 8.04789C24.3329 7.3254 24.1724 6.76346 23.8512 6.36208C23.5301 5.96069 23.0813 5.76 22.5048 5.76C22.1253 5.76 21.7969 5.85123 21.5196 6.03367C21.2496 6.20882 21.0416 6.4679 20.8956 6.8109C20.7496 7.1466 20.6767 7.55893 20.6767 8.04789C20.6767 8.77038 20.8372 9.33596 21.1583 9.74464C21.4794 10.146 21.9283 10.3467 22.5048 10.3467ZM31.7524 12.0106C31.4313 12.0106 31.1831 11.9231 31.008 11.7479C30.8328 11.5655 30.7453 11.3137 30.7453 10.9926V5.21266C30.7453 4.88426 30.8328 4.63248 31.008 4.45733C31.1904 4.28218 31.4422 4.19461 31.7633 4.19461H34.4562C35.332 4.19461 36.007 4.42084 36.4814 4.87331C36.963 5.31848 37.2039 5.93515 37.2039 6.72332C37.2039 7.51149 36.963 8.13181 36.4814 8.58428C36.007 9.02945 35.332 9.25203 34.4562 9.25203H32.7595V10.9926C32.7595 11.3137 32.6755 11.5655 32.5077 11.7479C32.3398 11.9231 32.0881 12.0106 31.7524 12.0106ZM32.7595 7.70853H34.1059C34.4854 7.70853 34.7773 7.62826 34.9817 7.4677C35.186 7.29985 35.2882 7.05173 35.2882 6.72332C35.2882 6.38762 35.186 6.13949 34.9817 5.97894C34.7773 5.81839 34.4854 5.73811 34.1059 5.73811H32.7595V7.70853ZM39.161 11.9121C38.8398 11.9121 38.5881 11.8245 38.4056 11.6494C38.2305 11.4669 38.1429 11.2152 38.1429 10.8941V5.20172C38.1429 4.87331 38.2305 4.62153 38.4056 4.44639C38.5808 4.27124 38.8289 4.18366 39.15 4.18366C39.4784 4.18366 39.7265 4.27124 39.8944 4.44639C40.0695 4.62153 40.1571 4.87331 40.1571 5.20172V10.2372H42.8281C43.1055 10.2372 43.3171 10.3102 43.4631 10.4562C43.6163 10.5948 43.6929 10.7992 43.6929 11.0692C43.6929 11.3392 43.6163 11.5472 43.4631 11.6932C43.3171 11.8391 43.1055 11.9121 42.8281 11.9121H39.161ZM47.6411 12.0325C47.0791 12.0325 46.5829 11.9632 46.1523 11.8245C45.7217 11.6786 45.3568 11.4633 45.0576 11.1787C44.7657 10.8941 44.5431 10.5401 44.3899 10.1168C44.2439 9.68626 44.1709 9.19 44.1709 8.62807V5.11414C44.1709 4.77844 44.2585 4.52666 44.4336 4.35881C44.6088 4.18366 44.8569 4.09609 45.178 4.09609C45.5064 4.09609 45.7546 4.18366 45.9224 4.35881C46.0976 4.52666 46.1851 4.77844 46.1851 5.11414V8.64996C46.1851 9.2119 46.3092 9.63517 46.5573 9.91979C46.8054 10.2044 47.1667 10.3467 47.6411 10.3467C48.1081 10.3467 48.4657 10.2044 48.7138 9.91979C48.962 9.63517 49.086 9.2119 49.086 8.64996V5.11414C49.086 4.77844 49.17 4.52666 49.3378 4.35881C49.513 4.18366 49.7611 4.09609 50.0822 4.09609C50.4033 4.09609 50.6478 4.18366 50.8156 4.35881C50.9835 4.52666 51.0674 4.77844 51.0674 5.11414V8.62807C51.0674 9.37975 50.936 10.011 50.6733 10.5219C50.4179 11.0254 50.0348 11.4049 49.5239 11.6603C49.0131 11.9085 48.3854 12.0325 47.6411 12.0325ZM55.2824 12.0325C54.9905 12.0325 54.684 12.0106 54.3629 11.9668C54.0491 11.9304 53.7499 11.872 53.4653 11.7917C53.1807 11.7114 52.9252 11.6165 52.699 11.5071C52.502 11.4122 52.3633 11.2881 52.283 11.1349C52.2027 10.9743 52.1735 10.8065 52.1954 10.6313C52.2173 10.4562 52.2794 10.3029 52.3815 10.1716C52.4837 10.0329 52.6187 9.94168 52.7866 9.8979C52.9544 9.84681 53.1442 9.8687 53.3558 9.96358C53.6331 10.0949 53.9469 10.1971 54.2972 10.2701C54.6475 10.3431 54.9759 10.3796 55.2824 10.3796C55.7641 10.3796 56.0998 10.3175 56.2895 10.1935C56.4866 10.0621 56.5851 9.90155 56.5851 9.7118C56.5851 9.54395 56.5158 9.40894 56.3771 9.30677C56.2458 9.2046 56.0086 9.11702 55.6656 9.04405L54.3848 8.77038C53.6842 8.62442 53.1624 8.36899 52.8194 8.0041C52.4764 7.6392 52.3049 7.16849 52.3049 6.59196C52.3049 6.21247 52.3815 5.86947 52.5348 5.56296C52.6953 5.24915 52.9179 4.98278 53.2025 4.76384C53.4945 4.54491 53.8375 4.37706 54.2315 4.26029C54.6329 4.13623 55.0781 4.07419 55.5671 4.07419C55.9465 4.07419 56.3297 4.11798 56.7165 4.20556C57.1106 4.28583 57.4499 4.4099 57.7345 4.57775C57.9024 4.66532 58.0228 4.78574 58.0958 4.93899C58.1688 5.09225 58.1979 5.2528 58.1833 5.42065C58.1688 5.5812 58.1104 5.72351 58.0082 5.84758C57.9133 5.97164 57.782 6.05557 57.6141 6.09935C57.4536 6.13584 57.2602 6.10665 57.0339 6.01178C56.8223 5.91691 56.5815 5.84758 56.3114 5.80379C56.0487 5.7527 55.7933 5.72716 55.5452 5.72716C55.2751 5.72716 55.0453 5.76 54.8555 5.82568C54.6658 5.88407 54.5198 5.97164 54.4176 6.08841C54.3228 6.20517 54.2753 6.34018 54.2753 6.49344C54.2753 6.64669 54.3374 6.77806 54.4614 6.88752C54.5928 6.98969 54.83 7.07727 55.173 7.15025L56.4428 7.42392C57.1507 7.57717 57.6798 7.82895 58.0301 8.17925C58.3804 8.52955 58.5555 8.98566 58.5555 9.5476C58.5555 9.92709 58.4789 10.2701 58.3257 10.5766C58.1724 10.8831 57.9535 11.1458 57.6688 11.3648C57.3842 11.5764 57.0412 11.7406 56.6398 11.8574C56.2385 11.9741 55.786 12.0325 55.2824 12.0325Z",fill:"white"}),reactExports.createElement("defs",null,reactExports.createElement("linearGradient",{id:"paint0_linear_507_3771",x1:-1.05197,y1:7.99989,x2:63.118,y2:7.99989,gradientUnits:"userSpaceOnUse"},reactExports.createElement("stop",{stopColor:"#006DFF"}),reactExports.createElement("stop",{offset:.56,stopColor:"#A737FF"}),reactExports.createElement("stop",{offset:.95,stopColor:"#FF16AF"})))),COMPONENT_BY_VARIANT={primary:PrimaryButton,secondary:SecondaryButton,clear:ClearButton,success:SuccessButton,warning:ClearButton,cancel:CancelButton,gradient:GradientButton,white:WhiteButton,danger:DangerButton,orange:OrangeButton},PROPS_BY_VARIANT={cancel:{},primary:{},secondary:{},clear:{},success:{},warning:{color:"nonary",fill:"outline"},gradient:{},white:{},danger:{},orange:{}},Button=({"data-test":o,variant:s="primary",children:a,icon:$,iconPosition:j="start",iconSize:_e="default",contained:et=!1,size:tt="small",className:nt,fullWidth:it=!1,badgePlacement:rt,noPadding:st,onClick:ot,isPro:at,isProPlus:lt,minWidth:ct,analyticsLabel:ht,analyticsData:dt,rounded:ut,iconGap:pt="gap-2",iconClassName:ft,type:mt,form:gt,minWidthValue:bt,...St})=>{const Nt=COMPONENT_BY_VARIANT[s],Rt=useDispatch(),Ft=reactExports.useRef(null),Ot=reactExports.useMemo(()=>{if($)return{icon:$,size:_e,className:ft}},[$,_e,ft]),Ct=j==="top"||j==="bottom",yt=j==="end"||j==="bottom",Pt=rt==="inline"||rt===!0,wt=rt==="absolute",Lt=!!ht,vt=mt==="submit"||!!gt;function xt(){Rt(track(`${ht} button clicked`,dt))}function Ut(Et){var Dt;Lt&&xt(),ot==null||ot(Et),vt&&((Dt=Ft.current)==null||Dt.click())}return jsxRuntimeExports.jsxs(Nt,{"data-test":o,className:clsx(et&&["no-button-padding","w-full","m-0","!h-full"],st&&!et&&"no-button-padding",it&&"w-full",ct&&"min-w-[96px]",!(nt!=null&&nt.includes("absolute"))&&"relative",ut&&"rounded-full",nt),size:tt,onClick:Ut,...St,...PROPS_BY_VARIANT[s],style:{...St.style,minWidth:bt},children:[wt&&at&&jsxRuntimeExports.jsx(ProBadge,{className:clsx("absolute","top-2","right-0")}),wt&&lt&&jsxRuntimeExports.jsx(SvgProPlusBadge,{className:clsx("absolute","top-2","right-0")}),jsxRuntimeExports.jsxs("div",{className:clsx("flex",Ct?"flex-col":"flex-row",yt&&(Ct?"flex-col-reverse":"flex-row-reverse"),Ct&&"py-4","items-center",pt),children:[$&&jsxRuntimeExports.jsx(Icon,{...Ot}),a&&jsxRuntimeExports.jsx("span",{children:a}),Pt&&at&&jsxRuntimeExports.jsx(ProBadge,{}),Pt&&lt&&jsxRuntimeExports.jsx(SvgProPlusBadge,{}),vt&&jsxRuntimeExports.jsx("button",{form:gt==null?void 0:gt.toString(),type:"submit",ref:Ft,className:"hidden",onClick:Ut})]})]})},SubmitButton=({form:o,children:s,onClick:a,padding:$=!0,margins:j=!0,minWidth:_e=!1,...et})=>{const tt=reactExports.useRef(null);return jsxRuntimeExports.jsxs(Button,{type:"button",className:clsx("relative",!$&&"no-padding",!j&&"m-0",_e&&"min-w-[90px]"),size:"large",...et,onClick:()=>{var nt;(nt=tt.current)==null||nt.click()},children:[jsxRuntimeExports.jsx("button",{form:o,type:"submit",ref:tt,className:"hidden",onClick:a}),s]})},sideMenu="sideMenu",APP_TEST_IDS={BOTTOM_SHEET:{SHEET:"bottomSheet",DISMISS_BUTTON:"bottomSheet:dismissButton",NEW_SHEET:"newBottomSheet"},DIVIDER_BUTTON:"dividerButton",ERROR_BOUNDARY:"errorBoundary",BATCH_ACTION_PANEL:{CHOOSE_ACTION_BUTTON:"batchActionPanel:chooseActionButton"},MODAL:"modal",ALERT_MODAL:{MODAL:"alertModal:modal",CONFIRM_BUTTON:"alertModal:confirmButton",CANCEL_BUTTON:"alertModal:cancelButton"},PAGE_HEADER:{TITLE:"pageHeader:title",BACK_BUTTON:"pageHeader:backButton"},SIDE_MENU:{HOME:`${sideMenu}:home`,CONTACTS:`${sideMenu}:contacts`,PAGES:`${sideMenu}:pages`,ANALYTICS:`${sideMenu}:analytics`,PRODUCTS:`${sideMenu}:products`,MENU:`${sideMenu}:menu`,INBOX:`${sideMenu}:inbox`,PHONE:`${sideMenu}:phone`},POPOVER_PROMPT:{BASE:"popoverPrompt",MESSAGE:"popoverPrompt:message",CONFIRM_BUTTON:"popoverPrompt:confirmButton",CANCEL_BUTTON:"popoverPrompt:cancelButton"},COLLAPSIBLE:{BASE:"collapsible",LABEL:"collapsible:label",CONTENT:"collapsible:content"},LOADING_SPINNER:"loadingSpinner",SLIDING_DRAWER:{BASE:"slidingDrawer",CLOSE_BUTTON:"slidingDrawer:closeButton",STACKED_DRAWER:"stackedDrawer"},USER_DROPDOWN:{BASE:"userDropdown",ADMIN_VIEW_BUTTON:"userDropdown:adminViewButton",MEMBER_VIEW_BUTTON:"userDropdown:memberViewButton"},COLOR_PICKER:{BASE:"colorPicker",COLOR_SWATCH_CONTAINER:"colorPicker:colorSwatch",COLOR_SWATCH_SELECTED:"colorPicker:colorSwatch:selected",EXPAND_BUTTON:"colorPicker:expandButton"}},AlertModalButtonsHorizontal=o=>{const{cancelButtonText:s="Cancel",onDismiss:a=()=>{},hideDismissButton:$,onCancel:j=()=>{},hideConfirmButton:_e}=o;return jsxRuntimeExports.jsxs("div",{className:"w-full flex flex-row gap-2 md:gap-4",children:[!$&&jsxRuntimeExports.jsx(CancelButton,{"data-test":APP_TEST_IDS.ALERT_MODAL.CANCEL_BUTTON,onClick:()=>{j(),a()},children:s}),!_e&&jsxRuntimeExports.jsx("div",{className:"flex-grow",children:jsxRuntimeExports.jsx(AlertModalConfirmButton,{...o})})]})},AlertModalButtonsVertical=o=>{const{cancelButtonText:s="Dismiss",hideDismissButton:a,hideConfirmButton:$,onDismiss:j=()=>{},onCancel:_e=()=>{},buttonsFullWidth:et=!1,dismissOnCancel:tt=!0}=o,nt=()=>{_e(),tt&&j()};return jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-2 items-center",children:[!$&&jsxRuntimeExports.jsx("div",{className:clsx(et&&"w-full"),children:jsxRuntimeExports.jsx(AlertModalConfirmButton,{...o})}),!a&&jsxRuntimeExports.jsx("div",{className:clsx(et&&"w-full"),children:jsxRuntimeExports.jsx(ClearButton,{expand:"block","data-test":APP_TEST_IDS.ALERT_MODAL.CANCEL_BUTTON,onClick:()=>nt(),color:"gray-500",size:"small",children:s})})]})},AlertModalConfirmButton=o=>{const{buttonText:s="Confirm",confirmButtonIcon:a=null,confirmButtonPrefixIcon:$=null,onConfirm:j=()=>{},onDismiss:_e=()=>{},dismissOnConfirm:et=!0,formId:tt,isLoading:nt,confirmButtonDisabled:it=!1,confirmButtonType:rt="primary"}=o,st=()=>{j(),et&&_e()};return jsxRuntimeExports.jsx(SubmitButton,{expand:"block",variant:rt,onClick:tt?void 0:st,form:tt,isLoading:nt,"data-test":APP_TEST_IDS.ALERT_MODAL.CONFIRM_BUTTON,disabled:it,children:jsxRuntimeExports.jsxs("span",{className:"flex flex-row gap-2 items-center",children:[!!$&&$!=="none"&&jsxRuntimeExports.jsx(IonIcon,{icon:$,className:"text-2xl"}),jsxRuntimeExports.jsx("span",{children:s}),!!a&&a!=="none"&&jsxRuntimeExports.jsx(IonIcon,{icon:a,className:"text-2xl"})]})})};var AlertModalStyles=(o=>(o.rounded="rounded-3xl",o.roundedBottom="rounded-b-3xl",o.roundedTop="rounded-t-3xl",o))(AlertModalStyles||{});const AlertModalIconPanel=({panelIcon:o,panelIconColor:s,confirmButtonType:a="primary"})=>{const j=s?`text-${s}`:{primary:"text-primary-100",warning:"text-nonary",success:"text-success-100",cancel:"text-gray-500",clear:"text-gray-500",secondary:"text-gray-500",gradient:"text-white",white:"text-black",danger:"text-white",orange:"text-white"}[a||"primary"],_e="blur(4px)";return jsxRuntimeExports.jsxs("div",{className:clsx("w-full","flex","items-center","justify-center",AlertModalStyles.roundedTop,"relative"),style:{minHeight:64,marginBottom:-1},children:[jsxRuntimeExports.jsx("div",{className:clsx(AlertModalStyles.roundedTop,"absolute","inset-0"),style:{background:"rgba(255, 255, 255, 0.9)",backdropFilter:_e,WebkitBackdropFilter:_e}}),typeof o=="string"?jsxRuntimeExports.jsx(IonIcon,{icon:o,className:clsx("text-3xl",j)}):o]})},config={disabled:!1},TransitionGroupContext=React$1.createContext(null);var forceReflow=function(s){return s.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=function(o){_inheritsLoose(s,o);function s($,j){var _e;_e=o.call(this,$,j)||this;var et=j,tt=et&&!et.isMounting?$.enter:$.appear,nt;return _e.appearStatus=null,$.in?tt?(nt=EXITED,_e.appearStatus=ENTERING):nt=ENTERED:$.unmountOnExit||$.mountOnEnter?nt=UNMOUNTED:nt=EXITED,_e.state={status:nt},_e.nextCallback=null,_e}s.getDerivedStateFromProps=function(j,_e){var et=j.in;return et&&_e.status===UNMOUNTED?{status:EXITED}:null};var a=s.prototype;return a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(j){var _e=null;if(j!==this.props){var et=this.state.status;this.props.in?et!==ENTERING&&et!==ENTERED&&(_e=ENTERING):(et===ENTERING||et===ENTERED)&&(_e=EXITING)}this.updateStatus(!1,_e)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var j=this.props.timeout,_e,et,tt;return _e=et=tt=j,j!=null&&typeof j!="number"&&(_e=j.exit,et=j.enter,tt=j.appear!==void 0?j.appear:et),{exit:_e,enter:et,appear:tt}},a.updateStatus=function(j,_e){if(j===void 0&&(j=!1),_e!==null)if(this.cancelNextCallback(),_e===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var et=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);et&&forceReflow(et)}this.performEnter(j)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},a.performEnter=function(j){var _e=this,et=this.props.enter,tt=this.context?this.context.isMounting:j,nt=this.props.nodeRef?[tt]:[ReactDOM.findDOMNode(this),tt],it=nt[0],rt=nt[1],st=this.getTimeouts(),ot=tt?st.appear:st.enter;if(!j&&!et||config.disabled){this.safeSetState({status:ENTERED},function(){_e.props.onEntered(it)});return}this.props.onEnter(it,rt),this.safeSetState({status:ENTERING},function(){_e.props.onEntering(it,rt),_e.onTransitionEnd(ot,function(){_e.safeSetState({status:ENTERED},function(){_e.props.onEntered(it,rt)})})})},a.performExit=function(){var j=this,_e=this.props.exit,et=this.getTimeouts(),tt=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!_e||config.disabled){this.safeSetState({status:EXITED},function(){j.props.onExited(tt)});return}this.props.onExit(tt),this.safeSetState({status:EXITING},function(){j.props.onExiting(tt),j.onTransitionEnd(et.exit,function(){j.safeSetState({status:EXITED},function(){j.props.onExited(tt)})})})},a.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(j,_e){_e=this.setNextCallback(_e),this.setState(j,_e)},a.setNextCallback=function(j){var _e=this,et=!0;return this.nextCallback=function(tt){et&&(et=!1,_e.nextCallback=null,j(tt))},this.nextCallback.cancel=function(){et=!1},this.nextCallback},a.onTransitionEnd=function(j,_e){this.setNextCallback(_e);var et=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),tt=j==null&&!this.props.addEndListener;if(!et||tt){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var nt=this.props.nodeRef?[this.nextCallback]:[et,this.nextCallback],it=nt[0],rt=nt[1];this.props.addEndListener(it,rt)}j!=null&&setTimeout(this.nextCallback,j)},a.render=function(){var j=this.state.status;if(j===UNMOUNTED)return null;var _e=this.props,et=_e.children;_e.in,_e.mountOnEnter,_e.unmountOnExit,_e.appear,_e.enter,_e.exit,_e.timeout,_e.addEndListener,_e.onEnter,_e.onEntering,_e.onEntered,_e.onExit,_e.onExiting,_e.onExited,_e.nodeRef;var tt=_objectWithoutPropertiesLoose$3(_e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React$1.createElement(TransitionGroupContext.Provider,{value:null},typeof et=="function"?et(j,tt):React$1.cloneElement(React$1.Children.only(et),tt))},s}(React$1.Component);Transition.contextType=TransitionGroupContext;Transition.propTypes={};function noop$3(){}Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$3,onEntering:noop$3,onEntered:noop$3,onExit:noop$3,onExiting:noop$3,onExited:noop$3};Transition.UNMOUNTED=UNMOUNTED;Transition.EXITED=EXITED;Transition.ENTERING=ENTERING;Transition.ENTERED=ENTERED;Transition.EXITING=EXITING;function _assertThisInitialized$1(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function getChildMapping(o,s){var a=function(_e){return s&&reactExports.isValidElement(_e)?s(_e):_e},$=Object.create(null);return o&&reactExports.Children.map(o,function(j){return j}).forEach(function(j){$[j.key]=a(j)}),$}function mergeChildMappings(o,s){o=o||{},s=s||{};function a(rt){return rt in s?s[rt]:o[rt]}var $=Object.create(null),j=[];for(var _e in o)_e in s?j.length&&($[_e]=j,j=[]):j.push(_e);var et,tt={};for(var nt in s){if($[nt])for(et=0;et<$[nt].length;et++){var it=$[nt][et];tt[$[nt][et]]=a(it)}tt[nt]=a(nt)}for(et=0;et<j.length;et++)tt[j[et]]=a(j[et]);return tt}function getProp(o,s,a){return a[s]!=null?a[s]:o.props[s]}function getInitialChildMapping(o,s){return getChildMapping(o.children,function(a){return reactExports.cloneElement(a,{onExited:s.bind(null,a),in:!0,appear:getProp(a,"appear",o),enter:getProp(a,"enter",o),exit:getProp(a,"exit",o)})})}function getNextChildMapping(o,s,a){var $=getChildMapping(o.children),j=mergeChildMappings(s,$);return Object.keys(j).forEach(function(_e){var et=j[_e];if(reactExports.isValidElement(et)){var tt=_e in s,nt=_e in $,it=s[_e],rt=reactExports.isValidElement(it)&&!it.props.in;nt&&(!tt||rt)?j[_e]=reactExports.cloneElement(et,{onExited:a.bind(null,et),in:!0,exit:getProp(et,"exit",o),enter:getProp(et,"enter",o)}):!nt&&tt&&!rt?j[_e]=reactExports.cloneElement(et,{in:!1}):nt&&tt&&reactExports.isValidElement(it)&&(j[_e]=reactExports.cloneElement(et,{onExited:a.bind(null,et),in:it.props.in,exit:getProp(et,"exit",o),enter:getProp(et,"enter",o)}))}}),j}var values=Object.values||function(o){return Object.keys(o).map(function(s){return o[s]})},defaultProps={component:"div",childFactory:function(s){return s}},TransitionGroup=function(o){_inheritsLoose(s,o);function s($,j){var _e;_e=o.call(this,$,j)||this;var et=_e.handleExited.bind(_assertThisInitialized$1(_e));return _e.state={contextValue:{isMounting:!0},handleExited:et,firstRender:!0},_e}var a=s.prototype;return a.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},a.componentWillUnmount=function(){this.mounted=!1},s.getDerivedStateFromProps=function(j,_e){var et=_e.children,tt=_e.handleExited,nt=_e.firstRender;return{children:nt?getInitialChildMapping(j,tt):getNextChildMapping(j,et,tt),firstRender:!1}},a.handleExited=function(j,_e){var et=getChildMapping(this.props.children);j.key in et||(j.props.onExited&&j.props.onExited(_e),this.mounted&&this.setState(function(tt){var nt=_extends$1({},tt.children);return delete nt[j.key],{children:nt}}))},a.render=function(){var j=this.props,_e=j.component,et=j.childFactory,tt=_objectWithoutPropertiesLoose$3(j,["component","childFactory"]),nt=this.state.contextValue,it=values(this.state.children).map(et);return delete tt.appear,delete tt.enter,delete tt.exit,_e===null?React$1.createElement(TransitionGroupContext.Provider,{value:nt},it):React$1.createElement(TransitionGroupContext.Provider,{value:nt},React$1.createElement(_e,tt,it))},s}(React$1.Component);TransitionGroup.propTypes={};TransitionGroup.defaultProps=defaultProps;const ANIMATION_DURATION=220,TRANSITION_TIMEOUT={enter:0,exit:ANIMATION_DURATION},TRANSITION_HIDE_STATES=["entering","exiting","exited"],TransitionComponent=({"data-test":o,children:s,show:a,keepMounted:$=!1})=>jsxRuntimeExports.jsx(Transition,{in:a,timeout:TRANSITION_TIMEOUT,unmountOnExit:!$,mountOnEnter:!0,appear:!0,children:j=>s({isClosing:TRANSITION_HIDE_STATES.includes(j),isOpen:!TRANSITION_HIDE_STATES.includes(j)})}),alertModal$1=Math.pow(10,5),APP_LEVEL_Z_INDEX=Object.freeze({ALERT_MODAL:alertModal$1,TOOLTIP:alertModal$1+1}),AlertModal=o=>{const{showAlert:s,disableBackdropDismiss:a,onDismiss:$=()=>{},backdropColor:j="rgba(0, 15, 49, 0.32)",minHeight:_e,"data-test":et,maxWidth:tt="24rem",border:nt,wrappedContent:it}=o,rt="calc(100vw - 2rem)";function st(){a||$()}const ot=jsxRuntimeExports.jsx(AlertModalContent,{...o});return jsxRuntimeExports.jsx(TransitionComponent,{show:s,children:({isClosing:at})=>jsxRuntimeExports.jsxs("div",{className:clsx("fixed","inset-0","flex items-center justify-center",at?"opacity-0":"opacity-100","transition-all duration-220 ease-in-out"),style:{zIndex:APP_LEVEL_Z_INDEX.ALERT_MODAL},children:[jsxRuntimeExports.jsx("div",{className:clsx("absolute","inset-0","cursor-pointer"),style:{background:j},onClick:st}),it||jsxRuntimeExports.jsx("div",{"data-test":et,className:clsx(nt??AlertModalStyles.rounded,"flex items-center justify-center","overflow-hidden","transition-all duration-220 ease-in-out","absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2","shadow-alert"),style:{width:rt,maxWidth:tt,minHeight:_e},children:ot})]})})},AlertModalContent=o=>{const{panelIcon:s,minHeight:a,maxHeight:$="calc(100vh - 7rem)",border:j,roundedBottom:_e=!0,unrounded:et}=o,tt=void 0;return jsxRuntimeExports.jsxs("div",{className:clsx(j??AlertModalStyles.rounded,"w-full","h-full","flex","flex-col"),style:{minHeight:a,maxHeight:$,width:tt},children:[s&&jsxRuntimeExports.jsx(AlertModalIconPanel,{...o}),jsxRuntimeExports.jsx("div",{className:clsx("w-full","flex-grow","flex","bg-white","min-h-0",(_e&&j)??AlertModalStyles.roundedBottom,!j&&!s&&!et&&AlertModalStyles.roundedTop),style:{width:tt},children:jsxRuntimeExports.jsx(AlertModalBody,{...o})})]})},AlertModalBody=o=>{const{buttonsDirection:s="horizontal",header:a,subHeader:$,message:j,buttonDivider:_e,bodyContent:et,buttonsContent:tt,content:nt,hideButtons:it,border:rt,wrappedContent:st,disableButtonContainerPadding:ot,width:at}=o,lt=at||"calc(100vw-2rem)",ct=!ot;return jsxRuntimeExports.jsx("div",{className:clsx("flex","flex-col","w-full","gap-2","text-primary-100",st&&"h-full",!rt&&AlertModalStyles.roundedBottom),style:{width:lt},children:nt||jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:clsx("overflow-y-auto","flex-grow"),children:et||jsxRuntimeExports.jsxs("div",{className:clsx("flex flex-col gap-4 p-6"),children:[jsxRuntimeExports.jsx("div",{className:"text-header-4",children:a}),$&&jsxRuntimeExports.jsx("div",{className:"text-body-2 text-gray-500",children:$}),jsxRuntimeExports.jsx("div",{className:"text-body-regular flex-grow self-stretch",children:j})]})}),!it&&jsxRuntimeExports.jsx("div",{className:clsx(_e?"border-t border-gray-950 pt-4":"",ct&&["pb-8","px-4"]),children:tt||(s==="horizontal"?jsxRuntimeExports.jsx(AlertModalButtonsHorizontal,{...o}):jsxRuntimeExports.jsx(AlertModalButtonsVertical,{...o}))})]})})},showAlertModal=o=>({type:ALERT_TYPES.SHOW_ALERT,payload:o}),showCloseWarningAlertModal=o=>({type:o.extraAlertIndex!==void 0?ALERT_TYPES.SHOW_EXTRA_ALERT_MODAL:ALERT_TYPES.SHOW_ALERT,payload:{header:"You have unsaved progress.",message:"If you leave now, your unsaved changes will be discarded.",panelIcon:warningOutline,panelIconColor:"primary-100",confirmButtonType:"warning",confirmButtonPrefixIcon:trashOutline,buttonText:"Leave & Discard",...o}}),showDeleteWarningAlertModal=({itemName:o="contact",...s})=>({type:ALERT_TYPES.SHOW_ALERT,payload:{message:"This action cannot be undone.",header:`Are you sure you want to delete this ${o}?`,confirmButtonType:"warning",panelIcon:trashOutline,confirmButtonIcon:null,buttonText:"Delete",confirmButtonPrefixIcon:trashOutline,...s}}),showInformationAlertModal=({header:o,message:s,subHeader:a,...$})=>({type:ALERT_TYPES.SHOW_ALERT,payload:{message:s,header:o,subHeader:a,panelIcon:informationCircleOutline,buttonsDirection:"vertical",hideConfirmButton:!0,...$}}),showErrorMessageAlertModal=({message:o,header:s="There was an error.",actionItem:a,panelIcon:$=warningOutline,...j})=>({type:j.extraAlertIndex!==void 0?ALERT_TYPES.SHOW_EXTRA_ALERT_MODAL:ALERT_TYPES.SHOW_ALERT,payload:{header:a?`There was an error while trying to ${a}`:s,message:o?`${o.endsWith(".")?o:o.concat(".")} If this issue persists, please contact Linq support at contact@linqapp.com.`:"If this issue persists, please contact Linq support at contact@linqapp.com",buttonsDirection:"vertical",hideConfirmButton:!0,panelIcon:$,panelIconColor:"nonary",...j}}),closeAlertModal=()=>({type:ALERT_TYPES.CLOSE_ALERT}),resetAlertModal=()=>({type:ALERT_TYPES.RESET_ALERT}),closeExtraAlertModal=o=>({type:ALERT_TYPES.CLOSE_EXTRA_ALERT_MODAL,payload:{extraAlertIndex:o}}),AlertModalWrapper=o=>{const{"data-test":s=APP_TEST_IDS.ALERT_MODAL.MODAL,children:a,panelIcon:$=informationCircleOutline,panelIconColor:j="gray-500",minHeight:_e,maxWidth:et="24rem",onDismiss:tt=()=>{},footerContent:nt,showPanelIcon:it=!0,width:rt,height:st,unrounded:ot}={...o},at=useDispatch();function lt(){at(closeAlertModal()),tt()}const ct=rt||"calc(100vw - 2rem)",ht=st||"auto";return jsxRuntimeExports.jsxs("div",{"data-test":s,className:clsx(!ot&&AlertModalStyles.rounded,"flex flex-col items-center justify-center","overflow-hidden","transition-all duration-220 ease-in-out","absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2","shadow-alert"),style:{width:ct,maxWidth:et,minHeight:_e,height:ht},children:[jsxRuntimeExports.jsx(AlertModalContent,{...o,bodyContent:a,panelIcon:it?$:void 0,panelIconColor:j,onDismiss:lt,hideButtons:o.hideButtons||!!nt,roundedBottom:!nt}),jsxRuntimeExports.jsx("div",{className:clsx("bg-white","w-full"),children:nt})]})},ContactTeamSuccessButton=({body:o,subject:s,subscriptionStatus:a})=>{const $=useDispatch(),j=({body:_e,subject:et})=>{const tt=encodeURIComponent(_e),nt=encodeURIComponent(et);window.open(`mailto:${TEAM_SUCCESS_EMAIL}?&subject=${nt}&body=${tt}`),$(track("clicked contact team success button",{subscription_status:a}))};return jsxRuntimeExports.jsx(PrimaryButton,{className:"w-full",onClick:()=>j({body:o,subject:s}),children:"Contact Team Success"})},CancelledSubscriptionMessage=()=>jsxRuntimeExports.jsxs("div",{className:clsx("flex flex-col","gap-4","mb-4"),children:[jsxRuntimeExports.jsx("div",{className:"text-header-3",children:"Don't let your members get lost"}),jsxRuntimeExports.jsx("div",{className:"text-header-4",children:"Your Organization account is on hold because your organization subscription has been cancelled."}),jsxRuntimeExports.jsx("div",{className:"text-header-4",children:"To get back and enjoy the seamless benefits of Linq, please contact Team Success to update to a paid subscription"}),jsxRuntimeExports.jsx(ContactTeamSuccessButton,{body:`Hello Team Success,

  I've noticed my Linq account is currently in a cancelled status. I'm interested in reinstating my account. Could you please guide me through the necessary steps?

  Thank you for your assistance!`,subject:"Reinstating My Cancelled Linq Account",subscriptionStatus:"canceled"})]});function formatPrice(o,s=2,a=!0){return(a?"$":"")+o.toLocaleString(void 0,{maximumFractionDigits:s,minimumFractionDigits:s})}function wrap(o,s,a){const $=a-s+1;return((o-s)%$+$)%$+s}function move([...o],s,a){const $=o.length;if($===0||s===a||s<0||s>=$)return o;const j=Math.max(0,Math.min(a,$-1)),[_e]=o.splice(s,1);return o.splice(j,0,_e),o}function cArray(...o){return o.filter(Boolean)}function arrayOfLength(o){return Array.from({length:o},()=>null)}function wrapArray(o,s){const $=o.length-1;return o[wrap(s,0,$)]}const PAGE_ROUTES={conversations:"/conversations",conversation:(o,{historyBack:s}={})=>cArray(`/conversations/${o}`,s&&"history_back=true").join("?"),worknumberMessagesPreview:"/worknumber-preview/messages",dashboard:"/dashboard",editPhoneAutomation:o=>`/phone/automations/${o}`,newPhoneAutomation:"/phone/automations/new",phoneAutomations:"/phone/automations",profile:"/profile",userContactDetails:(o,s)=>cArray(`/contacts/${o}`,s&&`selectedTabParam=${s}`).join("?"),hubspotUserContactDetails:(o,s)=>cArray(`/hubspot/contacts/${o}`,s&&`selectedTabParam=${s}`).join("?"),editUserContact:o=>`/user_contacts/${o}/edit`,welcomeDeprecated:"/welcome-dep",welcome:"/welcome",oauthSigninCallback:"/oauth-signin-callback",ambassadors:"/ambassadors",auth:{authPage:"/auth-page",oauth:{linkedinCallback:"/auth/linkedin/callback",linkedinWebCallback:"/auth/linkedin-web/callback",appleCallback:"/auth/apple/callback"}},newEmail:{path:"/new-email"},admin:o=>({worknumber:{dashboard:`/admin/${o}/worknumber`,inboxes:`/admin/${o}/worknumber/inboxes`,numbers:`/admin/${o}/worknumber/numbers`,settings:`/admin/${o}/worknumber/settings`,callForwarding:`/admin/${o}/worknumber/call-forwarding`,availableNumbers:`/admin/${o}/worknumber/available-numbers`,inbox:s=>`/admin/${o}/phone_numbers/${s}`},pageTemplates:{index:`/admin/${o}/templates`,contentBlocks:`/admin/${o}/content-blocks`},integrations:{index:`/admin/${o}/integrations`,crm:{index:`/admin/${o}/integrations/crm`,details:s=>`/admin/${o}/integration-connections/${s}`},sso:`/admin/${o}/integrations/sso`,hr:`/admin/${o}/integrations/hr`,emailSignature:`/admin/${o}/integrations/email-signature`},settings:{index:`/admin/${o}/settings`,general:`/admin/${o}/settings/general`,virtualBackgrounds:`/admin/${o}/settings/virtual-backgrounds`,contactExchange:`/admin/${o}/settings/contact-exchange`,followUpMessages:`/admin/${o}/settings/follow-up-messages`,messageSnippets:`/admin/${o}/settings/message-snippets`,hyperLinq:`/admin/${o}/settings/hyper-linq`},billing:`/admin/${o}/billing`}),analytics:{index:"/analytics"},bookMeeting:{email:"/book-meeting",userDetails:"/book-meeting/details",confirmDetails:"/book-meeting/confirm-details",calendar:"/book-meeting/calendar"},contacts:{createNew:"/create-contact"},manageSubscription:"/manage-linq-one-subscription",notificationSettings:"/notification-settings",organization:o=>({detail:`/organizations/${o}/detail`}),paySettings:"/pay/settings",snippets:"/snippets",products:{index:"/products"},signup:{base:"/signup",professionalDetails:"/signup/about-me",addPhoto:"/signup/add-photo"},voicemail:{greeting:"/voicemails/greeting",index:"/voicemails"}},require$$0=getAugmentedNamespace(redux);var compose$1=require$$0.compose,composeWithDevTools=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?compose$1:compose$1.apply(null,arguments)},reduxLogger={exports:{}};(function(o,s){(function(a,$){$(s)})(commonjsGlobal$1,function(a){function $(Et,Dt){Et.super_=Dt,Et.prototype=Object.create(Dt.prototype,{constructor:{value:Et,enumerable:!1,writable:!0,configurable:!0}})}function j(Et,Dt){Object.defineProperty(this,"kind",{value:Et,enumerable:!0}),Dt&&Dt.length&&Object.defineProperty(this,"path",{value:Dt,enumerable:!0})}function _e(Et,Dt,Bt){_e.super_.call(this,"E",Et),Object.defineProperty(this,"lhs",{value:Dt,enumerable:!0}),Object.defineProperty(this,"rhs",{value:Bt,enumerable:!0})}function et(Et,Dt){et.super_.call(this,"N",Et),Object.defineProperty(this,"rhs",{value:Dt,enumerable:!0})}function tt(Et,Dt){tt.super_.call(this,"D",Et),Object.defineProperty(this,"lhs",{value:Dt,enumerable:!0})}function nt(Et,Dt,Bt){nt.super_.call(this,"A",Et),Object.defineProperty(this,"index",{value:Dt,enumerable:!0}),Object.defineProperty(this,"item",{value:Bt,enumerable:!0})}function it(Et,Dt,Bt){var Wt=Et.slice(Dt+1||Et.length);return Et.length=Dt<0?Et.length+Dt:Dt,Et.push.apply(Et,Wt),Et}function rt(Et){var Dt=typeof Et>"u"?"undefined":Pt(Et);return Dt!=="object"?Dt:Et===Math?"math":Et===null?"null":Array.isArray(Et)?"array":Object.prototype.toString.call(Et)==="[object Date]"?"date":typeof Et.toString=="function"&&/^\/.*\//.test(Et.toString())?"regexp":"object"}function st(Et,Dt,Bt,Wt,Zt,sn,dn){Zt=Zt||[],dn=dn||[];var vn=Zt.slice(0);if(typeof sn<"u"){if(Wt){if(typeof Wt=="function"&&Wt(vn,sn))return;if((typeof Wt>"u"?"undefined":Pt(Wt))==="object"){if(Wt.prefilter&&Wt.prefilter(vn,sn))return;if(Wt.normalize){var kn=Wt.normalize(vn,sn,Et,Dt);kn&&(Et=kn[0],Dt=kn[1])}}}vn.push(sn)}rt(Et)==="regexp"&&rt(Dt)==="regexp"&&(Et=Et.toString(),Dt=Dt.toString());var An=typeof Et>"u"?"undefined":Pt(Et),$n=typeof Dt>"u"?"undefined":Pt(Dt),On=An!=="undefined"||dn&&dn[dn.length-1].lhs&&dn[dn.length-1].lhs.hasOwnProperty(sn),Cn=$n!=="undefined"||dn&&dn[dn.length-1].rhs&&dn[dn.length-1].rhs.hasOwnProperty(sn);if(!On&&Cn)Bt(new et(vn,Dt));else if(!Cn&&On)Bt(new tt(vn,Et));else if(rt(Et)!==rt(Dt))Bt(new _e(vn,Et,Dt));else if(rt(Et)==="date"&&Et-Dt!==0)Bt(new _e(vn,Et,Dt));else if(An==="object"&&Et!==null&&Dt!==null)if(dn.filter(function(Rn){return Rn.lhs===Et}).length)Et!==Dt&&Bt(new _e(vn,Et,Dt));else{if(dn.push({lhs:Et,rhs:Dt}),Array.isArray(Et)){var rn;for(Et.length,rn=0;rn<Et.length;rn++)rn>=Dt.length?Bt(new nt(vn,rn,new tt(void 0,Et[rn]))):st(Et[rn],Dt[rn],Bt,Wt,vn,rn,dn);for(;rn<Dt.length;)Bt(new nt(vn,rn,new et(void 0,Dt[rn++])))}else{var Fn=Object.keys(Et),Ln=Object.keys(Dt);Fn.forEach(function(Rn,Gn){var Vn=Ln.indexOf(Rn);Vn>=0?(st(Et[Rn],Dt[Rn],Bt,Wt,vn,Rn,dn),Ln=it(Ln,Vn)):st(Et[Rn],void 0,Bt,Wt,vn,Rn,dn)}),Ln.forEach(function(Rn){st(void 0,Dt[Rn],Bt,Wt,vn,Rn,dn)})}dn.length=dn.length-1}else Et!==Dt&&(An==="number"&&isNaN(Et)&&isNaN(Dt)||Bt(new _e(vn,Et,Dt)))}function ot(Et,Dt,Bt,Wt){return Wt=Wt||[],st(Et,Dt,function(Zt){Zt&&Wt.push(Zt)},Bt),Wt.length?Wt:void 0}function at(Et,Dt,Bt){if(Bt.path&&Bt.path.length){var Wt,Zt=Et[Dt],sn=Bt.path.length-1;for(Wt=0;Wt<sn;Wt++)Zt=Zt[Bt.path[Wt]];switch(Bt.kind){case"A":at(Zt[Bt.path[Wt]],Bt.index,Bt.item);break;case"D":delete Zt[Bt.path[Wt]];break;case"E":case"N":Zt[Bt.path[Wt]]=Bt.rhs}}else switch(Bt.kind){case"A":at(Et[Dt],Bt.index,Bt.item);break;case"D":Et=it(Et,Dt);break;case"E":case"N":Et[Dt]=Bt.rhs}return Et}function lt(Et,Dt,Bt){if(Et&&Dt&&Bt&&Bt.kind){for(var Wt=Et,Zt=-1,sn=Bt.path?Bt.path.length-1:0;++Zt<sn;)typeof Wt[Bt.path[Zt]]>"u"&&(Wt[Bt.path[Zt]]=typeof Bt.path[Zt]=="number"?[]:{}),Wt=Wt[Bt.path[Zt]];switch(Bt.kind){case"A":at(Bt.path?Wt[Bt.path[Zt]]:Wt,Bt.index,Bt.item);break;case"D":delete Wt[Bt.path[Zt]];break;case"E":case"N":Wt[Bt.path[Zt]]=Bt.rhs}}}function ct(Et,Dt,Bt){if(Bt.path&&Bt.path.length){var Wt,Zt=Et[Dt],sn=Bt.path.length-1;for(Wt=0;Wt<sn;Wt++)Zt=Zt[Bt.path[Wt]];switch(Bt.kind){case"A":ct(Zt[Bt.path[Wt]],Bt.index,Bt.item);break;case"D":Zt[Bt.path[Wt]]=Bt.lhs;break;case"E":Zt[Bt.path[Wt]]=Bt.lhs;break;case"N":delete Zt[Bt.path[Wt]]}}else switch(Bt.kind){case"A":ct(Et[Dt],Bt.index,Bt.item);break;case"D":Et[Dt]=Bt.lhs;break;case"E":Et[Dt]=Bt.lhs;break;case"N":Et=it(Et,Dt)}return Et}function ht(Et,Dt,Bt){if(Et&&Dt&&Bt&&Bt.kind){var Wt,Zt,sn=Et;for(Zt=Bt.path.length-1,Wt=0;Wt<Zt;Wt++)typeof sn[Bt.path[Wt]]>"u"&&(sn[Bt.path[Wt]]={}),sn=sn[Bt.path[Wt]];switch(Bt.kind){case"A":ct(sn[Bt.path[Wt]],Bt.index,Bt.item);break;case"D":sn[Bt.path[Wt]]=Bt.lhs;break;case"E":sn[Bt.path[Wt]]=Bt.lhs;break;case"N":delete sn[Bt.path[Wt]]}}}function dt(Et,Dt,Bt){if(Et&&Dt){var Wt=function(Zt){Bt&&!Bt(Et,Dt,Zt)||lt(Et,Dt,Zt)};st(Et,Dt,Wt)}}function ut(Et){return"color: "+vt[Et].color+"; font-weight: bold"}function pt(Et){var Dt=Et.kind,Bt=Et.path,Wt=Et.lhs,Zt=Et.rhs,sn=Et.index,dn=Et.item;switch(Dt){case"E":return[Bt.join("."),Wt,"→",Zt];case"N":return[Bt.join("."),Zt];case"D":return[Bt.join(".")];case"A":return[Bt.join(".")+"["+sn+"]",dn];default:return[]}}function ft(Et,Dt,Bt,Wt){var Zt=ot(Et,Dt);try{Wt?Bt.groupCollapsed("diff"):Bt.group("diff")}catch{Bt.log("diff")}Zt?Zt.forEach(function(sn){var dn=sn.kind,vn=pt(sn);Bt.log.apply(Bt,["%c "+vt[dn].text,ut(dn)].concat(wt(vn)))}):Bt.log("—— no diff ——");try{Bt.groupEnd()}catch{Bt.log("—— diff end —— ")}}function mt(Et,Dt,Bt,Wt){switch(typeof Et>"u"?"undefined":Pt(Et)){case"object":return typeof Et[Wt]=="function"?Et[Wt].apply(Et,wt(Bt)):Et[Wt];case"function":return Et(Dt);default:return Et}}function gt(Et){var Dt=Et.timestamp,Bt=Et.duration;return function(Wt,Zt,sn){var dn=["action"];return dn.push("%c"+String(Wt.type)),Dt&&dn.push("%c@ "+Zt),Bt&&dn.push("%c(in "+sn.toFixed(2)+" ms)"),dn.join(" ")}}function bt(Et,Dt){var Bt=Dt.logger,Wt=Dt.actionTransformer,Zt=Dt.titleFormatter,sn=Zt===void 0?gt(Dt):Zt,dn=Dt.collapsed,vn=Dt.colors,kn=Dt.level,An=Dt.diff,$n=typeof Dt.titleFormatter>"u";Et.forEach(function(On,Cn){var rn=On.started,Fn=On.startedTime,Ln=On.action,Rn=On.prevState,Gn=On.error,Vn=On.took,qn=On.nextState,Zn=Et[Cn+1];Zn&&(qn=Zn.prevState,Vn=Zn.started-rn);var jn=Wt(Ln),Xn=typeof dn=="function"?dn(function(){return qn},Ln,On):dn,dr=Ct(Fn),mn=vn.title?"color: "+vn.title(jn)+";":"",Mn=["color: gray; font-weight: lighter;"];Mn.push(mn),Dt.timestamp&&Mn.push("color: gray; font-weight: lighter;"),Dt.duration&&Mn.push("color: gray; font-weight: lighter;");var Mt=sn(jn,dr,Vn);try{Xn?vn.title&&$n?Bt.groupCollapsed.apply(Bt,["%c "+Mt].concat(Mn)):Bt.groupCollapsed(Mt):vn.title&&$n?Bt.group.apply(Bt,["%c "+Mt].concat(Mn)):Bt.group(Mt)}catch{Bt.log(Mt)}var _t=mt(kn,jn,[Rn],"prevState"),kt=mt(kn,jn,[jn],"action"),Vt=mt(kn,jn,[Gn,Rn],"error"),qt=mt(kn,jn,[qn],"nextState");if(_t)if(vn.prevState){var Jt="color: "+vn.prevState(Rn)+"; font-weight: bold";Bt[_t]("%c prev state",Jt,Rn)}else Bt[_t]("prev state",Rn);if(kt)if(vn.action){var ln="color: "+vn.action(jn)+"; font-weight: bold";Bt[kt]("%c action    ",ln,jn)}else Bt[kt]("action    ",jn);if(Gn&&Vt)if(vn.error){var Un="color: "+vn.error(Gn,Rn)+"; font-weight: bold;";Bt[Vt]("%c error     ",Un,Gn)}else Bt[Vt]("error     ",Gn);if(qt)if(vn.nextState){var Yn="color: "+vn.nextState(qn)+"; font-weight: bold";Bt[qt]("%c next state",Yn,qn)}else Bt[qt]("next state",qn);An&&ft(Rn,qn,Bt,Xn);try{Bt.groupEnd()}catch{Bt.log("—— log end ——")}})}function St(){var Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Dt=Object.assign({},xt,Et),Bt=Dt.logger,Wt=Dt.stateTransformer,Zt=Dt.errorTransformer,sn=Dt.predicate,dn=Dt.logErrors,vn=Dt.diffPredicate;if(typeof Bt>"u")return function(){return function(An){return function($n){return An($n)}}};if(Et.getState&&Et.dispatch)return console.error(`[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:
// Logger with default options
import { logger } from 'redux-logger'
const store = createStore(
  reducer,
  applyMiddleware(logger)
)
// Or you can create your own logger with custom options http://bit.ly/redux-logger-options
import createLogger from 'redux-logger'
const logger = createLogger({
  // ...options
});
const store = createStore(
  reducer,
  applyMiddleware(logger)
)
`),function(){return function(An){return function($n){return An($n)}}};var kn=[];return function(An){var $n=An.getState;return function(On){return function(Cn){if(typeof sn=="function"&&!sn($n,Cn))return On(Cn);var rn={};kn.push(rn),rn.started=yt.now(),rn.startedTime=new Date,rn.prevState=Wt($n()),rn.action=Cn;var Fn=void 0;if(dn)try{Fn=On(Cn)}catch(Rn){rn.error=Zt(Rn)}else Fn=On(Cn);rn.took=yt.now()-rn.started,rn.nextState=Wt($n());var Ln=Dt.diff&&typeof vn=="function"?vn($n,Cn):Dt.diff;if(bt(kn,Object.assign({},Dt,{diff:Ln})),kn.length=0,rn.error)throw rn.error;return Fn}}}}var Nt,Rt,Ft=function(Et,Dt){return new Array(Dt+1).join(Et)},Ot=function(Et,Dt){return Ft("0",Dt-Et.toString().length)+Et},Ct=function(Et){return Ot(Et.getHours(),2)+":"+Ot(Et.getMinutes(),2)+":"+Ot(Et.getSeconds(),2)+"."+Ot(Et.getMilliseconds(),3)},yt=typeof performance<"u"&&performance!==null&&typeof performance.now=="function"?performance:Date,Pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Et){return typeof Et}:function(Et){return Et&&typeof Symbol=="function"&&Et.constructor===Symbol&&Et!==Symbol.prototype?"symbol":typeof Et},wt=function(Et){if(Array.isArray(Et)){for(var Dt=0,Bt=Array(Et.length);Dt<Et.length;Dt++)Bt[Dt]=Et[Dt];return Bt}return Array.from(Et)},Lt=[];Nt=(typeof commonjsGlobal$1>"u"?"undefined":Pt(commonjsGlobal$1))==="object"&&commonjsGlobal$1?commonjsGlobal$1:typeof window<"u"?window:{},Rt=Nt.DeepDiff,Rt&&Lt.push(function(){typeof Rt<"u"&&Nt.DeepDiff===ot&&(Nt.DeepDiff=Rt,Rt=void 0)}),$(_e,j),$(et,j),$(tt,j),$(nt,j),Object.defineProperties(ot,{diff:{value:ot,enumerable:!0},observableDiff:{value:st,enumerable:!0},applyDiff:{value:dt,enumerable:!0},applyChange:{value:lt,enumerable:!0},revertChange:{value:ht,enumerable:!0},isConflict:{value:function(){return typeof Rt<"u"},enumerable:!0},noConflict:{value:function(){return Lt&&(Lt.forEach(function(Et){Et()}),Lt=null),ot},enumerable:!0}});var vt={E:{color:"#2196F3",text:"CHANGED:"},N:{color:"#4CAF50",text:"ADDED:"},D:{color:"#F44336",text:"DELETED:"},A:{color:"#2196F3",text:"ARRAY:"}},xt={level:"log",logger:console,logErrors:!0,collapsed:void 0,predicate:void 0,duration:!1,timestamp:!0,stateTransformer:function(Et){return Et},actionTransformer:function(Et){return Et},errorTransformer:function(Et){return Et},colors:{title:function(){return"inherit"},prevState:function(){return"#9E9E9E"},action:function(){return"#03A9F4"},nextState:function(){return"#4CAF50"},error:function(){return"#F20404"}},diff:!1,diffPredicate:void 0,transformer:void 0},Ut=function(){var Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Dt=Et.dispatch,Bt=Et.getState;return typeof Dt=="function"||typeof Bt=="function"?St()({dispatch:Dt,getState:Bt}):void console.error(`
[redux-logger v3] BREAKING CHANGE
[redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.
[redux-logger v3] Change
[redux-logger v3] import createLogger from 'redux-logger'
[redux-logger v3] to
[redux-logger v3] import { createLogger } from 'redux-logger'
`)};a.defaults=xt,a.createLogger=St,a.logger=Ut,a.default=Ut,Object.defineProperty(a,"__esModule",{value:!0})})})(reduxLogger,reduxLogger.exports);var createWebStorage$1={},getStorage$1={};getStorage$1.__esModule=!0;getStorage$1.default=getStorage;function _typeof$1(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(a){return typeof a}:_typeof$1=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof$1(o)}function noop$2(){}var noopStorage={getItem:noop$2,setItem:noop$2,removeItem:noop$2};function hasStorage(o){if((typeof self>"u"?"undefined":_typeof$1(self))!=="object"||!(o in self))return!1;try{var s=self[o],a="redux-persist ".concat(o," test");s.setItem(a,"test"),s.getItem(a),s.removeItem(a)}catch{return!1}return!0}function getStorage(o){var s="".concat(o,"Storage");return hasStorage(s)?self[s]:noopStorage}createWebStorage$1.__esModule=!0;createWebStorage$1.default=createWebStorage;var _getStorage=_interopRequireDefault$1(getStorage$1);function _interopRequireDefault$1(o){return o&&o.__esModule?o:{default:o}}function createWebStorage(o){var s=(0,_getStorage.default)(o);return{getItem:function($){return new Promise(function(j,_e){j(s.getItem($))})},setItem:function($,j){return new Promise(function(_e,et){_e(s.setItem($,j))})},removeItem:function($){return new Promise(function(j,_e){j(s.removeItem($))})}}}var default_1=void 0,_createWebStorage=_interopRequireDefault(createWebStorage$1);function _interopRequireDefault(o){return o&&o.__esModule?o:{default:o}}var _default=(0,_createWebStorage.default)("local");default_1=_default;var createSymbol=function(s){return"@@redux-saga/"+s},CANCEL$1=createSymbol("CANCEL_PROMISE"),CHANNEL_END_TYPE=createSymbol("CHANNEL_END"),IO=createSymbol("IO"),MATCH=createSymbol("MATCH"),MULTICAST=createSymbol("MULTICAST"),SAGA_ACTION=createSymbol("SAGA_ACTION"),SELF_CANCELLATION=createSymbol("SELF_CANCELLATION"),TASK=createSymbol("TASK"),TASK_CANCEL=createSymbol("TASK_CANCEL"),TERMINATE=createSymbol("TERMINATE"),SAGA_LOCATION=createSymbol("LOCATION"),undef=function(s){return s==null},notUndef=function(s){return s!=null},func=function(s){return typeof s=="function"},string$1=function(s){return typeof s=="string"},array$1=Array.isArray,promise=function(s){return s&&func(s.then)},iterator=function(s){return s&&func(s.next)&&func(s.throw)},pattern=function o(s){return s&&(string$1(s)||symbol$1(s)||func(s)||array$1(s)&&s.every(o))},channel$1=function(s){return s&&func(s.take)&&func(s.close)},stringableFunc=function(s){return func(s)&&s.hasOwnProperty("toString")},symbol$1=function(s){return!!s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype},multicast=function(s){return channel$1(s)&&s[MULTICAST]},MAX_SIGNED_INT=2147483647;function delayP(o,s){s===void 0&&(s=!0);var a,$=new Promise(function(j){a=setTimeout(j,Math.min(MAX_SIGNED_INT,o),s)});return $[CANCEL$1]=function(){clearTimeout(a)},$}var konst=function(s){return function(){return s}},kTrue=konst(!0),noop$1=function(){},identity=function(s){return s},assignWithSymbols=function(s,a){_extends$1(s,a),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(a).forEach(function($){s[$]=a[$]})},flatMap=function(s,a){var $;return($=[]).concat.apply($,a.map(s))};function remove(o,s){var a=o.indexOf(s);a>=0&&o.splice(a,1)}function once(o){var s=!1;return function(){s||(s=!0,o())}}var kThrow=function(s){throw s},kReturn=function(s){return{value:s,done:!0}};function makeIterator(o,s,a){s===void 0&&(s=kThrow),a===void 0&&(a="iterator");var $={meta:{name:a},next:o,throw:s,return:kReturn,isSagaIterator:!0};return typeof Symbol<"u"&&($[Symbol.iterator]=function(){return $}),$}function logError(o,s){var a=s.sagaStack;console.error(o),console.error(a)}var createEmptyArray=function(s){return Array.apply(null,new Array(s))},wrapSagaDispatch=function(s){return function(a){return s(Object.defineProperty(a,SAGA_ACTION,{value:!0}))}},shouldTerminate=function(s){return s===TERMINATE},shouldCancel=function(s){return s===TASK_CANCEL},shouldComplete=function(s){return shouldTerminate(s)||shouldCancel(s)};function createAllStyleChildCallbacks(o,s){var a=Object.keys(o),$=a.length,j=0,_e,et=array$1(o)?createEmptyArray($):{},tt={};function nt(){j===$&&(_e=!0,s(et))}return a.forEach(function(it){var rt=function(ot,at){_e||(at||shouldComplete(ot)?(s.cancel(),s(ot,at)):(et[it]=ot,j++,nt()))};rt.cancel=noop$1,tt[it]=rt}),s.cancel=function(){_e||(_e=!0,a.forEach(function(it){return tt[it].cancel()}))},tt}function getMetaInfo(o){return{name:o.name||"anonymous",location:getLocation(o)}}function getLocation(o){return o[SAGA_LOCATION]}function compose(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];return s.length===0?function($){return $}:s.length===1?s[0]:s.reduce(function($,j){return function(){return $(j.apply(void 0,arguments))}})}var BUFFER_OVERFLOW="Channel's Buffer overflow!",ON_OVERFLOW_THROW=1,ON_OVERFLOW_SLIDE=3,ON_OVERFLOW_EXPAND=4;function ringBuffer(o,s){o===void 0&&(o=10);var a=new Array(o),$=0,j=0,_e=0,et=function(rt){a[j]=rt,j=(j+1)%o,$++},tt=function(){if($!=0){var rt=a[_e];return a[_e]=null,$--,_e=(_e+1)%o,rt}},nt=function(){for(var rt=[];$;)rt.push(tt());return rt};return{isEmpty:function(){return $==0},put:function(rt){if($<o)et(rt);else{var st;switch(s){case ON_OVERFLOW_THROW:throw new Error(BUFFER_OVERFLOW);case ON_OVERFLOW_SLIDE:a[j]=rt,j=(j+1)%o,_e=j;break;case ON_OVERFLOW_EXPAND:st=2*o,a=nt(),$=a.length,j=a.length,_e=0,a.length=st,o=st,et(rt);break}}},take:tt,flush:nt}}var expanding=function(s){return ringBuffer(s,ON_OVERFLOW_EXPAND)},TAKE="TAKE",PUT="PUT",ALL="ALL",RACE="RACE",CALL="CALL",CPS="CPS",FORK="FORK",JOIN="JOIN",CANCEL="CANCEL",SELECT="SELECT",ACTION_CHANNEL="ACTION_CHANNEL",CANCELLED$1="CANCELLED",FLUSH="FLUSH",GET_CONTEXT="GET_CONTEXT",SET_CONTEXT="SET_CONTEXT",makeEffect=function(s,a){var $;return $={},$[IO]=!0,$.combinator=!1,$.type=s,$.payload=a,$};function take(o,s){if(o===void 0&&(o="*"),pattern(o))return notUndef(s)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),makeEffect(TAKE,{pattern:o});if(multicast(o)&&notUndef(s)&&pattern(s))return makeEffect(TAKE,{channel:o,pattern:s});if(channel$1(o))return notUndef(s)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),makeEffect(TAKE,{channel:o})}function put(o,s){return undef(s)&&(s=o,o=void 0),makeEffect(PUT,{channel:o,action:s})}function all(o){var s=makeEffect(ALL,o);return s.combinator=!0,s}function getFnCallDescriptor(o,s){var a=null,$;return func(o)?$=o:(array$1(o)?(a=o[0],$=o[1]):(a=o.context,$=o.fn),a&&string$1($)&&func(a[$])&&($=a[$])),{context:a,fn:$,args:s}}function call(o){for(var s=arguments.length,a=new Array(s>1?s-1:0),$=1;$<s;$++)a[$-1]=arguments[$];return makeEffect(CALL,getFnCallDescriptor(o,a))}function fork(o){for(var s=arguments.length,a=new Array(s>1?s-1:0),$=1;$<s;$++)a[$-1]=arguments[$];return makeEffect(FORK,getFnCallDescriptor(o,a))}function cancel(o){return o===void 0&&(o=SELF_CANCELLATION),makeEffect(CANCEL,o)}function select(o){o===void 0&&(o=identity);for(var s=arguments.length,a=new Array(s>1?s-1:0),$=1;$<s;$++)a[$-1]=arguments[$];return makeEffect(SELECT,{selector:o,args:a})}var delay=call.bind(null,delayP);function deferred(){var o={};return o.promise=new Promise(function(s,a){o.resolve=s,o.reject=a}),o}var queue=[],semaphore=0;function exec(o){try{suspend(),o()}finally{release()}}function asap(o){queue.push(o),semaphore||(suspend(),flush())}function immediately(o){try{return suspend(),o()}finally{flush()}}function suspend(){semaphore++}function release(){semaphore--}function flush(){release();for(var o;!semaphore&&(o=queue.shift())!==void 0;)exec(o)}var array=function(s){return function(a){return s.some(function($){return matcher($)(a)})}},predicate=function(s){return function(a){return s(a)}},string=function(s){return function(a){return a.type===String(s)}},symbol=function(s){return function(a){return a.type===s}},wildcard=function(){return kTrue};function matcher(o){var s=o==="*"?wildcard:string$1(o)?string:array$1(o)?array:stringableFunc(o)?string:func(o)?predicate:symbol$1(o)?symbol:null;if(s===null)throw new Error("invalid pattern: "+o);return s(o)}var END={type:CHANNEL_END_TYPE},isEnd=function(s){return s&&s.type===CHANNEL_END_TYPE};function channel(o){o===void 0&&(o=expanding());var s=!1,a=[];function $(tt){if(!s){if(a.length===0)return o.put(tt);var nt=a.shift();nt(tt)}}function j(tt){s&&o.isEmpty()?tt(END):o.isEmpty()?(a.push(tt),tt.cancel=function(){remove(a,tt)}):tt(o.take())}function _e(tt){if(s&&o.isEmpty()){tt(END);return}tt(o.flush())}function et(){if(!s){s=!0;var tt=a;a=[];for(var nt=0,it=tt.length;nt<it;nt++){var rt=tt[nt];rt(END)}}}return{take:j,put:$,flush:_e,close:et}}function multicastChannel(){var o,s=!1,a=[],$=a,j=function(){$===a&&($=a.slice())},_e=function(){s=!0;var tt=a=$;$=[],tt.forEach(function(nt){nt(END)})};return o={},o[MULTICAST]=!0,o.put=function(tt){if(!s){if(isEnd(tt)){_e();return}for(var nt=a=$,it=0,rt=nt.length;it<rt;it++){var st=nt[it];st[MATCH](tt)&&(st.cancel(),st(tt))}}},o.take=function(tt,nt){if(nt===void 0&&(nt=wildcard),s){tt(END);return}tt[MATCH]=nt,j(),$.push(tt),tt.cancel=once(function(){j(),remove($,tt)})},o.close=_e,o}function stdChannel(){var o=multicastChannel(),s=o.put;return o.put=function(a){if(a[SAGA_ACTION]){s(a);return}asap(function(){s(a)})},o}var RUNNING=0,CANCELLED=1,ABORTED=2,DONE=3;function resolvePromise(o,s){var a=o[CANCEL$1];func(a)&&(s.cancel=a),o.then(s,function($){s($,!0)})}var current=0,nextSagaId=function(){return++current},_effectRunnerMap;function getIteratorMetaInfo(o,s){return o.isSagaIterator?{name:o.meta.name}:getMetaInfo(s)}function createTaskIterator(o){var s=o.context,a=o.fn,$=o.args;try{var j=a.apply(s,$);if(iterator(j))return j;var _e=!1,et=function(nt){return _e?{value:nt,done:!0}:(_e=!0,{value:j,done:!promise(j)})};return makeIterator(et)}catch(tt){return makeIterator(function(){throw tt})}}function runPutEffect(o,s,a){var $=s.channel,j=s.action,_e=s.resolve;asap(function(){var et;try{et=($?$.put:o.dispatch)(j)}catch(tt){a(tt,!0);return}_e&&promise(et)?resolvePromise(et,a):a(et)})}function runTakeEffect(o,s,a){var $=s.channel,j=$===void 0?o.channel:$,_e=s.pattern,et=s.maybe,tt=function(it){if(it instanceof Error){a(it,!0);return}if(isEnd(it)&&!et){a(TERMINATE);return}a(it)};try{j.take(tt,notUndef(_e)?matcher(_e):null)}catch(nt){a(nt,!0);return}a.cancel=tt.cancel}function runCallEffect(o,s,a,$){var j=s.context,_e=s.fn,et=s.args,tt=$.task;try{var nt=_e.apply(j,et);if(promise(nt)){resolvePromise(nt,a);return}if(iterator(nt)){proc(o,nt,tt.context,current,getMetaInfo(_e),!1,a);return}a(nt)}catch(it){a(it,!0)}}function runCPSEffect(o,s,a){var $=s.context,j=s.fn,_e=s.args;try{var et=function(nt,it){undef(nt)?a(it):a(nt,!0)};j.apply($,_e.concat(et)),et.cancel&&(a.cancel=et.cancel)}catch(tt){a(tt,!0)}}function runForkEffect(o,s,a,$){var j=s.context,_e=s.fn,et=s.args,tt=s.detached,nt=$.task,it=createTaskIterator({context:j,fn:_e,args:et}),rt=getIteratorMetaInfo(it,_e);immediately(function(){var st=proc(o,it,nt.context,current,rt,tt,void 0);tt?a(st):st.isRunning()?(nt.queue.addTask(st),a(st)):st.isAborted()?nt.queue.abort(st.error()):a(st)})}function runJoinEffect(o,s,a,$){var j=$.task,_e=function(nt,it){if(nt.isRunning()){var rt={task:j,cb:it};it.cancel=function(){nt.isRunning()&&remove(nt.joiners,rt)},nt.joiners.push(rt)}else nt.isAborted()?it(nt.error(),!0):it(nt.result())};if(array$1(s)){if(s.length===0){a([]);return}var et=createAllStyleChildCallbacks(s,a);s.forEach(function(tt,nt){_e(tt,et[nt])})}else _e(s,a)}function cancelSingleTask(o){o.isRunning()&&o.cancel()}function runCancelEffect(o,s,a,$){var j=$.task;s===SELF_CANCELLATION?cancelSingleTask(j):array$1(s)?s.forEach(cancelSingleTask):cancelSingleTask(s),a()}function runAllEffect(o,s,a,$){var j=$.digestEffect,_e=current,et=Object.keys(s);if(et.length===0){a(array$1(s)?[]:{});return}var tt=createAllStyleChildCallbacks(s,a);et.forEach(function(nt){j(s[nt],_e,tt[nt],nt)})}function runRaceEffect(o,s,a,$){var j=$.digestEffect,_e=current,et=Object.keys(s),tt=array$1(s)?createEmptyArray(et.length):{},nt={},it=!1;et.forEach(function(rt){var st=function(at,lt){it||(lt||shouldComplete(at)?(a.cancel(),a(at,lt)):(a.cancel(),it=!0,tt[rt]=at,a(tt)))};st.cancel=noop$1,nt[rt]=st}),a.cancel=function(){it||(it=!0,et.forEach(function(rt){return nt[rt].cancel()}))},et.forEach(function(rt){it||j(s[rt],_e,nt[rt],rt)})}function runSelectEffect(o,s,a){var $=s.selector,j=s.args;try{var _e=$.apply(void 0,[o.getState()].concat(j));a(_e)}catch(et){a(et,!0)}}function runChannelEffect(o,s,a){var $=s.pattern,j=s.buffer,_e=channel(j),et=matcher($),tt=function it(rt){isEnd(rt)||o.channel.take(it,et),_e.put(rt)},nt=_e.close;_e.close=function(){tt.cancel(),nt()},o.channel.take(tt,et),a(_e)}function runCancelledEffect(o,s,a,$){var j=$.task;a(j.isCancelled())}function runFlushEffect(o,s,a){s.flush(a)}function runGetContextEffect(o,s,a,$){var j=$.task;a(j.context[s])}function runSetContextEffect(o,s,a,$){var j=$.task;assignWithSymbols(j.context,s),a()}var effectRunnerMap=(_effectRunnerMap={},_effectRunnerMap[TAKE]=runTakeEffect,_effectRunnerMap[PUT]=runPutEffect,_effectRunnerMap[ALL]=runAllEffect,_effectRunnerMap[RACE]=runRaceEffect,_effectRunnerMap[CALL]=runCallEffect,_effectRunnerMap[CPS]=runCPSEffect,_effectRunnerMap[FORK]=runForkEffect,_effectRunnerMap[JOIN]=runJoinEffect,_effectRunnerMap[CANCEL]=runCancelEffect,_effectRunnerMap[SELECT]=runSelectEffect,_effectRunnerMap[ACTION_CHANNEL]=runChannelEffect,_effectRunnerMap[CANCELLED$1]=runCancelledEffect,_effectRunnerMap[FLUSH]=runFlushEffect,_effectRunnerMap[GET_CONTEXT]=runGetContextEffect,_effectRunnerMap[SET_CONTEXT]=runSetContextEffect,_effectRunnerMap);function forkQueue(o,s,a){var $=[],j,_e=!1;nt(o);var et=function(){return $};function tt(rt){s(),it(),a(rt,!0)}function nt(rt){$.push(rt),rt.cont=function(st,ot){_e||(remove($,rt),rt.cont=noop$1,ot?tt(st):(rt===o&&(j=st),$.length||(_e=!0,a(j))))}}function it(){_e||(_e=!0,$.forEach(function(rt){rt.cont=noop$1,rt.cancel()}),$=[])}return{addTask:nt,cancelAll:it,abort:tt,getTasks:et}}function formatLocation(o,s){return o+"?"+s}function effectLocationAsString(o){var s=getLocation(o);if(s){var a=s.code,$=s.fileName,j=s.lineNumber,_e=a+"  "+formatLocation($,j);return _e}return""}function sagaLocationAsString(o){var s=o.name,a=o.location;return a?s+"  "+formatLocation(a.fileName,a.lineNumber):s}function cancelledTasksAsString(o){var s=flatMap(function(a){return a.cancelledTasks},o);return s.length?["Tasks cancelled due to error:"].concat(s).join(`
`):""}var crashedEffect=null,sagaStack=[],addSagaFrame=function(s){s.crashedEffect=crashedEffect,sagaStack.push(s)},clear=function(){crashedEffect=null,sagaStack.length=0},setCrashedEffect=function(s){crashedEffect=s},toString=function(){var s=sagaStack[0],a=sagaStack.slice(1),$=s.crashedEffect?effectLocationAsString(s.crashedEffect):null,j="The above error occurred in task "+sagaLocationAsString(s.meta)+($?` 
 when executing effect `+$:"");return[j].concat(a.map(function(_e){return"    created by "+sagaLocationAsString(_e.meta)}),[cancelledTasksAsString(sagaStack)]).join(`
`)};function newTask(o,s,a,$,j,_e,et){var tt;et===void 0&&(et=noop$1);var nt=RUNNING,it,rt,st=null,ot=[],at=Object.create(a),lt=forkQueue(s,function(){ot.push.apply(ot,lt.getTasks().map(function(mt){return mt.meta.name}))},ht);function ct(){nt===RUNNING&&(nt=CANCELLED,lt.cancelAll(),ht(TASK_CANCEL,!1))}function ht(ft,mt){if(!mt)ft===TASK_CANCEL?nt=CANCELLED:nt!==CANCELLED&&(nt=DONE),it=ft,st&&st.resolve(ft);else{if(nt=ABORTED,addSagaFrame({meta:j,cancelledTasks:ot}),pt.isRoot){var gt=toString();clear(),o.onError(ft,{sagaStack:gt})}rt=ft,st&&st.reject(ft)}pt.cont(ft,mt),pt.joiners.forEach(function(bt){bt.cb(ft,mt)}),pt.joiners=null}function dt(ft){assignWithSymbols(at,ft)}function ut(){return st||(st=deferred(),nt===ABORTED?st.reject(rt):nt!==RUNNING&&st.resolve(it)),st.promise}var pt=(tt={},tt[TASK]=!0,tt.id=$,tt.meta=j,tt.isRoot=_e,tt.context=at,tt.joiners=[],tt.queue=lt,tt.cancel=ct,tt.cont=et,tt.end=ht,tt.setContext=dt,tt.toPromise=ut,tt.isRunning=function(){return nt===RUNNING},tt.isCancelled=function(){return nt===CANCELLED||nt===RUNNING&&s.status===CANCELLED},tt.isAborted=function(){return nt===ABORTED},tt.result=function(){return it},tt.error=function(){return rt},tt);return pt}function proc(o,s,a,$,j,_e,et){var tt=o.finalizeRunEffect(at);ot.cancel=noop$1;var nt={meta:j,cancel:st,status:RUNNING},it=newTask(o,nt,a,$,j,_e,et),rt={task:it,digestEffect:lt};function st(){nt.status===RUNNING&&(nt.status=CANCELLED,ot(TASK_CANCEL))}return et&&(et.cancel=it.cancel),ot(),it;function ot(ct,ht){try{var dt;ht?(dt=s.throw(ct),clear()):shouldCancel(ct)?(nt.status=CANCELLED,ot.cancel(),dt=func(s.return)?s.return(TASK_CANCEL):{done:!0,value:TASK_CANCEL}):shouldTerminate(ct)?dt=func(s.return)?s.return():{done:!0}:dt=s.next(ct),dt.done?(nt.status!==CANCELLED&&(nt.status=DONE),nt.cont(dt.value)):lt(dt.value,$,ot)}catch(ut){if(nt.status===CANCELLED)throw ut;nt.status=ABORTED,nt.cont(ut,!0)}}function at(ct,ht,dt){if(promise(ct))resolvePromise(ct,dt);else if(iterator(ct))proc(o,ct,it.context,ht,j,!1,dt);else if(ct&&ct[IO]){var ut=effectRunnerMap[ct.type];ut(o,ct.payload,dt,rt)}else dt(ct)}function lt(ct,ht,dt,ut){ut===void 0&&(ut="");var pt=nextSagaId();o.sagaMonitor&&o.sagaMonitor.effectTriggered({effectId:pt,parentEffectId:ht,label:ut,effect:ct});var ft;function mt(gt,bt){ft||(ft=!0,dt.cancel=noop$1,o.sagaMonitor&&(bt?o.sagaMonitor.effectRejected(pt,gt):o.sagaMonitor.effectResolved(pt,gt)),bt&&setCrashedEffect(ct),dt(gt,bt))}mt.cancel=noop$1,dt.cancel=function(){ft||(ft=!0,mt.cancel(),mt.cancel=noop$1,o.sagaMonitor&&o.sagaMonitor.effectCancelled(pt))},tt(ct,pt,mt)}}function runSaga(o,s){for(var a=o.channel,$=a===void 0?stdChannel():a,j=o.dispatch,_e=o.getState,et=o.context,tt=et===void 0?{}:et,nt=o.sagaMonitor,it=o.effectMiddlewares,rt=o.onError,st=rt===void 0?logError:rt,ot=arguments.length,at=new Array(ot>2?ot-2:0),lt=2;lt<ot;lt++)at[lt-2]=arguments[lt];var ct=s.apply(void 0,at),ht=nextSagaId();nt&&(nt.rootSagaStarted=nt.rootSagaStarted||noop$1,nt.effectTriggered=nt.effectTriggered||noop$1,nt.effectResolved=nt.effectResolved||noop$1,nt.effectRejected=nt.effectRejected||noop$1,nt.effectCancelled=nt.effectCancelled||noop$1,nt.actionDispatched=nt.actionDispatched||noop$1,nt.rootSagaStarted({effectId:ht,saga:s,args:at}));var dt;if(it){var ut=compose.apply(void 0,it);dt=function(mt){return function(gt,bt,St){var Nt=function(Ft){return mt(Ft,bt,St)};return ut(Nt)(gt)}}}else dt=identity;var pt={channel:$,dispatch:wrapSagaDispatch(j),getState:_e,sagaMonitor:nt,onError:st,finalizeRunEffect:dt};return immediately(function(){var ft=proc(pt,ct,tt,ht,getMetaInfo(s),!0,void 0);return nt&&nt.effectResolved(ht,ft),ft})}function sagaMiddlewareFactory(o){var s={},a=s.context,$=a===void 0?{}:a,j=s.channel,_e=j===void 0?stdChannel():j,et=s.sagaMonitor,tt=_objectWithoutPropertiesLoose$3(s,["context","channel","sagaMonitor"]),nt;function it(rt){var st=rt.getState,ot=rt.dispatch;return nt=runSaga.bind(null,_extends$1({},tt,{context:$,channel:_e,dispatch:ot,getState:st,sagaMonitor:et})),function(at){return function(lt){et&&et.actionDispatched&&et.actionDispatched(lt);var ct=at(lt);return _e.put(lt),ct}}}return it.run=function(){return nt.apply(void 0,arguments)},it.setContext=function(rt){assignWithSymbols($,rt)},it}function createThunkMiddleware(o){var s=function($){var j=$.dispatch,_e=$.getState;return function(et){return function(tt){return typeof tt=="function"?tt(j,_e,o):et(tt)}}};return s}var thunk=createThunkMiddleware();thunk.withExtraArgument=createThunkMiddleware;var done=function(s){return{done:!0,value:s}},qEnd={};function safeName(o){return channel$1(o)?"channel":stringableFunc(o)?String(o):func(o)?o.name:String(o)}function fsmIterator(o,s,a){var $,j,_e,et=s;function tt(nt,it){if(et===qEnd)return done(nt);if(it&&!j)throw et=qEnd,it;$&&$(nt);var rt=it?o[j](it):o[et]();return et=rt.nextState,_e=rt.effect,$=rt.stateUpdater,j=rt.errorState,et===qEnd?done(nt):_e}return makeIterator(tt,function(nt){return tt(null,nt)},a)}function takeLatest(o,s){for(var a=arguments.length,$=new Array(a>2?a-2:0),j=2;j<a;j++)$[j-2]=arguments[j];var _e={done:!1,value:take(o)},et=function(at){return{done:!1,value:fork.apply(void 0,[s].concat($,[at]))}},tt=function(at){return{done:!1,value:cancel(at)}},nt,it,rt=function(at){return nt=at},st=function(at){return it=at};return fsmIterator({q1:function(){return{nextState:"q2",effect:_e,stateUpdater:st}},q2:function(){return nt?{nextState:"q3",effect:tt(nt)}:{nextState:"q1",effect:et(it),stateUpdater:rt}},q3:function(){return{nextState:"q1",effect:et(it),stateUpdater:rt}}},"q1","takeLatest("+safeName(o)+", "+s.name+")")}function takeLatest$1(o,s){for(var a=arguments.length,$=new Array(a>2?a-2:0),j=2;j<a;j++)$[j-2]=arguments[j];return fork.apply(void 0,[takeLatest,o,s].concat($))}var dist={},rive={exports:{}};(function(o,s){(function($,j){o.exports=j()})(commonjsGlobal$1,()=>(()=>{var a=[,(et,tt,nt)=>{nt.r(tt),nt.d(tt,{default:()=>rt});var it=(()=>{var st=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(ot={}){var at=ot,lt,ct;at.ready=new Promise((It,At)=>{lt=It,ct=At});function ht(){function It(Qt){const Xt=Ht;zt=At=0,Ht=new Map,Xt.forEach(Kt=>{try{Kt(Qt)}catch(an){console.error(an)}}),this.Qa(),tn&&tn.nb()}let At=0,zt=0,Ht=new Map,tn=null,Yt=null;this.requestAnimationFrame=function(Qt){At||(At=requestAnimationFrame(It.bind(this)));const Xt=++zt;return Ht.set(Xt,Qt),Xt},this.cancelAnimationFrame=function(Qt){Ht.delete(Qt),At&&Ht.size==0&&(cancelAnimationFrame(At),At=0)},this.lb=function(Qt){Yt&&(document.body.remove(Yt),Yt=null),Qt||(Yt=document.createElement("div"),Yt.style.backgroundColor="black",Yt.style.position="fixed",Yt.style.right=0,Yt.style.top=0,Yt.style.color="white",Yt.style.padding="4px",Yt.innerHTML="RIVE FPS",Qt=function(Xt){Yt.innerHTML="RIVE FPS "+Xt.toFixed(1)},document.body.appendChild(Yt)),tn=new function(){let Xt=0,Kt=0;this.nb=function(){var an=performance.now();Kt?(++Xt,an-=Kt,1e3<an&&(Qt(1e3*Xt/an),Xt=Kt=0)):(Kt=an,Xt=0)}}},this.ib=function(){Yt&&(document.body.remove(Yt),Yt=null),tn=null},this.Qa=function(){}}function dt(It){console.assert(!0);const At=new Map;let zt=-1/0;this.push=function(Ht){return Ht=Ht+((1<<It)-1)>>It,At.has(Ht)&&clearTimeout(At.get(Ht)),At.set(Ht,setTimeout(function(){At.delete(Ht),At.length==0?zt=-1/0:Ht==zt&&(zt=Math.max(...At.keys()),console.assert(zt<Ht))},1e3)),zt=Math.max(Ht,zt),zt<<It}}const ut=new function(){function It(){if(!At){let ar=function(cr,Hn,Kn){if(Hn=fn.createShader(Hn),fn.shaderSource(Hn,Kn),fn.compileShader(Hn),Kn=fn.getShaderInfoLog(Hn),0<Kn.length)throw Kn;fn.attachShader(cr,Hn)};var xn=document.createElement("canvas"),Bn={alpha:1,depth:0,stencil:0,antialias:0,premultipliedAlpha:1,preserveDrawingBuffer:0,preferLowPowerToHighPerformance:0,failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:1,explicitSwapControl:1,renderViaOffscreenBackBuffer:1};let fn=xn.getContext("webgl2",Bn);if(fn)zt=2;else if(fn=xn.getContext("webgl",Bn))zt=1;else return console.log("No WebGL support. Image mesh will not be drawn."),!1;if(Ht=Math.min(fn.getParameter(fn.MAX_RENDERBUFFER_SIZE),fn.getParameter(fn.MAX_TEXTURE_SIZE)),xn=fn.createProgram(),ar(xn,fn.VERTEX_SHADER,`attribute vec2 vertex;
                attribute vec2 uv;
                uniform vec4 mat;
                uniform vec2 translate;
                varying vec2 st;
                void main() {
                    st = uv;
                    gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);
                }`),ar(xn,fn.FRAGMENT_SHADER,`precision highp float;
                uniform sampler2D image;
                varying vec2 st;
                void main() {
                    gl_FragColor = texture2D(image, st);
                }`),fn.bindAttribLocation(xn,0,"vertex"),fn.bindAttribLocation(xn,1,"uv"),fn.linkProgram(xn),Bn=fn.getProgramInfoLog(xn),0<Bn.trim().length)throw Bn;tn=fn.getUniformLocation(xn,"mat"),Yt=fn.getUniformLocation(xn,"translate"),fn.useProgram(xn),fn.bindBuffer(fn.ARRAY_BUFFER,fn.createBuffer()),fn.enableVertexAttribArray(0),fn.enableVertexAttribArray(1),fn.bindBuffer(fn.ELEMENT_ARRAY_BUFFER,fn.createBuffer()),fn.uniform1i(fn.getUniformLocation(xn,"image"),0),fn.pixelStorei(fn.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),At=fn}return!0}let At=null,zt=0,Ht=0,tn=null,Yt=null,Qt=0,Xt=0;this.wb=function(){return It(),Ht},this.gb=function(xn){if(!It())return null;const Bn=At.createTexture();return At.bindTexture(At.TEXTURE_2D,Bn),At.texImage2D(At.TEXTURE_2D,0,At.RGBA,At.RGBA,At.UNSIGNED_BYTE,xn),At.texParameteri(At.TEXTURE_2D,At.TEXTURE_WRAP_S,At.CLAMP_TO_EDGE),At.texParameteri(At.TEXTURE_2D,At.TEXTURE_WRAP_T,At.CLAMP_TO_EDGE),At.texParameteri(At.TEXTURE_2D,At.TEXTURE_MAG_FILTER,At.LINEAR),zt==2?(At.texParameteri(At.TEXTURE_2D,At.TEXTURE_MIN_FILTER,At.LINEAR_MIPMAP_LINEAR),At.generateMipmap(At.TEXTURE_2D)):At.texParameteri(At.TEXTURE_2D,At.TEXTURE_MIN_FILTER,At.LINEAR),Bn};const Kt=new dt(8),an=new dt(8),hn=new dt(10),_n=new dt(10);this.kb=function(xn,Bn,fn,ar,cr){if(It()){var Hn=Kt.push(xn),Kn=an.push(Bn);(At.canvas.width!=Hn||At.canvas.height!=Kn)&&(At.canvas.width=Hn,At.canvas.height=Kn),At.viewport(0,Kn-Bn,xn,Bn),At.disable(At.SCISSOR_TEST),At.clearColor(0,0,0,0),At.clear(At.COLOR_BUFFER_BIT),At.enable(At.SCISSOR_TEST),fn.sort((or,Zr)=>Zr.Ua-or.Ua),Hn=hn.push(ar),Qt!=Hn&&(At.bufferData(At.ARRAY_BUFFER,8*Hn,At.DYNAMIC_DRAW),Qt=Hn),Hn=0;for(var br of fn)At.bufferSubData(At.ARRAY_BUFFER,Hn,br.Da),Hn+=4*br.Da.length;console.assert(Hn==4*ar);for(var Or of fn)At.bufferSubData(At.ARRAY_BUFFER,Hn,Or.Xa),Hn+=4*Or.Xa.length;console.assert(Hn==8*ar),Hn=_n.push(cr),Xt!=Hn&&(At.bufferData(At.ELEMENT_ARRAY_BUFFER,2*Hn,At.DYNAMIC_DRAW),Xt=Hn),br=0;for(var qr of fn)At.bufferSubData(At.ELEMENT_ARRAY_BUFFER,br,qr.indices),br+=2*qr.indices.length;console.assert(br==2*cr),qr=0,Or=!0,Hn=br=0;for(const or of fn){or.image.za!=qr&&(At.bindTexture(At.TEXTURE_2D,or.image.cb||null),qr=or.image.za),or.zb?(At.scissor(or.Ia,Kn-or.Ja-or.Pa,or.Gb,or.Pa),Or=!0):Or&&(At.scissor(0,Kn-Bn,xn,Bn),Or=!1),fn=2/xn;const Zr=-2/Bn;At.uniform4f(tn,or.oa[0]*fn*or.va,or.oa[1]*Zr*or.wa,or.oa[2]*fn*or.va,or.oa[3]*Zr*or.wa),At.uniform2f(Yt,or.oa[4]*fn*or.va+fn*(or.Ia-or.xb*or.va)-1,or.oa[5]*Zr*or.wa+Zr*(or.Ja-or.yb*or.wa)+1),At.vertexAttribPointer(0,2,At.FLOAT,!1,0,Hn),At.vertexAttribPointer(1,2,At.FLOAT,!1,0,Hn+4*ar),At.drawElements(At.TRIANGLES,or.indices.length,At.UNSIGNED_SHORT,br),Hn+=4*or.Da.length,br+=2*or.indices.length}console.assert(Hn==4*ar),console.assert(br==2*cr)}},this.canvas=function(){return It()&&At.canvas}};at.onRuntimeInitialized=function(){function It(wn){switch(wn){case an.srcOver:return"source-over";case an.screen:return"screen";case an.overlay:return"overlay";case an.darken:return"darken";case an.lighten:return"lighten";case an.colorDodge:return"color-dodge";case an.colorBurn:return"color-burn";case an.hardLight:return"hard-light";case an.softLight:return"soft-light";case an.difference:return"difference";case an.exclusion:return"exclusion";case an.multiply:return"multiply";case an.hue:return"hue";case an.saturation:return"saturation";case an.color:return"color";case an.luminosity:return"luminosity"}}function At(wn){return"rgba("+((16711680&wn)>>>16)+","+((65280&wn)>>>8)+","+((255&wn)>>>0)+","+((4278190080&wn)>>>24)/255+")"}function zt(){0<br.length&&(ut.kb(Kn.drawWidth(),Kn.drawHeight(),br,Or,qr),br=[],qr=Or=0,Kn.reset(512,512));for(const wn of Hn){for(const zn of wn.da)zn();wn.da=[]}Hn.clear()}var Ht=at.RenderPaintStyle;const tn=at.RenderPath,Yt=at.RenderPaint,Qt=at.Renderer,Xt=at.StrokeCap,Kt=at.StrokeJoin,an=at.BlendMode,hn=Ht.fill,_n=Ht.stroke,xn=at.FillRule.evenOdd;let Bn=1;var fn=at.RenderImage.extend("CanvasRenderImage",{__construct:function(){this.__parent.__construct.call(this),this.za=Bn,Bn=Bn+1&2147483647||1},decode:function(wn){let zn=yo;zn.total++;var fr=this,ur=new Image;ur.src=URL.createObjectURL(new Blob([wn],{type:"image/png"})),ur.onload=function(){if(fr.ab=ur,fr.cb=ut.gb(ur),fr.size(ur.width,ur.height),zn.loaded++,zn.loaded===zn.total){const mr=zn.ready;mr&&(mr(),zn.ready=null)}}}}),ar=tn.extend("CanvasRenderPath",{__construct:function(){this.__parent.__construct.call(this),this.ia=new Path2D},rewind:function(){this.ia=new Path2D},addPath:function(wn,zn,fr,ur,mr,vr,lr){var hr=this.ia,Mr=hr.addPath;wn=wn.ia;const Sr=new DOMMatrix;Sr.a=zn,Sr.b=fr,Sr.c=ur,Sr.d=mr,Sr.e=vr,Sr.f=lr,Mr.call(hr,wn,Sr)},fillRule:function(wn){this.Ga=wn},moveTo:function(wn,zn){this.ia.moveTo(wn,zn)},lineTo:function(wn,zn){this.ia.lineTo(wn,zn)},cubicTo:function(wn,zn,fr,ur,mr,vr){this.ia.bezierCurveTo(wn,zn,fr,ur,mr,vr)},close:function(){this.ia.closePath()}}),cr=Yt.extend("CanvasRenderPaint",{color:function(wn){this.Ha=At(wn)},thickness:function(wn){this.eb=wn},join:function(wn){switch(wn){case Kt.miter:this.ya="miter";break;case Kt.round:this.ya="round";break;case Kt.bevel:this.ya="bevel"}},cap:function(wn){switch(wn){case Xt.butt:this.xa="butt";break;case Xt.round:this.xa="round";break;case Xt.square:this.xa="square"}},style:function(wn){this.bb=wn},blendMode:function(wn){this.$a=It(wn)},clearGradient:function(){this.qa=null},linearGradient:function(wn,zn,fr,ur){this.qa={Va:wn,Wa:zn,La:fr,Ma:ur,Ca:[]}},radialGradient:function(wn,zn,fr,ur){this.qa={Va:wn,Wa:zn,La:fr,Ma:ur,Ca:[],ub:!0}},addStop:function(wn,zn){this.qa.Ca.push({color:wn,stop:zn})},completeGradient:function(){},draw:function(wn,zn,fr){let ur=this.bb;var mr=this.Ha,vr=this.qa;if(wn.globalCompositeOperation=this.$a,vr!=null){mr=vr.Va;var lr=vr.Wa;const Mr=vr.La;var hr=vr.Ma;const Sr=vr.Ca;vr.ub?(vr=Mr-mr,hr-=lr,mr=wn.createRadialGradient(mr,lr,0,mr,lr,Math.sqrt(vr*vr+hr*hr))):mr=wn.createLinearGradient(mr,lr,Mr,hr);for(let jr=0,Cr=Sr.length;jr<Cr;jr++)lr=Sr[jr],mr.addColorStop(lr.stop,At(lr.color));this.Ha=mr,this.qa=null}switch(ur){case _n:wn.strokeStyle=mr,wn.lineWidth=this.eb,wn.lineCap=this.xa,wn.lineJoin=this.ya,wn.stroke(zn);break;case hn:wn.fillStyle=mr,wn.fill(zn,fr)}}});const Hn=new Set;let Kn=null,br=[],Or=0,qr=0;var or=at.CanvasRenderer=Qt.extend("Renderer",{__construct:function(wn){this.__parent.__construct.call(this),this.ha=[1,0,0,1,0,0],this.ba=wn.getContext("2d"),this.Fa=wn,this.da=[]},save:function(){this.ha.push(...this.ha.slice(this.ha.length-6)),this.da.push(this.ba.save.bind(this.ba))},restore:function(){const wn=this.ha.length-6;if(6>wn)throw"restore() called without matching save().";this.ha.splice(wn),this.da.push(this.ba.restore.bind(this.ba))},transform:function(wn,zn,fr,ur,mr,vr){const lr=this.ha,hr=lr.length-6;lr.splice(hr,6,lr[hr]*wn+lr[hr+2]*zn,lr[hr+1]*wn+lr[hr+3]*zn,lr[hr]*fr+lr[hr+2]*ur,lr[hr+1]*fr+lr[hr+3]*ur,lr[hr]*mr+lr[hr+2]*vr+lr[hr+4],lr[hr+1]*mr+lr[hr+3]*vr+lr[hr+5]),this.da.push(this.ba.transform.bind(this.ba,wn,zn,fr,ur,mr,vr))},rotate:function(wn){const zn=Math.sin(wn);wn=Math.cos(wn),this.transform(wn,zn,-zn,wn,0,0)},_drawPath:function(wn,zn){this.da.push(zn.draw.bind(zn,this.ba,wn.ia,wn.Ga===xn?"evenodd":"nonzero"))},drawImage:function(wn,...zn){var fr=this.ba;this.da.push(function(){fr.drawImage(wn,...zn)})},_drawRiveImage:function(wn,zn,fr){var ur=wn.ab;if(ur){var mr=this.ba,vr=It(zn);this.da.push(function(){mr.globalCompositeOperation=vr,mr.globalAlpha=fr,mr.drawImage(ur,0,0),mr.globalAlpha=1})}},_getMatrix:function(wn){const zn=this.ha,fr=zn.length-6;for(let ur=0;6>ur;++ur)wn[ur]=zn[fr+ur]},_drawImageMesh:function(wn,zn,fr,ur,mr,vr,lr,hr,Mr,Sr){var jr=this.ba.canvas.width,Cr=this.ba.canvas.height;const Eo=Mr-lr,wo=Sr-hr;lr=Math.max(lr,0),hr=Math.max(hr,0),Mr=Math.min(Mr,jr),Sr=Math.min(Sr,Cr);const mo=Mr-lr,go=Sr-hr;if(console.assert(mo<=Math.min(Eo,jr)),console.assert(go<=Math.min(wo,Cr)),!(0>=mo||0>=go)){Mr=mo<Eo||go<wo,jr=Sr=1;var no=Math.ceil(mo*Sr),io=Math.ceil(go*jr);Cr=ut.wb(),no>Cr&&(Sr*=Cr/no,no=Cr),io>Cr&&(jr*=Cr/io,io=Cr),Kn||(Kn=new at.DynamicRectanizer(Cr),Kn.reset(512,512)),Cr=Kn.addRect(no,io),0>Cr&&(zt(),Hn.add(this),Cr=Kn.addRect(no,io),console.assert(0<=Cr));var _o=Cr&65535,xo=Cr>>16;br.push({oa:this.ha.slice(this.ha.length-6),image:wn,Ia:_o,Ja:xo,xb:lr,yb:hr,Gb:no,Pa:io,va:Sr,wa:jr,Da:new Float32Array(ur),Xa:new Float32Array(mr),indices:new Uint16Array(vr),zb:Mr,Ua:wn.za<<1|(Mr?1:0)}),Or+=ur.length,qr+=vr.length;var ao=this.ba,So=It(zn);this.da.push(function(){ao.save(),ao.resetTransform(),ao.globalCompositeOperation=So,ao.globalAlpha=fr,ao.drawImage(ut.canvas(),_o,xo,no,io,lr,hr,mo,go),ao.restore()})}},_clipPath:function(wn){this.da.push(this.ba.clip.bind(this.ba,wn.ia,wn.Ga===xn?"evenodd":"nonzero"))},clear:function(){Hn.add(this),this.da.push(this.ba.clearRect.bind(this.ba,0,0,this.Fa.width,this.Fa.height))},flush:function(){},translate:function(wn,zn){this.transform(1,0,0,1,wn,zn)}});at.makeRenderer=function(wn){return new or(wn)},at.renderFactory={makeRenderPaint:function(){return new cr},makeRenderPath:function(){return new ar},makeRenderImage:function(){return new fn}};let Zr=at.load,yo=null;at.load=function(wn){return new Promise(function(zn){let fr=null;yo={total:0,loaded:0,ready:function(){zn(fr)}},fr=Zr(wn),yo.total==0&&zn(fr)})},Ht=new ht,at.requestAnimationFrame=Ht.requestAnimationFrame.bind(Ht),at.cancelAnimationFrame=Ht.cancelAnimationFrame.bind(Ht),at.enableFPSCounter=Ht.lb.bind(Ht),at.disableFPSCounter=Ht.ib,Ht.Qa=zt,at.cleanup=function(){Kn&&Kn.delete()}};var pt=Object.assign({},at),ft="./this.program",mt=typeof window=="object",gt=typeof importScripts=="function",bt="",St,Nt;(mt||gt)&&(gt?bt=self.location.href:typeof document<"u"&&document.currentScript&&(bt=document.currentScript.src),st&&(bt=st),bt.indexOf("blob:")!==0?bt=bt.substr(0,bt.replace(/[?#].*/,"").lastIndexOf("/")+1):bt="",gt&&(Nt=It=>{var At=new XMLHttpRequest;return At.open("GET",It,!1),At.responseType="arraybuffer",At.send(null),new Uint8Array(At.response)}),St=(It,At,zt)=>{var Ht=new XMLHttpRequest;Ht.open("GET",It,!0),Ht.responseType="arraybuffer",Ht.onload=()=>{Ht.status==200||Ht.status==0&&Ht.response?At(Ht.response):zt()},Ht.onerror=zt,Ht.send(null)});var Rt=at.print||console.log.bind(console),Ft=at.printErr||console.error.bind(console);Object.assign(at,pt),pt=null,at.thisProgram&&(ft=at.thisProgram);var Ot;at.wasmBinary&&(Ot=at.wasmBinary),at.noExitRuntime,typeof WebAssembly!="object"&&$n("no native wasm support detected");var Ct,yt=!1,Pt,wt,Lt,vt,xt,Ut,Et,Dt;function Bt(){var It=Ct.buffer;at.HEAP8=Pt=new Int8Array(It),at.HEAP16=Lt=new Int16Array(It),at.HEAP32=xt=new Int32Array(It),at.HEAPU8=wt=new Uint8Array(It),at.HEAPU16=vt=new Uint16Array(It),at.HEAPU32=Ut=new Uint32Array(It),at.HEAPF32=Et=new Float32Array(It),at.HEAPF64=Dt=new Float64Array(It)}var Wt,Zt=[],sn=[],dn=[];function vn(){var It=at.preRun.shift();Zt.unshift(It)}var kn=0,An=null;function $n(It){throw at.onAbort&&at.onAbort(It),It="Aborted("+It+")",Ft(It),yt=!0,It=new WebAssembly.RuntimeError(It+". Build with -sASSERTIONS for more info."),ct(It),It}function On(It){return It.startsWith("data:application/octet-stream;base64,")}var Cn;if(Cn="canvas_advanced.wasm",!On(Cn)){var rn=Cn;Cn=at.locateFile?at.locateFile(rn,bt):bt+rn}function Fn(It){if(It==Cn&&Ot)return new Uint8Array(Ot);if(Nt)return Nt(It);throw"both async and sync fetching of the wasm failed"}function Ln(It){if(!Ot&&(mt||gt)){if(typeof fetch=="function"&&!It.startsWith("file://"))return fetch(It,{credentials:"same-origin"}).then(At=>{if(!At.ok)throw"failed to load wasm binary file at '"+It+"'";return At.arrayBuffer()}).catch(()=>Fn(It));if(St)return new Promise((At,zt)=>{St(It,Ht=>At(new Uint8Array(Ht)),zt)})}return Promise.resolve().then(()=>Fn(It))}function Rn(It,At,zt){return Ln(It).then(Ht=>WebAssembly.instantiate(Ht,At)).then(Ht=>Ht).then(zt,Ht=>{Ft("failed to asynchronously prepare wasm: "+Ht),$n(Ht)})}function Gn(It,At){var zt=Cn;return Ot||typeof WebAssembly.instantiateStreaming!="function"||On(zt)||zt.startsWith("file://")||typeof fetch!="function"?Rn(zt,It,At):fetch(zt,{credentials:"same-origin"}).then(Ht=>WebAssembly.instantiateStreaming(Ht,It).then(At,function(tn){return Ft("wasm streaming compile failed: "+tn),Ft("falling back to ArrayBuffer instantiation"),Rn(zt,It,At)}))}var Vn=It=>{for(;0<It.length;)It.shift()(at)};function qn(It){if(It===void 0)return"_unknown";It=It.replace(/[^a-zA-Z0-9_]/g,"$");var At=It.charCodeAt(0);return 48<=At&&57>=At?`_${It}`:It}function Zn(It,At){return It=qn(It),{[It]:function(){return At.apply(this,arguments)}}[It]}function jn(){this.ja=[void 0],this.Oa=[]}var Xn=new jn,dr=void 0;function mn(It){throw new dr(It)}var Mn=It=>(It||mn("Cannot use deleted val. handle = "+It),Xn.get(It).value),Mt=It=>{switch(It){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return Xn.Ya({Ta:1,value:It})}};function _t(It){var At=Error,zt=Zn(It,function(Ht){this.name=It,this.message=Ht,Ht=Error(Ht).stack,Ht!==void 0&&(this.stack=this.toString()+`
`+Ht.replace(/^Error(:[^\n]*)?\n/,""))});return zt.prototype=Object.create(At.prototype),zt.prototype.constructor=zt,zt.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},zt}var kt=void 0,Vt=void 0;function qt(It){for(var At="";wt[It];)At+=Vt[wt[It++]];return At}var Jt=[];function ln(){for(;Jt.length;){var It=Jt.pop();It.W.na=!1,It.delete()}}var Un=void 0,Yn={};function ir(It,At){for(At===void 0&&mn("ptr should not be undefined");It.$;)At=It.ra(At),It=It.$;return At}var tr={};function nr(It){It=Wn(It);var At=qt(It);return wr(It),At}function Ur(It,At){var zt=tr[It];return zt===void 0&&mn(At+" has unknown type "+nr(It)),zt}function zr(){}var Vr=!1;function ro(It){--It.count.value,It.count.value===0&&(It.ca?It.fa.ka(It.ca):It.Z.X.ka(It.Y))}function oo(It,At,zt){return At===zt?It:zt.$===void 0?null:(It=oo(It,At,zt.$),It===null?null:zt.jb(It))}var Jr={};function lo(It,At){return At=ir(It,At),Yn[At]}var so=void 0;function yr(It){throw new so(It)}function Ir(It,At){return At.Z&&At.Y||yr("makeClassHandle requires ptr and ptrType"),!!At.fa!=!!At.ca&&yr("Both smartPtrType and smartPtr must be specified"),At.count={value:1},Lr(Object.create(It,{W:{value:At}}))}function Lr(It){return typeof FinalizationRegistry>"u"?(Lr=At=>At,It):(Vr=new FinalizationRegistry(At=>{ro(At.W)}),Lr=At=>{var zt=At.W;return zt.ca&&Vr.register(At,{W:zt},At),At},zr=At=>{Vr.unregister(At)},Lr(It))}var Hr={};function Br(It){for(;It.length;){var At=It.pop();It.pop()(At)}}function Pr(It){return this.fromWireType(xt[It>>2])}var $r={},Gr={};function pr(It,At,zt){function Ht(Xt){Xt=zt(Xt),Xt.length!==It.length&&yr("Mismatched type converter count");for(var Kt=0;Kt<It.length;++Kt)kr(It[Kt],Xt[Kt])}It.forEach(function(Xt){Gr[Xt]=At});var tn=Array(At.length),Yt=[],Qt=0;At.forEach((Xt,Kt)=>{tr.hasOwnProperty(Xt)?tn[Kt]=tr[Xt]:(Yt.push(Xt),$r.hasOwnProperty(Xt)||($r[Xt]=[]),$r[Xt].push(()=>{tn[Kt]=tr[Xt],++Qt,Qt===Yt.length&&Ht(tn)}))}),Yt.length===0&&Ht(tn)}function Wr(It){switch(It){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError(`Unknown type size: ${It}`)}}function Tr(It,At,zt={}){var Ht=At.name;if(It||mn(`type "${Ht}" must have a positive integer typeid pointer`),tr.hasOwnProperty(It)){if(zt.tb)return;mn(`Cannot register type '${Ht}' twice`)}tr[It]=At,delete Gr[It],$r.hasOwnProperty(It)&&(At=$r[It],delete $r[It],At.forEach(tn=>tn()))}function kr(It,At,zt={}){if(!("argPackAdvance"in At))throw new TypeError("registerType registeredInstance requires argPackAdvance");Tr(It,At,zt)}function Yr(It){mn(It.W.Z.X.name+" instance already deleted")}function Dr(){}function Kr(It,At,zt){if(It[At].aa===void 0){var Ht=It[At];It[At]=function(){return It[At].aa.hasOwnProperty(arguments.length)||mn(`Function '${zt}' called with an invalid number of arguments (${arguments.length}) - expects one of (${It[At].aa})!`),It[At].aa[arguments.length].apply(this,arguments)},It[At].aa=[],It[At].aa[Ht.ma]=Ht}}function Fr(It,At,zt){at.hasOwnProperty(It)?((zt===void 0||at[It].aa!==void 0&&at[It].aa[zt]!==void 0)&&mn(`Cannot register public name '${It}' twice`),Kr(at,It,It),at.hasOwnProperty(zt)&&mn(`Cannot register multiple overloads of a function with the same number of arguments (${zt})!`),at[It].aa[zt]=At):(at[It]=At,zt!==void 0&&(at[It].Hb=zt))}function co(It,At,zt,Ht,tn,Yt,Qt,Xt){this.name=It,this.constructor=At,this.ga=zt,this.ka=Ht,this.$=tn,this.ob=Yt,this.ra=Qt,this.jb=Xt,this.Ra=[]}function Xr(It,At,zt){for(;At!==zt;)At.ra||mn(`Expected null or instance of ${zt.name}, got an instance of ${At.name}`),It=At.ra(It),At=At.$;return It}function uo(It,At){return At===null?(this.Aa&&mn(`null is not a valid ${this.name}`),0):(At.W||mn(`Cannot pass "${po(At)}" as a ${this.name}`),At.W.Y||mn(`Cannot pass deleted object as a pointer of type ${this.name}`),Xr(At.W.Y,At.W.Z.X,this.X))}function Qr(It,At){if(At===null){if(this.Aa&&mn(`null is not a valid ${this.name}`),this.ua){var zt=this.Ba();return It!==null&&It.push(this.ka,zt),zt}return 0}if(At.W||mn(`Cannot pass "${po(At)}" as a ${this.name}`),At.W.Y||mn(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.ta&&At.W.Z.ta&&mn(`Cannot convert argument of type ${At.W.fa?At.W.fa.name:At.W.Z.name} to parameter type ${this.name}`),zt=Xr(At.W.Y,At.W.Z.X,this.X),this.ua)switch(At.W.ca===void 0&&mn("Passing raw pointer to smart pointer is illegal"),this.Fb){case 0:At.W.fa===this?zt=At.W.ca:mn(`Cannot convert argument of type ${At.W.fa?At.W.fa.name:At.W.Z.name} to parameter type ${this.name}`);break;case 1:zt=At.W.ca;break;case 2:if(At.W.fa===this)zt=At.W.ca;else{var Ht=At.clone();zt=this.Bb(zt,Mt(function(){Ht.delete()})),It!==null&&It.push(this.ka,zt)}break;default:mn("Unsupporting sharing policy")}return zt}function Ar(It,At){return At===null?(this.Aa&&mn(`null is not a valid ${this.name}`),0):(At.W||mn(`Cannot pass "${po(At)}" as a ${this.name}`),At.W.Y||mn(`Cannot pass deleted object as a pointer of type ${this.name}`),At.W.Z.ta&&mn(`Cannot convert argument of type ${At.W.Z.name} to parameter type ${this.name}`),Xr(At.W.Y,At.W.Z.X,this.X))}function Nr(It,At,zt,Ht){this.name=It,this.X=At,this.Aa=zt,this.ta=Ht,this.ua=!1,this.ka=this.Bb=this.Ba=this.Sa=this.Fb=this.Ab=void 0,At.$!==void 0?this.toWireType=Qr:(this.toWireType=Ht?uo:Ar,this.ea=null)}function Dn(It,At,zt){at.hasOwnProperty(It)||yr("Replacing nonexistant public symbol"),at[It].aa!==void 0&&zt!==void 0?at[It].aa[zt]=At:(at[It]=At,at[It].ma=zt)}var ho=(It,At)=>{var zt=[];return function(){if(zt.length=0,Object.assign(zt,arguments),It.includes("j")){var Ht=at["dynCall_"+It];Ht=zt&&zt.length?Ht.apply(null,[At].concat(zt)):Ht.call(null,At)}else Ht=Wt.get(At).apply(null,zt);return Ht}};function _r(It,At){It=qt(It);var zt=It.includes("j")?ho(It,At):Wt.get(At);return typeof zt!="function"&&mn(`unknown function pointer with signature ${It}: ${At}`),zt}var on=void 0;function bn(It,At){function zt(Yt){tn[Yt]||tr[Yt]||(Gr[Yt]?Gr[Yt].forEach(zt):(Ht.push(Yt),tn[Yt]=!0))}var Ht=[],tn={};throw At.forEach(zt),new on(`${It}: `+Ht.map(nr).join([", "]))}function Pn(It,At,zt,Ht,tn){var Yt=At.length;2>Yt&&mn("argTypes array size mismatch! Must at least get return value and 'this' types!");var Qt=At[1]!==null&&zt!==null,Xt=!1;for(zt=1;zt<At.length;++zt)if(At[zt]!==null&&At[zt].ea===void 0){Xt=!0;break}var Kt=At[0].name!=="void",an=Yt-2,hn=Array(an),_n=[],xn=[];return function(){if(arguments.length!==an&&mn(`function ${It} called with ${arguments.length} arguments, expected ${an} args!`),xn.length=0,_n.length=Qt?2:1,_n[0]=tn,Qt){var Bn=At[1].toWireType(xn,this);_n[1]=Bn}for(var fn=0;fn<an;++fn)hn[fn]=At[fn+2].toWireType(xn,arguments[fn]),_n.push(hn[fn]);if(fn=Ht.apply(null,_n),Xt)Br(xn);else for(var ar=Qt?1:2;ar<At.length;ar++){var cr=ar===1?Bn:hn[ar-2];At[ar].ea!==null&&At[ar].ea(cr)}return Bn=Kt?At[0].fromWireType(fn):void 0,Bn}}function rr(It,At){for(var zt=[],Ht=0;Ht<It;Ht++)zt.push(Ut[At+4*Ht>>2]);return zt}function gr(It,At,zt){return It instanceof Object||mn(`${zt} with invalid "this": ${It}`),It instanceof At.X.constructor||mn(`${zt} incompatible with "this" of type ${It.constructor.name}`),It.W.Y||mn(`cannot call emscripten binding method ${zt} on deleted object`),Xr(It.W.Y,It.W.Z.X,At.X)}function Er(It){It>=Xn.Ea&&--Xn.get(It).Ta===0&&Xn.Za(It)}function xr(It,At,zt){switch(At){case 0:return function(Ht){return this.fromWireType((zt?Pt:wt)[Ht])};case 1:return function(Ht){return this.fromWireType((zt?Lt:vt)[Ht>>1])};case 2:return function(Ht){return this.fromWireType((zt?xt:Ut)[Ht>>2])};default:throw new TypeError("Unknown integer type: "+It)}}function po(It){if(It===null)return"null";var At=typeof It;return At==="object"||At==="array"||At==="function"?It.toString():""+It}function vo(It,At){switch(At){case 2:return function(zt){return this.fromWireType(Et[zt>>2])};case 3:return function(zt){return this.fromWireType(Dt[zt>>3])};default:throw new TypeError("Unknown float type: "+It)}}function bo(It,At,zt){switch(At){case 0:return zt?function(Ht){return Pt[Ht]}:function(Ht){return wt[Ht]};case 1:return zt?function(Ht){return Lt[Ht>>1]}:function(Ht){return vt[Ht>>1]};case 2:return zt?function(Ht){return xt[Ht>>2]}:function(Ht){return Ut[Ht>>2]};default:throw new TypeError("Unknown integer type: "+It)}}var sr=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,eo=(It,At,zt)=>{var Ht=At+zt;for(zt=At;It[zt]&&!(zt>=Ht);)++zt;if(16<zt-At&&It.buffer&&sr)return sr.decode(It.subarray(At,zt));for(Ht="";At<zt;){var tn=It[At++];if(tn&128){var Yt=It[At++]&63;if((tn&224)==192)Ht+=String.fromCharCode((tn&31)<<6|Yt);else{var Qt=It[At++]&63;tn=(tn&240)==224?(tn&15)<<12|Yt<<6|Qt:(tn&7)<<18|Yt<<12|Qt<<6|It[At++]&63,65536>tn?Ht+=String.fromCharCode(tn):(tn-=65536,Ht+=String.fromCharCode(55296|tn>>10,56320|tn&1023))}}else Ht+=String.fromCharCode(tn)}return Ht},to=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,fo=(It,At)=>{for(var zt=It>>1,Ht=zt+At/2;!(zt>=Ht)&&vt[zt];)++zt;if(zt<<=1,32<zt-It&&to)return to.decode(wt.subarray(It,zt));for(zt="",Ht=0;!(Ht>=At/2);++Ht){var tn=Lt[It+2*Ht>>1];if(tn==0)break;zt+=String.fromCharCode(tn)}return zt},jt=(It,At,zt)=>{if(zt===void 0&&(zt=2147483647),2>zt)return 0;zt-=2;var Ht=At;zt=zt<2*It.length?zt/2:It.length;for(var tn=0;tn<zt;++tn)Lt[At>>1]=It.charCodeAt(tn),At+=2;return Lt[At>>1]=0,At-Ht},Tt=It=>2*It.length,$t=(It,At)=>{for(var zt=0,Ht="";!(zt>=At/4);){var tn=xt[It+4*zt>>2];if(tn==0)break;++zt,65536<=tn?(tn-=65536,Ht+=String.fromCharCode(55296|tn>>10,56320|tn&1023)):Ht+=String.fromCharCode(tn)}return Ht},Gt=(It,At,zt)=>{if(zt===void 0&&(zt=2147483647),4>zt)return 0;var Ht=At;zt=Ht+zt-4;for(var tn=0;tn<It.length;++tn){var Yt=It.charCodeAt(tn);if(55296<=Yt&&57343>=Yt){var Qt=It.charCodeAt(++tn);Yt=65536+((Yt&1023)<<10)|Qt&1023}if(xt[At>>2]=Yt,At+=4,At+4>zt)break}return xt[At>>2]=0,At-Ht},en=It=>{for(var At=0,zt=0;zt<It.length;++zt){var Ht=It.charCodeAt(zt);55296<=Ht&&57343>=Ht&&++zt,At+=4}return At},nn={};function un(It){var At=nn[It];return At===void 0?qt(It):At}var pn=[];function In(It){var At=pn.length;return pn.push(It),At}function Qn(It,At){for(var zt=Array(It),Ht=0;Ht<It;++Ht)zt[Ht]=Ur(Ut[At+4*Ht>>2],"parameter "+Ht);return zt}var Jn=[],_i={},gn=()=>{if(!Sn){var It={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:ft||"./this.program"},At;for(At in _i)_i[At]===void 0?delete It[At]:It[At]=_i[At];var zt=[];for(At in It)zt.push(`${At}=${It[At]}`);Sn=zt}return Sn},Sn,yn=[null,[],[]];Object.assign(jn.prototype,{get(It){return this.ja[It]},has(It){return this.ja[It]!==void 0},Ya(It){var At=this.Oa.pop()||this.ja.length;return this.ja[At]=It,At},Za(It){this.ja[It]=void 0,this.Oa.push(It)}}),dr=at.BindingError=class extends Error{constructor(It){super(It),this.name="BindingError"}},Xn.ja.push({value:void 0},{value:null},{value:!0},{value:!1}),Xn.Ea=Xn.ja.length,at.count_emval_handles=function(){for(var It=0,At=Xn.Ea;At<Xn.ja.length;++At)Xn.ja[At]!==void 0&&++It;return It},kt=at.PureVirtualError=_t("PureVirtualError");for(var En=Array(256),Tn=0;256>Tn;++Tn)En[Tn]=String.fromCharCode(Tn);Vt=En,at.getInheritedInstanceCount=function(){return Object.keys(Yn).length},at.getLiveInheritedInstances=function(){var It=[],At;for(At in Yn)Yn.hasOwnProperty(At)&&It.push(Yn[At]);return It},at.flushPendingDeletes=ln,at.setDelayFunction=function(It){Un=It,Jt.length&&Un&&Un(ln)},so=at.InternalError=class extends Error{constructor(It){super(It),this.name="InternalError"}},Dr.prototype.isAliasOf=function(It){if(!(this instanceof Dr&&It instanceof Dr))return!1;var At=this.W.Z.X,zt=this.W.Y,Ht=It.W.Z.X;for(It=It.W.Y;At.$;)zt=At.ra(zt),At=At.$;for(;Ht.$;)It=Ht.ra(It),Ht=Ht.$;return At===Ht&&zt===It},Dr.prototype.clone=function(){if(this.W.Y||Yr(this),this.W.pa)return this.W.count.value+=1,this;var It=Lr,At=Object,zt=At.create,Ht=Object.getPrototypeOf(this),tn=this.W;return It=It(zt.call(At,Ht,{W:{value:{count:tn.count,na:tn.na,pa:tn.pa,Y:tn.Y,Z:tn.Z,ca:tn.ca,fa:tn.fa}}})),It.W.count.value+=1,It.W.na=!1,It},Dr.prototype.delete=function(){this.W.Y||Yr(this),this.W.na&&!this.W.pa&&mn("Object already scheduled for deletion"),zr(this),ro(this.W),this.W.pa||(this.W.ca=void 0,this.W.Y=void 0)},Dr.prototype.isDeleted=function(){return!this.W.Y},Dr.prototype.deleteLater=function(){return this.W.Y||Yr(this),this.W.na&&!this.W.pa&&mn("Object already scheduled for deletion"),Jt.push(this),Jt.length===1&&Un&&Un(ln),this.W.na=!0,this},Nr.prototype.pb=function(It){return this.Sa&&(It=this.Sa(It)),It},Nr.prototype.Ka=function(It){this.ka&&this.ka(It)},Nr.prototype.argPackAdvance=8,Nr.prototype.readValueFromPointer=Pr,Nr.prototype.deleteObject=function(It){It!==null&&It.delete()},Nr.prototype.fromWireType=function(It){function At(){return this.ua?Ir(this.X.ga,{Z:this.Ab,Y:zt,fa:this,ca:It}):Ir(this.X.ga,{Z:this,Y:It})}var zt=this.pb(It);if(!zt)return this.Ka(It),null;var Ht=lo(this.X,zt);if(Ht!==void 0)return Ht.W.count.value===0?(Ht.W.Y=zt,Ht.W.ca=It,Ht.clone()):(Ht=Ht.clone(),this.Ka(It),Ht);if(Ht=this.X.ob(zt),Ht=Jr[Ht],!Ht)return At.call(this);Ht=this.ta?Ht.fb:Ht.pointerType;var tn=oo(zt,this.X,Ht.X);return tn===null?At.call(this):this.ua?Ir(Ht.X.ga,{Z:Ht,Y:tn,fa:this,ca:It}):Ir(Ht.X.ga,{Z:Ht,Y:tn})},on=at.UnboundTypeError=_t("UnboundTypeError");var Rr={I:function(It,At,zt){It=qt(It),At=Ur(At,"wrapper"),zt=Mn(zt);var Ht=[].slice,tn=At.X,Yt=tn.ga,Qt=tn.$.ga,Xt=tn.$.constructor;It=Zn(It,function(){tn.$.Ra.forEach((function(an){if(this[an]===Qt[an])throw new kt(`Pure virtual function ${an} must be implemented in JavaScript`)}).bind(this)),Object.defineProperty(this,"__parent",{value:Yt}),this.__construct.apply(this,Ht.call(arguments))}),Yt.__construct=function(){this===Yt&&mn("Pass correct 'this' to __construct");var an=Xt.implement.apply(void 0,[this].concat(Ht.call(arguments)));zr(an);var hn=an.W;an.notifyOnDestruction(),hn.pa=!0,Object.defineProperties(this,{W:{value:hn}}),Lr(this),an=hn.Y,an=ir(tn,an),Yn.hasOwnProperty(an)?mn(`Tried to register registered instance: ${an}`):Yn[an]=this},Yt.__destruct=function(){this===Yt&&mn("Pass correct 'this' to __destruct"),zr(this);var an=this.W.Y;an=ir(tn,an),Yn.hasOwnProperty(an)?delete Yn[an]:mn(`Tried to unregister unregistered instance: ${an}`)},It.prototype=Object.create(Yt);for(var Kt in zt)It.prototype[Kt]=zt[Kt];return Mt(It)},L:function(It){var At=Hr[It];delete Hr[It];var zt=At.Ba,Ht=At.ka,tn=At.Na,Yt=tn.map(Qt=>Qt.sb).concat(tn.map(Qt=>Qt.Db));pr([It],Yt,Qt=>{var Xt={};return tn.forEach((Kt,an)=>{var hn=Qt[an],_n=Kt.qb,xn=Kt.rb,Bn=Qt[an+tn.length],fn=Kt.Cb,ar=Kt.Eb;Xt[Kt.mb]={read:cr=>hn.fromWireType(_n(xn,cr)),write:(cr,Hn)=>{var Kn=[];fn(ar,cr,Bn.toWireType(Kn,Hn)),Br(Kn)}}}),[{name:At.name,fromWireType:function(Kt){var an={},hn;for(hn in Xt)an[hn]=Xt[hn].read(Kt);return Ht(Kt),an},toWireType:function(Kt,an){for(var hn in Xt)if(!(hn in an))throw new TypeError(`Missing field: "${hn}"`);var _n=zt();for(hn in Xt)Xt[hn].write(_n,an[hn]);return Kt!==null&&Kt.push(Ht,_n),_n},argPackAdvance:8,readValueFromPointer:Pr,ea:Ht}]})},z:function(){},G:function(It,At,zt,Ht,tn){var Yt=Wr(zt);At=qt(At),kr(It,{name:At,fromWireType:function(Qt){return!!Qt},toWireType:function(Qt,Xt){return Xt?Ht:tn},argPackAdvance:8,readValueFromPointer:function(Qt){if(zt===1)var Xt=Pt;else if(zt===2)Xt=Lt;else if(zt===4)Xt=xt;else throw new TypeError("Unknown boolean type size: "+At);return this.fromWireType(Xt[Qt>>Yt])},ea:null})},e:function(It,At,zt,Ht,tn,Yt,Qt,Xt,Kt,an,hn,_n,xn){hn=qt(hn),Yt=_r(tn,Yt),Xt&&(Xt=_r(Qt,Xt)),an&&(an=_r(Kt,an)),xn=_r(_n,xn);var Bn=qn(hn);Fr(Bn,function(){bn(`Cannot construct ${hn} due to unbound types`,[Ht])}),pr([It,At,zt],Ht?[Ht]:[],function(fn){if(fn=fn[0],Ht)var ar=fn.X,cr=ar.ga;else cr=Dr.prototype;fn=Zn(Bn,function(){if(Object.getPrototypeOf(this)!==Hn)throw new dr("Use 'new' to construct "+hn);if(Kn.la===void 0)throw new dr(hn+" has no accessible constructor");var Or=Kn.la[arguments.length];if(Or===void 0)throw new dr(`Tried to invoke ctor of ${hn} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(Kn.la).toString()}) parameters instead!`);return Or.apply(this,arguments)});var Hn=Object.create(cr,{constructor:{value:fn}});fn.prototype=Hn;var Kn=new co(hn,fn,Hn,xn,ar,Yt,Xt,an);Kn.$&&(Kn.$.sa===void 0&&(Kn.$.sa=[]),Kn.$.sa.push(Kn)),ar=new Nr(hn,Kn,!0,!1),cr=new Nr(hn+"*",Kn,!1,!1);var br=new Nr(hn+" const*",Kn,!1,!0);return Jr[It]={pointerType:cr,fb:br},Dn(Bn,fn),[ar,cr,br]})},k:function(It,At,zt,Ht,tn,Yt,Qt){var Xt=rr(zt,Ht);At=qt(At),Yt=_r(tn,Yt),pr([],[It],function(Kt){function an(){bn(`Cannot call ${hn} due to unbound types`,Xt)}Kt=Kt[0];var hn=`${Kt.name}.${At}`;At.startsWith("@@")&&(At=Symbol[At.substring(2)]);var _n=Kt.X.constructor;return _n[At]===void 0?(an.ma=zt-1,_n[At]=an):(Kr(_n,At,hn),_n[At].aa[zt-1]=an),pr([],Xt,function(xn){if(xn=Pn(hn,[xn[0],null].concat(xn.slice(1)),null,Yt,Qt),_n[At].aa===void 0?(xn.ma=zt-1,_n[At]=xn):_n[At].aa[zt-1]=xn,Kt.X.sa)for(const Bn of Kt.X.sa)Bn.constructor.hasOwnProperty(At)||(Bn.constructor[At]=xn);return[]}),[]})},s:function(It,At,zt,Ht,tn,Yt,Qt,Xt){At=qt(At),Yt=_r(tn,Yt),pr([],[It],function(Kt){Kt=Kt[0];var an=`${Kt.name}.${At}`,hn={get(){bn(`Cannot access ${an} due to unbound types`,[zt])},enumerable:!0,configurable:!0};return hn.set=Xt?()=>{bn(`Cannot access ${an} due to unbound types`,[zt])}:()=>{mn(`${an} is a read-only property`)},Object.defineProperty(Kt.X.constructor,At,hn),pr([],[zt],function(_n){_n=_n[0];var xn={get(){return _n.fromWireType(Yt(Ht))},enumerable:!0};return Xt&&(Xt=_r(Qt,Xt),xn.set=Bn=>{var fn=[];Xt(Ht,_n.toWireType(fn,Bn)),Br(fn)}),Object.defineProperty(Kt.X.constructor,At,xn),[]}),[]})},o:function(It,At,zt,Ht,tn,Yt){var Qt=rr(At,zt);tn=_r(Ht,tn),pr([],[It],function(Xt){Xt=Xt[0];var Kt=`constructor ${Xt.name}`;if(Xt.X.la===void 0&&(Xt.X.la=[]),Xt.X.la[At-1]!==void 0)throw new dr(`Cannot register multiple constructors with identical number of parameters (${At-1}) for class '${Xt.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return Xt.X.la[At-1]=()=>{bn(`Cannot construct ${Xt.name} due to unbound types`,Qt)},pr([],Qt,function(an){return an.splice(1,0,null),Xt.X.la[At-1]=Pn(Kt,an,null,tn,Yt),[]}),[]})},a:function(It,At,zt,Ht,tn,Yt,Qt,Xt){var Kt=rr(zt,Ht);At=qt(At),Yt=_r(tn,Yt),pr([],[It],function(an){function hn(){bn(`Cannot call ${_n} due to unbound types`,Kt)}an=an[0];var _n=`${an.name}.${At}`;At.startsWith("@@")&&(At=Symbol[At.substring(2)]),Xt&&an.X.Ra.push(At);var xn=an.X.ga,Bn=xn[At];return Bn===void 0||Bn.aa===void 0&&Bn.className!==an.name&&Bn.ma===zt-2?(hn.ma=zt-2,hn.className=an.name,xn[At]=hn):(Kr(xn,At,_n),xn[At].aa[zt-2]=hn),pr([],Kt,function(fn){return fn=Pn(_n,fn,an,Yt,Qt),xn[At].aa===void 0?(fn.ma=zt-2,xn[At]=fn):xn[At].aa[zt-2]=fn,[]}),[]})},d:function(It,At,zt,Ht,tn,Yt,Qt,Xt,Kt,an){At=qt(At),tn=_r(Ht,tn),pr([],[It],function(hn){hn=hn[0];var _n=`${hn.name}.${At}`,xn={get(){bn(`Cannot access ${_n} due to unbound types`,[zt,Qt])},enumerable:!0,configurable:!0};return xn.set=Kt?()=>{bn(`Cannot access ${_n} due to unbound types`,[zt,Qt])}:()=>{mn(_n+" is a read-only property")},Object.defineProperty(hn.X.ga,At,xn),pr([],Kt?[zt,Qt]:[zt],function(Bn){var fn=Bn[0],ar={get(){var Hn=gr(this,hn,_n+" getter");return fn.fromWireType(tn(Yt,Hn))},enumerable:!0};if(Kt){Kt=_r(Xt,Kt);var cr=Bn[1];ar.set=function(Hn){var Kn=gr(this,hn,_n+" setter"),br=[];Kt(an,Kn,cr.toWireType(br,Hn)),Br(br)}}return Object.defineProperty(hn.X.ga,At,ar),[]}),[]})},F:function(It,At){At=qt(At),kr(It,{name:At,fromWireType:function(zt){var Ht=Mn(zt);return Er(zt),Ht},toWireType:function(zt,Ht){return Mt(Ht)},argPackAdvance:8,readValueFromPointer:Pr,ea:null})},l:function(It,At,zt,Ht){function tn(){}zt=Wr(zt),At=qt(At),tn.values={},kr(It,{name:At,constructor:tn,fromWireType:function(Yt){return this.constructor.values[Yt]},toWireType:function(Yt,Qt){return Qt.value},argPackAdvance:8,readValueFromPointer:xr(At,zt,Ht),ea:null}),Fr(At,tn)},c:function(It,At,zt){var Ht=Ur(It,"enum");At=qt(At),It=Ht.constructor,Ht=Object.create(Ht.constructor.prototype,{value:{value:zt},constructor:{value:Zn(`${Ht.name}_${At}`,function(){})}}),It.values[zt]=Ht,It[At]=Ht},u:function(It,At,zt){zt=Wr(zt),At=qt(At),kr(It,{name:At,fromWireType:function(Ht){return Ht},toWireType:function(Ht,tn){return tn},argPackAdvance:8,readValueFromPointer:vo(At,zt),ea:null})},q:function(It,At,zt,Ht,tn,Yt){var Qt=rr(At,zt);It=qt(It),tn=_r(Ht,tn),Fr(It,function(){bn(`Cannot call ${It} due to unbound types`,Qt)},At-1),pr([],Qt,function(Xt){return Dn(It,Pn(It,[Xt[0],null].concat(Xt.slice(1)),null,tn,Yt),At-1),[]})},j:function(It,At,zt,Ht,tn){At=qt(At),tn===-1&&(tn=4294967295),tn=Wr(zt);var Yt=Xt=>Xt;if(Ht===0){var Qt=32-8*zt;Yt=Xt=>Xt<<Qt>>>Qt}zt=At.includes("unsigned")?function(Xt,Kt){return Kt>>>0}:function(Xt,Kt){return Kt},kr(It,{name:At,fromWireType:Yt,toWireType:zt,argPackAdvance:8,readValueFromPointer:bo(At,tn,Ht!==0),ea:null})},g:function(It,At,zt){function Ht(Yt){Yt>>=2;var Qt=Ut;return new tn(Qt.buffer,Qt[Yt+1],Qt[Yt])}var tn=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][At];zt=qt(zt),kr(It,{name:zt,fromWireType:Ht,argPackAdvance:8,readValueFromPointer:Ht},{tb:!0})},v:function(It,At){At=qt(At);var zt=At==="std::string";kr(It,{name:At,fromWireType:function(Ht){var tn=Ut[Ht>>2],Yt=Ht+4;if(zt)for(var Qt=Yt,Xt=0;Xt<=tn;++Xt){var Kt=Yt+Xt;if(Xt==tn||wt[Kt]==0){if(Qt=Qt?eo(wt,Qt,Kt-Qt):"",an===void 0)var an=Qt;else an+="\0",an+=Qt;Qt=Kt+1}}else{for(an=Array(tn),Xt=0;Xt<tn;++Xt)an[Xt]=String.fromCharCode(wt[Yt+Xt]);an=an.join("")}return wr(Ht),an},toWireType:function(Ht,tn){tn instanceof ArrayBuffer&&(tn=new Uint8Array(tn));var Yt,Qt=typeof tn=="string";Qt||tn instanceof Uint8Array||tn instanceof Uint8ClampedArray||tn instanceof Int8Array||mn("Cannot pass non-string to std::string");var Xt;if(zt&&Qt)for(Yt=Xt=0;Yt<tn.length;++Yt){var Kt=tn.charCodeAt(Yt);127>=Kt?Xt++:2047>=Kt?Xt+=2:55296<=Kt&&57343>=Kt?(Xt+=4,++Yt):Xt+=3}else Xt=tn.length;if(Yt=Xt,Xt=er(4+Yt+1),Kt=Xt+4,Ut[Xt>>2]=Yt,zt&&Qt){if(Qt=Kt,Kt=Yt+1,Yt=wt,0<Kt){Kt=Qt+Kt-1;for(var an=0;an<tn.length;++an){var hn=tn.charCodeAt(an);if(55296<=hn&&57343>=hn){var _n=tn.charCodeAt(++an);hn=65536+((hn&1023)<<10)|_n&1023}if(127>=hn){if(Qt>=Kt)break;Yt[Qt++]=hn}else{if(2047>=hn){if(Qt+1>=Kt)break;Yt[Qt++]=192|hn>>6}else{if(65535>=hn){if(Qt+2>=Kt)break;Yt[Qt++]=224|hn>>12}else{if(Qt+3>=Kt)break;Yt[Qt++]=240|hn>>18,Yt[Qt++]=128|hn>>12&63}Yt[Qt++]=128|hn>>6&63}Yt[Qt++]=128|hn&63}}Yt[Qt]=0}}else if(Qt)for(Qt=0;Qt<Yt;++Qt)an=tn.charCodeAt(Qt),255<an&&(wr(Kt),mn("String has UTF-16 code units that do not fit in 8 bits")),wt[Kt+Qt]=an;else for(Qt=0;Qt<Yt;++Qt)wt[Kt+Qt]=tn[Qt];return Ht!==null&&Ht.push(wr,Xt),Xt},argPackAdvance:8,readValueFromPointer:Pr,ea:function(Ht){wr(Ht)}})},t:function(It,At,zt){if(zt=qt(zt),At===2)var Ht=fo,tn=jt,Yt=Tt,Qt=()=>vt,Xt=1;else At===4&&(Ht=$t,tn=Gt,Yt=en,Qt=()=>Ut,Xt=2);kr(It,{name:zt,fromWireType:function(Kt){for(var an=Ut[Kt>>2],hn=Qt(),_n,xn=Kt+4,Bn=0;Bn<=an;++Bn){var fn=Kt+4+Bn*At;(Bn==an||hn[fn>>Xt]==0)&&(xn=Ht(xn,fn-xn),_n===void 0?_n=xn:(_n+="\0",_n+=xn),xn=fn+At)}return wr(Kt),_n},toWireType:function(Kt,an){typeof an!="string"&&mn(`Cannot pass non-string to C++ string type ${zt}`);var hn=Yt(an),_n=er(4+hn+At);return Ut[_n>>2]=hn>>Xt,tn(an,_n+4,hn+At),Kt!==null&&Kt.push(wr,_n),_n},argPackAdvance:8,readValueFromPointer:Pr,ea:function(Kt){wr(Kt)}})},N:function(It,At,zt,Ht,tn,Yt){Hr[It]={name:qt(At),Ba:_r(zt,Ht),ka:_r(tn,Yt),Na:[]}},M:function(It,At,zt,Ht,tn,Yt,Qt,Xt,Kt,an){Hr[It].Na.push({mb:qt(At),sb:zt,qb:_r(Ht,tn),rb:Yt,Db:Qt,Cb:_r(Xt,Kt),Eb:an})},H:function(It,At){At=qt(At),kr(It,{vb:!0,name:At,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},r:function(It,At,zt){It=Mn(It),At=Ur(At,"emval::as");var Ht=[],tn=Mt(Ht);return Ut[zt>>2]=tn,At.toWireType(Ht,It)},w:function(It,At,zt,Ht,tn){It=pn[It],At=Mn(At),zt=un(zt);var Yt=[];return Ut[Ht>>2]=Mt(Yt),It(At,zt,Yt,tn)},i:function(It,At,zt,Ht){It=pn[It],At=Mn(At),zt=un(zt),It(At,zt,null,Ht)},f:Er,h:function(It,At){var zt=Qn(It,At),Ht=zt[0];At=Ht.name+"_$"+zt.slice(1).map(function(Qt){return Qt.name}).join("_")+"$";var tn=Jn[At];if(tn!==void 0)return tn;var Yt=Array(It-1);return tn=In((Qt,Xt,Kt,an)=>{for(var hn=0,_n=0;_n<It-1;++_n)Yt[_n]=zt[_n+1].readValueFromPointer(an+hn),hn+=zt[_n+1].argPackAdvance;for(Qt=Qt[Xt].apply(Qt,Yt),_n=0;_n<It-1;++_n)zt[_n+1].hb&&zt[_n+1].hb(Yt[_n]);if(!Ht.vb)return Ht.toWireType(Kt,Qt)}),Jn[At]=tn},p:function(It){return It=un(It),Mt(at[It])},K:function(It,At){return It=Mn(It),At=Mn(At),Mt(It[At])},m:function(It){4<It&&(Xn.get(It).Ta+=1)},J:function(It){return Mt(un(It))},n:function(It){var At=Mn(It);Br(At),Er(It)},x:function(It,At){return It=Ur(It,"_emval_take_value"),It=It.readValueFromPointer(At),Mt(It)},b:()=>{$n("")},A:It=>{var At=wt.length;if(It>>>=0,2147483648<It)return!1;for(var zt=1;4>=zt;zt*=2){var Ht=At*(1+.2/zt);Ht=Math.min(Ht,It+100663296);var tn=Math;Ht=Math.max(It,Ht);e:{tn=tn.min.call(tn,2147483648,Ht+(65536-Ht%65536)%65536)-Ct.buffer.byteLength+65535>>>16;try{Ct.grow(tn),Bt();var Yt=1;break e}catch{}Yt=void 0}if(Yt)return!0}return!1},B:(It,At)=>{var zt=0;return gn().forEach(function(Ht,tn){var Yt=At+zt;for(tn=Ut[It+4*tn>>2]=Yt,Yt=0;Yt<Ht.length;++Yt)Pt[tn++>>0]=Ht.charCodeAt(Yt);Pt[tn>>0]=0,zt+=Ht.length+1}),0},C:(It,At)=>{var zt=gn();Ut[It>>2]=zt.length;var Ht=0;return zt.forEach(function(tn){Ht+=tn.length+1}),Ut[At>>2]=Ht,0},D:()=>52,y:function(){return 70},E:(It,At,zt,Ht)=>{for(var tn=0,Yt=0;Yt<zt;Yt++){var Qt=Ut[At>>2],Xt=Ut[At+4>>2];At+=8;for(var Kt=0;Kt<Xt;Kt++){var an=wt[Qt+Kt],hn=yn[It];an===0||an===10?((It===1?Rt:Ft)(eo(hn,0)),hn.length=0):hn.push(an)}tn+=Xt}return Ut[Ht>>2]=tn,0}};(function(){function It(zt){if(zt=zt.exports,at.asm=zt,Ct=at.asm.O,Bt(),Wt=at.asm.U,sn.unshift(at.asm.P),kn--,at.monitorRunDependencies&&at.monitorRunDependencies(kn),kn==0&&An){var Ht=An;An=null,Ht()}return zt}var At={a:Rr};if(kn++,at.monitorRunDependencies&&at.monitorRunDependencies(kn),at.instantiateWasm)try{return at.instantiateWasm(At,It)}catch(zt){Ft("Module.instantiateWasm callback failed with error: "+zt),ct(zt)}return Gn(At,function(zt){It(zt.instance)}).catch(ct),{}})();function wr(){return(wr=at.asm.Q).apply(null,arguments)}function er(){return(er=at.asm.R).apply(null,arguments)}function Wn(){return(Wn=at.asm.S).apply(null,arguments)}at.__embind_initialize_bindings=function(){return(at.__embind_initialize_bindings=at.asm.T).apply(null,arguments)},at.dynCall_jiji=function(){return(at.dynCall_jiji=at.asm.V).apply(null,arguments)};var cn;An=function It(){cn||Nn(),cn||(An=It)};function Nn(){function It(){if(!cn&&(cn=!0,at.calledRun=!0,!yt)){if(Vn(sn),lt(at),at.onRuntimeInitialized&&at.onRuntimeInitialized(),at.postRun)for(typeof at.postRun=="function"&&(at.postRun=[at.postRun]);at.postRun.length;){var At=at.postRun.shift();dn.unshift(At)}Vn(dn)}}if(!(0<kn)){if(at.preRun)for(typeof at.preRun=="function"&&(at.preRun=[at.preRun]);at.preRun.length;)vn();Vn(Zt),0<kn||(at.setStatus?(at.setStatus("Running..."),setTimeout(function(){setTimeout(function(){at.setStatus("")},1),It()},1)):It())}}if(at.preInit)for(typeof at.preInit=="function"&&(at.preInit=[at.preInit]);0<at.preInit.length;)at.preInit.pop()();return Nn(),ot.ready}})();const rt=it},et=>{et.exports=JSON.parse(`{"name":"@rive-app/canvas","version":"1.2.4","description":"Rive's canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}`)},(et,tt,nt)=>{nt.r(tt),nt.d(tt,{registerTouchInteractions:()=>it.registerTouchInteractions});var it=nt(4)},(et,tt,nt)=>{nt.r(tt),nt.d(tt,{registerTouchInteractions:()=>st});var it=void 0,rt=function(ot){var at,lt;return["touchstart","touchmove"].indexOf(ot.type)>-1&&(!((at=ot.touches)===null||at===void 0)&&at.length)?(ot.preventDefault(),{clientX:ot.touches[0].clientX,clientY:ot.touches[0].clientY}):ot.type==="touchend"&&(!((lt=ot.changedTouches)===null||lt===void 0)&&lt.length)?{clientX:ot.changedTouches[0].clientX,clientY:ot.changedTouches[0].clientY}:{clientX:ot.clientX,clientY:ot.clientY}},st=function(ot){var at=ot.canvas,lt=ot.artboard,ct=ot.stateMachines,ht=ct===void 0?[]:ct,dt=ot.renderer,ut=ot.rive,pt=ot.fit,ft=ot.alignment;if(!at||!ht.length||!dt||!ut||!lt||typeof window>"u")return null;var mt=function(bt){var St=bt.currentTarget.getBoundingClientRect(),Nt=rt(bt),Rt=Nt.clientX,Ft=Nt.clientY;if(!(!Rt&&!Ft)){var Ot=Rt-St.left,Ct=Ft-St.top,yt=ut.computeAlignment(pt,ft,{minX:0,minY:0,maxX:St.width,maxY:St.height},lt.bounds),Pt=new ut.Mat2D;yt.invert(Pt);var wt=new ut.Vec2D(Ot,Ct),Lt=ut.mapXY(Pt,wt),vt=Lt.x(),xt=Lt.y();switch(Lt.delete(),Pt.delete(),wt.delete(),yt.delete(),bt.type){case"touchmove":case"mouseover":case"mouseout":case"mousemove":{for(var Ut=0,Et=ht;Ut<Et.length;Ut++){var Dt=Et[Ut];Dt.pointerMove(vt,xt)}break}case"touchstart":case"mousedown":{for(var Bt=0,Wt=ht;Bt<Wt.length;Bt++){var Dt=Wt[Bt];Dt.pointerDown(vt,xt)}break}case"touchend":case"mouseup":{for(var Zt=0,sn=ht;Zt<sn.length;Zt++){var Dt=sn[Zt];Dt.pointerUp(vt,xt)}break}}}},gt=mt.bind(it);return at.addEventListener("mouseover",gt),at.addEventListener("mouseout",gt),at.addEventListener("mousemove",gt),at.addEventListener("mousedown",gt),at.addEventListener("mouseup",gt),at.addEventListener("touchmove",gt),at.addEventListener("touchstart",gt),at.addEventListener("touchend",gt),function(){at.removeEventListener("mouseover",gt),at.removeEventListener("mouseout",gt),at.removeEventListener("mousemove",gt),at.removeEventListener("mousedown",gt),at.removeEventListener("mouseup",gt),at.removeEventListener("touchmove",gt),at.removeEventListener("touchstart",gt),at.removeEventListener("touchend",gt)}}}],$={};function j(et){var tt=$[et];if(tt!==void 0)return tt.exports;var nt=$[et]={exports:{}};return a[et](nt,nt.exports,j),nt.exports}j.d=(et,tt)=>{for(var nt in tt)j.o(tt,nt)&&!j.o(et,nt)&&Object.defineProperty(et,nt,{enumerable:!0,get:tt[nt]})},j.o=(et,tt)=>Object.prototype.hasOwnProperty.call(et,tt),j.r=et=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(et,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(et,"__esModule",{value:!0})};var _e={};return(()=>{j.r(_e),j.d(_e,{Alignment:()=>ot,EventType:()=>ft,Fit:()=>st,Layout:()=>at,LoopType:()=>mt,Rive:()=>St,RuntimeLoader:()=>lt,StateMachineInput:()=>dt,StateMachineInputType:()=>ht,Testing:()=>Ft});var et=j(1),tt=j(2),nt=j(3),it=function(Ot,Ct,yt,Pt){function wt(Lt){return Lt instanceof yt?Lt:new yt(function(vt){vt(Lt)})}return new(yt||(yt=Promise))(function(Lt,vt){function xt(Dt){try{Et(Pt.next(Dt))}catch(Bt){vt(Bt)}}function Ut(Dt){try{Et(Pt.throw(Dt))}catch(Bt){vt(Bt)}}function Et(Dt){Dt.done?Lt(Dt.value):wt(Dt.value).then(xt,Ut)}Et((Pt=Pt.apply(Ot,Ct||[])).next())})},rt=function(Ot,Ct){var yt={label:0,sent:function(){if(Lt[0]&1)throw Lt[1];return Lt[1]},trys:[],ops:[]},Pt,wt,Lt,vt;return vt={next:xt(0),throw:xt(1),return:xt(2)},typeof Symbol=="function"&&(vt[Symbol.iterator]=function(){return this}),vt;function xt(Et){return function(Dt){return Ut([Et,Dt])}}function Ut(Et){if(Pt)throw new TypeError("Generator is already executing.");for(;vt&&(vt=0,Et[0]&&(yt=0)),yt;)try{if(Pt=1,wt&&(Lt=Et[0]&2?wt.return:Et[0]?wt.throw||((Lt=wt.return)&&Lt.call(wt),0):wt.next)&&!(Lt=Lt.call(wt,Et[1])).done)return Lt;switch(wt=0,Lt&&(Et=[Et[0]&2,Lt.value]),Et[0]){case 0:case 1:Lt=Et;break;case 4:return yt.label++,{value:Et[1],done:!1};case 5:yt.label++,wt=Et[1],Et=[0];continue;case 7:Et=yt.ops.pop(),yt.trys.pop();continue;default:if(Lt=yt.trys,!(Lt=Lt.length>0&&Lt[Lt.length-1])&&(Et[0]===6||Et[0]===2)){yt=0;continue}if(Et[0]===3&&(!Lt||Et[1]>Lt[0]&&Et[1]<Lt[3])){yt.label=Et[1];break}if(Et[0]===6&&yt.label<Lt[1]){yt.label=Lt[1],Lt=Et;break}if(Lt&&yt.label<Lt[2]){yt.label=Lt[2],yt.ops.push(Et);break}Lt[2]&&yt.ops.pop(),yt.trys.pop();continue}Et=Ct.call(Ot,yt)}catch(Dt){Et=[6,Dt],wt=0}finally{Pt=Lt=0}if(Et[0]&5)throw Et[1];return{value:Et[0]?Et[1]:void 0,done:!0}}},st;(function(Ot){Ot.Cover="cover",Ot.Contain="contain",Ot.Fill="fill",Ot.FitWidth="fitWidth",Ot.FitHeight="fitHeight",Ot.None="none",Ot.ScaleDown="scaleDown"})(st||(st={}));var ot;(function(Ot){Ot.Center="center",Ot.TopLeft="topLeft",Ot.TopCenter="topCenter",Ot.TopRight="topRight",Ot.CenterLeft="centerLeft",Ot.CenterRight="centerRight",Ot.BottomLeft="bottomLeft",Ot.BottomCenter="bottomCenter",Ot.BottomRight="bottomRight"})(ot||(ot={}));var at=function(){function Ot(Ct){var yt,Pt,wt,Lt,vt,xt;this.fit=(yt=Ct==null?void 0:Ct.fit)!==null&&yt!==void 0?yt:st.Contain,this.alignment=(Pt=Ct==null?void 0:Ct.alignment)!==null&&Pt!==void 0?Pt:ot.Center,this.minX=(wt=Ct==null?void 0:Ct.minX)!==null&&wt!==void 0?wt:0,this.minY=(Lt=Ct==null?void 0:Ct.minY)!==null&&Lt!==void 0?Lt:0,this.maxX=(vt=Ct==null?void 0:Ct.maxX)!==null&&vt!==void 0?vt:0,this.maxY=(xt=Ct==null?void 0:Ct.maxY)!==null&&xt!==void 0?xt:0}return Ot.new=function(Ct){var yt=Ct.fit,Pt=Ct.alignment,wt=Ct.minX,Lt=Ct.minY,vt=Ct.maxX,xt=Ct.maxY;return console.warn("This function is deprecated: please use `new Layout({})` instead"),new Ot({fit:yt,alignment:Pt,minX:wt,minY:Lt,maxX:vt,maxY:xt})},Ot.prototype.copyWith=function(Ct){var yt=Ct.fit,Pt=Ct.alignment,wt=Ct.minX,Lt=Ct.minY,vt=Ct.maxX,xt=Ct.maxY;return new Ot({fit:yt??this.fit,alignment:Pt??this.alignment,minX:wt??this.minX,minY:Lt??this.minY,maxX:vt??this.maxX,maxY:xt??this.maxY})},Ot.prototype.runtimeFit=function(Ct){if(this.cachedRuntimeFit)return this.cachedRuntimeFit;var yt;return this.fit===st.Cover?yt=Ct.Fit.cover:this.fit===st.Contain?yt=Ct.Fit.contain:this.fit===st.Fill?yt=Ct.Fit.fill:this.fit===st.FitWidth?yt=Ct.Fit.fitWidth:this.fit===st.FitHeight?yt=Ct.Fit.fitHeight:this.fit===st.ScaleDown?yt=Ct.Fit.scaleDown:yt=Ct.Fit.none,this.cachedRuntimeFit=yt,yt},Ot.prototype.runtimeAlignment=function(Ct){if(this.cachedRuntimeAlignment)return this.cachedRuntimeAlignment;var yt;return this.alignment===ot.TopLeft?yt=Ct.Alignment.topLeft:this.alignment===ot.TopCenter?yt=Ct.Alignment.topCenter:this.alignment===ot.TopRight?yt=Ct.Alignment.topRight:this.alignment===ot.CenterLeft?yt=Ct.Alignment.centerLeft:this.alignment===ot.CenterRight?yt=Ct.Alignment.centerRight:this.alignment===ot.BottomLeft?yt=Ct.Alignment.bottomLeft:this.alignment===ot.BottomCenter?yt=Ct.Alignment.bottomCenter:this.alignment===ot.BottomRight?yt=Ct.Alignment.bottomRight:yt=Ct.Alignment.center,this.cachedRuntimeAlignment=yt,yt},Ot}(),lt=function(){function Ot(){}return Ot.loadRuntime=function(){et.default({locateFile:function(){return Ot.wasmURL}}).then(function(Ct){var yt;for(Ot.runtime=Ct;Ot.callBackQueue.length>0;)(yt=Ot.callBackQueue.shift())===null||yt===void 0||yt(Ot.runtime)})},Ot.getInstance=function(Ct){Ot.isLoading||(Ot.isLoading=!0,Ot.loadRuntime()),Ot.runtime?Ct(Ot.runtime):Ot.callBackQueue.push(Ct)},Ot.awaitInstance=function(){return new Promise(function(Ct){return Ot.getInstance(function(yt){return Ct(yt)})})},Ot.setWasmUrl=function(Ct){Ot.wasmURL=Ct},Ot.isLoading=!1,Ot.callBackQueue=[],Ot.wasmURL="https://unpkg.com/".concat(tt.name,"@").concat(tt.version,"/rive.wasm"),Ot}(),ct=function(){function Ot(Ct,yt,Pt,wt){this.animation=Ct,this.artboard=yt,this.playing=wt,this.loopCount=0,this.scrubTo=null,this.instance=new Pt.LinearAnimationInstance(Ct,yt)}return Object.defineProperty(Ot.prototype,"name",{get:function(){return this.animation.name},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"time",{get:function(){return this.instance.time},set:function(Ct){this.instance.time=Ct},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"loopValue",{get:function(){return this.animation.loopValue},enumerable:!1,configurable:!0}),Ot.prototype.advance=function(Ct){this.scrubTo===null?this.instance.advance(Ct):(this.instance.time=0,this.instance.advance(this.scrubTo),this.scrubTo=null)},Ot.prototype.apply=function(Ct){this.instance.apply(Ct)},Object.defineProperty(Ot.prototype,"needsScrub",{get:function(){return this.scrubTo!==null},enumerable:!1,configurable:!0}),Ot.prototype.cleanup=function(){this.instance.delete()},Ot}(),ht;(function(Ot){Ot[Ot.Number=56]="Number",Ot[Ot.Trigger=58]="Trigger",Ot[Ot.Boolean=59]="Boolean"})(ht||(ht={}));var dt=function(){function Ot(Ct,yt){this.type=Ct,this.runtimeInput=yt}return Object.defineProperty(Ot.prototype,"name",{get:function(){return this.runtimeInput.name},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"value",{get:function(){return this.runtimeInput.value},set:function(Ct){this.runtimeInput.value=Ct},enumerable:!1,configurable:!0}),Ot.prototype.fire=function(){this.type===ht.Trigger&&this.runtimeInput.fire()},Ot}(),ut=function(){function Ot(Ct,yt,Pt,wt){this.stateMachine=Ct,this.playing=Pt,this.artboard=wt,this.inputs=[],this.instance=new yt.StateMachineInstance(Ct,wt),this.initInputs(yt)}return Object.defineProperty(Ot.prototype,"name",{get:function(){return this.stateMachine.name},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"statesChanged",{get:function(){for(var Ct=[],yt=0;yt<this.instance.stateChangedCount();yt++)Ct.push(this.instance.stateChangedNameByIndex(yt));return Ct},enumerable:!1,configurable:!0}),Ot.prototype.advance=function(Ct){this.instance.advance(Ct)},Ot.prototype.initInputs=function(Ct){for(var yt=0;yt<this.instance.inputCount();yt++){var Pt=this.instance.input(yt);this.inputs.push(this.mapRuntimeInput(Pt,Ct))}},Ot.prototype.mapRuntimeInput=function(Ct,yt){if(Ct.type===yt.SMIInput.bool)return new dt(ht.Boolean,Ct.asBool());if(Ct.type===yt.SMIInput.number)return new dt(ht.Number,Ct.asNumber());if(Ct.type===yt.SMIInput.trigger)return new dt(ht.Trigger,Ct.asTrigger())},Ot.prototype.cleanup=function(){this.instance.delete()},Ot}(),pt=function(){function Ot(Ct,yt,Pt,wt,Lt){wt===void 0&&(wt=[]),Lt===void 0&&(Lt=[]),this.runtime=Ct,this.artboard=yt,this.eventManager=Pt,this.animations=wt,this.stateMachines=Lt}return Ot.prototype.add=function(Ct,yt,Pt){if(Pt===void 0&&(Pt=!0),Ct=Rt(Ct),Ct.length===0)this.animations.forEach(function(Zt){return Zt.playing=yt}),this.stateMachines.forEach(function(Zt){return Zt.playing=yt});else for(var wt=this.animations.map(function(Zt){return Zt.name}),Lt=this.stateMachines.map(function(Zt){return Zt.name}),vt=0;vt<Ct.length;vt++){var xt=wt.indexOf(Ct[vt]),Ut=Lt.indexOf(Ct[vt]);if(xt>=0||Ut>=0)xt>=0?this.animations[xt].playing=yt:this.stateMachines[Ut].playing=yt;else{var Et=this.artboard.animationByName(Ct[vt]);if(Et){var Dt=new ct(Et,this.artboard,this.runtime,yt);Dt.advance(0),Dt.apply(1),this.animations.push(Dt)}else{var Bt=this.artboard.stateMachineByName(Ct[vt]);if(Bt){var Wt=new ut(Bt,this.runtime,yt,this.artboard);this.stateMachines.push(Wt)}}}}return Pt&&(yt?this.eventManager.fire({type:ft.Play,data:this.playing}):this.eventManager.fire({type:ft.Pause,data:this.paused})),yt?this.playing:this.paused},Ot.prototype.play=function(Ct){return this.add(Ct,!0)},Ot.prototype.pause=function(Ct){return this.add(Ct,!1)},Ot.prototype.scrub=function(Ct,yt){var Pt=this.animations.filter(function(wt){return Ct.includes(wt.name)});return Pt.forEach(function(wt){return wt.scrubTo=yt}),Pt.map(function(wt){return wt.name})},Object.defineProperty(Ot.prototype,"playing",{get:function(){return this.animations.filter(function(Ct){return Ct.playing}).map(function(Ct){return Ct.name}).concat(this.stateMachines.filter(function(Ct){return Ct.playing}).map(function(Ct){return Ct.name}))},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"paused",{get:function(){return this.animations.filter(function(Ct){return!Ct.playing}).map(function(Ct){return Ct.name}).concat(this.stateMachines.filter(function(Ct){return!Ct.playing}).map(function(Ct){return Ct.name}))},enumerable:!1,configurable:!0}),Ot.prototype.stop=function(Ct){var yt=this;Ct=Rt(Ct);var Pt=[];if(Ct.length===0)Pt=this.animations.map(function(vt){return vt.name}).concat(this.stateMachines.map(function(vt){return vt.name})),this.animations.forEach(function(vt){return vt.cleanup()}),this.stateMachines.forEach(function(vt){return vt.cleanup()}),this.animations.splice(0,this.animations.length),this.stateMachines.splice(0,this.stateMachines.length);else{var wt=this.animations.filter(function(vt){return Ct.includes(vt.name)});wt.forEach(function(vt){vt.cleanup(),yt.animations.splice(yt.animations.indexOf(vt),1)});var Lt=this.stateMachines.filter(function(vt){return Ct.includes(vt.name)});Lt.forEach(function(vt){vt.cleanup(),yt.stateMachines.splice(yt.stateMachines.indexOf(vt),1)}),Pt=wt.map(function(vt){return vt.name}).concat(Lt.map(function(vt){return vt.name}))}return this.eventManager.fire({type:ft.Stop,data:Pt}),Pt},Object.defineProperty(Ot.prototype,"isPlaying",{get:function(){return this.animations.reduce(function(Ct,yt){return Ct||yt.playing},!1)||this.stateMachines.reduce(function(Ct,yt){return Ct||yt.playing},!1)},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isPaused",{get:function(){return!this.isPlaying&&(this.animations.length>0||this.stateMachines.length>0)},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isStopped",{get:function(){return this.animations.length===0&&this.stateMachines.length===0},enumerable:!1,configurable:!0}),Ot.prototype.atLeastOne=function(Ct,yt){yt===void 0&&(yt=!0);var Pt;return this.animations.length===0&&this.stateMachines.length===0&&(this.artboard.animationCount()>0?this.add([Pt=this.artboard.animationByIndex(0).name],Ct,yt):this.artboard.stateMachineCount()>0&&this.add([Pt=this.artboard.stateMachineByIndex(0).name],Ct,yt)),Pt},Ot.prototype.handleLooping=function(){for(var Ct=0,yt=this.animations.filter(function(wt){return wt.playing});Ct<yt.length;Ct++){var Pt=yt[Ct];Pt.loopValue===0&&Pt.loopCount?(Pt.loopCount=0,this.stop(Pt.name)):Pt.loopValue===1&&Pt.loopCount?(this.eventManager.fire({type:ft.Loop,data:{animation:Pt.name,type:mt.Loop}}),Pt.loopCount=0):Pt.loopValue===2&&Pt.loopCount>1&&(this.eventManager.fire({type:ft.Loop,data:{animation:Pt.name,type:mt.PingPong}}),Pt.loopCount=0)}},Ot.prototype.handleStateChanges=function(){for(var Ct=[],yt=0,Pt=this.stateMachines.filter(function(Lt){return Lt.playing});yt<Pt.length;yt++){var wt=Pt[yt];Ct.push.apply(Ct,wt.statesChanged)}Ct.length>0&&this.eventManager.fire({type:ft.StateChange,data:Ct})},Ot.prototype.handleAdvancing=function(Ct){this.eventManager.fire({type:ft.Advance,data:Ct})},Ot}(),ft;(function(Ot){Ot.Load="load",Ot.LoadError="loaderror",Ot.Play="play",Ot.Pause="pause",Ot.Stop="stop",Ot.Loop="loop",Ot.Draw="draw",Ot.Advance="advance",Ot.StateChange="statechange"})(ft||(ft={}));var mt;(function(Ot){Ot.OneShot="oneshot",Ot.Loop="loop",Ot.PingPong="pingpong"})(mt||(mt={}));var gt=function(){function Ot(Ct){Ct===void 0&&(Ct=[]),this.listeners=Ct}return Ot.prototype.getListeners=function(Ct){return this.listeners.filter(function(yt){return yt.type===Ct})},Ot.prototype.add=function(Ct){this.listeners.includes(Ct)||this.listeners.push(Ct)},Ot.prototype.remove=function(Ct){for(var yt=0;yt<this.listeners.length;yt++){var Pt=this.listeners[yt];if(Pt.type===Ct.type&&Pt.callback===Ct.callback){this.listeners.splice(yt,1);break}}},Ot.prototype.removeAll=function(Ct){var yt=this;Ct?this.listeners.filter(function(Pt){return Pt.type===Ct}).forEach(function(Pt){return yt.remove(Pt)}):this.listeners.splice(0,this.listeners.length)},Ot.prototype.fire=function(Ct){var yt=this.getListeners(Ct.type);yt.forEach(function(Pt){return Pt.callback(Ct)})},Ot}(),bt=function(){function Ot(Ct){this.eventManager=Ct,this.queue=[]}return Ot.prototype.add=function(Ct){this.queue.push(Ct)},Ot.prototype.process=function(){for(;this.queue.length>0;){var Ct=this.queue.shift();Ct!=null&&Ct.action&&Ct.action(),Ct!=null&&Ct.event&&this.eventManager.fire(Ct.event)}},Ot}(),St=function(){function Ot(Ct){var yt;this.loaded=!1,this.readyForPlaying=!1,this.artboard=null,this.eventCleanup=null,this.shouldDisableRiveListeners=!1,this.durations=[],this.frameTimes=[],this.frameCount=0,this.renderSecondTimer=0,this.canvas=Ct.canvas,this.src=Ct.src,this.buffer=Ct.buffer,this.layout=(yt=Ct.layout)!==null&&yt!==void 0?yt:new at,this.shouldDisableRiveListeners=!!Ct.shouldDisableRiveListeners,this.eventManager=new gt,Ct.onLoad&&this.on(ft.Load,Ct.onLoad),Ct.onLoadError&&this.on(ft.LoadError,Ct.onLoadError),Ct.onPlay&&this.on(ft.Play,Ct.onPlay),Ct.onPause&&this.on(ft.Pause,Ct.onPause),Ct.onStop&&this.on(ft.Stop,Ct.onStop),Ct.onLoop&&this.on(ft.Loop,Ct.onLoop),Ct.onStateChange&&this.on(ft.StateChange,Ct.onStateChange),Ct.onAdvance&&this.on(ft.Advance,Ct.onAdvance),Ct.onload&&!Ct.onLoad&&this.on(ft.Load,Ct.onload),Ct.onloaderror&&!Ct.onLoadError&&this.on(ft.LoadError,Ct.onloaderror),Ct.onplay&&!Ct.onPlay&&this.on(ft.Play,Ct.onplay),Ct.onpause&&!Ct.onPause&&this.on(ft.Pause,Ct.onpause),Ct.onstop&&!Ct.onStop&&this.on(ft.Stop,Ct.onstop),Ct.onloop&&!Ct.onLoop&&this.on(ft.Loop,Ct.onloop),Ct.onstatechange&&!Ct.onStateChange&&this.on(ft.StateChange,Ct.onstatechange),this.taskQueue=new bt(this.eventManager),this.init({src:this.src,buffer:this.buffer,autoplay:Ct.autoplay,animations:Ct.animations,stateMachines:Ct.stateMachines,artboard:Ct.artboard,useOffscreenRenderer:Ct.useOffscreenRenderer})}return Ot.new=function(Ct){return console.warn("This function is deprecated: please use `new Rive({})` instead"),new Ot(Ct)},Ot.prototype.init=function(Ct){var yt=this,Pt=Ct.src,wt=Ct.buffer,Lt=Ct.animations,vt=Ct.stateMachines,xt=Ct.artboard,Ut=Ct.autoplay,Et=Ut===void 0?!1:Ut,Dt=Ct.useOffscreenRenderer,Bt=Dt===void 0?!1:Dt;if(this.src=Pt,this.buffer=wt,!this.src&&!this.buffer)throw new Error(Ot.missingErrorMessage);var Wt=Rt(Lt),Zt=Rt(vt);this.loaded=!1,this.readyForPlaying=!1,lt.awaitInstance().then(function(sn){yt.runtime=sn,yt.renderer=yt.runtime.makeRenderer(yt.canvas,Bt),yt.canvas.width||yt.canvas.height||yt.resizeDrawingSurfaceToCanvas(),yt.initData(xt,Wt,Zt,Et).then(function(){return yt.setupRiveListeners()}).catch(function(dn){console.error(dn)})}).catch(function(sn){console.error(sn)})},Ot.prototype.setupRiveListeners=function(){var Ct=this;if(!this.shouldDisableRiveListeners){var yt=(this.animator.stateMachines||[]).filter(function(Pt){return Pt.playing&&Ct.runtime.hasListeners(Pt.instance)}).map(function(Pt){return Pt.instance});this.eventCleanup=(0,nt.registerTouchInteractions)({canvas:this.canvas,artboard:this.artboard,stateMachines:yt,renderer:this.renderer,rive:this.runtime,fit:this._layout.runtimeFit(this.runtime),alignment:this._layout.runtimeAlignment(this.runtime)})}},Ot.prototype.initData=function(Ct,yt,Pt,wt){var Lt;return it(this,void 0,void 0,function(){var vt,xt,Ut;return rt(this,function(Et){switch(Et.label){case 0:return this.src?(vt=this,[4,Nt(this.src)]):[3,2];case 1:vt.buffer=Et.sent(),Et.label=2;case 2:return xt=this,[4,this.runtime.load(new Uint8Array(this.buffer))];case 3:return xt.file=Et.sent(),this.file?(this.initArtboard(Ct,yt,Pt,wt),this.loaded=!0,this.eventManager.fire({type:ft.Load,data:(Lt=this.src)!==null&&Lt!==void 0?Lt:"buffer"}),this.readyForPlaying=!0,this.taskQueue.process(),this.drawFrame(),[2,Promise.resolve()]):(Ut="Problem loading file; may be corrupt!",console.warn(Ut),this.eventManager.fire({type:ft.LoadError,data:Ut}),[2,Promise.reject(Ut)])}})})},Ot.prototype.initArtboard=function(Ct,yt,Pt,wt){var Lt=Ct?this.file.artboardByName(Ct):this.file.defaultArtboard();if(!Lt){var vt="Invalid artboard name or no default artboard";console.warn(vt),this.eventManager.fire({type:ft.LoadError,data:vt});return}if(this.artboard=Lt,this.artboard.animationCount()<1){var vt="Artboard has no animations";throw this.eventManager.fire({type:ft.LoadError,data:vt}),vt}this.animator=new pt(this.runtime,this.artboard,this.eventManager);var xt;yt.length>0||Pt.length>0?(xt=yt.concat(Pt),this.animator.add(xt,wt,!1)):xt=[this.animator.atLeastOne(wt,!1)],this.taskQueue.add({event:{type:wt?ft.Play:ft.Pause,data:xt}})},Ot.prototype.drawFrame=function(){this.startRendering()},Ot.prototype.draw=function(Ct,yt){var Pt=performance.now();this.frameRequestId=null,this.lastRenderTime||(this.lastRenderTime=Ct),this.renderSecondTimer+=Ct-this.lastRenderTime,this.renderSecondTimer>5e3&&(this.renderSecondTimer=0,yt==null||yt());var wt=(Ct-this.lastRenderTime)/1e3;this.lastRenderTime=Ct;for(var Lt=this.animator.animations.filter(function(dn){return dn.playing||dn.needsScrub}).sort(function(dn){return dn.needsScrub?-1:1}),vt=0,xt=Lt;vt<xt.length;vt++){var Ut=xt[vt];Ut.advance(wt),Ut.instance.didLoop&&(Ut.loopCount+=1),Ut.apply(1)}for(var Et=this.animator.stateMachines.filter(function(dn){return dn.playing}),Dt=0,Bt=Et;Dt<Bt.length;Dt++){var Wt=Bt[Dt];Wt.advance(wt)}this.artboard.advance(wt);var Zt=this.renderer;Zt.clear(),Zt.save(),this.alignRenderer(),this.artboard.draw(Zt),Zt.restore(),Zt.flush(),this.animator.handleLooping(),this.animator.handleStateChanges(),this.animator.handleAdvancing(wt),this.frameCount++;var sn=performance.now();for(this.frameTimes.push(sn),this.durations.push(sn-Pt);this.frameTimes[0]<=sn-1e3;)this.frameTimes.shift(),this.durations.shift();this.animator.isPlaying?this.startRendering():this.animator.isPaused?this.lastRenderTime=0:this.animator.isStopped&&(this.lastRenderTime=0)},Ot.prototype.alignRenderer=function(){var Ct=this,yt=Ct.renderer,Pt=Ct.runtime,wt=Ct._layout,Lt=Ct.artboard;yt.align(wt.runtimeFit(Pt),wt.runtimeAlignment(Pt),{minX:wt.minX,minY:wt.minY,maxX:wt.maxX,maxY:wt.maxY},Lt.bounds)},Object.defineProperty(Ot.prototype,"fps",{get:function(){return this.durations.length},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"frameTime",{get:function(){return this.durations.length===0?0:(this.durations.reduce(function(Ct,yt){return Ct+yt},0)/this.durations.length).toFixed(4)},enumerable:!1,configurable:!0}),Ot.prototype.cleanup=function(){var Ct,yt;this.stopRendering(),this.cleanupInstances(),(Ct=this.renderer)===null||Ct===void 0||Ct.delete(),this.renderer=null,(yt=this.file)===null||yt===void 0||yt.delete(),this.file=null},Ot.prototype.cleanupInstances=function(){this.eventCleanup!==null&&this.eventCleanup(),this.stop(),this.artboard&&(this.artboard.delete(),this.artboard=null)},Ot.prototype.play=function(Ct,yt){var Pt=this;if(Ct=Rt(Ct),!this.readyForPlaying){this.taskQueue.add({action:function(){return Pt.play(Ct,yt)}});return}this.animator.play(Ct),this.eventCleanup&&this.eventCleanup(),this.setupRiveListeners(),this.startRendering()},Ot.prototype.pause=function(Ct){var yt=this;if(Ct=Rt(Ct),!this.readyForPlaying){this.taskQueue.add({action:function(){return yt.pause(Ct)}});return}this.eventCleanup&&this.eventCleanup(),this.animator.pause(Ct)},Ot.prototype.scrub=function(Ct,yt){var Pt=this;if(Ct=Rt(Ct),!this.readyForPlaying){this.taskQueue.add({action:function(){return Pt.scrub(Ct,yt)}});return}this.animator.scrub(Ct,yt||0),this.drawFrame()},Ot.prototype.stop=function(Ct){var yt=this;if(Ct=Rt(Ct),!this.readyForPlaying){this.taskQueue.add({action:function(){return yt.stop(Ct)}});return}this.animator.stop(Ct),this.eventCleanup&&this.eventCleanup()},Ot.prototype.reset=function(Ct){var yt,Pt=Ct==null?void 0:Ct.artboard,wt=Rt(Ct==null?void 0:Ct.animations),Lt=Rt(Ct==null?void 0:Ct.stateMachines),vt=(yt=Ct==null?void 0:Ct.autoplay)!==null&&yt!==void 0?yt:!1;this.cleanupInstances(),this.initArtboard(Pt,wt,Lt,vt),this.taskQueue.process()},Ot.prototype.load=function(Ct){this.stop(),this.init(Ct)},Object.defineProperty(Ot.prototype,"layout",{get:function(){return this._layout},set:function(Ct){this._layout=Ct,(!Ct.maxX||!Ct.maxY)&&this.resizeToCanvas(),this.loaded&&!this.animator.isPlaying&&this.drawFrame()},enumerable:!1,configurable:!0}),Ot.prototype.resizeToCanvas=function(){this._layout=this.layout.copyWith({minX:0,minY:0,maxX:this.canvas.width,maxY:this.canvas.height})},Ot.prototype.resizeDrawingSurfaceToCanvas=function(){if(this.canvas instanceof HTMLCanvasElement&&window){var Ct=this.canvas.getBoundingClientRect(),yt=Ct.width,Pt=Ct.height,wt=window.devicePixelRatio||1;this.canvas.width=wt*yt,this.canvas.height=wt*Pt,this.startRendering(),this.resizeToCanvas()}},Object.defineProperty(Ot.prototype,"source",{get:function(){return this.src},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"activeArtboard",{get:function(){return this.artboard?this.artboard.name:""},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"animationNames",{get:function(){if(!this.loaded)return[];for(var Ct=[],yt=0;yt<this.artboard.animationCount();yt++)Ct.push(this.artboard.animationByIndex(yt).name);return Ct},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"stateMachineNames",{get:function(){if(!this.loaded)return[];for(var Ct=[],yt=0;yt<this.artboard.stateMachineCount();yt++)Ct.push(this.artboard.stateMachineByIndex(yt).name);return Ct},enumerable:!1,configurable:!0}),Ot.prototype.stateMachineInputs=function(Ct){if(this.loaded){var yt=this.animator.stateMachines.find(function(Pt){return Pt.name===Ct});return yt==null?void 0:yt.inputs}},Object.defineProperty(Ot.prototype,"playingStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter(function(Ct){return Ct.playing}).map(function(Ct){return Ct.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"playingAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter(function(Ct){return Ct.playing}).map(function(Ct){return Ct.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"pausedAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter(function(Ct){return!Ct.playing}).map(function(Ct){return Ct.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"pausedStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter(function(Ct){return!Ct.playing}).map(function(Ct){return Ct.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isPlaying",{get:function(){return this.animator.isPlaying},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isPaused",{get:function(){return this.animator.isPaused},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isStopped",{get:function(){return this.animator.isStopped},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"bounds",{get:function(){return this.artboard?this.artboard.bounds:void 0},enumerable:!1,configurable:!0}),Ot.prototype.on=function(Ct,yt){this.eventManager.add({type:Ct,callback:yt})},Ot.prototype.off=function(Ct,yt){this.eventManager.remove({type:Ct,callback:yt})},Ot.prototype.unsubscribe=function(Ct,yt){console.warn("This function is deprecated: please use `off()` instead."),this.off(Ct,yt)},Ot.prototype.removeAllRiveEventListeners=function(Ct){this.eventManager.removeAll(Ct)},Ot.prototype.unsubscribeAll=function(Ct){console.warn("This function is deprecated: please use `removeAllRiveEventListeners()` instead."),this.removeAllRiveEventListeners(Ct)},Ot.prototype.stopRendering=function(){this.loaded&&this.frameRequestId&&(this.runtime.cancelAnimationFrame?this.runtime.cancelAnimationFrame(this.frameRequestId):cancelAnimationFrame(this.frameRequestId),this.frameRequestId=null)},Ot.prototype.startRendering=function(){this.loaded&&this.artboard&&!this.frameRequestId&&(this.runtime.requestAnimationFrame?this.frameRequestId=this.runtime.requestAnimationFrame(this.draw.bind(this)):this.frameRequestId=requestAnimationFrame(this.draw.bind(this)))},Ot.prototype.enableFPSCounter=function(Ct){this.runtime.enableFPSCounter(Ct)},Ot.prototype.disableFPSCounter=function(){this.runtime.disableFPSCounter()},Object.defineProperty(Ot.prototype,"contents",{get:function(){if(this.loaded){for(var Ct={artboards:[]},yt=0;yt<this.file.artboardCount();yt++){for(var Pt=this.file.artboardByIndex(yt),wt={name:Pt.name,animations:[],stateMachines:[]},Lt=0;Lt<Pt.animationCount();Lt++){var vt=Pt.animationByIndex(Lt);wt.animations.push(vt.name)}for(var xt=0;xt<Pt.stateMachineCount();xt++){for(var Ut=Pt.stateMachineByIndex(xt),Et=Ut.name,Dt=new this.runtime.StateMachineInstance(Ut,Pt),Bt=[],Wt=0;Wt<Dt.inputCount();Wt++){var Zt=Dt.input(Wt);Bt.push({name:Zt.name,type:Zt.type})}wt.stateMachines.push({name:Et,inputs:Bt})}Ct.artboards.push(wt)}return Ct}},enumerable:!1,configurable:!0}),Ot.missingErrorMessage="Rive source file or data buffer required",Ot}(),Nt=function(Ot){return it(void 0,void 0,void 0,function(){var Ct,yt,Pt;return rt(this,function(wt){switch(wt.label){case 0:return Ct=new Request(Ot),[4,fetch(Ct)];case 1:return yt=wt.sent(),[4,yt.arrayBuffer()];case 2:return Pt=wt.sent(),[2,Pt]}})})},Rt=function(Ot){return typeof Ot=="string"?[Ot]:Ot instanceof Array?Ot:[]},Ft={EventManager:gt,TaskQueueManager:bt}})(),_e})())})(rive);var riveExports=rive.exports;(function(o){Object.defineProperty(o,"__esModule",{value:!0});var s=reactExports,a=riveExports;function $(ut){return ut&&typeof ut=="object"&&"default"in ut?ut:{default:ut}}var j=$(s),_e=function(){return _e=Object.assign||function(ut){for(var pt,ft=1,mt=arguments.length;ft<mt;ft++)for(var gt in pt=arguments[ft])Object.prototype.hasOwnProperty.call(pt,gt)&&(ut[gt]=pt[gt]);return ut},_e.apply(this,arguments)};function et(ut,pt){var ft={};for(var mt in ut)Object.prototype.hasOwnProperty.call(ut,mt)&&pt.indexOf(mt)<0&&(ft[mt]=ut[mt]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function"){var gt=0;for(mt=Object.getOwnPropertySymbols(ut);gt<mt.length;gt++)pt.indexOf(mt[gt])<0&&Object.prototype.propertyIsEnumerable.call(ut,mt[gt])&&(ft[mt[gt]]=ut[mt[gt]])}return ft}function tt(){var ut=typeof window<"u"&&typeof window.devicePixelRatio=="number"?window.devicePixelRatio:1;return Math.min(Math.max(1,ut),3)}typeof SuppressedError=="function"&&SuppressedError;var nt=function(){function ut(){}return ut.prototype.observe=function(){},ut.prototype.unobserve=function(){},ut.prototype.disconnect=function(){},ut}(),it=globalThis.ResizeObserver||nt,rt=globalThis.ResizeObserver!==void 0,st=!rt;function ot(ut,pt){pt===void 0&&(pt=!0);var ft=s.useState({width:0,height:0}),mt=ft[0],gt=ft[1];s.useEffect(function(){if(typeof window<"u"&&pt){var Ft=function(){gt({width:window.innerWidth,height:window.innerHeight})};return st&&(Ft(),window.addEventListener("resize",Ft)),function(){return window.removeEventListener("resize",Ft)}}},[]);var bt,St,Nt,Rt=s.useRef(new it((bt=function(Ft){rt&&gt({width:Ft[Ft.length-1].contentRect.width,height:Ft[Ft.length-1].contentRect.height})},St=0,Nt=0,function(){for(var Ft=this,Ot=[],Ct=0;Ct<arguments.length;Ct++)Ot[Ct]=arguments[Ct];clearTimeout(Nt),Nt=window.setTimeout(function(){return bt.apply(Ft,Ot)},St)})));return s.useEffect(function(){var Ft=Rt.current;if(pt){var Ot=ut.current;return ut.current&&rt&&Ft.observe(ut.current),function(){Ft.disconnect(),Ot&&rt&&Ft.unobserve(Ot)}}Ft.disconnect()},[ut,Rt]),mt}var at={useDevicePixelRatio:!0,fitCanvasToArtboardHeight:!1,useOffscreenRenderer:!0,shouldResizeCanvasToContainer:!0};function lt(ut){return Object.assign({},at,ut)}function ct(ut){var pt=ut.riveLoaded,ft=pt!==void 0&&pt,mt=ut.canvasRef,gt=ut.containerRef,bt=ut.options,St=bt===void 0?{}:bt,Nt=ut.onCanvasHasResized,Rt=ut.artboardBounds,Ft=lt(St),Ot=s.useState({height:0,width:0}),Ct=Ot[0],yt=Ct.height,Pt=Ct.width,wt=Ot[1],Lt=s.useState({height:0,width:0}),vt=Lt[0],xt=vt.height,Ut=vt.width,Et=Lt[1],Dt=s.useState(!0),Bt=Dt[0],Wt=Dt[1],Zt=Ft.fitCanvasToArtboardHeight,sn=Ft.shouldResizeCanvasToContainer,dn=Ft.useDevicePixelRatio,vn=ot(gt,sn),kn=function(){var rn=tt(),Fn=s.useState(rn),Ln=Fn[0],Rn=Fn[1];return s.useEffect(function(){if(typeof window<"u"&&"matchMedia"in window){var Gn=function(){var qn=tt();Rn(qn)},Vn=window.matchMedia("screen and (resolution: ".concat(Ln,"dppx)"));return Vn.hasOwnProperty("addEventListener")?Vn.addEventListener("change",Gn):Vn.addListener(Gn),function(){Vn.hasOwnProperty("removeEventListener")?Vn.removeEventListener("change",Gn):Vn.removeListener(Gn)}}},[Ln]),Ln}(),An=Rt??{},$n=An.maxX,On=An.maxY,Cn=s.useCallback(function(){var rn,Fn,Ln,Rn,Gn=(Fn=(rn=gt.current)===null||rn===void 0?void 0:rn.clientWidth)!==null&&Fn!==void 0?Fn:0,Vn=(Rn=(Ln=gt.current)===null||Ln===void 0?void 0:Ln.clientHeight)!==null&&Rn!==void 0?Rn:0;return Zt&&Rt?{width:Gn,height:Gn*(Rt.maxY/Rt.maxX)}:{width:Gn,height:Vn}},[gt,Zt,$n,On]);s.useEffect(function(){if(sn&&gt.current&&ft){var rn=Cn(),Fn=rn.width,Ln=rn.height,Rn=!1;if(mt.current){var Gn=Fn!==Pt||Ln!==yt;if(Ft.fitCanvasToArtboardHeight&&Gn&&(gt.current.style.height=Ln+"px",Rn=!0),Ft.useDevicePixelRatio){if(Gn||Fn*kn!==Ut||Ln*kn!==xt){var Vn=kn*Fn,qn=kn*Ln;mt.current.width=Vn,mt.current.height=qn,mt.current.style.width=Fn+"px",mt.current.style.height=Ln+"px",Et({width:Vn,height:qn}),Rn=!0}}else Gn&&(mt.current.width=Fn,mt.current.height=Ln,Et({width:Fn,height:Ln}),Rn=!0);wt({width:Fn,height:Ln})}Nt&&(Bt||Rn)&&Nt&&Nt(),Bt&&Wt(!1)}},[mt,gt,vn,kn,Cn,Bt,Wt,xt,Ut,yt,Pt,Nt,sn,Zt,dn,ft])}function ht(ut){var pt=ut.setContainerRef,ft=ut.setCanvasRef,mt=ut.className,gt=mt===void 0?"":mt,bt=ut.style,St=ut.children,Nt=et(ut,["setContainerRef","setCanvasRef","className","style","children"]),Rt=_e({width:"100%",height:"100%"},bt);return j.default.createElement("div",_e({ref:pt,className:gt},!gt&&{style:Rt}),j.default.createElement("canvas",_e({ref:ft,style:{verticalAlign:"top",width:0,height:0}},Nt),St))}function dt(ut,pt){pt===void 0&&(pt={});var ft=s.useRef(null),mt=s.useRef(null),gt=s.useState(null),bt=gt[0],St=gt[1],Nt=!!ut,Rt=lt(pt),Ft=s.useCallback(function(){bt&&(bt.startRendering(),bt.resizeToCanvas())},[bt]);ct({riveLoaded:!!bt,canvasRef:ft,containerRef:mt,options:Rt,onCanvasHasResized:Ft,artboardBounds:bt==null?void 0:bt.bounds});var Ot=s.useCallback(function(wt){if(wt&&ut&&Nt){var Lt=Rt.useOffscreenRenderer,vt=new a.Rive(_e(_e({useOffscreenRenderer:Lt},ut),{canvas:wt}));vt.on(a.EventType.Load,function(){ft.current?St(vt):vt.cleanup()})}else wt===null&&ft.current&&(ft.current.height=0,ft.current.width=0);ft.current=wt},[Nt]),Ct=s.useCallback(function(wt){mt.current=wt},[]);s.useEffect(function(){var wt=new IntersectionObserver(function(Lt){Lt[0].isIntersecting?bt&&bt.startRendering():bt&&bt.stopRendering()});return ft.current&&wt.observe(ft.current),function(){wt.disconnect()}},[bt]),s.useEffect(function(){return function(){bt&&(bt.cleanup(),St(null))}},[bt]);var yt=ut==null?void 0:ut.animations;s.useEffect(function(){bt&&yt&&(bt.isPlaying?(bt.stop(bt.animationNames),bt.play(yt)):bt.isPaused&&(bt.stop(bt.animationNames),bt.pause(yt)))},[yt,bt]);var Pt=s.useCallback(function(wt){return j.default.createElement(ht,_e({setContainerRef:Ct,setCanvasRef:Ot},wt))},[Ot,Ct]);return{canvas:ft.current,container:mt.current,setCanvasRef:Ot,setContainerRef:Ct,rive:bt,RiveComponent:Pt}}o.default=function(ut){var pt=ut.src,ft=ut.artboard,mt=ut.animations,gt=ut.stateMachines,bt=ut.layout,St=ut.useOffscreenRenderer,Nt=St===void 0||St,Rt=ut.shouldDisableRiveListeners,Ft=Rt!==void 0&&Rt,Ot=ut.shouldResizeCanvasToContainer,Ct=Ot===void 0||Ot,yt=ut.children,Pt=et(ut,["src","artboard","animations","stateMachines","layout","useOffscreenRenderer","shouldDisableRiveListeners","shouldResizeCanvasToContainer","children"]),wt=dt({src:pt,artboard:ft,animations:mt,layout:bt,stateMachines:gt,autoplay:!0,shouldDisableRiveListeners:Ft},{useOffscreenRenderer:Nt,shouldResizeCanvasToContainer:Ct}).RiveComponent;return j.default.createElement(wt,_e({},Pt),yt)},o.useResizeCanvas=ct,o.useRive=dt,o.useStateMachineInput=function(ut,pt,ft,mt){var gt=s.useState(null),bt=gt[0],St=gt[1];return s.useEffect(function(){function Nt(){if(ut&&pt&&ft||St(null),ut&&pt&&ft){var Rt=ut.stateMachineInputs(pt);if(Rt){var Ft=Rt.find(function(Ot){return Ot.name===ft});mt!==void 0&&Ft&&(Ft.value=mt),St(Ft||null)}}else St(null)}Nt(),ut&&ut.on(a.EventType.Play,function(){Nt()})},[ut]),bt},Object.keys(a).forEach(function(ut){ut==="default"||o.hasOwnProperty(ut)||Object.defineProperty(o,ut,{enumerable:!0,get:function(){return a[ut]}})})})(dist);const Rive=getDefaultExportFromCjs(dist),useAppClipProduct=o=>{const s=o.toUpperCase();return{isAppClipProduct:s.includes("HYPER")||s.includes("APP CLIP")}},PostProductActivationModalBody=({isWeb:o,aliasCode:s,productKind:a,cardCode:$})=>{const j=useDispatch(),_e=useHistory(),{isAppClipProduct:et}=useAppClipProduct(a),tt=async()=>{j(track("clicked product activation modal",{action:"download_app",modalType:"download_mobile_app"})),await Browser.open({url:`${LINQ_MOBILE_APP_DOWNLOAD_URL}?$deeplink_path=/products?activate-code=${s}`})},nt=()=>{j(closeAlertModal())},it=()=>{j(track("clicked product activation modal",{action:"edit_hyper_linq_card_settings",modalType:"download_mobile_app"})),j(closeAlertModal()),_e.push(`/cards/${$}/app-clip-experiences`)};return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:clsx("pt-4","pb-6 px-6","flex flex-col","gap-4","text-primary-100"),children:[jsxRuntimeExports.jsxs("div",{className:"text-header-3",children:["Success: Product Activated",jsxRuntimeExports.jsx("span",{role:"img","aria-label":"rocket-emoji",children:"🚀"})]}),jsxRuntimeExports.jsxs("div",{className:clsx("text-body-light","flex","flex-col","gap-2"),children:[jsxRuntimeExports.jsx("div",{className:"h-[134px]",id:"post-product-activation-modal-rive-container",children:jsxRuntimeExports.jsx(Rive,{src:"assets/rives/successfulProductActivated.riv",layout:new dist.Layout({fit:dist.Fit.Cover})})}),jsxRuntimeExports.jsxs("div",{children:["Your ",a.startsWith("Linq")?"":"Linq ",a," is now paired, and you can invite others to tap or scan it."]}),o&&jsxRuntimeExports.jsx("div",{children:"Use the Linq mobile app to easily manage your product"})]})]}),jsxRuntimeExports.jsxs("div",{className:clsx("border-t","border-gray-900","px-6","py-4"),children:[et&&$&&jsxRuntimeExports.jsxs(PrimaryButton,{onClick:it,className:clsx("w-full","mb-4"),expand:"block",children:[jsxRuntimeExports.jsx(Icon,{icon:flashOutline,className:"mr-2"}),"Edit Hyper Linq Card Settings"]}),o?jsxRuntimeExports.jsx(SecondaryButton,{onClick:tt,className:"w-full",expand:"block",children:"Download Linq App"}):jsxRuntimeExports.jsx(ClearButton,{className:"w-full",expand:"block",onClick:nt,color:"gray-500",children:"Dismiss"})]})]})},base$1="productActivationModal",PRODUCT_ACTIVATION_MODAL_TEST_IDS={MODAL:base$1,ACTIVATE_BUTTON:`${base$1}:activateButton`,NEED_HELP_BUTTON:`${base$1}:needHelpButton`,PRODUCT_IMAGE:`${base$1}:productImage`,CONGRATS_ALERT_MODAL:`${base$1}:congratsAlertModal`};function createGetCurrentUserConnectionsRequest(){return{type:"CREATE_GET_CURRENT_USER_CONNECTIONS_REQUEST"}}function receivedGetCurrentUserConnectionsResponse(o){return{type:"RECEIVED_GET_CURRENT_USER_CONNECTIONS_RESPONSE",json:o}}function getCurrentUserConnections(o,s){return(a,$)=>(a(createGetCurrentUserConnectionsRequest()),fetch$1(`${BASE_API_URL}/api/v1/users/${s}/connections`,{method:API_METHODS.GET,headers:apiHeaders($())}).then(handleErrors).then(j=>j.json()).then(j=>{a(receivedGetCurrentUserConnectionsResponse(j.connections))}).catch(j=>console.log("An error occurred.",j)))}const createConnectionOrConnectionRequest=o=>({type:CREATE_CONNECTION,otherUserCard:o}),receivedCreateConnectionResponse=o=>({type:"RECEIVED_CREATE_CONNECTION_RESPONSE",json:o}),createConnectionRequestStarted=()=>({type:"CREATE_CONNECTION_REQUEST_STARTED"}),createConnectionFailed=()=>({type:"CREATE_CONNECTION_FAILED"}),deleteConnectionResponseReceived=()=>({type:"DELETE_CONNECTION_RESPONSE_RECEIVED"}),deleteConnectionRequestStarted=o=>({type:"DELETE_CONNECTION_REQUEST_STARTED",connection:o}),resetDeletedConnection=()=>({type:"RESET_DELETED_CONNECTION"}),createConnectionRequestFetching=()=>({type:CREATE_CONNECTION_REQUEST_FETCHING}),createConnectionRequestSuccess=o=>({type:CREATE_CONNECTION_REQUEST_SUCCESS,connectionRequest:o});function*createConnectionSaga(o,s){try{let a=yield call(getState$1);yield put(createConnectionRequestStarted());const $=yield call(fetch,`${BASE_API_URL}/api/v1/cards/${s.connecting_code}/connect`,{headers:apiHeaders(a),method:API_METHODS.POST,body:JSON.stringify({scanner_card_id:o.id})});yield call(handleErrors,$);const j=yield $.json();yield put(receivedCreateConnectionResponse(j)),a=yield call(getState$1);try{a.modals.welcomeAlert.showPending?yield put(showWelcomeAlert("We're sending you each other's info now. 🚀","Want your own personal page?",PAGE_ROUTES.dashboard,"Create your own")):yield put(setToast({toastMessage:`You just connected with ${s.name} 👏`}))}catch(_e){sendErrorLog({errorMessage:"Error showing connected alert in createConnectionSaga",errorObject:_e})}}catch(a){yield put(createConnectionFailed()),yield put(sendErrorLog({errorMessage:"Error in createConnectionSaga",errorObject:a})),alert("Uh oh! Looks like that connection couldn't be created!")}}function*createConnectionRequestSaga(o,s){try{let a=yield call(getState$1);yield put(setShowConnectionRequestNotePrompt(!0));const j=(yield take(CONNECTION_REQUEST_NOTE_SUBMITTED)).connectionRequestNote;yield put(createConnectionRequestFetching());const _e=yield call(fetch,`${BASE_API_URL}/api/v1/cards/${s.connecting_code}/connection_requests/create`,{headers:apiHeaders(a),method:API_METHODS.POST,body:JSON.stringify({requesting_card_id:o.id,note:j})});yield call(handleErrors,_e);const et=yield _e.json();yield put(createConnectionRequestSuccess(et==null?void 0:et.connection_request)),a=yield call(getState$1);try{a.modals.welcomeAlert.showPending?yield put(showWelcomeAlert(`Your connection request was sent to ${s.name}! 🚀`,"We'll alert you when they've accepted.",null,"Okay")):yield put(setToast({toastMessage:`Your connection request was sent to ${s.name}! 👏`}))}catch(tt){sendErrorLog({errorMessage:"Error showing request to connect alert in createConnectionSaga",errorObject:tt})}}catch(a){yield put(sendErrorLog({errorMessage:"Error in createConnectionRequestSaga",errorObject:a})),alert("Uh oh! Looks like we couldn't create that connection request!")}}function*deleteConnectionSaga(o){yield put(deleteConnectionRequestStarted(o));try{const s=yield call(fetch,`${BASE_API_URL}/api/v1/connections/${o.id}/delete`,{method:API_METHODS.DELETE,headers:apiHeaders(yield getState$1())});yield call(handleErrors,s),yield put(deleteConnectionResponseReceived())}catch(s){yield put(resetDeletedConnection()),yield console.log("Error deleting connection:",s),alert("Error deleting connection")}}function*getState$1(){return yield select()}const registerForEventFetching=()=>({type:REGISTER_FOR_EVENT_FETCHING}),registerForEventSuccess=()=>({type:REGISTER_FOR_EVENT_SUCCESS}),registerForEventFailure=()=>({type:REGISTER_FOR_EVENT_FAILURE});function showModal(o){return{type:SHOW_MODAL,payload:o}}const closeModal=()=>({type:CLOSE_MODAL}),getUserLinqProductsFetching=()=>({type:GET_USER_LINQ_PRODUCTS_FETCHING}),getUserLinqProductsSuccess=o=>({type:GET_USER_LINQ_PRODUCTS_SUCCESS,userLinqProducts:o}),getUserLinqProductsFailure=()=>({type:GET_USER_LINQ_PRODUCTS_FAILURE}),getUserLinqProducts=()=>(o,s)=>(o(getUserLinqProductsFetching()),fetch$1(`${BASE_API_URL}/api/v1/user_linq_products`,{method:API_METHODS.GET,headers:apiHeaders(s())}).then(handleErrors).then(a=>a.json()).then(a=>{o(getUserLinqProductsSuccess(a))}).catch(a=>{o(sendErrorLog({errorMessage:"error in getUserLinqProducts",errorObject:a})),o(getUserLinqProductsFailure())})),createUserLinqProductFetching=()=>({type:FETCHING(CREATE_USER_LINQ_PRODUCT)}),createUserLinqProductSuccess=o=>({type:SUCCESS(CREATE_USER_LINQ_PRODUCT),userLinqProducts:o}),createUserLinqProductFailure=()=>({type:FAILURE(CREATE_USER_LINQ_PRODUCT)}),createUserLinqProduct=(o,s,a)=>({type:CREATE_USER_LINQ_PRODUCT,userLinqProduct:o,pathAfterCreation:s,history:a}),registerEventBadgeUserLinqProductFetching=()=>({type:FETCHING(REGISTER_EVENT_BADGE_USER_LINQ_PRODUCT)}),registerEventBadgeUserLinqProductSuccess=o=>({type:SUCCESS(REGISTER_EVENT_BADGE_USER_LINQ_PRODUCT),userLinqProducts:o.userLinqProducts,event:o.event}),registerEventBadgeUserLinqProductFailure=()=>({type:FAILURE(REGISTER_EVENT_BADGE_USER_LINQ_PRODUCT)}),registerEventBadgeUserLinqProduct=(o,s=null,a=null)=>({type:REGISTER_EVENT_BADGE_USER_LINQ_PRODUCT,userLinqProduct:o,pathAfterCreation:s,history:a}),setShowProductActivationFlowModal=(o,s)=>({type:SHOW_PRODUCT_ACTIVATION_FLOW_MODAL,showModal:o,aliasCode:o?s:null}),getCurrentUserCards=o=>o.cards.currentUserCards,onlyUrlDomainString=o=>{var s;return o?(s=o.match(/(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/))==null?void 0:s[0]:""},parseProductUrlPartial=o=>`/${o.substr(o.lastIndexOf("/")+1)}`,getProductCode=o=>`${o.substr(o.lastIndexOf("/")+1)}`,parseDeepLinkPath=o=>{const s=["linqapp.com","clip.trylinq.com"];if(o.includes("$deeplink_path="))return o.split("$deeplink_path=").pop()||"/";const $=s.find(it=>o.indexOf(it)>-1),_e=!!$&&o.split($).pop()||`/${o.split("/").pop()}`||"/",et=_e.split("/");return et.length>1&&et[1]===""?`/${et[2]||""}`:_e};function joinUrlSegments(...o){const[s,...a]=o,$=a.map(_e=>_e.replace(/^\/|\/$/g,"")).join("/");return($?`${s}/${$}`:s).replace(/([^:])\/+/g,"$1/")}const redirectToProductActivation=({url:o,redirectPathAfterActivation:s,history:a})=>{a.push(`${parseProductUrlPartial(o)}${s?`?redirect_path_after_activation=${s}`:""}`)},friendlyProductName=o=>o.indexOf("Tap")>-1?"tap":o.indexOf("Stretch")>-1?"bracelet":o.indexOf("Card")>-1?"card":o.indexOf("Bracelet")>-1?"bracelet":o.indexOf("Watch")>-1?"band":o.indexOf("Hub")>-1?"hub":o.indexOf("Badge")>-1?"badge":"product";function*selectCardThenPerformAction(o){if(o.type===CANCEL_SELECT_CARD_FLOW){yield resetPossiblyRelatedState();return}const s=yield select(getCurrentUserCards),a=yield call(filterActionableCards,o);let $=null;if(s.length===0)throw Error("User has no cards.");if(a.length===1)$=a[0];else{if(a.length===0){yield put(setToast({toastMessage:"Uh oh! It seems that none of your pages can do that!"})),yield put(cancelSelectCardFlow());return}yield put({type:SET_SELECT_CARD_MODAL,show:!0,filteredCards:a}),$=(yield take(SELECT_CARD_MODAL_CARD_SELECTED)).selectedCard,yield put({type:SET_SELECT_CARD_MODAL,show:!1,filteredCards:[]})}yield call(performAction,o,$)}function*filterActionableCards(o){const s=yield select(),{type:a,otherUserCard:$}=o;let j;switch(a){case CREATE_CONNECTION_REQUEST:case CREATE_CONNECTION:return j=yield call(filterConnectableCards,$,s),j;case DELETE_CONNECTION_WITH_CARD:return yield call(filterDisconnectableCards,$,s);case SWITCH_VIEWING_CURRENT_USER_CARD:return yield[...s.cards.currentUserCards,"create_new"];case REGISTER_FOR_EVENT:case ACTIVATE_CARD_ALIAS:case CREATE_USER_LINQ_PRODUCT:case REGISTER_EVENT_BADGE_USER_LINQ_PRODUCT:return j=yield s.cards.currentUserCards,j;case CHOOSE_LINQ_PAGE_TO_ADD_TO_TEAM:return j=yield s.cards.currentUserCards,j;default:return yield s.cards.currentUserCards}}function*performAction(o,s){const a=yield select();switch(o.type){case CREATE_CONNECTION:yield call(createConnectionSaga,s,o.otherUserCard);return;case DELETE_CONNECTION_WITH_CARD:const $=yield call(findConnectionBetweenCards,s,o.otherUserCard,a);yield call(deleteConnectionSaga,$);return;case CREATE_CONNECTION_REQUEST:yield call(createConnectionRequestSaga,s,o.otherUserCard);return;case REGISTER_FOR_EVENT:yield call(registerCardForEventSaga,o.event,o.history,s);return;case REGISTER_EVENT_BADGE_USER_LINQ_PRODUCT:yield call(registerEventBadgeUserLinqProductSaga,o.userLinqProduct,o.pathAfterCreation,o.history,s);return;case ACTIVATE_CARD_ALIAS:yield call(activateAliasSaga,o.aliasCode,s);return;case CREATE_USER_LINQ_PRODUCT:yield call(createUserLinqProductSaga,o.userLinqProduct,o.pathAfterCreation,o.history,s);return;case CHOOSE_LINQ_PAGE_TO_ADD_TO_TEAM:yield call(addTeamToLinqPage,o.team,s);return;default:yield console.log("action.type didn't match",o.type)}}const filterConnectableCards=(o,s)=>{const a=s.cards.currentUserCards,$=o.card_ids_with_connection;return a.filter(j=>!$.includes(j.id))},filterDisconnectableCards=(o,s)=>{const a=o.card_ids_with_connection;return s.cards.currentUserCards.filter($=>a.includes($.id))},findConnectionBetweenCards=(o,s,a)=>a.connections.currentUserConnections.find($=>$.scanner_card_id===o.id&&$.scanned_card_id===s.id||$.scanned_card_id===o.id&&$.scanner_card_id===s.id);function*registerCardForEventSaga(o,s,a){const $=yield call(getState);yield put(registerForEventFetching());const j=yield call(fetch,`${BASE_API_URL}/api/v1/events/${o.code}/register/${a.connecting_code}`,{method:API_METHODS.POST,headers:apiHeaders($)});try{yield call(handleErrors,j),yield put(registerForEventSuccess()),yield call(s.replace,`/${o.card_code}`),yield delay(800),yield put(setToast({toastMessage:`You've successfully registered for ${o.name}! 🎉`}))}catch(_e){const et="Error registering for event";yield console.log(et,_e),yield put(sendErrorLog({errorMessage:et,errorObject:_e})),yield put(setToast({toastMessage:"Uh oh! An error occurred during registration. Please contact us if the problem persists."})),yield put(registerForEventFailure())}}function*addTeamToLinqPage(o,s){s.team=o,yield put(updateCard(s))}function*activateAliasSaga(o,s=null){let a={};s&&(a={card_id:s.id});try{const $=yield getState(),j=$.user.currentUser.uuid,_e=yield call(fetch,`${BASE_API_URL}/api/v1/users/${j}/aliases/${o}/activate`,{method:API_METHODS.POST,headers:apiHeaders($),body:JSON.stringify(a)});yield call(handleErrors,_e),yield put(setToast({toastMessage:"Linq code activated successfully! 🎉"})),yield put(resetAliasLocalState())}catch{yield put(showErrorMessageAlertModal({actionItem:"activate Linq code",message:"Linq code was NOT able to be activated."})),yield put(resetAliasLocalState())}}function*createUserLinqProductSaga(o,s,a,$){try{o.card_code=$.connecting_code;const j=yield getState(),_e=j.deviceInfo.platform==="web";yield put(createUserLinqProductFetching());const et=yield call(fetch,`${BASE_API_URL}/api/v1/user_linq_products/create`,{method:API_METHODS.POST,body:JSON.stringify(o),headers:apiHeaders(j)});yield call(handleErrorsAndJSON,et);const tt=yield et.json();yield put(createUserLinqProductSuccess(tt)),yield put(closeModal()),s&&a&&(yield call(a.replace,s)),yield put(showAlertModal({"data-test":PRODUCT_ACTIVATION_MODAL_TEST_IDS.CONGRATS_ALERT_MODAL,panelIcon:checkmarkCircleOutline,bodyContent:jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(IonSpinner,{name:"dots",className:"ion-margin-top w-100"}),children:jsxRuntimeExports.jsx(PostProductActivationModalBody,{isWeb:_e,aliasCode:o.alias_code,productKind:o.kind,cardCode:$.viewing_code})}),hideButtons:!0})),yield put(track("activated new user linq product",{productType:o==null?void 0:o.kind}))}catch(j){let _e="Looks like we couldn't activate your product.";(yield j.message.includes("Alias: has already been taken"))&&(_e="This Linq Product has already been successfully activated 😄. Check your Activated Linq Products to view and edit it."),yield put(createUserLinqProductFailure()),yield put(sendErrorLog({errorMessage:_e,errorObject:j})),yield put(showErrorMessageAlertModal({actionItem:"activate your product",message:_e}))}}function*registerEventBadgeUserLinqProductSaga(o,s,a,$){var j;try{o.card_code=$.connecting_code;const _e=yield getState();yield put(registerEventBadgeUserLinqProductFetching());const et=yield call(fetch,`${BASE_API_URL}/api/v1/user_linq_products/register_event_badge`,{method:API_METHODS.POST,body:JSON.stringify(o),headers:apiHeaders(_e)});yield call(handleErrorsAndJSON,et);const tt=yield et.json(),nt=tt.event;yield put(registerEventBadgeUserLinqProductSuccess(tt)),yield put(setShowProductActivationFlowModal(!1)),yield put(closeModal()),a&&(s?yield call(a.push,s):yield call(a.push,`/${(j=tt==null?void 0:tt.event)==null?void 0:j.card_code}`)),yield put(track("registered for event with badge")),yield delay(300);const it=friendlyProductName(o.kind);tt!=null&&tt.show_detailed_welcome_modal?yield put(showInformationAlertModal({header:`Welcome${nt!=null&&nt.name?` to ${nt==null?void 0:nt.name}`:""}!`,message:`Scan or tap others' Linq ${it}s to connect. Add aditional content like social media, PDFs, and links below. 🎉🎉🎉`})):yield put(showInformationAlertModal({header:"Welcome 😄",subHeader:`You can now connect with fellow attendees by allowing them to tap or scan your ${it}!`}))}catch(_e){let et="Looks like we couldn't activate that badge";_e.message.includes("Alias: has already been taken")&&(et="This badge has already been successfully activated 😄. Check your Activated Linq Products to view and edit it."),yield put(registerEventBadgeUserLinqProductFailure()),yield put(sendErrorLog({errorMessage:et,errorObject:_e})),yield put(showErrorMessageAlertModal({actionItem:"register the linq product for event",message:et}))}}function*resetPossiblyRelatedState(){yield put(resetAliasLocalState()),yield put({type:SET_SELECT_CARD_MODAL,show:!1,filteredCards:[]})}function*getState(){return yield select()}function*watchSelectCardActions(){yield takeLatest$1([ACTIVATE_CARD_ALIAS,CREATE_CONNECTION,DELETE_CONNECTION_WITH_CARD,CREATE_CONNECTION_REQUEST,REGISTER_FOR_EVENT,SWITCH_VIEWING_CURRENT_USER_CARD,CANCEL_SELECT_CARD_FLOW,CHOOSE_LINQ_PAGE_TO_ADD_TO_TEAM,CREATE_USER_LINQ_PRODUCT,REGISTER_EVENT_BADGE_USER_LINQ_PRODUCT],selectCardThenPerformAction)}function*rootSaga(){yield all([watchSelectCardActions()])}const initialState$F={isBulkActionSelectMode:!1,selectedCardIds:[],filters:void 0,sorting:[{id:"created_at",desc:!0}],excludeIds:void 0,query:""},adminInspiration=(o=initialState$F,s)=>{switch(s.type){case ADMIN_INSPIRATION_PAGE_ACTIONS.SET_ADMIN_INSPIRATION:return{...o,...s.payload};case ADMIN_INSPIRATION_PAGE_ACTIONS.CLEAR_ADMIN_INSPIRATION_FILTERS:return{...o,filters:[]};case ADMIN_INSPIRATION_PAGE_ACTIONS.SET_PREVIEWING_PAGE:return{...o,previewingPageId:s.payload};default:return o}},initialState$E={adminOnboardingComplete:!1},adminOnboarding=(o=initialState$E,s)=>{switch(s.type){case ADMIN_ONBOARDING_ACTIONS.SET_ADMIN_ONBOARDING_COMPLETE:return{...o,adminOnboardingComplete:!0};case ADMIN_ONBOARDING_ACTIONS.RESET_ADMIN_ONBOARDING_COMPLETE:return{...o,adminOnboardingComplete:!1};default:return o}},initialState$D={isBulkActionSelectMode:!1,selectedCardIds:[],filters:void 0,sorting:[{id:"created_at",desc:!0}],excludeIds:void 0,query:""},adminPages$1=(o=initialState$D,s)=>{var a;switch(s.type){case ADMIN_PAGES_PAGE_ACTIONS.SET_ADMIN_PAGES:return{...o,...s.payload};case ADMIN_PAGES_PAGE_ACTIONS.CLEAR_ADMIN_PAGES_FILTERS:return{...o,filters:[]};case ADMIN_PAGES_PAGE_ACTIONS.SELECT_ALL_PAGES:return{...o,excludeIds:[],selectedCardIds:[]};case ADMIN_PAGES_PAGE_ACTIONS.DESELECT_ALL_PAGES:return{...o,excludeIds:void 0,selectedCardIds:[]};case ADMIN_PAGES_PAGE_ACTIONS.DESELECT_PAGE:return o.excludeIds?{...o,excludeIds:[...o.excludeIds,s.payload]}:{...o,selectedCardIds:o.selectedCardIds.filter($=>$!==s.payload)};case ADMIN_PAGES_PAGE_ACTIONS.SELECT_PAGE:{const $=s.payload,{excludeIds:j,selectedCardIds:_e}=o;return _e.includes($)?o:j?{...o,excludeIds:j.filter(tt=>tt!==$)}:{...o,selectedCardIds:[..._e,$]}}case ADMIN_PAGES_PAGE_ACTIONS.SET_PREVIEWING_PAGE:return{...o,previewingPageId:s.payload};case ADMIN_PAGES_PAGE_ACTIONS.TOGGLE_SELECT_PAGE:{const $=s.payload;if(o.excludeIds){const et=(a=o.excludeIds)==null?void 0:a.includes($),tt=o.excludeIds||[];return{...o,excludeIds:et?tt==null?void 0:tt.filter(nt=>nt!==$):[...tt,$]}}const _e=o.selectedCardIds.includes($);return{...o,selectedCardIds:_e?o.selectedCardIds.filter(et=>et!==$):[...o.selectedCardIds,$]}}default:return o}};var ADMIN_PAGES=(o=>(o.workflows="workflows",o.products="products",o.crm="crm",o.phoneNumbers="phoneNumbers",o.inboxes="inboxes",o))(ADMIN_PAGES||{});const initialPageState={selectedProductIds:[],filters:[],sorting:[{id:"created_at",desc:!0}],excludeIds:void 0,query:""},initialState$C={workflows:initialPageState,products:initialPageState,crm:initialPageState,phoneNumbers:initialPageState,inboxes:initialPageState},adminPages=(o=initialState$C,s)=>{switch(s.type){case ADMIN_PAGES_ACTIONS.SET_ADMIN_PAGE:{const{pageKey:a,pageState:$}=s.payload;return{...o,[a]:{...o[a],...$}}}default:return o}},initialState$B={items:[]},adminShoppingCart=(o=initialState$B,s)=>{switch(s.type){case ADMIN_SHOPPING_CART_ACTIONS.ADD_ITEM_TO_CART:{const{quantity:a=1,item:$,variantId:j,designId:_e}=s.payload,et=`${$.id}-${j}-${_e}}`,nt=o.items.some(it=>it.cart_item_id===et)?o.items.map(it=>it.cart_item_id===et?{...it,quantity:it.quantity+a}:it):[...o.items,{...$,quantity:a,cart_item_id:et,variant_id:j,design_id:_e}];return{...o,items:nt}}case ADMIN_SHOPPING_CART_ACTIONS.REMOVE_ITEM_FROM_CART:{const a=o.items.filter($=>$.cart_item_id!==s.payload);return{...o,items:a}}case ADMIN_SHOPPING_CART_ACTIONS.CLEAR_CART:return{...o,items:[]};case ADMIN_SHOPPING_CART_ACTIONS.SET_ITEM_QUANTITY:{const a=o.items.map($=>$.cart_item_id===s.payload.id?{...$,quantity:s.payload.quantity}:$);return{...o,items:a}}default:return o}},baseInitialState={showAlert:!1,onBackdropDismiss:()=>{},"data-test":APP_TEST_IDS.ALERT_MODAL.MODAL},initialState$A={...baseInitialState,extraAlertModals:[]},alertModal=(o=initialState$A,s)=>{var a;switch(s.type){case ALERT_TYPES.SHOW_ALERT:return{...initialState$A,...s.payload,showAlert:!0};case ALERT_TYPES.SHOW_EXTRA_ALERT_MODAL:return{...o,extraAlertModals:[...o.extraAlertModals||[],{...baseInitialState,...s.payload,showAlert:!0}]};case ALERT_TYPES.CLOSE_ALERT:return{...o,showAlert:!1};case ALERT_TYPES.CLOSE_EXTRA_ALERT_MODAL:return{...o,extraAlertModals:(a=o.extraAlertModals)==null?void 0:a.filter(({extraAlertIndex:$})=>$!==s.payload.extraAlertIndex)};case ALERT_TYPES.CLOSE_ALL_EXTRA_ALERT_MODALS:return{...o,extraAlertModals:[]};case ALERT_TYPES.RESET_ALERT:return{...initialState$A};default:return o}},initialState$z={showAlert:!1,header:"We're glad to have you.",subHeader:"",message:"",showButton:!1,buttonText:"Okay",onDismiss:()=>{}},alert$1=(o=initialState$z,s)=>{switch(s.type){case SET_ALERT:return{...o,showAlert:s.showAlert,header:s.header,subHeader:s.subHeader,message:s.message,showButton:s.showButton,buttonText:s.buttonText,onConfirm:s.onConfirm,onDismiss:s.onDismiss};case RESET_ALERT:case RESET_ALL_MODAL_STATE:return initialState$z;default:return o}},initialState$y={isFetching:!1,userContacts:[],showModal:!1,analytics:void 0,cardTileAnalytics:null,cardTileAnalyticsFetching:!1,recent_activity:[],recentActivityFetching:!1,requestTime:new Date(0)},analytics=(o=initialState$y,s)=>{switch(s.type){case RESET_ALL_MODAL_STATE:case LOG_OUT_CURRENT_USER:return initialState$y;case GET_ANALYTICS_FETCHING:case GET_ANALYTICS_FOR_ORGANIZATION_FETCHING:return{...o,requestTime:s.requestTime,isFetching:!0};case GET_ANALYTICS_SUCCESS:case GET_ANALYTICS_FAILURE:case GET_ANALYTICS_FOR_ORGANIZATION_SUCCESS:case GET_ANALYTICS_FOR_ORGANIZATION_FAILURE:return actionIsValid$1(o,s.requestTime)?{...o,isFetching:!1,analytics:s.json}:{...o};case GET_RECENT_ACTIVITY_FETCHING:case GET_RECENT_ACTIVITY_FOR_ORGANIZATION_FETCHING:return{...o,recentActivityFetching:!0};case GET_RECENT_ACTIVITY_SUCCESS:case GET_RECENT_ACTIVITY_FAILURE:case GET_RECENT_ACTIVITY_FOR_ORGANIZATION_SUCCESS:case GET_RECENT_ACTIVITY_FOR_ORGANIZATION_FAILURE:return{...o,recentActivityFetching:!1,recent_activity:s.json};case GET_TILE_ANALYTICS_FETCHING:return{...o,cardTileAnalyticsFetching:!0};case GET_TILE_ANALYTICS_SUCCESS:return{...o,cardTileAnalyticsFetching:!1,cardTileAnalytics:s.json};case GET_TILE_ANALYTICS_FAILURE:return{...o,cardTileAnalyticsFetching:!1};default:return o}};function actionIsValid$1(o,s){return s>=o.requestTime}const initialState$x={isFeedbackPromptShown:!1,promptRenderCount:0},appFeedback=(o=initialState$x,s)=>{switch(s.type){case RESET_ALL_MODAL_STATE:return{...o,isFeedbackPromptShown:!1};case LOG_OUT_CURRENT_USER:return{...initialState$x,promptRenderCount:o.promptRenderCount};case SET_SHOULD_SHOW_APP_FEEDBACK_PROMPT:return{...o,isFeedbackPromptShown:s.shown};case INCREMENT_ALERT_RENDERED_COUNT:return{...o,promptRenderCount:o.promptRenderCount+1};default:return o}},initialState$w={isFetching:!1,apiToken:null,authCode:null,isSignupLoading:!1,userCreateSuccess:!1,redirectPathAfterLogin:null,checkoutSessionId:null,lftTrialCheckoutSessionId:null},auth=(o=initialState$w,s)=>{switch(s.type){case"LOG_OUT_CURRENT_USER":return initialState$w;case"CREATE_VALIDATE_CODE_SUBMIT_REQUEST":return{...o,isFetching:!0,authCode:s.authCode};case"RECEIVED_VALIDATE_CODE_RESPONSE":return{...o,isFetching:!1,apiToken:s.json.api_token,uuid:s.json.uuid};case"RECEIVED_VALID_SSO_RESPONSE":return{...o,isFetching:!1,apiToken:s.data.api_token,uuid:s.data.uuid};case"RECEIVED_VALIDATE_CODE_ERROR":return{...o,isFetching:!1};case"SEND_CREATE_NEW_USER_REQUEST":return{...o,isSignupLoading:!0,userCreateSuccess:!1};case"RECEIVED_CREATE_NEW_USER_REQUEST":return{...o,isSignupLoading:!1,userCreateSuccess:!0,apiToken:s.json.api_token,uuid:s.json.uuid};case"RECEIVED_CREATE_NEW_USER_REQUEST_ERROR":return{...o,isSignupLoading:!1,userCreateSuccess:!1};case"SET_REDIRECT_URL_AFTER_LOGIN":return{...o,redirectPathAfterLogin:s.path};case"SET_CHECKOUT_SESSION_ID":return{...o,checkoutSessionId:s.sessionId};case"SET_LFT_TRIAL_CHECKOUT_SESSION_ID":return{...o,lftTrialCheckoutSessionId:s.lftTrialCheckoutSessionId};default:return o}};var BOOK_MEETING_ACTIONS=(o=>(o.SET_BOOK_MEETING_STATE="SET_BOOK_MEETING_STATE",o))(BOOK_MEETING_ACTIONS||{});const initialState$v={},bookMeeting=(o=initialState$v,s)=>{switch(s.type){case"SET_BOOK_MEETING_STATE":return{...o,...s.payload};default:return o}},initialState$u={isShown:!1,type:void 0,data:{}},bottomSheetDeprecated=(o=initialState$u,s)=>{let a,$;switch(s.type){case PRELOAD_BOTTOM_SHEET_DEPRECATED:return a=s.payload.type,$=s.payload.data,{...o,isShown:!1,type:a,data:$};case SHOW_BOTTOM_SHEET_DEPRECATED:return a=s.payload.type,$=s.payload.data,{...o,isShown:!0,type:a,data:$};case CLOSE_BOTTOM_SHEET_DEPRECATED:return{...o,isShown:!1};case RESET_BOTTOM_SHEET_DEPRECATED:return initialState$u;default:return o}};class Immutable{static upsertIntoObjectArray(s,a,$=-1,j=_e=>et=>et.id===_e.id){const _e=s.find(j(a)),et=s.indexOf(_e);return et>-1?[...s.slice(0,et),{...s[et],...a},...s.slice(et+1)]:$>-1?this.insertItem(s,et,a):this.arrayPush(s,a)}static insertIntoArray(s,a,$){return[...s.slice(0,a),$,...s.slice(a)]}static arrayPush(s,a){return[...s,a]}static arrayFindAndRemoveObjById(s,a){const $=s.find(_e=>_e.id===a),j=s.indexOf($);return this.arrayRemove(s,j)}static arrayRemove(s,a){return[...s.slice(0,a),...s.slice(a+1)]}static updateObjectInArray(s,a){return s.map(($,j)=>j!==a.index?$:{...$,...a.item})}}const initialState$t={currentUserCards:[],isFetching:!1,isCardsFetching:!1,isProfileCardActionSheetShown:!1,profileCardActionSheetCardId:null,viewingCardRecentConnections:[],viewingCardrecentConnectionsLoading:!1,isUnactivatedAlias:!1,aliasCode:null,showShareModal:!1,shownShareModalCard:null},cards=(o=initialState$t,s)=>{switch(s.type){case"LOG_OUT_CURRENT_USER":return initialState$t;case RESET_ALL_MODAL_STATE:return{...o,showShareModal:!1};case"GET_CARDS_REQUEST_STARTED":return{...o,isCardsFetching:!0};case"GET_CARDS_RESPONSE_RECEIVED":return{...o,currentUserCards:s.cards,isCardsFetching:!1};case"RECEIVED_RECENT_CONNECTIONS_FOR_CARD_RESPONSE":return{...o,viewingCardRecentConnections:s.connections,viewingCardrecentConnectionsLoading:!1};case"STARTED_RECENT_CONNECTIONS_FOR_CARD_REQUEST":return{...o,viewingCardRecentConnections:[],viewingCardrecentConnectionsLoading:!0};case"RECEIVED_ERROR_RECENT_CONNECTIONS_FOR_CARD_RESPONSE":return{...o,viewingCardRecentConnections:[],viewingCardrecentConnectionsLoading:!1};case"GET_CARD_UNACTIVATED_ALIAS_RESPONSE_RECEIVED":return{...o,isFetching:!1,isUnactivatedAlias:s.json.is_unactivated_alias,aliasCode:s.json.alias_code};case"RESET_ALIAS_LOCAL_STATE":return{...o,isUnactivatedAlias:!1,aliasCode:null};case"DELETE_CARD_REQUEST_STARTED":return{...o,isFetching:!0};case"DELETE_CARD_RESPONSE_RECEIVED":return{...o,isFetching:!1,currentUserCards:Immutable.arrayFindAndRemoveObjById(o.currentUserCards,s.deletedCardId)};case"CREATE_CARD_REQUEST_STARTED":return{...o,isFetching:!0};case"CREATE_CARD_RESPONSE_RECEIVED":return{...o,isFetching:!1,currentUserCards:Immutable.arrayPush(o.currentUserCards,s.newCard)};case"UPDATE_CARD_REQUEST_STARTED":return{...o,isFetching:!0};case"UPDATE_CARD_RESPONSE_RECEIVED":return{...o,isFetching:!1,currentUserCards:Immutable.upsertIntoObjectArray(o.currentUserCards,s.card)};case"ADMIN_UPDATE_OTHER_USER_CARD_RESPONSE_RECEIVED":return{...o,isFetching:!1};case"MAKE_CARD_PRIMARY_REQUEST_STARTED":return{...o};case"MAKE_CARD_PRIMARY_RESPONSE_RECEIVED":let a=[...o.currentUserCards],$=a.find(j=>j.is_primary===!0);return $={...$,is_primary:!1},a=Immutable.upsertIntoObjectArray(a,$),a=Immutable.arrayFindAndRemoveObjById(a,s.card.id),a=Immutable.insertIntoArray(a,0,s.card),{...o,currentUserCards:a};case"SET_PROFILE_CARD_ACTION_SHEET_SHOWN":return{...o,isProfileCardActionSheetShown:s.shown,profileCardActionSheetCardId:s.shown?s.id:null};case"SET_SHOW_SHARE_MODAL":return{...o,showShareModal:s.shown,shownShareModalCard:s.card};case SHOW_PRODUCT_ACTIVATION_FLOW_MODAL:return{...o,isFetching:!1};case FETCHING(DUPLICATE_CARD):return{...o,isFetching:!0};case FAILURE(DUPLICATE_CARD):case SUCCESS(DUPLICATE_CARD):return{...o,isFetching:!1};default:return o}},initialConnectionRequestsState={isFetching:!1,currentUserPendingConnectionRequests:[],areUnread:!1},connectionRequests=(o=initialConnectionRequestsState,s)=>{switch(s.type){case"LOG_OUT_CURRENT_USER":return initialConnectionRequestsState;case ACCEPT_CONNECTION_REQUEST_FETCHING:return{...o};case ACCEPT_CONNECTION_REQUEST_SUCCESS:return{...o,currentUserPendingConnectionRequests:s.connectionRequests};case CREATE_CONNECTION_REQUEST_FETCHING:return{...o};case CREATE_CONNECTION_REQUEST_SUCCESS:return{...o};case GET_CONNECTION_REQUESTS_FETCHING:return{...o,isFetching:!0};case GET_CONNECTION_REQUESTS_SUCCESS:return{...o,isFetching:!1,currentUserPendingConnectionRequests:s.connectionRequests};case MARK_CONNECTION_REQUESTS_AS_READ_FETCHING:return{...o};case MARK_CONNECTION_REQUESTS_AS_READ_SUCCESS:return{...o};case REJECT_CONNECTION_REQUEST_FETCHING:return{...o};case REJECT_CONNECTION_REQUEST_SUCCESS:return{...o,currentUserPendingConnectionRequests:s.connectionRequests};default:return o}},initialConnectionsState={isFetching:!1,isExportFetching:!1,isCreateConnectionFetching:!1,currentUserConnections:[],createConnectionLoading:!1,createConnectionModalIsShown:!1,createConnectionSuccessToastShow:!1,isConnectionModalShowing:!1,deletedConnectionIndex:-1,deletedConnection:null,restoredConnection:null,pendingDelete:!1,deleteConnectionSuccessToastShow:!1,connectionListInSelectionMode:!1,connectionListSelectedConnectionIds:[],createAccountWithConnectionModalShown:!1},connections=(o=initialConnectionsState,s)=>{let a;switch(s.type){case"LOG_OUT_CURRENT_USER":return initialConnectionsState;case RESET_ALL_MODAL_STATE:return{...o,createConnectionModalIsShown:!1,isConnectionModalShowing:!1,createAccountWithConnectionModalShown:!1};case"SHOW_CREATE_CONNECTION_MODAL":return{...o,createConnectionModalIsShown:s.showModal};case"RECEIVED_CREATE_CONNECTION_RESPONSE":return{...o,currentUserConnections:[s.json.connection,...o.currentUserConnections],createConnectionLoading:!1,isCreateConnectionFetching:!1};case"CREATE_CONNECTION_REQUEST_STARTED":return{...o,createConnectionLoading:!0,isCreateConnectionFetching:!0};case"CREATE_CONNECTION_FAILED":return{...o,createConnectionLoading:!1,isCreateConnectionFetching:!1};case"DELETE_CONNECTION_REQUEST_STARTED":return a=o.currentUserConnections.findIndex(et=>et.id===s.connection.id),{...o,pendingDelete:!0,deletedConnection:s.connection,deletedConnectionIndex:a};case"DELETE_CONNECTION_RESPONSE_RECEIVED":return{...o,pendingDelete:!1,deleteConnectionSuccessToastShow:!0,currentUserConnections:o.currentUserConnections.filter((et,tt)=>tt!==o.deletedConnectionIndex)};case"RESET_DELETED_CONNECTION":return{...o,pendingDelete:!1,deletedConnection:null,deletedConnectionIndex:-1};case"RESTORE_DELETED_CONNECTION_REQUEST_STARTED":return{...o};case"RESTORE_DELETED_CONNECTION_RESPONSE_RECEIVED":return{...o,deletedConnection:null,deletedConnectionIndex:-1,restoredConnection:o.deletedConnection,currentUserConnections:[...o.currentUserConnections.slice(0,o.deletedConnectionIndex),s.connection,...o.currentUserConnections.slice(o.deletedConnectionIndex)]};case"RESET_RESTORED_CONNECTION":return{...o,restoredConnection:null};case"CREATE_GET_CURRENT_USER_CONNECTIONS_REQUEST":return{...o,isFetching:!0};case"RECEIVED_GET_CURRENT_USER_CONNECTIONS_RESPONSE":return{...o,isFetching:!1,currentUserConnections:s.json||[]};case"SET_CONNECTION_LIST_SELECTION_MODE":return{...o,connectionListInSelectionMode:s.selectionMode};case"SELECT_CONNECTION_LIST_CONNECTION":const $=s.connection,j=o.connectionListSelectedConnectionIds||[],_e=j.indexOf($.id);return _e>-1?j.splice(_e,1):j.push($.id),{...o,connectionListSelectedConnectionIds:j};case"CLEAR_CONNECTION_LIST_SELECTIONS":return{...o,connectionListSelectedConnectionIds:[],connectionListInSelectionMode:!1};case"SET_CREATE_ACCOUNT_WITH_CONNECTION_MODAL_SHOWN":return{...o,createAccountWithConnectionModalShown:s.shown};default:return o}};var CONTACT_ORIGINS=(o=>(o.ANYONE="Anyone",o.ME="Me",o.OTHERS="Others",o))(CONTACT_ORIGINS||{}),CONTACT_SORT_BY=(o=>(o.DATE="Date",o.FIRST_NAME="First Name",o.LAST_NAME="Last Name",o))(CONTACT_SORT_BY||{}),CONTACT_SORT_DIRECTION=(o=>(o.ASC="ASC",o.DESC="DESC",o))(CONTACT_SORT_DIRECTION||{});const DEFAULT_FILTERS={visibility_scope:"all",tags:[],contact_origin:"Anyone",sort_by:"Date",sort_direction:"DESC"},initialState$s={visibility_scope:"all",tags:[],contact_origin:CONTACT_ORIGINS.ANYONE,sort_by:CONTACT_SORT_BY.DATE,sort_direction:CONTACT_SORT_DIRECTION.DESC},contactFilters=(o=initialState$s,s)=>{switch(s.type){case CONTACT_FILTERS_ACTIONS.SET_CONTACT_FILTERS:return{...initialState$s,...s.payload};case CONTACT_FILTERS_ACTIONS.RESET_CONTACT_FILTERS:return{...initialState$s};default:return o}},initialState$r={isFetching:!1,userContacts:[]},contacts=(o=initialState$r,s)=>{switch(s.type){case"LOG_OUT_CURRENT_USER":return initialState$r;default:return o}},deviceInfo=(o={isFetching:!1,appVersion:null,appBuild:null,browser:null,browserVersion:null,deviceModelName:null,isVirtual:null,manufacturer:null,model:null,osVersion:null,operatingSystem:null,platform:null,userId:null,savedToServer:!1},s)=>{switch(s.type){case"CREATE_SAVE_DEVICE_INFO_REQUEST":return{...o,isFetching:!0};case"RECEIVED_SAVE_DEVICE_INFO_RESPONSE":return{...o,isFetching:!1,appVersion:s.info.device_info.app_version,appBuild:s.info.device_info.app_build,browser:s.info.device_info.browser,browserVersion:s.info.device_info.browser_version,deviceModelName:s.info.device_info.device_model_name,isVirtual:s.info.device_info.is_virtual,manufacturer:s.info.device_info.manufacturer,model:s.info.device_info.model,osVersion:s.info.device_info.os_version,operatingSystem:s.info.device_info.operating_system,platform:s.info.device_info.platform,userId:s.info.device_info.user_id,savedToServer:!0};default:return o}},initialEventsState={isFetching:!1,registerIsFetching:!1,viewingEvent:null},events=(o=initialEventsState,s)=>{switch(s.type){case"LOG_OUT_CURRENT_USER":return initialEventsState;case GET_EVENT_FETCHING:return{...o,isFetching:!0};case GET_EVENT_SUCCESS:return{...o,viewingEvent:s.event,isFetching:!1};case GET_EVENT_FAILURE:return{...o,isFetching:!1};case REGISTER_FOR_EVENT_FETCHING:return{...o,registerIsFetching:!0};case REGISTER_FOR_EVENT_SUCCESS:case REGISTER_FOR_EVENT_FAILURE:return{...o,registerIsFetching:!1};default:return o}},initialState$q={isOpen:!1,modalType:()=>null,componentProps:{},onBackdropDismiss:()=>{},onWillDismiss:()=>{}},globalModal=(o=initialState$q,s)=>{switch(s.type){case SHOW_MODAL:return{...o,isOpen:!0,...s.payload};case CLOSE_MODAL:return{...o,isOpen:!1};default:return o}},initialInspirationState={isInspirationLoading:!1},inspiration=(o=initialInspirationState,s)=>{switch(s.type){case START_LOADING:return{isInspirationLoading:!0};case STOP_LOADING:return{isInspirationLoading:!1};default:return o}},initialState$p={isOpen:!1,haveFixedHeight:!1,disablePadding:!1,sheetType:()=>null,componentProps:{},swipeToClose:!0,canDismiss:!0,backdropDismiss:!0,onBackdropDismiss:()=>{}},ionBottomSheet=(o=initialState$p,s)=>{switch(s.type){case SHOW_ION_BOTTOM_SHEET:return{...s.payload,isOpen:!0};case CLOSE_ION_BOTTOM_SHEET:return{...o,isOpen:!1};default:return o}},initialState$o={leadsIsFetching:!1,viewingLeads:[]},leads=(o=initialState$o,s)=>{switch(s.type){case LOG_OUT_CURRENT_USER:return initialState$o;case FETCHING(DELETE_LEAD):case FETCHING(CREATE_LEAD):case GET_LEADS_FETCHING:return{...o,leadsIsFetching:!0};case SUCCESS(DELETE_LEAD):case SUCCESS(CREATE_LEAD):case GET_LEADS_SUCCESS:return{...o,leadsIsFetching:!1,viewingLeads:s.leads};case FAILURE(DELETE_LEAD):case FAILURE(CREATE_LEAD):case GET_LEADS_FAILURE:return{...o,leadsIsFetching:!1};default:return o}},initialState$n={lastFilledOutLftFormDate:null,submitUserId:null},linqForTeamsSubmissionForm=(o=initialState$n,s)=>{switch(s.type){case SUBMIT_LFT_FORM_ACTIONS.SET_LAST_FILLED_OUT_LFT_FORM:return{...o,lastFilledOutLftFormDate:s.submitDate,submitUserId:s.userId};default:return o}},initialState$m={lastPurchasedTimestamp:null,userId:null},linqOnePurchase=(o=initialState$m,s)=>{switch(s.type){case PURCHASE_LINQ_ONE_ACTIONS.SET_LAST_PURCHASE:return{...o,lastPurchasedTimestamp:s.submitTimestamp,userId:s.userId};default:return o}},initialState$l={isFetching:!1,allProducts:[]},linqProducts=(o=initialState$l,s)=>{switch(s.type){case LOG_OUT_CURRENT_USER:return initialState$l;case FETCHING(GET_LINQ_PRODUCTS):return{...o,isFetching:!0};case SUCCESS(GET_LINQ_PRODUCTS):return{...o,isFetching:!1,allProducts:s.linq_products||[]};case FAILURE(GET_LINQ_PRODUCTS):return{...o,isFetching:!1};default:return o}},initialState$k={isLocationSuggestionsFetching:!1,locationSuggestions:[]},locations=(o=initialState$k,s)=>{switch(s.type){case"LOG_OUT_CURRENT_USER":return initialState$k;case"CREATE_LOCATION_SUGGESTIONS_REQUEST":return{...o,isLocationSuggestionsFetching:!0};case"RECEIVED_LOCATION_SUGGESTIONS_RESPONSE":return{...o,isLocationSuggestionsFetching:!1,locationSuggestions:s.locations};default:return o}},initialState$j={selectCardModal:{show:!1,filteredCards:[]},welcomeAlert:{welcomeAlertHeaderText:"Nice! We're sending you each other's info now. 🚀",welcomeAlertSubheaderText:"Want your own personal page?",buttonRedirectRoute:PAGE_ROUTES.dashboard,buttonText:"Create your own",showPending:!1,show:!1},coldStartWelcomeAlert:{show:!1},connectionRequestNotePrompt:{show:!1},postProductActivationModal:{show:!1,aliasCode:null},groupSearchModal:{groupIsFetching:!1,searchIsFetching:!1,group:null},loggedInAsDisplay:{show:!1},showUpgradeMonthlyToAnnualProModal:{lastShowModalDate:void 0}},modals=(o=initialState$j,s)=>{switch(s.type){case RESET_ALL_MODAL_STATE:return{...initialState$j,selectCardModal:{...o.selectCardModal},loggedInAsDisplay:{...o.loggedInAsDisplay},showUpgradeMonthlyToAnnualProModal:{...o.showUpgradeMonthlyToAnnualProModal}};case"LOG_OUT_CURRENT_USER":return initialState$j;case"SHOW_SELECT_CARD_MODAL":return{...o,selectCardModal:{...o.selectCardModal,show:!0}};case"HIDE_SELECT_CARD_MODAL":return{...o,selectCardModal:{...o.selectCardModal,show:!1}};case SET_SELECT_CARD_MODAL:return{...o,selectCardModal:{show:s.show,filteredCards:s.filteredCards}};case SET_SHOW_CONNECTION_REQUEST_NOTE_PROMPT:return{...o,connectionRequestNotePrompt:{show:s.show}};case"SET_WELCOME_ALERT_SHOW_PENDING":return{...o,welcomeAlert:{...o.welcomeAlert,showPending:s.showPending}};case"SHOW_WELCOME_ALERT":return{...o,welcomeAlert:{...o.welcomeAlert,welcomeAlertHeaderText:s.welcomeAlertHeaderText,welcomeAlertSubheaderText:s.welcomeAlertSubheaderText,buttonRedirectRoute:s.redirectRoute,buttonText:s.buttonText,showPending:!1,show:!0}};case"HIDE_WELCOME_ALERT":return{...o,welcomeAlert:{...o.welcomeAlert,show:!1}};case"SHOW_COLD_START_WELCOME_ALERT":return{...o,coldStartWelcomeAlert:{...o.coldStartWelcomeAlert,show:!0}};case"HIDE_COLD_START_WELCOME_ALERT":return{...o,coldStartWelcomeAlert:{...o.coldStartWelcomeAlert,show:!1}};case SET_POST_PRODUCT_ACTIVATION_MODAL:return{...o,postProductActivationModal:{show:s.show,aliasCode:s.aliasCode}};case SET_SHOW_LOGGED_IN_AS_DISPLAY:return{...o,loggedInAsDisplay:{show:s.show}};case USER_SUBSCRIPTION_MODAL_ACTIONS.SET_LAST_SHOW_UPGRADE_MONTHLY_TO_ANNUAL_PRO_MODAL_DATE:return{...o,showUpgradeMonthlyToAnnualProModal:{lastShowModalDate:s.submitDate}};default:return o}},initialState$i={show:!1,content:null,parentId:null},newBottomSheet=(o=initialState$i,s)=>{switch(s.type){case NEW_BOTTOM_SHEET_ACTIONS.SHOW_NEW_BOTTOM_SHEET:return{...initialState$i,...s.payload,show:!0};case NEW_BOTTOM_SHEET_ACTIONS.UPDATE_NEW_BOTTOM_SHEET:return{...o,...s.payload};case NEW_BOTTOM_SHEET_ACTIONS.CLOSE_NEW_BOTTOM_SHEET:return{...o,show:!1};default:return o}},initialState$h={isFetching:!1,teamsManageInviteModalShown:!1,stripeCheckoutSessionId:null,stripeCheckoutLink:null},organizations=(o=initialState$h,s)=>{switch(s.type){case LOG_OUT_CURRENT_USER:return initialState$h;case RESET_ORGANIZATION_LOADING_STATE:return{...o,isFetching:!1};case UPDATE_ORGANIZATION_FETCHING:return{...o,isFetching:!0};case UPDATE_ORGANIZATION_SUCCESS:return{...o,isFetching:!1};case UPDATE_ORGANIZATION_FAILURE:return{...o,isFetching:!1};case SET_MANAGE_TEAM_INVITE_MODAL_SHOWN:return{...o,teamsManageInviteModalShown:s.shown};case CREATE_STRIPE_CHECKOUT_SESSION_STARTED:return{...o,isFetching:!0,stripeCheckoutSessionId:null};case CREATE_STRIPE_CHECKOUT_SESSION_FINISHED:return{...o,isFetching:!1,stripeCheckoutSessionId:s.sessionId};case FETCHING(GET_STRIPE_CHECKOUT_LINK):return{...o,isFetching:!0,stripeCheckoutLink:null};case SUCCESS(GET_STRIPE_CHECKOUT_LINK):return{...o,isFetching:!1,stripeCheckoutLink:s.stripeCheckoutLink};case FAILURE(GET_STRIPE_CHECKOUT_LINK):return{...o,isFetching:!1,stripeCheckoutLink:null};default:return o}};function chunk(o,s=1){s=Math.max(Math.trunc(s),0);const a=[];for(let $=0;$<o.length;$+=Math.max(1,s))a.push(o.slice($,$+s));return a}function forEach$1(o,s){return Array.isArray(o)?forEachOfArray(o,s):forOwnOfNonArray(o,s),o}function forEachOfArray(o,s){for(let a=0,$=o.length;a<$&&s(o[a],a)!==!1;++a);}function keysOfNonArray(o){return o?Object.getOwnPropertyNames(o):[]}function forOwnOfNonArray(o,s){return forEachOfArray(keysOfNonArray(o),a=>s(o[a],a)),o}function map(o,s){const a=[];return forEach$1(o,($,j)=>{a.push(s($,j))}),a}function findExtreme(o,s,a){let $,j;return forEachOfArray(o,_e=>{const et=s(_e);($===void 0||a(et,j))&&($=_e,j=et)}),$}function maxBy(o,s){return findExtreme(o,s,(a,$)=>a>$)}function isEqual(o,s){if(Object.is(o,s))return!0;if(!(o instanceof Object&&s instanceof Object))return!1;for(const a of keysOfNonArray(o))if(!s.hasOwnProperty(a))return!1;for(const a of keysOfNonArray(s))if(!isEqual(o[a],s[a]))return!1;return!0}let nextId=1;function uniqueId(o=""){return o+nextId++}function last(o){return o[o.length-1]}function uniq(o){return Array.from(new Set(o))}function uniqBy(o,s){const a=new Set;return o.filter($=>{const j=s($),_e=!a.has(j);return a.add(j),_e})}function debounce(o,s=0){let a;const $=()=>{clearTimeout(a)};return Object.assign((..._e)=>{$(),a=setTimeout(o,s,..._e)},{cancel:$})}function throttle$1(o,s=0,{leading:a=!0,trailing:$=!0}={}){let j=0,_e,et;const tt=()=>performance.now(),nt=()=>{j=tt()+s},it=()=>{clearTimeout(et),et=void 0,_e=void 0,j=0},rt=()=>{if(_e){const ot=_e;it(),nt(),o(...ot)}};return Object.assign((...ot)=>{_e=ot;const at=Math.max(0,j-tt());!at&&(a||et)?rt():$&&(at||nt(),clearTimeout(et),et=setTimeout(rt,at||s))},{cancel:it,flush:rt})}const TimeDelayTypeOptions=[{label:"Time Window",value:"time_window"},{label:"Countdown",value:"time_delay"}];var TimeDelayType=(o=>(o.MIN_5="5_min",o.MIN_30="30_min",o.HR_1="1_hr",o.HR_2="2_hr",o.DAY_1="1_days",o.DAY_2="2_days",o.DAY_3="3_days",o.WEEK_1="1_weeks",o.WEEK_2="2_weeks",o.MONTH_1="1_month",o.CUSTOM="custom",o))(TimeDelayType||{});const TimeDelayValuesByType={"5_min":{minutes:5},"30_min":{minutes:30},"1_hr":{hours:1},"2_hr":{hours:2},"1_days":{days:1},"2_days":{days:2},"3_days":{days:3},"1_weeks":{days:7},"2_weeks":{days:14},"1_month":{days:30},custom:{}},TimeDelayAmountOptions=[{label:"5 minutes",value:"5_min"},{label:"30 minutes",value:"30_min"},{label:"1 hour",value:"1_hr"},{label:"2 hours",value:"2_hr"},{label:"1 day",value:"1_days"},{label:"2 days",value:"2_days"},{label:"3 days",value:"3_days"},{label:"1 week",value:"1_weeks"},{label:"2 weeks",value:"2_weeks"},{label:"1 month",value:"1_month"},{label:"Custom",value:"custom"}];var WorkflowActionType=(o=>(o.TAG="WorkflowActions::WorkflowTagContactAction",o.TEAM="WorkflowActions::WorkflowShareContactWithTeamAction",o.REMINDER="WorkflowActions::WorkflowReminderAction",o.INTEGRATION="WorkflowActions::WorkflowIntegrationAction",o.TIME_DELAY="WorkflowActions::WorkflowTimeDelayAction",o.SEND_SMS="WorkflowActions::WorkflowSendSmsAction",o))(WorkflowActionType||{});const WorkflowActionUiByType={"WorkflowActions::WorkflowTagContactAction":{icon:"tag",title:"Tag Contact",description:"This action tags the contact."},"WorkflowActions::WorkflowShareContactWithTeamAction":{icon:"people",title:"Share Contact with Team",description:"This action shares the contact with the team."},"WorkflowActions::WorkflowReminderAction":{icon:"alarm",title:"Set Reminder",description:"This action sets a reminder."},"WorkflowActions::WorkflowIntegrationAction":{icon:"cloud",title:"Integration",description:"This action integrates with another system."},"WorkflowActions::WorkflowTimeDelayAction":{icon:"time",title:"Time Delay",description:"This action introduces a time delay."},"WorkflowActions::WorkflowSendSmsAction":{icon:"chatbubble",title:"Send SMS",description:"This action sends an SMS."}};var WorkflowFilterType=(o=>(o.PAGE="WorkflowFilters::WorkflowCardFilter",o.PRODUCT="WorkflowFilters::WorkflowProductFilter",o.TEAM="WorkflowFilters::WorkflowTeamFilter",o.TAG="WorkflowFilters::WorkflowTagFilter",o))(WorkflowFilterType||{});function convertTimeToMinutes(o){const[s,a]=o.split(":").map(Number);return s*60+a}function convertMinutesToTimeString(o){const s=Math.floor(o/60),a=o%60,$=s.toString().padStart(2,"0"),j=a.toString().padStart(2,"0");return`${$}:${j}`}const TIMEZONE=Intl.DateTimeFormat().resolvedOptions().timeZone;var PHONE_AUTOMATIONS_ACTIONS=(o=>(o.UPDATE_PHONE_AUTOMATION="SET_PHONE_AUTOMATION",o.SET_MOVING_ACTION_ID="SET_MOVE_MODE",o.SET_WORKFLOW_TRIGGER_TYPE="SET_WORKFLOW_TRIGGER_TYPE",o.RESET_PHONE_AUTOMATION="RESET_PHONE_AUTOMATION",o.RESET_TRIGGER="RESET_TRIGGER",o))(PHONE_AUTOMATIONS_ACTIONS||{});const SEND_SMS_DEFAULT_BODY="What's happening, {{recipient.first_name}}?",initialTimeDelayAction={type:WorkflowActionType.TIME_DELAY,workflow_id:"1",enabled:!0,id:"1",priority:1,metadata:{delay_type:null,time_delay_options:{days:0,hours:0,minutes:5,countdown_string:"0:05",include_weekends:!0,time_of_day:"09:00",timezone:TIMEZONE,time_delay_amount_key:TimeDelayType.MIN_5},time_window_options:{day_of_week:1,time_of_day:"09:00",timezone:TIMEZONE}}},initialPhoneAutomationState={id:uniqueId("phone-automation-"),enabled:!0,workflow_trigger_id:null,exit_on_sms:!0,workflow_trigger:null,name:void 0,workflow_actions:[initialTimeDelayAction,{type:WorkflowActionType.SEND_SMS,enabled:!0,id:"2",metadata:{body:SEND_SMS_DEFAULT_BODY},priority:2}],workflow_filters:[{id:"1",type:WorkflowFilterType.TAG,enabled:!1,workflow_filter_filterable_ids:[]}]},initialState$g={phoneAutomation:initialPhoneAutomationState},phoneAutomations=(o=initialState$g,s)=>{switch(s.type){case"SET_PHONE_AUTOMATION":return{...o,phoneAutomation:{...o.phoneAutomation,...s.payload}};case"SET_MOVE_MODE":return{...o,movingActionId:s.payload};case"SET_WORKFLOW_TRIGGER_TYPE":return{...o,phoneAutomation:{...o.phoneAutomation,workflow_trigger:{...o.phoneAutomation.workflow_trigger,trigger_type:s.payload}}};case"RESET_PHONE_AUTOMATION":return initialState$g;case"RESET_TRIGGER":return{...o,phoneAutomation:{...o.phoneAutomation,workflow_trigger:initialState$g.phoneAutomation.workflow_trigger,workflow_trigger_id:initialState$g.phoneAutomation.workflow_trigger_id,workflow_filters:initialState$g.phoneAutomation.workflow_filters}};default:return o}};function toInteger(o){if(o===null||o===!0||o===!1)return NaN;var s=Number(o);return isNaN(s)?s:s<0?Math.ceil(s):Math.floor(s)}function requiredArgs(o,s){if(s.length<o)throw new TypeError(o+" argument"+(o>1?"s":"")+" required, but only "+s.length+" present")}function toDate(o){requiredArgs(1,arguments);var s=Object.prototype.toString.call(o);return o instanceof Date||_typeof$3(o)==="object"&&s==="[object Date]"?new Date(o.getTime()):typeof o=="number"||s==="[object Number]"?new Date(o):((typeof o=="string"||s==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function addDays(o,s){requiredArgs(2,arguments);var a=toDate(o),$=toInteger(s);return isNaN($)?new Date(NaN):($&&a.setDate(a.getDate()+$),a)}function addMonths(o,s){requiredArgs(2,arguments);var a=toDate(o),$=toInteger(s);if(isNaN($))return new Date(NaN);if(!$)return a;var j=a.getDate(),_e=new Date(a.getTime());_e.setMonth(a.getMonth()+$+1,0);var et=_e.getDate();return j>=et?_e:(a.setFullYear(_e.getFullYear(),_e.getMonth(),j),a)}function add(o,s){if(requiredArgs(2,arguments),!s||_typeof$3(s)!=="object")return new Date(NaN);var a=s.years?toInteger(s.years):0,$=s.months?toInteger(s.months):0,j=s.weeks?toInteger(s.weeks):0,_e=s.days?toInteger(s.days):0,et=s.hours?toInteger(s.hours):0,tt=s.minutes?toInteger(s.minutes):0,nt=s.seconds?toInteger(s.seconds):0,it=toDate(o),rt=$||a?addMonths(it,$+a*12):it,st=_e||j?addDays(rt,_e+j*7):rt,ot=tt+et*60,at=nt+ot*60,lt=at*1e3,ct=new Date(st.getTime()+lt);return ct}const initialState$f={polling:!1,timeout:null},pollUser=(o=initialState$f,s)=>{switch(s.type){case POLL_USER_TYPES.START_USER_POLLING:return{...o,polling:!0};case POLL_USER_TYPES.STOP_USER_POLLING:return{timeout:null,polling:!1};case POLL_USER_TYPES.SET_USER_POLLING_TIMEOUT:return{...o,timeout:add(new Date,{seconds:s.seconds})};default:return o}},initialState$e={show:!1},popoverPrompt=(o=initialState$e,s)=>{switch(s.type){case POPOVER_PROMPT_ACTIONS.SHOW_POPOVER_PROMPT:return{...initialState$e,show:!0,...s.payload};case POPOVER_PROMPT_ACTIONS.CLOSE_POPOVER_PROMPT:return{...o,show:!1};case POPOVER_PROMPT_ACTIONS.RESET_POPOVER_PROMPT:return{...initialState$e};default:return o}},initialState$d={step:1},previewPage=(o=initialState$d,s)=>{switch(s.type){case SET_PREVIEW_PAGE_STEP:return{...o,step:s.step};default:return o}},initialState$c={addContentButtonBadgeShown:!1,contentTypesModalInformationSecitonShown:!1},productCallouts=(o=initialState$c,s)=>{switch(s.type){case SET_ADD_CONTENT_BUTTON_BADGE_SHOWN:return{...o,addContentButtonBadgeShown:s.shown};case RESET_PRODUCT_CALLOUTS:return initialState$c;default:return o}},initialState$b={contactIds:[]},recentScannedBusinessCards=(o=initialState$b,s)=>{switch(s.type){case RECENT_SCANNED_BUSINESS_CARD_ACTIONS.SET_RECENT_SCANNED_BUSINESS_CARD:return{...o,contactIds:s.payload};default:return o}},initialState$a={flashReferralFab:!0};var REFERRALS_ACTION_TYPES=(o=>(o.REFERRAL_BOTTOM_SHEET_VIEWED="REFERRAL_BOTTOM_SHEET_VIEWED",o))(REFERRALS_ACTION_TYPES||{});function referrals(o=initialState$a,s){switch(s.type){case"LOG_OUT_CURRENT_USER":return initialState$a;case"REFERRAL_BOTTOM_SHEET_VIEWED":return{...o,flashReferralFab:!1};default:return o}}const initialState$9={isConnectionSearchFetching:!1,connectionSearchResults:[]},search=(o=initialState$9,s)=>{switch(s.type){case"LOG_OUT_CURRENT_USER":return initialState$9;case"CREATE_SEARCH_REQUEST":return{...o,isConnectionSearchFetching:!0,searchData:s.searchData};case"RECEIVED_SEARCH_REQUEST_RESPONSE":return actionIsValid(o,s.timestamp)?{...o,connectionSearchResults:s.results,isConnectionSearchFetching:!1}:{...o};case"CLEAR_SEARCH_RESULTS":return{...o,connectionSearchResults:[]};default:return o}};function actionIsValid(o,s){return s>=o.searchData.timestamp}const initialState$8={"data-test":APP_TEST_IDS.SLIDING_DRAWER.BASE,footer:null},slidingDrawer=(o=initialState$8,s)=>{var a;switch(s.type){case SLIDING_DRAWER_ACTIONS.SHOW_SLIDING_DRAWER:return{...initialState$8,warnOnClose:o.warnOnClose,...s.payload,show:!0};case SLIDING_DRAWER_ACTIONS.CLOSE_SLIDING_DRAWER:{const $=s.payload.disableWarning?!1:o.warnOnClose,j=!!$;return{...o,show:j,warnOnClose:$,showCloseWarning:$&&j,stackedPanels:[],secondaryPanel:{...o.secondaryPanel,show:$?!!((a=o.secondaryPanel)!=null&&a.show):!1},warnOnStackedDrawerClose:!1,showStackedDrawerCloseWarning:!1}}case SLIDING_DRAWER_ACTIONS.RESET_SLIDING_DRAWER:return{...initialState$8};case SLIDING_DRAWER_ACTIONS.REMOVE_SLIDING_DRAWER_FROM_STACK:{const $=s.payload.disableWarning?!1:o.warnOnStackedDrawerClose,j=!!$;return{...o,warnOnStackedDrawerClose:$,showStackedDrawerCloseWarning:$&&j,warnOnClose:!1,showCloseWarning:!1,stackedPanels:j?o.stackedPanels:[]}}case SLIDING_DRAWER_ACTIONS.ADD_SLIDING_DRAWER_TO_STACK:return{...o,warnOnStackedDrawerClose:o.warnOnStackedDrawerClose,stackedPanels:[...o.stackedPanels||[],...s.payload?[{...initialState$8,...s.payload,id:s.payload.id||uniqueId()}]:[]]};case SLIDING_DRAWER_ACTIONS.SHOW_SECONDARY_PANEL:return{...o,secondaryPanel:{...initialState$8.secondaryPanel,...s.payload,show:!0}};case SLIDING_DRAWER_ACTIONS.SET_SLIDING_DRAWER:return{...o,...s.payload,secondaryPanel:{...o.secondaryPanel,...s.payload.secondaryPanel}};case SLIDING_DRAWER_ACTIONS.SET_SLIDING_DRAWER_WARN_ON_CLOSE:return{...o,warnOnClose:s.payload};case SLIDING_DRAWER_ACTIONS.SET_SLIDING_DRAWER_TO_STACK_WARN_ON_CLOSE:return{...o,warnOnStackedDrawerClose:s.payload};case SLIDING_DRAWER_ACTIONS.DISMISS_SLIDING_DRAWER_WARN_ON_CLOSE:return{...o,showCloseWarning:!1};case SLIDING_DRAWER_ACTIONS.DISMISS_STACKED_SLIDING_DRAWER_WARN_ON_CLOSE:return{...o,showStackedDrawerCloseWarning:!1};default:return o}},initialTilesState={isFetching:!1,availibleTileTypes:{tile_types:{},top_level_tile_type_ids:[]},extraTileState:{global:{contactCardPreviewTileToShowId:"",contactCardPreviewShouldShow:!1}},isLinqPayLoading:!1},tiles=(o=initialTilesState,s)=>{var $;let a;switch(s.type){case"LOG_OUT_CURRENT_USER":return initialTilesState;case RESET_ALL_MODAL_STATE:return a=o.extraTileState,($=a==null?void 0:a.global)!=null&&$.contactCardPreviewShouldShow&&(a={...a,global:{...global,contactCardPreviewTileToShowId:null,contactCardPreviewShouldShow:!1}}),{...o,extraTileState:a};case"FETCH_AVAILIBLE_TILES_FOR_CARD_REQUEST_STARTED":return{...o,isFetching:!0};case"FETCH_AVAILIBLE_TILES_FOR_CARD_RESPONSE_RECEIVED":return{...o,isFetching:!1,availibleTileTypes:s.tileTypes};case"FETCH_AVAILIBLE_TILES_FOR_CARD_ERROR_RECEIVED":return{...o,isFetching:!1};case"GET_AVAILABLE_TILE_TYPES_FOR_TILE_GROUP_FOR_ORGANIZATION_FETCHING":return{...o,isFetching:!0};case"GET_AVAILABLE_TILE_TYPES_FOR_TILE_GROUP_FOR_ORGANIZATION_SUCCESS":return{...o,isFetching:!1,availibleTileTypes:s.tileTypes};case"GET_AVAILABLE_TILE_TYPES_FOR_TILE_GROUP_FOR_ORGANIZATION_FAILURE":return{...o,isFetching:!1};case CONTACT_CARD_TILE_SET_PREVIEW_STATE:return a=o.extraTileState[s.tileId]||{},{...o,extraTileState:{...o.extraTileState,[s.tileId]:{...a,tileId:s.tileId,firstName:s.firstName,lastName:s.lastName,title:s.title,organization:s.organization,photoUrl:s.photoUrl,fields:s.fields}}};case CONTACT_CARD_TILE_SET_PREVIEW_SHOULD_SHOW:return a=o.extraTileState.global||{},{...o,extraTileState:{...o.extraTileState,global:{...a,contactCardPreviewTileToShowId:s.tileId,contactCardPreviewShouldShow:s.shouldShow}}};case LEADS_FORM_TILE_CREATE_LEAD_FETCHING:return a=o.extraTileState[s.tileId]||{},{...o,extraTileState:{...o.extraTileState,[s.tileId]:{...a,submitLeadIsFetching:!0}}};case LEADS_FORM_TILE_CREATE_LEAD_SUCCESS:return a=o.extraTileState[s.tileId]||{},{...o,extraTileState:{...o.extraTileState,[s.tileId]:{...a,submitLeadIsFetching:!1}}};case FETCHING(GET_LINQ_PAY_STRIPE_CHECKOUT_SESSION):return{...o,isLinqPayLoading:!0};case FAILURE(GET_LINQ_PAY_STRIPE_CHECKOUT_SESSION):case SUCCESS(GET_LINQ_PAY_STRIPE_CHECKOUT_SESSION):return{...o,isLinqPayLoading:!1};default:return o}},initialState$7={toastMessage:"We're glad to have you. - Linq Team",showToast:!1,toastDuration:TOAST_HIDE_TIMEOUT_TIME},toast=(o=initialState$7,s)=>{switch(s.type){case"SET_TOAST":return{...o,toastMessage:s.toastMessage,showToast:s.showToast,toastDuration:s.toastDuration};case"HIDE_TOAST":return{...o,showToast:!1};case"RESET_TOAST":return initialState$7;default:return o}},initialState$6={show:!1,target:void 0,delay:0,offset:8,position:"top",animated:!0,delayBuffer:300,hideOnMouseLeave:!1,closeOnSecondClick:!1,hideArrow:!1,clickableElements:[],onClickBackground:void 0},tooltip=(o=initialState$6,s)=>{switch(s.type){case TOOLTIP_ACTIONS.SHOW_TOOLTIP:return o.show&&o.closeOnSecondClick&&o.content===s.payload.content&&o.target===s.payload.target?{...o,...initialState$6}:{...initialState$6,show:!0,...s.payload};case TOOLTIP_ACTIONS.CLOSE_TOOLTIP:return{...o,...initialState$6};case TOOLTIP_ACTIONS.RESET_TOOLTIP:return{...initialState$6};default:return o}},initialState$5={isFetching:!1,isSuccessful:!1,enrichment:{}},userEnrichment=(o=initialState$5,s)=>{switch(s.type){case USER_ENRICHMENT_ACTIONS.REQUEST_ENRICHMENT:return{...o,isFetching:!0};case USER_ENRICHMENT_ACTIONS.ENRICHMENT_SUCCESSFUL:return{...o,isFetching:!1,isSuccessful:!0,enrichment:s.json};case USER_ENRICHMENT_ACTIONS.ENRICHMENT_FAILED:return{...o,isFetching:!1,isSuccessful:!1,failureMessage:s.message};default:return o}},initialState$4={isFetching:!1,currentUserLinqProductsIsFetching:!1,currentUserLinqProducts:[],showProductActivationFlowModal:!1,productActivationAliasCode:null},userLinqProducts=(o=initialState$4,s)=>{switch(s.type){case LOG_OUT_CURRENT_USER:return initialState$4;case RESET_ALL_MODAL_STATE:return{...initialState$4,showProductActivationFlowModal:!1,productActivationAliasCode:null};case GET_USER_LINQ_PRODUCTS_FETCHING:return{...o,isFetching:!0,currentUserLinqProductsIsFetching:!0};case GET_USER_LINQ_PRODUCTS_SUCCESS:return{...o,isFetching:!1,currentUserLinqProductsIsFetching:!1,currentUserLinqProducts:s.userLinqProducts};case GET_USER_LINQ_PRODUCTS_FAILURE:return{...o,isFetching:!1,currentUserLinqProductsIsFetching:!1};case FETCHING(REGISTER_EVENT_BADGE_USER_LINQ_PRODUCT):case FETCHING(CREATE_USER_LINQ_PRODUCT):return{...o,isFetching:!0};case SUCCESS(REGISTER_EVENT_BADGE_USER_LINQ_PRODUCT):case SUCCESS(CREATE_USER_LINQ_PRODUCT):return{...o,isFetching:!1,currentUserLinqProducts:s.userLinqProducts};case FAILURE(REGISTER_EVENT_BADGE_USER_LINQ_PRODUCT):case FAILURE(CREATE_USER_LINQ_PRODUCT):return{...o,isFetching:!1};case UPDATE_USER_LINQ_PRODUCT_FETCHING:return{...o,isFetching:!0};case UPDATE_USER_LINQ_PRODUCT_SUCCESS:return{...o,isFetching:!1,currentUserLinqProducts:s.userLinqProducts};case UPDATE_USER_LINQ_PRODUCT_FAILURE:return{...o,isFetching:!1};case DELETE_USER_LINQ_PRODUCT_FETCHING:return{...o,isFetching:!0};case DELETE_USER_LINQ_PRODUCT_SUCCESS:return{...o,isFetching:!1,currentUserLinqProducts:s.userLinqProducts};case DELETE_USER_LINQ_PRODUCT_FAILURE:return{...o,isFetching:!1};case SHOW_PRODUCT_ACTIVATION_FLOW_MODAL:return{...o,showProductActivationFlowModal:s.showModal,productActivationAliasCode:s.aliasCode};default:return o}},initialUserState={isFetching:!1,currentUserFetched:!1,currentUser:null,pendingConnection:!1,linqPayFetching:!1,linqPayDetails:null,linqPayChargesList:{},linqPayRecordFetching:!1,linqPayRecordResults:null},user=(o=initialUserState,s)=>{switch(s.type){case"LOG_OUT_CURRENT_USER":return initialUserState;case"CREATE_GET_CURRENT_USER_REQUEST":return{...o,isFetching:!0,currentUserFetched:!1};case"SET_CURRENT_USER":return{...o,isFetching:!1,currentUserFetched:!0,currentUser:s.user};case"RECEIVED_GET_CURRENT_USER_RESPONSE":case"RECEIVED_CREATE_NEW_USER_REQUEST":return{...o,isFetching:!1,currentUserFetched:!0,currentUser:s.json.user};case"SET_CURRENT_USER_IS_PRO":return{...o,currentUser:{...o.currentUser,is_pro:s.isPro}};case"SET_CURRENT_USER_IS_PRO_PLUS":return{...o,currentUser:{...o.currentUser,is_pro_plus:s.isProPlus}};case"RECEIVED_VALIDATE_CODE_RESPONSE":return{...o,isFetching:!1,currentUser:{uuid:s.json.uuid}};case"RECEIVED_VALID_SSO_RESPONSE":return{...o,isFetching:!1,currentUser:{uuid:s.data.uuid}};case"SET_PENDING_CONNECTION":return{...o,pendingConnection:s.set};case FETCHING(LINQ_PAY_DETAILS):return{...o,linqPayFetching:!0};case"LINQ_PAY_DETAILS_SUCCESS":return{...o,linqPayFetching:!1,linqPayDetails:s.json};case FAILURE(LINQ_PAY_DETAILS):return{...o,linqPayFetching:!1};case FETCHING(GET_LINQ_PAY_CHARGES_LIST):return{...o,linqPayFetching:!0};case"GET_LINQ_PAY_CHARGES_LIST_SUCCESS":return{...o,linqPayChargesList:s.charges,linqPayFetching:!1};case FAILURE(GET_LINQ_PAY_CHARGES_LIST):return{...o,linqPayFetching:!1};case FETCHING(SAVE_LINQ_PAY_RECORD):return{...o,linqPayRecordFetching:!0};case"SAVE_LINQ_PAY_RECORD_SUCCESS":return{...o,linqPayRecordFetching:!1,linqPayRecordResults:s.json};case FAILURE(SAVE_LINQ_PAY_RECORD):return{...o,linqPayRecordFetching:!1};case FETCHING(CREATE_STRIPE_ACCOUNT_LINK):return{...o,linqPayFetching:!0};case SUCCESS(CREATE_STRIPE_ACCOUNT_LINK):case FAILURE(CREATE_STRIPE_ACCOUNT_LINK):return{...o,linqPayFetching:!1};default:return o}},initialState$3={settings:null},userSettings=(o=initialState$3,s)=>{switch(s.type){case"LOG_OUT_CURRENT_USER":return initialState$3;case"CREATE_GET_USER_SETTINGS_REQUEST":return o;case"RECEIVED_GET_USER_SETTINGS_RESPONSE":return{...o,settings:s.json.user_settings};case"CREATE_UPDATE_USER_SETTINGS_REQUEST":return o;case"RECEIVED_UPDATE_USER_SETTINGS_RESPONSE":return{...o,settings:s.json.user_settings};default:return o}},initialState$2={usingNewVersion:!1};function v2Design(o=initialState$2,s){switch(s.type){case"SET_USING_NEW_VERSION":return{...o,usingNewVersion:s.payload};default:return o}}var VOIP_ACTIONS=(o=>(o.SET_VOIP_STATE="SET_VOIP_STATE",o.HANGUP_CALL="HANGUP_CALL",o))(VOIP_ACTIONS||{});const initialState$1={isCallConnected:!1,isSpeakerOn:!1,isMicMuted:!1,isRegistered:!1,isCallConnecting:!1,contactData:{},isCallInProgress:!1,callStartTime:void 0,isUiMinimized:!1,islandPosition:"bottom"},voip=(o=initialState$1,s)=>{switch(s.type){case"SET_VOIP_STATE":{const a=s.payload.contactData!==void 0?s.payload.contactData:o.contactData,$={...o,...s.payload,contactData:a};return{...$,isCallInProgress:$.isCallConnected||$.isCallConnecting}}default:return o}};var dayjs_min={exports:{}};(function(o,s){(function(a,$){o.exports=$()})(commonjsGlobal$1,function(){var a=1e3,$=6e4,j=36e5,_e="millisecond",et="second",tt="minute",nt="hour",it="day",rt="week",st="month",ot="quarter",at="year",lt="date",ct="Invalid Date",ht=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,dt=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ut={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(yt){var Pt=["th","st","nd","rd"],wt=yt%100;return"["+yt+(Pt[(wt-20)%10]||Pt[wt]||Pt[0])+"]"}},pt=function(yt,Pt,wt){var Lt=String(yt);return!Lt||Lt.length>=Pt?yt:""+Array(Pt+1-Lt.length).join(wt)+yt},ft={s:pt,z:function(yt){var Pt=-yt.utcOffset(),wt=Math.abs(Pt),Lt=Math.floor(wt/60),vt=wt%60;return(Pt<=0?"+":"-")+pt(Lt,2,"0")+":"+pt(vt,2,"0")},m:function yt(Pt,wt){if(Pt.date()<wt.date())return-yt(wt,Pt);var Lt=12*(wt.year()-Pt.year())+(wt.month()-Pt.month()),vt=Pt.clone().add(Lt,st),xt=wt-vt<0,Ut=Pt.clone().add(Lt+(xt?-1:1),st);return+(-(Lt+(wt-vt)/(xt?vt-Ut:Ut-vt))||0)},a:function(yt){return yt<0?Math.ceil(yt)||0:Math.floor(yt)},p:function(yt){return{M:st,y:at,w:rt,d:it,D:lt,h:nt,m:tt,s:et,ms:_e,Q:ot}[yt]||String(yt||"").toLowerCase().replace(/s$/,"")},u:function(yt){return yt===void 0}},mt="en",gt={};gt[mt]=ut;var bt="$isDayjsObject",St=function(yt){return yt instanceof Ot||!(!yt||!yt[bt])},Nt=function yt(Pt,wt,Lt){var vt;if(!Pt)return mt;if(typeof Pt=="string"){var xt=Pt.toLowerCase();gt[xt]&&(vt=xt),wt&&(gt[xt]=wt,vt=xt);var Ut=Pt.split("-");if(!vt&&Ut.length>1)return yt(Ut[0])}else{var Et=Pt.name;gt[Et]=Pt,vt=Et}return!Lt&&vt&&(mt=vt),vt||!Lt&&mt},Rt=function(yt,Pt){if(St(yt))return yt.clone();var wt=typeof Pt=="object"?Pt:{};return wt.date=yt,wt.args=arguments,new Ot(wt)},Ft=ft;Ft.l=Nt,Ft.i=St,Ft.w=function(yt,Pt){return Rt(yt,{locale:Pt.$L,utc:Pt.$u,x:Pt.$x,$offset:Pt.$offset})};var Ot=function(){function yt(wt){this.$L=Nt(wt.locale,null,!0),this.parse(wt),this.$x=this.$x||wt.x||{},this[bt]=!0}var Pt=yt.prototype;return Pt.parse=function(wt){this.$d=function(Lt){var vt=Lt.date,xt=Lt.utc;if(vt===null)return new Date(NaN);if(Ft.u(vt))return new Date;if(vt instanceof Date)return new Date(vt);if(typeof vt=="string"&&!/Z$/i.test(vt)){var Ut=vt.match(ht);if(Ut){var Et=Ut[2]-1||0,Dt=(Ut[7]||"0").substring(0,3);return xt?new Date(Date.UTC(Ut[1],Et,Ut[3]||1,Ut[4]||0,Ut[5]||0,Ut[6]||0,Dt)):new Date(Ut[1],Et,Ut[3]||1,Ut[4]||0,Ut[5]||0,Ut[6]||0,Dt)}}return new Date(vt)}(wt),this.init()},Pt.init=function(){var wt=this.$d;this.$y=wt.getFullYear(),this.$M=wt.getMonth(),this.$D=wt.getDate(),this.$W=wt.getDay(),this.$H=wt.getHours(),this.$m=wt.getMinutes(),this.$s=wt.getSeconds(),this.$ms=wt.getMilliseconds()},Pt.$utils=function(){return Ft},Pt.isValid=function(){return this.$d.toString()!==ct},Pt.isSame=function(wt,Lt){var vt=Rt(wt);return this.startOf(Lt)<=vt&&vt<=this.endOf(Lt)},Pt.isAfter=function(wt,Lt){return Rt(wt)<this.startOf(Lt)},Pt.isBefore=function(wt,Lt){return this.endOf(Lt)<Rt(wt)},Pt.$g=function(wt,Lt,vt){return Ft.u(wt)?this[Lt]:this.set(vt,wt)},Pt.unix=function(){return Math.floor(this.valueOf()/1e3)},Pt.valueOf=function(){return this.$d.getTime()},Pt.startOf=function(wt,Lt){var vt=this,xt=!!Ft.u(Lt)||Lt,Ut=Ft.p(wt),Et=function(kn,An){var $n=Ft.w(vt.$u?Date.UTC(vt.$y,An,kn):new Date(vt.$y,An,kn),vt);return xt?$n:$n.endOf(it)},Dt=function(kn,An){return Ft.w(vt.toDate()[kn].apply(vt.toDate("s"),(xt?[0,0,0,0]:[23,59,59,999]).slice(An)),vt)},Bt=this.$W,Wt=this.$M,Zt=this.$D,sn="set"+(this.$u?"UTC":"");switch(Ut){case at:return xt?Et(1,0):Et(31,11);case st:return xt?Et(1,Wt):Et(0,Wt+1);case rt:var dn=this.$locale().weekStart||0,vn=(Bt<dn?Bt+7:Bt)-dn;return Et(xt?Zt-vn:Zt+(6-vn),Wt);case it:case lt:return Dt(sn+"Hours",0);case nt:return Dt(sn+"Minutes",1);case tt:return Dt(sn+"Seconds",2);case et:return Dt(sn+"Milliseconds",3);default:return this.clone()}},Pt.endOf=function(wt){return this.startOf(wt,!1)},Pt.$set=function(wt,Lt){var vt,xt=Ft.p(wt),Ut="set"+(this.$u?"UTC":""),Et=(vt={},vt[it]=Ut+"Date",vt[lt]=Ut+"Date",vt[st]=Ut+"Month",vt[at]=Ut+"FullYear",vt[nt]=Ut+"Hours",vt[tt]=Ut+"Minutes",vt[et]=Ut+"Seconds",vt[_e]=Ut+"Milliseconds",vt)[xt],Dt=xt===it?this.$D+(Lt-this.$W):Lt;if(xt===st||xt===at){var Bt=this.clone().set(lt,1);Bt.$d[Et](Dt),Bt.init(),this.$d=Bt.set(lt,Math.min(this.$D,Bt.daysInMonth())).$d}else Et&&this.$d[Et](Dt);return this.init(),this},Pt.set=function(wt,Lt){return this.clone().$set(wt,Lt)},Pt.get=function(wt){return this[Ft.p(wt)]()},Pt.add=function(wt,Lt){var vt,xt=this;wt=Number(wt);var Ut=Ft.p(Lt),Et=function(Wt){var Zt=Rt(xt);return Ft.w(Zt.date(Zt.date()+Math.round(Wt*wt)),xt)};if(Ut===st)return this.set(st,this.$M+wt);if(Ut===at)return this.set(at,this.$y+wt);if(Ut===it)return Et(1);if(Ut===rt)return Et(7);var Dt=(vt={},vt[tt]=$,vt[nt]=j,vt[et]=a,vt)[Ut]||1,Bt=this.$d.getTime()+wt*Dt;return Ft.w(Bt,this)},Pt.subtract=function(wt,Lt){return this.add(-1*wt,Lt)},Pt.format=function(wt){var Lt=this,vt=this.$locale();if(!this.isValid())return vt.invalidDate||ct;var xt=wt||"YYYY-MM-DDTHH:mm:ssZ",Ut=Ft.z(this),Et=this.$H,Dt=this.$m,Bt=this.$M,Wt=vt.weekdays,Zt=vt.months,sn=vt.meridiem,dn=function(An,$n,On,Cn){return An&&(An[$n]||An(Lt,xt))||On[$n].slice(0,Cn)},vn=function(An){return Ft.s(Et%12||12,An,"0")},kn=sn||function(An,$n,On){var Cn=An<12?"AM":"PM";return On?Cn.toLowerCase():Cn};return xt.replace(dt,function(An,$n){return $n||function(On){switch(On){case"YY":return String(Lt.$y).slice(-2);case"YYYY":return Ft.s(Lt.$y,4,"0");case"M":return Bt+1;case"MM":return Ft.s(Bt+1,2,"0");case"MMM":return dn(vt.monthsShort,Bt,Zt,3);case"MMMM":return dn(Zt,Bt);case"D":return Lt.$D;case"DD":return Ft.s(Lt.$D,2,"0");case"d":return String(Lt.$W);case"dd":return dn(vt.weekdaysMin,Lt.$W,Wt,2);case"ddd":return dn(vt.weekdaysShort,Lt.$W,Wt,3);case"dddd":return Wt[Lt.$W];case"H":return String(Et);case"HH":return Ft.s(Et,2,"0");case"h":return vn(1);case"hh":return vn(2);case"a":return kn(Et,Dt,!0);case"A":return kn(Et,Dt,!1);case"m":return String(Dt);case"mm":return Ft.s(Dt,2,"0");case"s":return String(Lt.$s);case"ss":return Ft.s(Lt.$s,2,"0");case"SSS":return Ft.s(Lt.$ms,3,"0");case"Z":return Ut}return null}(An)||Ut.replace(":","")})},Pt.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Pt.diff=function(wt,Lt,vt){var xt,Ut=this,Et=Ft.p(Lt),Dt=Rt(wt),Bt=(Dt.utcOffset()-this.utcOffset())*$,Wt=this-Dt,Zt=function(){return Ft.m(Ut,Dt)};switch(Et){case at:xt=Zt()/12;break;case st:xt=Zt();break;case ot:xt=Zt()/3;break;case rt:xt=(Wt-Bt)/6048e5;break;case it:xt=(Wt-Bt)/864e5;break;case nt:xt=Wt/j;break;case tt:xt=Wt/$;break;case et:xt=Wt/a;break;default:xt=Wt}return vt?xt:Ft.a(xt)},Pt.daysInMonth=function(){return this.endOf(st).$D},Pt.$locale=function(){return gt[this.$L]},Pt.locale=function(wt,Lt){if(!wt)return this.$L;var vt=this.clone(),xt=Nt(wt,Lt,!0);return xt&&(vt.$L=xt),vt},Pt.clone=function(){return Ft.w(this.$d,this)},Pt.toDate=function(){return new Date(this.valueOf())},Pt.toJSON=function(){return this.isValid()?this.toISOString():null},Pt.toISOString=function(){return this.$d.toISOString()},Pt.toString=function(){return this.$d.toUTCString()},yt}(),Ct=Ot.prototype;return Rt.prototype=Ct,[["$ms",_e],["$s",et],["$m",tt],["$H",nt],["$W",it],["$M",st],["$y",at],["$D",lt]].forEach(function(yt){Ct[yt[1]]=function(Pt){return this.$g(Pt,yt[0],yt[1])}}),Rt.extend=function(yt,Pt){return yt.$i||(yt(Pt,Ot,Rt),yt.$i=!0),Rt},Rt.locale=Nt,Rt.isDayjs=St,Rt.unix=function(yt){return Rt(1e3*yt)},Rt.en=gt[mt],Rt.Ls=gt,Rt.p={},Rt})})(dayjs_min);var dayjs_minExports=dayjs_min.exports;const dayjs=getDefaultExportFromCjs(dayjs_minExports),initialState={writes:[]},writeNFC=(o=initialState,s)=>{switch(s.type){case"NEW_WRITE":const a={uri:s.uri,createdAt:dayjs().format()},$=[...o.writes,a];return{...o,writes:$};case"RESET_WRITES":return initialState;default:return o}},rootReducer=combineReducers({adminOnboarding,alert:alert$1,auth,bookMeeting,user,userSettings,connections,contacts,locations,search,deviceInfo,cards,toast,modals,tiles,analytics,userLinqProducts,connectionRequests,events,writeNFC,organizations,productCallouts,leads,appFeedback,linqProducts,bottomSheetDeprecated,ionBottomSheet,previewPage,globalModal,alertModal,popoverPrompt,tooltip,linqForTeamsSubmissionForm,v2Design,slidingDrawer,contactFilters,newBottomSheet,pollUser,adminPagesPage:adminPages$1,adminInspirationPage:adminInspiration,adminPages,inspiration,recentScannedBusinessCards,referrals,userEnrichment,adminShoppingCart,phoneAutomations,voip,linqOnePurchase}),persistConfig={key:"root",storage:default_1,version:5,blacklist:["ionBottomSheet","globalModal","toast","popoverPrompt","tooltip","alertModal","v2Design","slidingDrawer","newBottomSheet","pollUser","adminPagesPage","adminPages","phoneAutomations","fab","voip"],migrate:createMigrate({2:o=>({user:{...initialUserState,currentUser:o.user.currentUser,currentUserFetched:!!o.user.currentUser},auth:{...o.auth},deviceInfo:{...o.deviceInfo},pushNotifications:{...o.pushNotifications}}),4:o=>({...o,tiles:{...initialTilesState,...o.tiles}}),5:o=>({...o,pushNotifications:void 0})})},sagaMiddleware=sagaMiddlewareFactory(),persistedReducer=persistReducer(persistConfig,rootReducer),middleware=cArray(sagaMiddleware,thunk,!1),store=createStore(persistedReducer,composeWithDevTools(applyMiddleware(...middleware)));sagaMiddleware.run(rootSaga);const useApiToken=()=>async()=>{if(!store.getState().auth.apiToken)throw new Error("No api token found");const a=await fetch(`${BASE_API_URL}/api/v2/api_tokens/validate`,{method:API_METHODS.GET,headers:apiHeaders(store.getState())});return await handleErrorsAndJSON(a),(await a.json()).data},constructEntries=(o,s,a)=>{switch(typeof s){case"string":case"number":case"boolean":a.push({key:o,value:s.toString()});break;default:Array.isArray(s)?s.forEach($=>constructEntries(`${encodeURIComponent(o)}[]`,$,a)):Object.entries(s).forEach(([$,j])=>constructEntries(`${o}[${encodeURIComponent($)}]`,j,a))}},queryParams=o=>{const s=[];return Object.entries(o).forEach(([a,$])=>{constructEntries(a,$,s)}),s.map(({key:a,value:$})=>`${a}=${$}`).join("&")},constructUrl$1=(o,s)=>{const a=queryParams(s);return a!==""?o+"?"+a:o},useConstructUrl=()=>({constructUrl:constructUrl$1});async function errObj(o){const{error:{messages:s}}=await o.json();return{error:!0,status:o.status,statusText:o.statusText,message:s==null?void 0:s.join(": ")}}const{constructUrl}=useConstructUrl(),useApiRequest=()=>{const o=useApiToken(),s=useDispatch(),a=useSelector($=>$.auth);return async({url:$,apiMethod:j,data:_e,headers:et,queryParams:tt,responseType:nt="json",searchOptions:it})=>{const rt=await api({url:$,apiMethod:j,data:_e,headers:et,queryParams:tt,auth:a,responseType:nt,searchOptions:it});if(rt.ok===!0&&rt.status!==204)return nt==="json"?await rt.json():await rt.text();if(rt.status===204)return{};if(rt.status===401)try{await o()}catch{s(logOutCurrentUser())}return errObj(rt).then(st=>Promise.reject(st))}};function requestDataToBodyInit(o){return typeof o=="string"||o instanceof FormData?o:JSON.stringify(o)}const deleteFalseyValues=o=>Object.fromEntries(Object.entries(o).filter(([,s])=>s)),combineHeaders=(o,s)=>s?deleteFalseyValues({...o,...s}):o;async function api({url:o,apiMethod:s,data:a,queryParams:$,auth:j,headers:_e,responseType:et="json",searchOptions:tt}){const nt=tt?{...tt.query&&{q:tt.query},results_per_page:tt.resultsPerPage,...tt.filters,...a}:a,it={method:s,headers:combineHeaders(apiHeaders({auth:j}),_e),...nt&&{body:requestDataToBodyInit(nt)}};$&&Object.keys($).length>0&&(o=constructUrl(o,$));const rt=await fetch(o,it);if(et==="text")return rt;const st=rt.headers.get("content-type");if(st&&st.includes("application/json"))return rt;throw new Error(`Unexpected content type: ${st}`)}const composeKeys=o=>{const s=et=>[et],a=et=>[...s(et),"index"],$=et=>tt=>[...a(et),tt==null?void 0:tt.toString()],j=et=>[...s(et),"detail"],_e=et=>tt=>[...j(et),tt==null?void 0:tt.toString()];return{all:s(o),indexes:a(o),index:$(o),details:j(o),detail:_e(o)}},ambassadorsKeys={...composeKeys("ambassadors")},userOnboardingStatusKeys={...composeKeys("user-onboarding-status")},appVersionKeys={...composeKeys("appVersion")},appClipSettingsKeys={...composeKeys("appClipSettings")},callForwardingsKeys={...composeKeys("callForwardings")},contactExchangeSettingsKeys={...composeKeys("contactExchangeSettings")},entitlementKeys={...composeKeys("entitlements")},entitlementInterestKeys={...composeKeys("entitlementInterests")},eventGuestKeys={...composeKeys("eventGuestKeys")},cardsKeys={...composeKeys("cards"),tilesKeys:{...composeKeys("cards/tiles")},appClipExperiencesKeys:{...composeKeys("cards/appClipExperiences")}},appstleSubscriptionsKeys={...composeKeys("appstleSubscriptions")},availableNumbersKeys={...composeKeys("availableNumbers")},contactsKeys={...composeKeys("contacts")},contactNotesKeys={...composeKeys("contactNotes")},contactSummaryKeys={...composeKeys("contactSummary")},domainContactsKeys={...composeKeys("domainContacts")},fieldMappingsKeys={...composeKeys("fieldMappings")},featureTogglesKeys={...composeKeys("featureToggles")},filtersKeys={...composeKeys("filters")},filterTagsKeys={...composeKeys("filterTags")},formFieldKeys={...composeKeys("formFields")},groupsKeys={...composeKeys("groups")},groupSearchKeys={...composeKeys("groupSearch")},integrationsKeys={...composeKeys("integrations")},inspirationKeys={...composeKeys("inspiration")},integrationConnectionsKeys={...composeKeys("integrationsConnections"),teamsKeys:{...composeKeys("integrationsConnections/teams")}};({...composeKeys("linqPhoneSubscription")});const localeKeys={...composeKeys("locale")},organizationsKeys={...composeKeys("organizations"),productCredits:{...composeKeys("organizations/productCredits")},availableNumbersKeys:{...composeKeys("organizations/availableNumbers")},zakekeDesigns:{...composeKeys("organizations/zakekeDesigns")},invitees:{...composeKeys("organizations/invitees")},workflows:{...composeKeys("organizations/workflows")},phone_numbers:{...composeKeys("organizations/phone_numbers")},analytics:{...composeKeys("organizations/analytics")},dashboard:{...composeKeys("organizations/dashboard")},dashboardAnalytics:{...composeKeys("organizations/dashboardAnalytics")},worknumberAnalytics:{...composeKeys("organizations/worknumberAnalytics")},teamAnalytics:{...composeKeys("organizations/team-analytics")},usersProgress:{...composeKeys("organizations/usersProgress")},cards:{...composeKeys("organizations/cards")},flattenedTileGroups:{...composeKeys("organizations/flattenedTileGroups")},tileGroups:{...composeKeys("organizations/tileGroups")},integrationConnections:{...composeKeys("organizations/integrationConnections")},groups:{...composeKeys("organizations/groups")},groupCards:{...composeKeys("organizations/groupsCards")},groupsCardMembershipStatuses:{...composeKeys("organizations/groups+cardMembershipStatuses")},products:{...composeKeys("organizations/products")},pendingUsers:{...composeKeys("organizations/pendingUsers")},archivedUsers:{...composeKeys("organizations/archivedUsers")},hrSettings:{...composeKeys("organizations/hrSettings")},userLinqProducts:{...composeKeys("organizations/userLinqProducts")},users:{...composeKeys("organizations/users")},userOrganizations:{...composeKeys("organizations/userOrganizations")},userTeams:{...composeKeys("organizations/userTeams")},userCards:{...composeKeys("organizations/userCards")},userProducts:{...composeKeys("organizations/userProducts")},userCardPermissions:{...composeKeys("organizations/userCardPermissions")},searchPageTemplates:{...composeKeys("organizations/searchPageTemplates")},onboardingStatus:{...composeKeys("organizations/onboardingStatus")},internalMetadatum:{...composeKeys("organizations/internalMetadatum")},invitationMetric:{...composeKeys("organizations/invitationMetric")},contactsMetric:{...composeKeys("organizations/contactsMetric")}},organizationInvitesKeys={...composeKeys("organizationInvites")},phoneAutomationKeys={...composeKeys("phoneAutomation"),triggers:composeKeys("phoneAutomation/triggers")},integrationConnectionSettingsKeys={...composeKeys("integrationConnectionSettings"),triggers:composeKeys("integrationConnectionSettings")},referrerSalespersonKeys={...composeKeys("referrerSalesperson")},reminderKeys={...composeKeys("reminder")},savedContactKeys={...composeKeys("savedContact")},tagsKeys={...composeKeys("tags")},shortcodeMessageSendsKeys={...composeKeys("shortcodeMessageSends")},tasksKeys={...composeKeys("tasks"),taskables:{...composeKeys("tasks/taskables")}};({...composeKeys("jwt")});const teamsKeys={...composeKeys("teams"),cards:{...composeKeys("teams/cards")},users:{...composeKeys("teams/users")},userTeams:{...composeKeys("teams/userTeams")},tileGroups:{...composeKeys("team/tileGroups")},workflows:{...composeKeys("teams/workflows")},groups:{...composeKeys("teams/groups")},groupsCardMembershipStatuses:{...composeKeys("teams/groups+cardMembershipStatuses")},products:{...composeKeys("teams/products")}};({...composeKeys("tileGroupOverrideValueRequest")});const userContactActivityKeys={...composeKeys("userContactActivity")},userContactIntegrationResultsKeys={...composeKeys("userContactIntegrationResults")},integrationResultsKeys={...composeKeys("IntegrationResults")};({...composeKeys("userContactConversations")});const userContactsKeys={...composeKeys("userContacts")},userContentBlocksKeys={...composeKeys("userContentBlocks")},userOrganizationsKeys={...composeKeys("userOrganizations"),userTeams:{...composeKeys("userOrganizations/userTeams")}},userTeamsKeys={...composeKeys("userTeams")},virtualBackgroundsKeys={...composeKeys("virtualBackgrounds")},workflowActionsKeys={...composeKeys("workflowActions")},workflowCards={...composeKeys("workflowCards")},workflowFiltersKeys={...composeKeys("workflowFilters")},workflowFilterTemplatesKeys={...composeKeys("workflowFilterTemplates")},workflowActionTemplatesKeys={...composeKeys("workflowActionTemplates")},workflowIntegrationConnectionsKeys={...composeKeys("workflowIntegrationConnectionsKeys")},workflowsKeys={...composeKeys("workflows")},workflowTags={...composeKeys("workflowTags")},workflowTeams={...composeKeys("workflowTeams")},workflowTriggersKeys={...composeKeys("workflowTriggers")},callKeys={...composeKeys("calls")},cloudinaryPhotoKeys={...composeKeys("cloudinaryPhotos")},callsKeys={...composeKeys("calls")},conversationsKeys={...composeKeys("conversations")},userActivitiesKeys={...composeKeys("conversations")};({...composeKeys("notificationKeys")});const stripeAccountDetailsKeys={...composeKeys("stripAccountDetails")},organizationSettingsKeys={...composeKeys("organizationSettings")},teamSettingsKeys={...composeKeys("teamSettings")};({...composeKeys("hubspotContacts")});const workosConnectionsKeys={...composeKeys("workosConnections")},userNotificationSettingKeys={...composeKeys("userNotificationSettings")},userSettingsKeys={...composeKeys("userSettings")},tileGroupsKeys={...composeKeys("tileGroups")},twilioIdentitiesKeys={...composeKeys("twilioIdentities")},cardsTileGroups={...composeKeys("cardsTileGroups")},onboardingTasksKeys={...composeKeys("onboardingTasks")},userKeys={...composeKeys("user")},userLinqProductsKeys={...composeKeys("userLinqProducts")},linqProductsKeys={...composeKeys("linqProducts")},orgPromptTemplateVariablesKeys={...composeKeys("orgPromptTemplateVariables")},orgPromptEmailTemplateKeys={...composeKeys("orgPromptEmailTemplate")},orgPromptSmsTemplateKeys={...composeKeys("orgPromptSmsTemplate")};({...composeKeys("cardsAvailableTileTypes")});const cardAliasAvailabilityQueryKeys={...composeKeys("cardAliasAvailabilityQuery")},cardPromptEmailTemplateKeys={...composeKeys("userPromptEmailTemplate")},cardPromptSmsTemplateKeys={...composeKeys("userPromptSmsTemplate")},snippetsKeys={...composeKeys("snippets")};({...composeKeys("splitTests")});const orgSnippetsKeys={...composeKeys("orgSnippets")};({...composeKeys("userEnrich")});const userContactEnrichmentKeys={...composeKeys("userContactEnrich")},userBusinessCardScansKeys={...composeKeys("userBusinessCardScans")},exchangeContactsKeys={...composeKeys("exchangeContacts")},zakekeApiKeys={...composeKeys("zakekeApi")},zapierApiKeys={...composeKeys("zapierApi")},organizationSubscriptionInvoices={...composeKeys("organizationSubscriptionInvoices")},pageTemplatesKeys={...composeKeys("pageTemplates")},phoneNumbersKeys={...composeKeys("phoneNumbers")},voicemailGreetingsKeys={...composeKeys("voicemailGreetings")};({...composeKeys("cdvPurchases")});const stripeCheckoutSessionsKeys={...composeKeys("stripeCheckoutSessions")},userSubscriptionInvoicesKeys={...composeKeys("userSubscriptionInvoices")},appClipPushNotificationTemplatesKeys={...composeKeys("appClipPushNotificationTemplates")},emailSignatureTemplatesKeys={...composeKeys("emailSignatureTemplates")},emailsKeys={...composeKeys("emails"),integrations:{...composeKeys("emails/integrations")}},emailThreadsKeys={...composeKeys("emailThreads")},emailAccountsKeys={...composeKeys("emailAccounts"),emailAccountEmailSignatures:{...composeKeys("emailAccounts/emailSignatures")}},googleUserMappingsKey={...composeKeys("googleMappedUsers")},contactFileDataKeys={...composeKeys("contactFileData")},popupStateKeys={...composeKeys("popupState")},useRemoveAllMembers=o=>{const s=useQueryClient(),a=useApiRequest();return useMutation(async j=>(await a({url:`${BASE_API_URL}/api/v3/organizations/${j}/user_organizations/remove_all`,apiMethod:API_METHODS.POST})).data,{onSettled:()=>{s.invalidateQueries(organizationsKeys.users.index(o)).catch(console.error),s.invalidateQueries(organizationsKeys.userOrganizations.index(o)).catch(console.error)}})};var OrganizationSubscriptionStatus=(o=>(o.Active="active",o.PastDue="past_due",o.Canceled="canceled",o.Unpaid="unpaid",o.Trialing="trialing",o.TrialExpired="trial_expired",o.Expired="expired",o.Paused="paused",o))(OrganizationSubscriptionStatus||{});const lapsedSubscriptionStatuses=["unpaid","canceled","expired"],showNewBottomSheet=o=>({type:NEW_BOTTOM_SHEET_ACTIONS.SHOW_NEW_BOTTOM_SHEET,payload:o}),updateNewBottomSheet=o=>({type:NEW_BOTTOM_SHEET_ACTIONS.UPDATE_NEW_BOTTOM_SHEET,payload:o}),closeNewBottomSheet=()=>({type:NEW_BOTTOM_SHEET_ACTIONS.CLOSE_NEW_BOTTOM_SHEET}),LftTrialUpgradeBottomSheet=reactExports.lazy(()=>__vitePreload(()=>import("./lft-trial-upgrade-bottom-sheet-1jAXqAOs.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]))),TrialExpiredSubscriptionMessage=({onDismiss:o,orgId:s,orgSubscription:a,isMobile:$=!1})=>{const j=useDispatch(),_e=useHistory(),et=window.location.href.includes("/admin"),tt=useRemoveAllMembers(s);reactExports.useEffect(()=>{a.subscription_status===OrganizationSubscriptionStatus.Active&&j(closeAlertModal())},[j,a]);const nt=()=>{const ot="Our Trial of Linq One Ended",lt=encodeURIComponent(`Hello Team Success,

    I am interested in continuing to use Linq now that my free trial has ended. Please guide me through the next steps.

    Thank you.`),ct=encodeURIComponent(ot);window.open(`mailto:${TEAM_SUCCESS_EMAIL}?&subject=${ct}&body=${lt}`),j(track("clicked contact team success button",{subscription_status:"trial_expired"}))},it=()=>{j(track("clicked downgrade on LFT trial expired modal")),j(showAlertModal({header:"Are you sure you want to downgrade the Linq One trial?",message:"This action cannot be undone and will result in the removal of certain premium features from your account",confirmButtonType:"warning",panelIcon:warningOutline,confirmButtonIcon:null,buttonText:"Downgrade",confirmButtonPrefixIcon:trashOutline,onConfirm:rt,onDismiss:()=>{j(track("clicked cancel on LFT trial expired modal")),setTimeout(()=>{j(showAlertModal({wrappedContent:jsxRuntimeExports.jsx(OrganizationSubscriptionMessageModal,{subscription:a,orgId:s}),disableBackdropDismiss:!0}))},300)}}))},rt=()=>{j(track("clicked confirm to downgrade on LFT trial expired modal")),tt.mutate(s,{onSuccess:()=>{j(closeAlertModal()),j(setToast({toastMessage:"Linq One trial downgraded successfully"})),et?window.location.href=`${WEB_APP_URL}${PAGE_ROUTES.dashboard}`:_e.push(PAGE_ROUTES.dashboard)},onError:ot=>{j(showErrorMessageAlertModal({actionItem:"downgrade subscription and remove all members from your organization.",message:ot.message,onDismiss:()=>{setTimeout(()=>{j(showAlertModal({wrappedContent:jsxRuntimeExports.jsx(OrganizationSubscriptionMessageModal,{subscription:a,orgId:s}),disableBackdropDismiss:!0}))},300)}}))}})},st=()=>{j(track("clicked upgrade on LFT trial expired modal")),j(closeAlertModal()),et?_e.push(`/admin/${s}/pricing`):$?(j(track("showed LFT trial upgrade bottom sheet")),j(showNewBottomSheet({content:jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(LoadingIndicator,{}),children:jsxRuntimeExports.jsx(LftTrialUpgradeBottomSheet,{orgId:s,orgSubscription:a})})}))):window.location.href=`${WEB_APP_URL}/admin/${s}/pricing`};return jsxRuntimeExports.jsxs(AlertModalWrapper,{panelIcon:timerOutline,panelIconColor:"primary-100",onDismiss:o,hideButtons:!0,children:[jsxRuntimeExports.jsxs("div",{className:clsx("flex flex-col","p-8","gap-4"),children:[jsxRuntimeExports.jsx("div",{className:"text-header-3",children:"Linq One Trial Ended"}),jsxRuntimeExports.jsxs("div",{className:"text-label-light",children:["We hope you enjoyed your free 14-day trial of Linq One. To continue using all our best features, please upgrade your account. If you have questions about upgrading, please"," ",jsxRuntimeExports.jsx("span",{className:clsx("cursor-pointed","underline","text-primary"),onClick:nt,children:"contact team success."})]})]}),jsxRuntimeExports.jsx("div",{className:clsx("border-t border-gray-950 pt-4","pb-8","px-4"),children:jsxRuntimeExports.jsxs("div",{className:clsx("w-full","flex","flex-row","gap-4"),children:[jsxRuntimeExports.jsx(CancelButton,{className:"w-1/2",onClick:it,children:"Downgrade"}),jsxRuntimeExports.jsx(PrimaryButton,{className:"w-1/2",onClick:st,children:"Upgrade"})]})})]})},TrialExpiredSubscriptionMessageForOrgMembers=()=>jsxRuntimeExports.jsxs("div",{className:clsx("flex flex-col","gap-4","mb-4"),children:[jsxRuntimeExports.jsx("div",{className:"text-header-3",children:"Linq One Trial Ended"}),jsxRuntimeExports.jsx("div",{className:"text-body-light",children:"Your organization’s account is on hold until an admin chooses how to proceed."})]}),useHandledMutation=(o,{actionDescription:s,errorLogMessage:a,successMessage:$},j={})=>{const _e=useDispatch();return useMutation(o,{...j,onError:(et,...tt)=>{var nt;a&&(_e(showErrorMessageAlertModal({actionItem:s,message:`${et.message}`,extraAlertIndex:2,onCancel:()=>{_e(closeExtraAlertModal(1))}})),_e(sendErrorLog({errorMessage:a,errorObject:et}))),(nt=j.onError)==null||nt.call(j,et,...tt)},onSuccess:(...et)=>{var tt;$&&_e(setToast({toastMessage:$})),(tt=j.onSuccess)==null||tt.call(j,...et)}})},useGetStripeBillingSessionUrl=o=>{const s=useApiRequest(),a=async($,j,_e,et)=>(await s({url:`${BASE_API_URL}/api/v1/stripe/billing_portal_session`,apiMethod:API_METHODS.POST,data:{return_url:$,is_org_billing_session:j,...o&&{org_id:o},...et&&{flow_type:et},..._e&&{subscription_id:_e}}})).billing_portal_session_url;return useHandledMutation(({returnUrl:$,isOrgBillingSession:j,type:_e,subscriptionId:et})=>a($,j,et,_e),{errorLogMessage:"Failed to get stripe billing url.",actionDescription:"get stripe billing url."})},UpdatePaymentInfoButton=({orgId:o})=>{const s=useDispatch(),{mutate:a}=useGetStripeBillingSessionUrl(o),$=()=>{s(track("clicked update payment info button on unpaid modal")),a({returnUrl:`${WEB_APP_URL}/organizations/${o}/billing`,isOrgBillingSession:!0},{onSuccess:async j=>{await Browser.open({url:j})}})};return jsxRuntimeExports.jsx(PrimaryButton,{className:"w-full",onClick:$,children:"Update your payment info"})},UnpaidSubscriptionMessage=({orgId:o})=>{const s=useDispatch(),a=()=>{s(track("clicked contact team success button",{subscription_status:"unpaid"}));const $=encodeURIComponent(`Hello Team Success, 

`),j=encodeURIComponent("Recent Payment Issue with My Linq Account");window.open(`mailto:${TEAM_SUCCESS_EMAIL}?&subject=${j}&body=${$}`)};return jsxRuntimeExports.jsxs("div",{className:clsx("flex flex-col","gap-4","mb-4"),children:[jsxRuntimeExports.jsx("div",{className:"text-header-3",children:"Payment Update Needed: Account Paused."}),jsxRuntimeExports.jsxs("div",{className:"text-body-light",children:["We encountered an issue with your recent payment, leading to a temporary pause on your account. Please update your payment details to resume regular use. If you believe this is in error, please don't hesitate to"," ",jsxRuntimeExports.jsx("span",{className:"underline cursor-pointer text-primary",onClick:a,children:"contact Team Success."}),"We're committed to ensuring a seamless and delightful Linq experience for you!"]}),jsxRuntimeExports.jsx(UpdatePaymentInfoButton,{orgId:o})]})};function goToUrl(o){window.location.href=o}const OrganizationSubscriptionMessageModal=({subscription:o,orgId:s,isMobile:a=!1})=>{const $=o==null?void 0:o.subscription_status,j=useDispatch(),_e=useHistory(),et=useIsAdmin(),tt=window.location.href.includes("/admin"),nt=()=>{j(closeAlertModal()),tt?goToUrl(`${WEB_APP_URL}${PAGE_ROUTES.dashboard}`):_e.push(PAGE_ROUTES.dashboard)},it=$===OrganizationSubscriptionStatus.Unpaid?jsxRuntimeExports.jsx(UnpaidSubscriptionMessage,{orgId:o.organization_id}):$===OrganizationSubscriptionStatus.Canceled?jsxRuntimeExports.jsx(CancelledSubscriptionMessage,{}):jsxRuntimeExports.jsx(TrialExpiredSubscriptionMessageForOrgMembers,{}),rt=$===OrganizationSubscriptionStatus.Trialing||$!==OrganizationSubscriptionStatus.Unpaid&&$!==OrganizationSubscriptionStatus.Canceled;return rt&&et?jsxRuntimeExports.jsx(TrialExpiredSubscriptionMessage,{onDismiss:nt,orgId:s,orgSubscription:o,isMobile:a}):jsxRuntimeExports.jsx(AlertModalWrapper,{panelIcon:rt?timerOutline:warningOutline,panelIconColor:rt?"primary-100":"nonary",hideButtons:!0,children:jsxRuntimeExports.jsxs("div",{className:clsx("flex flex-col","p-8"),children:[it,!rt&&jsxRuntimeExports.jsx(ClearButton,{size:"large",color:"gray-500",onClick:nt,children:"Dismiss"})]})})};var Layout=(o=>(o.DESKTOP="DESKTOP_LAYOUT",o.TABLET="TABLET_LAYOUT",o.MOBILE="MOBILE_LAYOUT",o))(Layout||{});const getWidth=()=>window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;function useCurrentWidth(){const[o,s]=reactExports.useState(getWidth());return reactExports.useEffect(()=>{let a=null;const $=()=>{clearTimeout(a),a=setTimeout(()=>s(getWidth()),150)};return window.addEventListener("resize",$),()=>{window.removeEventListener("resize",$)}},[]),o}const useLayout=()=>{const o=useCurrentWidth();return o<TABLET_LAYOUT_WIDTH?Layout.MOBILE:o<DESKTOP_LAYOUT_WIDTH?Layout.TABLET:Layout.DESKTOP},Preferences=registerPlugin("Preferences",{web:()=>__vitePreload(()=>import("./web-DwJIEQOZ.js"),[]).then(o=>new o.PreferencesWeb)}),ACKNOWLEDGED="acknowledged",useNotificationCallout=o=>{const[s,a]=reactExports.useState(!0),[$,j]=reactExports.useState("");Preferences.migrate().catch(console.error),reactExports.useEffect(()=>{a(!0),Preferences.get({key:o}).then(({value:et})=>{j(et||""),a(!1)}).catch(console.error)},[o]);const _e=reactExports.useCallback(()=>{a(!0),Preferences.set({key:o,value:ACKNOWLEDGED}).then(()=>{j(ACKNOWLEDGED),a(!1)}).catch(console.error)},[o]);return{notificationStatus:$,acknowledgeNotification:_e,loading:s}},LINQ_PRO_STRIPE_PRODUCT_ID="prod_GtgkdE08UyBxU0",LINQ_PRO_PLUS_STRIPE_PRODUCT_ID="prod_PTgiGlOkO4L7Zd",LINQ_STAGING_PRO_PLUS_STRIPE_PRODUCT_ID="prod_PTHLXN7KqfimiP",LINQ_PRO_APPSTLE_PRODUCT_ID="appstle:linq_pro",LINQ_PRO_PLUS_APPSTLE_PRODUCT_ID="appstle:linq_pro_plus",PRO_PLUS_IDENTIFIERS=[LINQ_PRO_PLUS_APPSTLE_PRODUCT_ID,LINQ_PRO_PLUS_STRIPE_PRODUCT_ID,LINQ_STAGING_PRO_PLUS_STRIPE_PRODUCT_ID,"apple:linq_pro_plus_annual","apple:linq_pro_plus_annual_30_day_trial","apple:linq_pro_plus_annual_14_day_trial","apple:linq_pro_plus_monthly"],PRO_IDENTIFIERS=[LINQ_PRO_STRIPE_PRODUCT_ID,LINQ_PRO_APPSTLE_PRODUCT_ID,"apple:linq_pro_annual","apple:linq_pro_monthly","apple:linq_pro_annual_no_trial","apple:linq_pro_monthly_no_trial","apple:linq_pro_monthly_no_trial_6.99","apple:linq_pro_annual_no_trial_72.00","apple:linq_pro_annual_no_trial_69.00"],useOrganizationSubscriptionInfo=o=>{var Rt;const s=useSelectCurrentUser(),a=useIsAdmin(s),$=useSelectCurrentUserCards(),j=$==null?void 0:$.find(Ft=>Ft.is_primary),_e=o||(j==null?void 0:j.organization_id),et=s==null?void 0:s.organization,tt=a&&et||void 0,nt={organization_id:_e,subscription_id:s==null?void 0:s.subscription_id,subscription_kind:s==null?void 0:s.subscription_kind,subscription_status:s==null?void 0:s.subscription_status,product_identifier:s==null?void 0:s.product_identifier,seat_count:1,created_at:(s==null?void 0:s.subscription_created_at)||"",updated_at:s==null?void 0:s.subscription_updated_at,billing_interval:s==null?void 0:s.subscription_interval,collection_resumes_at:s==null?void 0:s.subscription_resumes_at,is_paused_subscription:s==null?void 0:s.is_paused_subscription,id:s==null?void 0:s.user_subscription_id,appstle_subscription_id:s==null?void 0:s.appstle_subscription_id},it=et==null?void 0:et.organization_subscription,st=!it?nt:it,ot=(st==null?void 0:st.subscription_kind)==="shopify",at=(st==null?void 0:st.subscription_kind)==="apple",lt=!ot&&!at,ct=(st==null?void 0:st.billing_interval)==="monthly"||(st==null?void 0:st.billing_interval)==="month",ht=!ct,dt=((Rt=st==null?void 0:st.subscription_status)==null?void 0:Rt.toLowerCase())===OrganizationSubscriptionStatus.Expired?OrganizationSubscriptionStatus.Canceled:st!=null&&st.is_paused_subscription?OrganizationSubscriptionStatus.Paused:st==null?void 0:st.subscription_status,ut=(st==null?void 0:st.seat_count)||1,pt=st==null?void 0:st.subscription_id,ft=!!(st!=null&&st.product_identifier&&PRO_IDENTIFIERS.includes(st.product_identifier)),mt=!!(st!=null&&st.product_identifier&&PRO_PLUS_IDENTIFIERS.includes(st.product_identifier)),bt=(st==null?void 0:st.is_paused_subscription)||dt&&lapsedSubscriptionStatuses.includes(dt),St=!!dt&&bt;return{isStripeSub:lt,isAppstleSub:ot,isAppleSub:at,isMonthlySub:ct,isYearlySub:ht,subscriptionStatus:dt,seatCount:ut,orgId:_e,orgSubscriptionId:pt,isProSubscription:ft,subscription:st,isSuspendedSubscription:St,organization:et,isLinqOne:!!et&&!St,currentUser:s,adminOrganization:tt,isProPlusSubscription:mt}};var Platform=(o=>(o.WEB="web",o.IOS="ios",o.ANDROID="android",o.NULL="null",o))(Platform||{});function usePlatform(){const o=useQuery("platform",getPlatform);return{...o,isIOS:o.data===Platform.IOS,isAndroid:o.data===Platform.ANDROID,isWeb:o.data===Platform.WEB,deviceString:o.data}}const requestData$7=o=>({url:`${BASE_API_URL}/api/v3/organizations/${o}/users`,apiMethod:API_METHODS.GET}),useOrganizationUsers=({organizationId:o})=>{const s=useApiRequest(),a=async()=>(await s(requestData$7(o))).data.users;return useQuery(organizationsKeys.users.index(o),a,{enabled:!!o})},useOrganization=o=>{const s=useApiRequest(),a=async()=>(await s({url:`${BASE_API_URL}/api/v2/organizations/${o}`,apiMethod:API_METHODS.GET})).data.organization;return useQuery(organizationsKeys.detail(o),a,{enabled:!!o})},isTrialEnded=o=>{if(!o.trial_end||o.subscription_status===OrganizationSubscriptionStatus.Active)return!1;const s=dayjs(o.trial_end).valueOf();return Math.floor((s-Date.now())/(1e3*60*60*24))<0};function useShowOrganizationSubscriptionMessageModal(o){const s=window.location.pathname,a=s.includes("pricing")||s.includes("stripe_checkout_link")||s.includes("send_to_stripe_checkout"),{data:$}=useOrganization(o),{data:j}=useOrganizationUsers({organizationId:o}),_e=$==null?void 0:$.organization_subscription,et=$==null?void 0:$.organization_settings,[tt,nt]=reactExports.useState(!1),[it,rt]=reactExports.useState();return reactExports.useEffect(()=>{if(!_e||!et||!o)return;const st=isTrialEnded(_e),ot=lapsedSubscriptionStatuses.includes(_e.subscription_status)||st,at=st?"trial_expired":_e.subscription_status;nt(ot&&!et.lft_forever_enabled&&!a&&!!(j&&(j==null?void 0:j.length)>1)),rt(at)},[a,_e,o,et,j]),{showModal:tt,orgSubscriptionStatus:it,orgSubscription:_e}}const CLICKED_SIGN_UP="Clicked Sign Up",CLICKED_SIGN_IN="Clicked Sign In",ACCOUNT_CREATED="new user created",CLICKED_CAROUSEL_ARROW="clicked carousel arrow",CLICKED_CAROUSEL_CTA="clicked carousel cta",ONBOARDING_STEP_COMPLETED="Onboarding Step Completed",ONBOARDING_STEP_SKIPPED="Onboarding Step Skipped",ONBOARDING_STEP_ADDED_PROFILE_PHOTO="added profile photo",ONBOARDING_STEP_ADDED_ABOUT_INFO="added about info",ONBOARDING_STEP_ADDED_ORGANIZATION_INFO="added organization info",ONBOARDING_STEP_INVITED_TEAM_MEMBERS="invited team members",TRACK_VIEW_PAGED="Page Viewed",SAVE_CONTACT_CLICKED="click save contact",TILE_CREATED="tile created",AMBASSADOR_TILE_TYPE="Ambassador",USER_PROVISIONED="HR User Provisioned",OutsideRedirect=({to:o})=>(reactExports.useEffect(()=>{async function s(){await getPlatform()==="web"?window.location=o:Browser.open({url:o})}s()},[]),jsxRuntimeExports.jsx("div",{})),SkeletonText=({"data-test":o,repeat:s=1,className:a,style:$,height:j="100%",width:_e="100%",...et})=>{const tt=reactExports.useCallback(nt=>jsxRuntimeExports.jsx(IonSkeletonText,{animated:!0,className:clsx("m-0",a),style:{height:j,width:_e,...$},...et},nt),[a,et,$,j,_e]);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:arrayOfLength(s).map((nt,it)=>tt(it))})},ConversationPageSkeletonMessage=({isFirst:o,direction:s})=>{const a=s==="inbound",$=s==="outbound";return jsxRuntimeExports.jsxs("div",{className:clsx("flex","flex-col","gap-1",a?"items-start":"items-end","px-4"),children:[jsxRuntimeExports.jsxs("div",{className:clsx("flex","gap-2"),children:[a&&jsxRuntimeExports.jsx(SkeletonText,{height:32,width:32,className:clsx("rounded-2xl",!o&&"invisible")}),jsxRuntimeExports.jsx(SkeletonText,{width:230,height:37,className:clsx("rounded-2xl",o&&{"rounded-bl-none":a,"rounded-br-none":$})})]}),o&&jsxRuntimeExports.jsx(SkeletonText,{height:12,width:48,className:"rounded-none"})]})},NavigateBackButton=({path:o,goBack:s=!1})=>{const a=useHistory(),$=()=>{if(s)return a.goBack();a.push(o)};return jsxRuntimeExports.jsx(IonIcon,{onClick:$,icon:chevronBackOutline,className:clsx("cursor-pointer","text-gray-500 w-6 h-6")})},CLASSNAMES={safeAreaTop:"ion-safe-area-top",safeAreaBottom:"ion-safe-area-bottom",animated:"transition-all duration-220 ease-in-out"},messages=[{direction:"outbound",isFirstInSet:!0,isNewDay:!1},{direction:"inbound",isFirstInSet:!0,isNewDay:!0},{direction:"inbound",isFirstInSet:!1,isNewDay:!1},{direction:"inbound",isFirstInSet:!0,isNewDay:!0},{direction:"inbound",isFirstInSet:!0,isNewDay:!0},{direction:"inbound",isFirstInSet:!0,isNewDay:!0},{direction:"outbound",isFirstInSet:!0,isNewDay:!0},{direction:"inbound",isFirstInSet:!0,isNewDay:!0},{direction:"outbound",isFirstInSet:!0,isNewDay:!1},{direction:"outbound",isFirstInSet:!1,isNewDay:!1},{direction:"outbound",isFirstInSet:!0,isNewDay:!0},{direction:"inbound",isFirstInSet:!0,isNewDay:!1}],ConversationPageSkeleton=()=>{const o=window.location.href.includes("/admin");return jsxRuntimeExports.jsxs("div",{className:clsx("flex","flex-col","max-h-full",CLASSNAMES.safeAreaTop),children:[jsxRuntimeExports.jsxs("div",{className:clsx("flex","w-full","items-center","justify-between","px-4"),children:[jsxRuntimeExports.jsx("div",{className:clsx(o&&"invisible"),children:jsxRuntimeExports.jsx(NavigateBackButton,{path:PAGE_ROUTES.conversations})}),jsxRuntimeExports.jsxs("div",{className:clsx("flex","flex-col","flex-grow","justify-center","gap-2","items-center","py-2"),children:[jsxRuntimeExports.jsx(SkeletonText,{width:144,height:22,className:"rounded-none"}),jsxRuntimeExports.jsx(SkeletonText,{width:84,height:16,className:"rounded-none"})]}),jsxRuntimeExports.jsx("div",{className:clsx("flex","justify-end"),children:jsxRuntimeExports.jsx(SkeletonText,{height:40,width:40,className:"rounded-full"})})]}),jsxRuntimeExports.jsx("div",{className:clsx("flex","flex-col-reverse","gap-2","overflow-hidden","pb-2"),children:messages.map(({direction:s,isFirstInSet:a,isNewDay:$},j)=>{const _e=a;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[$&&jsxRuntimeExports.jsx("div",{className:clsx("w-full","flex","justify-center","my-2"),children:jsxRuntimeExports.jsx(SkeletonText,{height:16,width:64,className:"rounded-none"})}),jsxRuntimeExports.jsx(ConversationPageSkeletonMessage,{isFirst:_e,direction:s})]},j)})})]})},useLayoutV2=()=>{const o=useCurrentWidth(),s=o<TABLET_LAYOUT_WIDTH,a=o<DESKTOP_LAYOUT_WIDTH&&!s;return{isMobile:s,isTablet:a,isDesktop:!s&&!a}},useLinkedinOAuthCallback=()=>{const o=useApiRequest();return useMutation(async({token:a,redirectUri:$})=>(a||console.error("Token is required to fetch Google OAuth data"),(await o({url:`${BASE_API_URL}/api/v4/auth/linkedin_callback`,apiMethod:API_METHODS.POST,data:{token:a,redirect_uri:$}})).data),{onError:a=>{console.error("Error sending token to backend:",a)}})},useLinkedinRedirectUri=()=>{const{isWeb:o,isLoading:s}=usePlatform();return reactExports.useMemo(()=>s?"":o?joinUrlSegments(ENV.WEB_APP_URL,PAGE_ROUTES.auth.oauth.linkedinWebCallback):joinUrlSegments("https://linqapp.com",PAGE_ROUTES.auth.oauth.linkedinCallback),[o,s])},useQueryParamsV2=()=>{const o=useLocation(),[s,a]=reactExports.useState({});return reactExports.useEffect(()=>{const $=new URLSearchParams(o.search),j=Array.from($.entries()).reduce((_e,[et,tt])=>({..._e,[et]:tt}),{});a(j)},[o.search]),s},useShowErrorModal=()=>{const o=useDispatch();return reactExports.useCallback(({title:a,message:$})=>{o(showErrorMessageAlertModal({header:a,message:$}))},[o])};var lib$2={},uaParser_min={exports:{}};(function(o,s){(function(a,$){var j="1.0.37",_e="",et="?",tt="function",nt="undefined",it="object",rt="string",st="major",ot="model",at="name",lt="type",ct="vendor",ht="version",dt="architecture",ut="console",pt="mobile",ft="tablet",mt="smarttv",gt="wearable",bt="embedded",St=500,Nt="Amazon",Rt="Apple",Ft="ASUS",Ot="BlackBerry",Ct="Browser",yt="Chrome",Pt="Edge",wt="Firefox",Lt="Google",vt="Huawei",xt="LG",Ut="Microsoft",Et="Motorola",Dt="Opera",Bt="Samsung",Wt="Sharp",Zt="Sony",sn="Xiaomi",dn="Zebra",vn="Facebook",kn="Chromium OS",An="Mac OS",$n=function(mn,Mn){var Mt={};for(var _t in mn)Mn[_t]&&Mn[_t].length%2===0?Mt[_t]=Mn[_t].concat(mn[_t]):Mt[_t]=mn[_t];return Mt},On=function(mn){for(var Mn={},Mt=0;Mt<mn.length;Mt++)Mn[mn[Mt].toUpperCase()]=mn[Mt];return Mn},Cn=function(mn,Mn){return typeof mn===rt?rn(Mn).indexOf(rn(mn))!==-1:!1},rn=function(mn){return mn.toLowerCase()},Fn=function(mn){return typeof mn===rt?mn.replace(/[^\d\.]/g,_e).split(".")[0]:$},Ln=function(mn,Mn){if(typeof mn===rt)return mn=mn.replace(/^\s\s*/,_e),typeof Mn===nt?mn:mn.substring(0,St)},Rn=function(mn,Mn){for(var Mt=0,_t,kt,Vt,qt,Jt,ln;Mt<Mn.length&&!Jt;){var Un=Mn[Mt],Yn=Mn[Mt+1];for(_t=kt=0;_t<Un.length&&!Jt&&Un[_t];)if(Jt=Un[_t++].exec(mn),Jt)for(Vt=0;Vt<Yn.length;Vt++)ln=Jt[++kt],qt=Yn[Vt],typeof qt===it&&qt.length>0?qt.length===2?typeof qt[1]==tt?this[qt[0]]=qt[1].call(this,ln):this[qt[0]]=qt[1]:qt.length===3?typeof qt[1]===tt&&!(qt[1].exec&&qt[1].test)?this[qt[0]]=ln?qt[1].call(this,ln,qt[2]):$:this[qt[0]]=ln?ln.replace(qt[1],qt[2]):$:qt.length===4&&(this[qt[0]]=ln?qt[3].call(this,ln.replace(qt[1],qt[2])):$):this[qt]=ln||$;Mt+=2}},Gn=function(mn,Mn){for(var Mt in Mn)if(typeof Mn[Mt]===it&&Mn[Mt].length>0){for(var _t=0;_t<Mn[Mt].length;_t++)if(Cn(Mn[Mt][_t],mn))return Mt===et?$:Mt}else if(Cn(Mn[Mt],mn))return Mt===et?$:Mt;return mn},Vn={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},qn={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Zn={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[ht,[at,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[ht,[at,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[at,ht],[/opios[\/ ]+([\w\.]+)/i],[ht,[at,Dt+" Mini"]],[/\bopr\/([\w\.]+)/i],[ht,[at,Dt]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[ht,[at,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[at,ht],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[ht,[at,"UC"+Ct]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[ht,[at,"WeChat"]],[/konqueror\/([\w\.]+)/i],[ht,[at,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[ht,[at,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[ht,[at,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[ht,[at,"Smart Lenovo "+Ct]],[/(avast|avg)\/([\w\.]+)/i],[[at,/(.+)/,"$1 Secure "+Ct],ht],[/\bfocus\/([\w\.]+)/i],[ht,[at,wt+" Focus"]],[/\bopt\/([\w\.]+)/i],[ht,[at,Dt+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[ht,[at,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[ht,[at,"Dolphin"]],[/coast\/([\w\.]+)/i],[ht,[at,Dt+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[ht,[at,"MIUI "+Ct]],[/fxios\/([-\w\.]+)/i],[ht,[at,wt]],[/\bqihu|(qi?ho?o?|360)browser/i],[[at,"360 "+Ct]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[at,/(.+)/,"$1 "+Ct],ht],[/samsungbrowser\/([\w\.]+)/i],[ht,[at,Bt+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[at,/_/g," "],ht],[/metasr[\/ ]?([\d\.]+)/i],[ht,[at,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[at,"Sogou Mobile"],ht],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[at,ht],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[at],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[at,vn],ht],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[at,ht],[/\bgsa\/([\w\.]+) .*safari\//i],[ht,[at,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[ht,[at,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[ht,[at,yt+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[at,yt+" WebView"],ht],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[ht,[at,"Android "+Ct]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[at,ht],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[ht,[at,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[ht,at],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[at,[ht,Gn,Vn]],[/(webkit|khtml)\/([\w\.]+)/i],[at,ht],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[at,"Netscape"],ht],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[ht,[at,wt+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[at,ht],[/(cobalt)\/([\w\.]+)/i],[at,[ht,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[dt,"amd64"]],[/(ia32(?=;))/i],[[dt,rn]],[/((?:i[346]|x)86)[;\)]/i],[[dt,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[dt,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[dt,"armhf"]],[/windows (ce|mobile); ppc;/i],[[dt,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[dt,/ower/,_e,rn]],[/(sun4\w)[;\)]/i],[[dt,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[dt,rn]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[ot,[ct,Bt],[lt,ft]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[ot,[ct,Bt],[lt,pt]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[ot,[ct,Rt],[lt,pt]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[ot,[ct,Rt],[lt,ft]],[/(macintosh);/i],[ot,[ct,Rt]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[ot,[ct,Wt],[lt,pt]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[ot,[ct,vt],[lt,ft]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[ot,[ct,vt],[lt,pt]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[ot,/_/g," "],[ct,sn],[lt,pt]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[ot,/_/g," "],[ct,sn],[lt,ft]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[ot,[ct,"OPPO"],[lt,pt]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[ot,[ct,"Vivo"],[lt,pt]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[ot,[ct,"Realme"],[lt,pt]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[ot,[ct,Et],[lt,pt]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[ot,[ct,Et],[lt,ft]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[ot,[ct,xt],[lt,ft]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[ot,[ct,xt],[lt,pt]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[ot,[ct,"Lenovo"],[lt,ft]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[ot,/_/g," "],[ct,"Nokia"],[lt,pt]],[/(pixel c)\b/i],[ot,[ct,Lt],[lt,ft]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[ot,[ct,Lt],[lt,pt]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[ot,[ct,Zt],[lt,pt]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[ot,"Xperia Tablet"],[ct,Zt],[lt,ft]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[ot,[ct,"OnePlus"],[lt,pt]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[ot,[ct,Nt],[lt,ft]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[ot,/(.+)/g,"Fire Phone $1"],[ct,Nt],[lt,pt]],[/(playbook);[-\w\),; ]+(rim)/i],[ot,ct,[lt,ft]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[ot,[ct,Ot],[lt,pt]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[ot,[ct,Ft],[lt,ft]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[ot,[ct,Ft],[lt,pt]],[/(nexus 9)/i],[ot,[ct,"HTC"],[lt,ft]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[ct,[ot,/_/g," "],[lt,pt]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[ot,[ct,"Acer"],[lt,ft]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[ot,[ct,"Meizu"],[lt,pt]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[ot,[ct,"Ulefone"],[lt,pt]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[ct,ot,[lt,pt]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[ct,ot,[lt,ft]],[/(surface duo)/i],[ot,[ct,Ut],[lt,ft]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[ot,[ct,"Fairphone"],[lt,pt]],[/(u304aa)/i],[ot,[ct,"AT&T"],[lt,pt]],[/\bsie-(\w*)/i],[ot,[ct,"Siemens"],[lt,pt]],[/\b(rct\w+) b/i],[ot,[ct,"RCA"],[lt,ft]],[/\b(venue[\d ]{2,7}) b/i],[ot,[ct,"Dell"],[lt,ft]],[/\b(q(?:mv|ta)\w+) b/i],[ot,[ct,"Verizon"],[lt,ft]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[ot,[ct,"Barnes & Noble"],[lt,ft]],[/\b(tm\d{3}\w+) b/i],[ot,[ct,"NuVision"],[lt,ft]],[/\b(k88) b/i],[ot,[ct,"ZTE"],[lt,ft]],[/\b(nx\d{3}j) b/i],[ot,[ct,"ZTE"],[lt,pt]],[/\b(gen\d{3}) b.+49h/i],[ot,[ct,"Swiss"],[lt,pt]],[/\b(zur\d{3}) b/i],[ot,[ct,"Swiss"],[lt,ft]],[/\b((zeki)?tb.*\b) b/i],[ot,[ct,"Zeki"],[lt,ft]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[ct,"Dragon Touch"],ot,[lt,ft]],[/\b(ns-?\w{0,9}) b/i],[ot,[ct,"Insignia"],[lt,ft]],[/\b((nxa|next)-?\w{0,9}) b/i],[ot,[ct,"NextBook"],[lt,ft]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[ct,"Voice"],ot,[lt,pt]],[/\b(lvtel\-)?(v1[12]) b/i],[[ct,"LvTel"],ot,[lt,pt]],[/\b(ph-1) /i],[ot,[ct,"Essential"],[lt,pt]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[ot,[ct,"Envizen"],[lt,ft]],[/\b(trio[-\w\. ]+) b/i],[ot,[ct,"MachSpeed"],[lt,ft]],[/\btu_(1491) b/i],[ot,[ct,"Rotor"],[lt,ft]],[/(shield[\w ]+) b/i],[ot,[ct,"Nvidia"],[lt,ft]],[/(sprint) (\w+)/i],[ct,ot,[lt,pt]],[/(kin\.[onetw]{3})/i],[[ot,/\./g," "],[ct,Ut],[lt,pt]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[ot,[ct,dn],[lt,ft]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[ot,[ct,dn],[lt,pt]],[/smart-tv.+(samsung)/i],[ct,[lt,mt]],[/hbbtv.+maple;(\d+)/i],[[ot,/^/,"SmartTV"],[ct,Bt],[lt,mt]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[ct,xt],[lt,mt]],[/(apple) ?tv/i],[ct,[ot,Rt+" TV"],[lt,mt]],[/crkey/i],[[ot,yt+"cast"],[ct,Lt],[lt,mt]],[/droid.+aft(\w+)( bui|\))/i],[ot,[ct,Nt],[lt,mt]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[ot,[ct,Wt],[lt,mt]],[/(bravia[\w ]+)( bui|\))/i],[ot,[ct,Zt],[lt,mt]],[/(mitv-\w{5}) bui/i],[ot,[ct,sn],[lt,mt]],[/Hbbtv.*(technisat) (.*);/i],[ct,ot,[lt,mt]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[ct,Ln],[ot,Ln],[lt,mt]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[lt,mt]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[ct,ot,[lt,ut]],[/droid.+; (shield) bui/i],[ot,[ct,"Nvidia"],[lt,ut]],[/(playstation [345portablevi]+)/i],[ot,[ct,Zt],[lt,ut]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[ot,[ct,Ut],[lt,ut]],[/((pebble))app/i],[ct,ot,[lt,gt]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[ot,[ct,Rt],[lt,gt]],[/droid.+; (glass) \d/i],[ot,[ct,Lt],[lt,gt]],[/droid.+; (wt63?0{2,3})\)/i],[ot,[ct,dn],[lt,gt]],[/(quest( 2| pro)?)/i],[ot,[ct,vn],[lt,gt]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[ct,[lt,bt]],[/(aeobc)\b/i],[ot,[ct,Nt],[lt,bt]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[ot,[lt,pt]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[ot,[lt,ft]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[lt,ft]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[lt,pt]],[/(android[-\w\. ]{0,9});.+buil/i],[ot,[ct,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[ht,[at,Pt+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[ht,[at,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[at,ht],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[ht,at]],os:[[/microsoft (windows) (vista|xp)/i],[at,ht],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[at,[ht,Gn,qn]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[ht,Gn,qn],[at,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[ht,/_/g,"."],[at,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[at,An],[ht,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[ht,at],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[at,ht],[/\(bb(10);/i],[ht,[at,Ot]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[ht,[at,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[ht,[at,wt+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[ht,[at,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[ht,[at,"watchOS"]],[/crkey\/([\d\.]+)/i],[ht,[at,yt+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[at,kn],ht],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[at,ht],[/(sunos) ?([\w\.\d]*)/i],[[at,"Solaris"],ht],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[at,ht]]},jn=function(mn,Mn){if(typeof mn===it&&(Mn=mn,mn=$),!(this instanceof jn))return new jn(mn,Mn).getResult();var Mt=typeof a!==nt&&a.navigator?a.navigator:$,_t=mn||(Mt&&Mt.userAgent?Mt.userAgent:_e),kt=Mt&&Mt.userAgentData?Mt.userAgentData:$,Vt=Mn?$n(Zn,Mn):Zn,qt=Mt&&Mt.userAgent==_t;return this.getBrowser=function(){var Jt={};return Jt[at]=$,Jt[ht]=$,Rn.call(Jt,_t,Vt.browser),Jt[st]=Fn(Jt[ht]),qt&&Mt&&Mt.brave&&typeof Mt.brave.isBrave==tt&&(Jt[at]="Brave"),Jt},this.getCPU=function(){var Jt={};return Jt[dt]=$,Rn.call(Jt,_t,Vt.cpu),Jt},this.getDevice=function(){var Jt={};return Jt[ct]=$,Jt[ot]=$,Jt[lt]=$,Rn.call(Jt,_t,Vt.device),qt&&!Jt[lt]&&kt&&kt.mobile&&(Jt[lt]=pt),qt&&Jt[ot]=="Macintosh"&&Mt&&typeof Mt.standalone!==nt&&Mt.maxTouchPoints&&Mt.maxTouchPoints>2&&(Jt[ot]="iPad",Jt[lt]=ft),Jt},this.getEngine=function(){var Jt={};return Jt[at]=$,Jt[ht]=$,Rn.call(Jt,_t,Vt.engine),Jt},this.getOS=function(){var Jt={};return Jt[at]=$,Jt[ht]=$,Rn.call(Jt,_t,Vt.os),qt&&!Jt[at]&&kt&&kt.platform!="Unknown"&&(Jt[at]=kt.platform.replace(/chrome os/i,kn).replace(/macos/i,An)),Jt},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return _t},this.setUA=function(Jt){return _t=typeof Jt===rt&&Jt.length>St?Ln(Jt,St):Jt,this},this.setUA(_t),this};jn.VERSION=j,jn.BROWSER=On([at,ht,st]),jn.CPU=On([dt]),jn.DEVICE=On([ot,ct,lt,ut,pt,mt,ft,gt,bt]),jn.ENGINE=jn.OS=On([at,ht]),o.exports&&(s=o.exports=jn),s.UAParser=jn;var Xn=typeof a!==nt&&(a.jQuery||a.Zepto);if(Xn&&!Xn.ua){var dr=new jn;Xn.ua=dr.getResult(),Xn.ua.get=function(){return dr.getUA()},Xn.ua.set=function(mn){dr.setUA(mn);var Mn=dr.getResult();for(var Mt in Mn)Xn.ua[Mt]=Mn[Mt]}}})(typeof window=="object"?window:commonjsGlobal$1)})(uaParser_min,uaParser_min.exports);var uaParser_minExports=uaParser_min.exports;Object.defineProperty(lib$2,"__esModule",{value:!0});function _interopDefault(o){return o&&typeof o=="object"&&"default"in o?o.default:o}var React=reactExports,React__default=_interopDefault(React),UAParser=uaParser_minExports,ClientUAInstance=new UAParser,browser$1=ClientUAInstance.getBrowser(),cpu=ClientUAInstance.getCPU(),device=ClientUAInstance.getDevice(),engine=ClientUAInstance.getEngine(),os=ClientUAInstance.getOS(),ua=ClientUAInstance.getUA(),setUa=function(s){return ClientUAInstance.setUA(s)},parseUserAgent=function(s){if(!s){console.error("No userAgent string was provided");return}var a=new UAParser(s);return{UA:a,browser:a.getBrowser(),cpu:a.getCPU(),device:a.getDevice(),engine:a.getEngine(),os:a.getOS(),ua:a.getUA(),setUserAgent:function(j){return a.setUA(j)}}},UAHelper=Object.freeze({ClientUAInstance,browser:browser$1,cpu,device,engine,os,ua,setUa,parseUserAgent});function ownKeys$1(o,s){var a=Object.keys(o);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(o);s&&($=$.filter(function(j){return Object.getOwnPropertyDescriptor(o,j).enumerable})),a.push.apply(a,$)}return a}function _objectSpread2$1(o){for(var s=1;s<arguments.length;s++){var a=arguments[s]!=null?arguments[s]:{};s%2?ownKeys$1(Object(a),!0).forEach(function($){_defineProperty$1(o,$,a[$])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(a)):ownKeys$1(Object(a)).forEach(function($){Object.defineProperty(o,$,Object.getOwnPropertyDescriptor(a,$))})}return o}function _typeof(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(s){return typeof s}:_typeof=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof(o)}function _classCallCheck(o,s){if(!(o instanceof s))throw new TypeError("Cannot call a class as a function")}function _defineProperties(o,s){for(var a=0;a<s.length;a++){var $=s[a];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(o,$.key,$)}}function _createClass(o,s,a){return s&&_defineProperties(o.prototype,s),o}function _defineProperty$1(o,s,a){return s in o?Object.defineProperty(o,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[s]=a,o}function _extends(){return _extends=Object.assign||function(o){for(var s=1;s<arguments.length;s++){var a=arguments[s];for(var $ in a)Object.prototype.hasOwnProperty.call(a,$)&&(o[$]=a[$])}return o},_extends.apply(this,arguments)}function _inherits(o,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(s&&s.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),s&&_setPrototypeOf(o,s)}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},_getPrototypeOf(o)}function _setPrototypeOf(o,s){return _setPrototypeOf=Object.setPrototypeOf||function($,j){return $.__proto__=j,$},_setPrototypeOf(o,s)}function _objectWithoutPropertiesLoose$1(o,s){if(o==null)return{};var a={},$=Object.keys(o),j,_e;for(_e=0;_e<$.length;_e++)j=$[_e],!(s.indexOf(j)>=0)&&(a[j]=o[j]);return a}function _objectWithoutProperties$1(o,s){if(o==null)return{};var a=_objectWithoutPropertiesLoose$1(o,s),$,j;if(Object.getOwnPropertySymbols){var _e=Object.getOwnPropertySymbols(o);for(j=0;j<_e.length;j++)$=_e[j],!(s.indexOf($)>=0)&&Object.prototype.propertyIsEnumerable.call(o,$)&&(a[$]=o[$])}return a}function _assertThisInitialized(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function _possibleConstructorReturn(o,s){if(s&&(typeof s=="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(o)}function _slicedToArray$1(o,s){return _arrayWithHoles$1(o)||_iterableToArrayLimit$1(o,s)||_unsupportedIterableToArray$1(o,s)||_nonIterableRest$1()}function _arrayWithHoles$1(o){if(Array.isArray(o))return o}function _iterableToArrayLimit$1(o,s){var a=o==null?null:typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(a!=null){var $=[],j=!0,_e=!1,et,tt;try{for(a=a.call(o);!(j=(et=a.next()).done)&&($.push(et.value),!(s&&$.length===s));j=!0);}catch(nt){_e=!0,tt=nt}finally{try{!j&&a.return!=null&&a.return()}finally{if(_e)throw tt}}return $}}function _unsupportedIterableToArray$1(o,s){if(o){if(typeof o=="string")return _arrayLikeToArray$1(o,s);var a=Object.prototype.toString.call(o).slice(8,-1);if(a==="Object"&&o.constructor&&(a=o.constructor.name),a==="Map"||a==="Set")return Array.from(o);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return _arrayLikeToArray$1(o,s)}}function _arrayLikeToArray$1(o,s){(s==null||s>o.length)&&(s=o.length);for(var a=0,$=new Array(s);a<s;a++)$[a]=o[a];return $}function _nonIterableRest$1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var DeviceTypes={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},BrowserTypes={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},OsTypes={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},InitialDeviceTypes={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},checkDeviceType=function(s){switch(s){case DeviceTypes.Mobile:return{isMobile:!0};case DeviceTypes.Tablet:return{isTablet:!0};case DeviceTypes.SmartTv:return{isSmartTV:!0};case DeviceTypes.Console:return{isConsole:!0};case DeviceTypes.Wearable:return{isWearable:!0};case DeviceTypes.Browser:return{isBrowser:!0};case DeviceTypes.Embedded:return{isEmbedded:!0};default:return InitialDeviceTypes}},setUserAgent=function(s){return setUa(s)},setDefaults=function(s){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return s||a},getNavigatorInstance=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},isIOS13Check=function(s){var a=getNavigatorInstance();return a&&a.platform&&(a.platform.indexOf(s)!==-1||a.platform==="MacIntel"&&a.maxTouchPoints>1&&!window.MSStream)},browserPayload=function(s,a,$,j,_e){return{isBrowser:s,browserMajorVersion:setDefaults(a.major),browserFullVersion:setDefaults(a.version),browserName:setDefaults(a.name),engineName:setDefaults($.name),engineVersion:setDefaults($.version),osName:setDefaults(j.name),osVersion:setDefaults(j.version),userAgent:setDefaults(_e)}},mobilePayload=function(s,a,$,j){return _objectSpread2$1({},s,{vendor:setDefaults(a.vendor),model:setDefaults(a.model),os:setDefaults($.name),osVersion:setDefaults($.version),ua:setDefaults(j)})},smartTvPayload=function(s,a,$,j){return{isSmartTV:s,engineName:setDefaults(a.name),engineVersion:setDefaults(a.version),osName:setDefaults($.name),osVersion:setDefaults($.version),userAgent:setDefaults(j)}},consolePayload=function(s,a,$,j){return{isConsole:s,engineName:setDefaults(a.name),engineVersion:setDefaults(a.version),osName:setDefaults($.name),osVersion:setDefaults($.version),userAgent:setDefaults(j)}},wearablePayload=function(s,a,$,j){return{isWearable:s,engineName:setDefaults(a.name),engineVersion:setDefaults(a.version),osName:setDefaults($.name),osVersion:setDefaults($.version),userAgent:setDefaults(j)}},embeddedPayload=function(s,a,$,j,_e){return{isEmbedded:s,vendor:setDefaults(a.vendor),model:setDefaults(a.model),engineName:setDefaults($.name),engineVersion:setDefaults($.version),osName:setDefaults(j.name),osVersion:setDefaults(j.version),userAgent:setDefaults(_e)}};function deviceDetect(o){var s=o?parseUserAgent(o):UAHelper,a=s.device,$=s.browser,j=s.engine,_e=s.os,et=s.ua,tt=checkDeviceType(a.type),nt=tt.isBrowser,it=tt.isMobile,rt=tt.isTablet,st=tt.isSmartTV,ot=tt.isConsole,at=tt.isWearable,lt=tt.isEmbedded;if(nt)return browserPayload(nt,$,j,_e,et);if(st)return smartTvPayload(st,j,_e,et);if(ot)return consolePayload(ot,j,_e,et);if(it||rt)return mobilePayload(tt,a,_e,et);if(at)return wearablePayload(at,j,_e,et);if(lt)return embeddedPayload(lt,a,j,_e,et)}var isMobileType=function(s){var a=s.type;return a===DeviceTypes.Mobile},isTabletType=function(s){var a=s.type;return a===DeviceTypes.Tablet},isMobileAndTabletType=function(s){var a=s.type;return a===DeviceTypes.Mobile||a===DeviceTypes.Tablet},isSmartTVType=function(s){var a=s.type;return a===DeviceTypes.SmartTv},isBrowserType=function(s){var a=s.type;return a===DeviceTypes.Browser},isWearableType=function(s){var a=s.type;return a===DeviceTypes.Wearable},isConsoleType=function(s){var a=s.type;return a===DeviceTypes.Console},isEmbeddedType=function(s){var a=s.type;return a===DeviceTypes.Embedded},getMobileVendor=function(s){var a=s.vendor;return setDefaults(a)},getMobileModel=function(s){var a=s.model;return setDefaults(a)},getDeviceType=function(s){var a=s.type;return setDefaults(a,"browser")},isAndroidType=function(s){var a=s.name;return a===OsTypes.Android},isWindowsType=function(s){var a=s.name;return a===OsTypes.Windows},isMacOsType=function(s){var a=s.name;return a===OsTypes.MAC_OS},isWinPhoneType=function(s){var a=s.name;return a===OsTypes.WindowsPhone},isIOSType=function(s){var a=s.name;return a===OsTypes.IOS},getOsVersion=function(s){var a=s.version;return setDefaults(a)},getOsName=function(s){var a=s.name;return setDefaults(a)},isChromeType=function(s){var a=s.name;return a===BrowserTypes.Chrome},isFirefoxType=function(s){var a=s.name;return a===BrowserTypes.Firefox},isChromiumType=function(s){var a=s.name;return a===BrowserTypes.Chromium},isEdgeType=function(s){var a=s.name;return a===BrowserTypes.Edge},isYandexType=function(s){var a=s.name;return a===BrowserTypes.Yandex},isSafariType=function(s){var a=s.name;return a===BrowserTypes.Safari||a===BrowserTypes.MobileSafari},isMobileSafariType=function(s){var a=s.name;return a===BrowserTypes.MobileSafari},isOperaType=function(s){var a=s.name;return a===BrowserTypes.Opera},isIEType=function(s){var a=s.name;return a===BrowserTypes.InternetExplorer||a===BrowserTypes.Ie},isMIUIType=function(s){var a=s.name;return a===BrowserTypes.MIUI},isSamsungBrowserType=function(s){var a=s.name;return a===BrowserTypes.SamsungBrowser},getBrowserFullVersion=function(s){var a=s.version;return setDefaults(a)},getBrowserVersion=function(s){var a=s.major;return setDefaults(a)},getBrowserName=function(s){var a=s.name;return setDefaults(a)},getEngineName=function(s){var a=s.name;return setDefaults(a)},getEngineVersion=function(s){var a=s.version;return setDefaults(a)},isElectronType=function(){var s=getNavigatorInstance(),a=s&&s.userAgent&&s.userAgent.toLowerCase();return typeof a=="string"?/electron/.test(a):!1},isEdgeChromiumType=function(s){return typeof s=="string"&&s.indexOf("Edg/")!==-1},getIOS13=function(){var s=getNavigatorInstance();return s&&(/iPad|iPhone|iPod/.test(s.platform)||s.platform==="MacIntel"&&s.maxTouchPoints>1)&&!window.MSStream},getIPad13=function(){return isIOS13Check("iPad")},getIphone13=function(){return isIOS13Check("iPhone")},getIPod13=function(){return isIOS13Check("iPod")},getUseragent=function(s){return setDefaults(s)};function buildSelectorsObject(o){var s=o||UAHelper,a=s.device,$=s.browser,j=s.os,_e=s.engine,et=s.ua;return{isSmartTV:isSmartTVType(a),isConsole:isConsoleType(a),isWearable:isWearableType(a),isEmbedded:isEmbeddedType(a),isMobileSafari:isMobileSafariType($)||getIPad13(),isChromium:isChromiumType($),isMobile:isMobileAndTabletType(a)||getIPad13(),isMobileOnly:isMobileType(a),isTablet:isTabletType(a)||getIPad13(),isBrowser:isBrowserType(a),isDesktop:isBrowserType(a),isAndroid:isAndroidType(j),isWinPhone:isWinPhoneType(j),isIOS:isIOSType(j)||getIPad13(),isChrome:isChromeType($),isFirefox:isFirefoxType($),isSafari:isSafariType($),isOpera:isOperaType($),isIE:isIEType($),osVersion:getOsVersion(j),osName:getOsName(j),fullBrowserVersion:getBrowserFullVersion($),browserVersion:getBrowserVersion($),browserName:getBrowserName($),mobileVendor:getMobileVendor(a),mobileModel:getMobileModel(a),engineName:getEngineName(_e),engineVersion:getEngineVersion(_e),getUA:getUseragent(et),isEdge:isEdgeType($)||isEdgeChromiumType(et),isYandex:isYandexType($),deviceType:getDeviceType(a),isIOS13:getIOS13(),isIPad13:getIPad13(),isIPhone13:getIphone13(),isIPod13:getIPod13(),isElectron:isElectronType(),isEdgeChromium:isEdgeChromiumType(et),isLegacyEdge:isEdgeType($)&&!isEdgeChromiumType(et),isWindows:isWindowsType(j),isMacOs:isMacOsType(j),isMIUI:isMIUIType($),isSamsungBrowser:isSamsungBrowserType($)}}var isSmartTV=isSmartTVType(device),isConsole=isConsoleType(device),isWearable=isWearableType(device),isEmbedded=isEmbeddedType(device),isMobileSafari=isMobileSafariType(browser$1)||getIPad13(),isChromium$1=isChromiumType(browser$1),isMobile=isMobileAndTabletType(device)||getIPad13(),isMobileOnly=isMobileType(device),isTablet=isTabletType(device)||getIPad13(),isBrowser=isBrowserType(device),isDesktop=isBrowserType(device),isAndroid=isAndroidType(os),isWinPhone=isWinPhoneType(os),isIOS=isIOSType(os)||getIPad13(),isChrome=isChromeType(browser$1),isFirefox=isFirefoxType(browser$1),isSafari$2=isSafariType(browser$1),isOpera=isOperaType(browser$1),isIE$1=isIEType(browser$1),osVersion=getOsVersion(os),osName=getOsName(os),fullBrowserVersion=getBrowserFullVersion(browser$1),browserVersion=getBrowserVersion(browser$1),browserName=getBrowserName(browser$1),mobileVendor=getMobileVendor(device),mobileModel=getMobileModel(device),engineName=getEngineName(engine),engineVersion=getEngineVersion(engine),getUA=getUseragent(ua),isEdge=isEdgeType(browser$1)||isEdgeChromiumType(ua),isYandex=isYandexType(browser$1),deviceType=getDeviceType(device),isIOS13=getIOS13(),isIPad13=getIPad13(),isIPhone13=getIphone13(),isIPod13=getIPod13(),isElectron=isElectronType(),isEdgeChromium=isEdgeChromiumType(ua),isLegacyEdge=isEdgeType(browser$1)&&!isEdgeChromiumType(ua),isWindows=isWindowsType(os),isMacOs=isMacOsType(os),isMIUI=isMIUIType(browser$1),isSamsungBrowser=isSamsungBrowserType(browser$1),getSelectorsByUserAgent=function(s){if(!s||typeof s!="string"){console.error("No valid user agent string was provided");return}var a=parseUserAgent(s),$=a.device,j=a.browser,_e=a.os,et=a.engine,tt=a.ua;return buildSelectorsObject({device:$,browser:j,os:_e,engine:et,ua:tt})},AndroidView=function(s){var a=s.renderWithFragment,$=s.children,j=_objectWithoutProperties$1(s,["renderWithFragment","children"]);return isAndroid?a?React__default.createElement(React.Fragment,null,$):React__default.createElement("div",j,$):null},BrowserView=function(s){var a=s.renderWithFragment,$=s.children,j=_objectWithoutProperties$1(s,["renderWithFragment","children"]);return isBrowser?a?React__default.createElement(React.Fragment,null,$):React__default.createElement("div",j,$):null},IEView=function(s){var a=s.renderWithFragment,$=s.children,j=_objectWithoutProperties$1(s,["renderWithFragment","children"]);return isIE$1?a?React__default.createElement(React.Fragment,null,$):React__default.createElement("div",j,$):null},IOSView=function(s){var a=s.renderWithFragment,$=s.children,j=_objectWithoutProperties$1(s,["renderWithFragment","children"]);return isIOS?a?React__default.createElement(React.Fragment,null,$):React__default.createElement("div",j,$):null},MobileView=function(s){var a=s.renderWithFragment,$=s.children,j=_objectWithoutProperties$1(s,["renderWithFragment","children"]);return isMobile?a?React__default.createElement(React.Fragment,null,$):React__default.createElement("div",j,$):null},TabletView=function(s){var a=s.renderWithFragment,$=s.children,j=_objectWithoutProperties$1(s,["renderWithFragment","children"]);return isTablet?a?React__default.createElement(React.Fragment,null,$):React__default.createElement("div",j,$):null},WinPhoneView=function(s){var a=s.renderWithFragment,$=s.children,j=_objectWithoutProperties$1(s,["renderWithFragment","children"]);return isWinPhone?a?React__default.createElement(React.Fragment,null,$):React__default.createElement("div",j,$):null},MobileOnlyView=function(s){var a=s.renderWithFragment,$=s.children;s.viewClassName,s.style;var j=_objectWithoutProperties$1(s,["renderWithFragment","children","viewClassName","style"]);return isMobileOnly?a?React__default.createElement(React.Fragment,null,$):React__default.createElement("div",j,$):null},SmartTVView=function(s){var a=s.renderWithFragment,$=s.children,j=_objectWithoutProperties$1(s,["renderWithFragment","children"]);return isSmartTV?a?React__default.createElement(React.Fragment,null,$):React__default.createElement("div",j,$):null},ConsoleView=function(s){var a=s.renderWithFragment,$=s.children,j=_objectWithoutProperties$1(s,["renderWithFragment","children"]);return isConsole?a?React__default.createElement(React.Fragment,null,$):React__default.createElement("div",j,$):null},WearableView=function(s){var a=s.renderWithFragment,$=s.children,j=_objectWithoutProperties$1(s,["renderWithFragment","children"]);return isWearable?a?React__default.createElement(React.Fragment,null,$):React__default.createElement("div",j,$):null},CustomView=function(s){var a=s.renderWithFragment,$=s.children;s.viewClassName,s.style;var j=s.condition,_e=_objectWithoutProperties$1(s,["renderWithFragment","children","viewClassName","style","condition"]);return j?a?React__default.createElement(React.Fragment,null,$):React__default.createElement("div",_e,$):null};function withOrientationChange(o){return function(s){_inherits(a,s);function a($){var j;return _classCallCheck(this,a),j=_possibleConstructorReturn(this,_getPrototypeOf(a).call(this,$)),j.isEventListenerAdded=!1,j.handleOrientationChange=j.handleOrientationChange.bind(_assertThisInitialized(j)),j.onOrientationChange=j.onOrientationChange.bind(_assertThisInitialized(j)),j.onPageLoad=j.onPageLoad.bind(_assertThisInitialized(j)),j.state={isLandscape:!1,isPortrait:!1},j}return _createClass(a,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var j=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:j===0,isLandscape:j===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":_typeof(window))!==void 0&&isMobile&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return React__default.createElement(o,_extends({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),a}(React__default.Component)}function useMobileOrientation(){var o=React.useState(function(){var _e=window.innerWidth>window.innerHeight?90:0;return{isPortrait:_e===0,isLandscape:_e===90,orientation:_e===0?"portrait":"landscape"}}),s=_slicedToArray$1(o,2),a=s[0],$=s[1],j=React.useCallback(function(){var _e=window.innerWidth>window.innerHeight?90:0,et={isPortrait:_e===0,isLandscape:_e===90,orientation:_e===0?"portrait":"landscape"};a.orientation!==et.orientation&&$(et)},[a.orientation]);return React.useEffect(function(){return(typeof window>"u"?"undefined":_typeof(window))!==void 0&&isMobile&&(j(),window.addEventListener("load",j,!1),window.addEventListener("resize",j,!1)),function(){window.removeEventListener("resize",j,!1),window.removeEventListener("load",j,!1)}},[j]),a}function useDeviceData(o){var s=o||window.navigator.userAgent;return parseUserAgent(s)}function useDeviceSelectors(o){var s=o||window.navigator.userAgent,a=useDeviceData(s),$=buildSelectorsObject(a);return[$,a]}lib$2.AndroidView=AndroidView;lib$2.BrowserTypes=BrowserTypes;lib$2.BrowserView=BrowserView;lib$2.ConsoleView=ConsoleView;lib$2.CustomView=CustomView;lib$2.IEView=IEView;lib$2.IOSView=IOSView;lib$2.MobileOnlyView=MobileOnlyView;lib$2.MobileView=MobileView;lib$2.OsTypes=OsTypes;lib$2.SmartTVView=SmartTVView;lib$2.TabletView=TabletView;lib$2.WearableView=WearableView;lib$2.WinPhoneView=WinPhoneView;lib$2.browserName=browserName;lib$2.browserVersion=browserVersion;lib$2.deviceDetect=deviceDetect;lib$2.deviceType=deviceType;lib$2.engineName=engineName;lib$2.engineVersion=engineVersion;lib$2.fullBrowserVersion=fullBrowserVersion;lib$2.getSelectorsByUserAgent=getSelectorsByUserAgent;lib$2.getUA=getUA;lib$2.isAndroid=isAndroid;lib$2.isBrowser=isBrowser;lib$2.isChrome=isChrome;lib$2.isChromium=isChromium$1;lib$2.isConsole=isConsole;lib$2.isDesktop=isDesktop;lib$2.isEdge=isEdge;lib$2.isEdgeChromium=isEdgeChromium;lib$2.isElectron=isElectron;lib$2.isEmbedded=isEmbedded;lib$2.isFirefox=isFirefox;lib$2.isIE=isIE$1;lib$2.isIOS=isIOS;lib$2.isIOS13=isIOS13;lib$2.isIPad13=isIPad13;lib$2.isIPhone13=isIPhone13;lib$2.isIPod13=isIPod13;lib$2.isLegacyEdge=isLegacyEdge;lib$2.isMIUI=isMIUI;lib$2.isMacOs=isMacOs;lib$2.isMobile=isMobile;lib$2.isMobileOnly=isMobileOnly;lib$2.isMobileSafari=isMobileSafari;lib$2.isOpera=isOpera;lib$2.isSafari=isSafari$2;lib$2.isSamsungBrowser=isSamsungBrowser;lib$2.isSmartTV=isSmartTV;lib$2.isTablet=isTablet;lib$2.isWearable=isWearable;lib$2.isWinPhone=isWinPhone;lib$2.isWindows=isWindows;lib$2.isYandex=isYandex;lib$2.mobileModel=mobileModel;lib$2.mobileVendor=mobileVendor;lib$2.osName=osName;lib$2.osVersion=osVersion;lib$2.parseUserAgent=parseUserAgent;lib$2.setUserAgent=setUserAgent;var useDeviceData_1=lib$2.useDeviceData=useDeviceData;lib$2.useDeviceSelectors=useDeviceSelectors;lib$2.useMobileOrientation=useMobileOrientation;lib$2.withOrientationChange=withOrientationChange;const{browser}=useDeviceData_1(window.navigator.userAgent),saveDeviceInfo=()=>async(o,s)=>{if(s().user.currentUser){const a=await Device.getInfo(),$=await Device.getId(),j=await getAppInfo(),_e=await getDeviceModelName();return o(createSaveDeviceInfoRequest()),fetch(`${BASE_API_URL}/api/v1/mobile_device_infos/create`,{method:API_METHODS.POST,headers:apiHeaders(s()),body:JSON.stringify({...a,...$,is_virtual:a.isVirtual,os_verstion:a.osVersion,operating_system:a.operatingSystem,app_version:j.version?j.version:"WEB",app_build:j.build,device_model_name:_e,browser:browser.name,browser_version:browser.version})}).then(handleErrors).then(et=>et.json()).then(et=>{o(receivedSaveDeviceInfoRequest(et))}).catch(et=>{console.log("Error Saving Device Info to server",et)})}},createSaveDeviceInfoRequest=()=>({type:"CREATE_SAVE_DEVICE_INFO_REQUEST"}),receivedSaveDeviceInfoRequest=o=>({type:"RECEIVED_SAVE_DEVICE_INFO_RESPONSE",info:o}),setManageTeamInviteModalShown=o=>({type:SET_MANAGE_TEAM_INVITE_MODAL_SHOWN,shown:o}),updateOrgnizationFetching=()=>({type:UPDATE_ORGANIZATION_FETCHING}),updateOrgnizationSuccess=o=>({type:UPDATE_ORGANIZATION_SUCCESS,json:o}),updateOrgnizationFailure=()=>({type:UPDATE_ORGANIZATION_FAILURE}),organizationStripeCheckout=(o,s)=>(a,$)=>{a({type:CREATE_STRIPE_CHECKOUT_SESSION_STARTED});const j=createLineItemsForStripeCheckout(o,s);getOrganizationStripeCheckoutSessionId(j,stripeCheckoutCouponId(o),$,$().user.currentUser).then(_e=>{var et=window.Stripe(STRIPE_KEY);setTimeout(()=>{a({type:CREATE_STRIPE_CHECKOUT_SESSION_FINISHED})},100),et.redirectToCheckout({sessionId:_e}).then(function(tt){a({type:CREATE_STRIPE_CHECKOUT_SESSION_FINISHED}),tt.error&&alert(tt.error.message)})}).catch(_e=>{a({type:CREATE_STRIPE_CHECKOUT_SESSION_FINISHED})})},createLineItemsForStripeCheckout=(o,s)=>{if(o===STRIPE_TEAMS_MONTHLY_PRICE_KEY)return[{price:o,quantity:s}];if(ANNUAL_LFT_PLANS.includes(o))return[{price:STRIPE_CUSTOM_CARD_PRICE_KEY,quantity:s},{price:o,quantity:s}];alert("Invalid Price Slected")},stripeCheckoutCouponId=o=>{if(o===STRIPE_TEAMS_MONTHLY_PRICE_KEY)return null;if(ANNUAL_LFT_PLANS.includes(o))return STRIPE_CUSTOM_CARD_DISCOUNT_ID;alert("Invalid Price Slected")},getOrganizationStripeCheckoutSessionId=(o,s,a,$)=>new Promise((j,_e)=>{const et=$?`${BASE_API_URL}/api/v1/stripe/create_organization_checkout_session`:`${BASE_API_URL}/api/v1/stripe/create_anonymous_organization_checkout_session`;return fetch$1(et,{method:API_METHODS.POST,headers:apiHeaders(a()),body:JSON.stringify({line_items:o,coupon_id:s,stripe_success_url:`${WEB_APP_URL}/teams/stripe-success/?session_id={CHECKOUT_SESSION_ID}`,stripe_cancel_url:"https://buy.linqapp.com/pages/teams"})}).then(handleErrors).then(tt=>tt.json()).then(tt=>{j(tt.session_id)}).catch(tt=>{_e(tt)})}),adminOrganizationStripeCheckout=(o,s)=>(a,$)=>{a({type:FETCHING(GET_STRIPE_CHECKOUT_LINK)});const j=`${BASE_API_URL}/admin/api/v1/stripe_checkout_links`;fetch$1(j,{method:API_METHODS.POST,headers:apiHeaders($()),body:JSON.stringify({line_items:o,coupon_id:s,stripe_success_url:`${WEB_APP_URL}/teams/stripe-success/?session_id={CHECKOUT_SESSION_ID}`,stripe_cancel_url:"https://buy.linqapp.com/pages/teams"})}).then(handleErrors).then(_e=>_e.json()).then(_e=>{a({type:SUCCESS(GET_STRIPE_CHECKOUT_LINK),stripeCheckoutLink:_e.stripe_checkout_link})}).catch(_e=>{a({type:FAILURE(GET_STRIPE_CHECKOUT_LINK)})})},updateOrganizationSeatCount=(o,s,a)=>($,j)=>($(updateOrgnizationFetching()),fetch$1(`${BASE_API_URL}/api/v1/organizations/${o.id}/subscription/${s.id}/update_seat_count`,{method:API_METHODS.PUT,headers:apiHeaders(j()),body:JSON.stringify({seat_count:a})}).then(handleErrors).then(_e=>_e.json()).then(_e=>{$(setToast({toastMessage:"Seat count updated!"})),$(updateOrgnizationSuccess(_e)),$(refreshCurrentUser())}).catch(_e=>{console.log(_e),$(updateOrgnizationFailure()),$(setToast({toastMessage:"Uh oh! Looks like the update was not accepted. Let us know if this continues to happen!"}))})),chooseLinqPageToAddToTeam=o=>({type:CHOOSE_LINQ_PAGE_TO_ADD_TO_TEAM,team:o}),claimOrganizationWithStripeSessionId=o=>(s,a)=>(s(updateOrgnizationFetching()),fetch$1(`${BASE_API_URL}/api/v1/organizations/claim_with_stripe_session`,{method:API_METHODS.POST,headers:apiHeaders(a()),body:JSON.stringify({stripe_session_id:o})}).then(handleErrors).then($=>$.json()).then($=>{s(setToast({toastMessage:"Organization ready to set up!"})),s(track("organization claimed by stripe session id",{organizationId:$.organization_id,stripeSessionId:o})),s(updateOrgnizationSuccess($)),s(refreshCurrentUser())}).catch($=>{console.log($),s(updateOrgnizationFailure()),s(setToast({toastMessage:"Uh oh! Looks like the team request was not accepted. Let us know if this continues to happen!"}))})),resetOrganizationLoading=()=>({type:RESET_ORGANIZATION_LOADING_STATE});function createGetUserSettingsRequest(){return{type:"CREATE_GET_USER_SETTINGS_REQUEST"}}function receivedGetUserSettingsResponse(o){return{type:"RECEIVED_GET_USER_SETTINGS_RESPONSE",json:o}}function getUserSettings(){return(o,s)=>(o(createGetUserSettingsRequest()),fetch$1(`${BASE_API_URL}/api/v1/user/settings`,{method:API_METHODS.GET,headers:apiHeaders(s())}).then(handleErrors).then(a=>a.json()).then(a=>{o(receivedGetUserSettingsResponse(a))}).catch(a=>{}))}function createValidateCodeSubmitRequest(o){return{type:"CREATE_VALIDATE_CODE_SUBMIT_REQUEST",authCode:o}}function receivedValidateCodeResponse(o){return{type:"RECEIVED_VALIDATE_CODE_RESPONSE",json:o}}function receivedValidateCodeError(o){return{type:"RECEIVED_VALIDATE_CODE_ERROR",error:o}}const sendCreateNewUserRequest=()=>({type:"SEND_CREATE_NEW_USER_REQUEST"}),receivedCreateNewUserRequest=o=>({type:"RECEIVED_CREATE_NEW_USER_REQUEST",json:o}),receivedCreateNewUserRequestError=o=>({type:"RECEIVED_CREATE_NEW_USER_REQUEST_ERROR",error:o});function validateCodeSubmit(o,s,a,$=!1,j=null){return(_e,et)=>{const{isFetching:tt}=et().auth;if(tt)return;_e(createValidateCodeSubmitRequest(o));let nt=et().auth.redirectPathAfterLogin;return fetch$1(`${BASE_API_URL}/api/v1/auth/validate_code`,{method:API_METHODS.POST,headers:apiHeaders(et()),body:JSON.stringify({auth_uuid:s,auth_code:o,event_code:j})}).then(handleErrors).then(it=>it.json()).then(it=>{if(_e(receivedValidateCodeResponse(it)),!it.api_token){const ot="Api token returned is invalid at validateCodeSubmit.";throw _e(sendErrorLog({errorMessage:ot,errorObject:{api_response:it}})),Error(ot)}const rt=et().auth.checkoutSessionId,st=et().auth.lftTrialCheckoutSessionId;rt&&(_e(claimOrganizationWithStripeSessionId(rt)),nt="/signup/add-photo"),st&&(_e(claimOrganizationWithStripeSessionId(st)),nt="/lft-trial-signup/about-your-team"),it.onboarding_required?setTimeout(()=>{a.push("/setup-profile/1")},500):nt?setTimeout(()=>{a.push(nt),_e(setRedirectPathAfterLogin(null))},500):a.push(`${PAGE_ROUTES.dashboard}`),_e(getCurrentUser(it.api_token,it.uuid)),_e(getCurrentUserConnections(it.apiToken,it.uuid)),_e(getCards(it.uuid)),_e(getUserSettings()),_e(saveDeviceInfo()),_e(getUserLinqProducts()),_e(setShowLoggedInAsDisplay($))}).catch(it=>{const rt="Could not validate authentication code.";_e(sendErrorLog({errorMessage:rt,errorObject:it})),_e(showAlertModal({message:rt,panelIcon:informationCircleOutline,hideDismissButton:!0,buttonText:"OK"})),_e(receivedValidateCodeError(it))})}}function redirectAfterSignup(o,s,a,$,j,_e){setTimeout(a?()=>{s.push(a),o(setRedirectPathAfterLogin(null))}:()=>{$&&$(!1),s&&s.push(j),setTimeout(()=>{_e.signup_response_message&&alert(_e.signup_response_message)},1e3)},250)}const setRedirectPathAfterLogin=o=>({type:"SET_REDIRECT_URL_AFTER_LOGIN",path:o}),setCheckoutSessionID=o=>({type:"SET_CHECKOUT_SESSION_ID",sessionId:o}),setLftTrialCheckoutSessionId=o=>({type:"SET_LFT_TRIAL_CHECKOUT_SESSION_ID",lftTrialCheckoutSessionId:o}),useSignInUser=()=>{const o=useDispatch(),s=useHistory(),{isMobile:a}=useLayoutV2();return reactExports.useCallback(({api_token:j,uuid:_e,showLoggedInAs:et=!1,onboarding_required:tt=!1,is_new_user:nt=!1})=>{const it=store.getState().auth,{isFetching:rt,checkoutSessionId:st,lftTrialCheckoutSessionId:ot,redirectPathAfterLogin:at}=it;if(rt)return;st&&o(claimOrganizationWithStripeSessionId(st)),ot&&o(claimOrganizationWithStripeSessionId(ot)),o(receivedValidateCodeResponse({api_token:j,uuid:_e})),o(getCurrentUser(j,_e)),o(getCurrentUserConnections(j,_e)),o(getCards(_e)),o(getUserSettings()),o(saveDeviceInfo()),o(getUserLinqProducts()),o(setShowLoggedInAsDisplay(et));const lt=st?PAGE_ROUTES.signup.professionalDetails:ot?"/lft-trial-signup/about-your-team":nt?PAGE_ROUTES.signup.professionalDetails:at;if(tt)return setTimeout(()=>{s==null||s.push("/setup-profile/1")},500);if(lt)return setTimeout(()=>{s==null||s.push(lt),o(setRedirectPathAfterLogin(null))},500);s==null||s.push(a?PAGE_ROUTES.dashboard:PAGE_ROUTES.profile)},[o,s,a])},LinkedInOAuthCallbackPage=()=>{const{code:o}=useQueryParamsV2(),{mutateAsync:s}=useLinkedinOAuthCallback(),a=useSignInUser(),$=useShowErrorModal(),{isWeb:j,isLoading:_e}=usePlatform(),et=useLinkedinRedirectUri(),tt=useSelectCurrentUser(),{isMobile:nt}=useLayoutV2();return reactExports.useEffect(()=>{if(tt||_e||!o||j||!et)return;async function it(){try{const rt=await s({token:o,redirectUri:et});a(rt)}catch(rt){$({title:"Login Failed",message:rt.message})}}it()},[o,tt,_e,j,s,et,$,a]),tt?jsxRuntimeExports.jsx(Redirect,{to:nt?PAGE_ROUTES.dashboard:PAGE_ROUTES.profile}):jsxRuntimeExports.jsx(LoadingIndicator,{safeAreaTop:!0})},ConversationsMessagesListSkeleton=()=>{const s=Array.from({length:12});return jsxRuntimeExports.jsx("div",{className:clsx("flex","flex-col","gap-4","px-4"),children:s.map((a,$)=>jsxRuntimeExports.jsxs("div",{className:clsx("flex","gap-4","items-center"),children:[jsxRuntimeExports.jsx(SkeletonText,{height:48,width:48,className:"rounded-full"}),jsxRuntimeExports.jsxs("div",{className:clsx("flex","flex-col","gap-2","flex-grow"),children:[jsxRuntimeExports.jsx("div",{className:clsx("flex","justify-between","w-full","pr-4"),children:jsxRuntimeExports.jsx(SkeletonText,{height:16,width:140,className:"rounded-none"})}),jsxRuntimeExports.jsx(SkeletonText,{height:16,width:240,className:"rounded-none"})]})]},$))})},ConversationsPageSkeleton=()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:clsx("flex","flex-col","gap-4","px-4","py-4",CLASSNAMES.safeAreaTop),children:[jsxRuntimeExports.jsx("div",{className:clsx("flex","justify-center","w-full"),children:jsxRuntimeExports.jsx(SkeletonText,{width:184,height:54})}),jsxRuntimeExports.jsx(SkeletonText,{height:36,className:clsx("mt-4","mb-2")})]}),jsxRuntimeExports.jsx(ConversationsMessagesListSkeleton,{})]});var BarcodeFormat;(function(o){o.Aztec="AZTEC",o.Codabar="CODABAR",o.Code39="CODE_39",o.Code93="CODE_93",o.Code128="CODE_128",o.DataMatrix="DATA_MATRIX",o.Ean8="EAN_8",o.Ean13="EAN_13",o.Itf="ITF",o.Pdf417="PDF_417",o.QrCode="QR_CODE",o.UpcA="UPC_A",o.UpcE="UPC_E"})(BarcodeFormat||(BarcodeFormat={}));var BarcodeValueType;(function(o){o.CalendarEvent="CALENDAR_EVENT",o.ContactInfo="CONTACT_INFO",o.DriversLicense="DRIVERS_LICENSE",o.Email="EMAIL",o.Geo="GEO",o.Isbn="ISBN",o.Phone="PHONE",o.Product="PRODUCT",o.Sms="SMS",o.Text="TEXT",o.Url="URL",o.Wifi="WIFI",o.Unknown="UNKNOWN"})(BarcodeValueType||(BarcodeValueType={}));var LensFacing;(function(o){o.Front="FRONT",o.Back="BACK"})(LensFacing||(LensFacing={}));var GoogleBarcodeScannerModuleInstallState;(function(o){o[o.UNKNOWN=0]="UNKNOWN",o[o.PENDING=1]="PENDING",o[o.DOWNLOADING=2]="DOWNLOADING",o[o.CANCELED=3]="CANCELED",o[o.COMPLETED=4]="COMPLETED",o[o.FAILED=5]="FAILED",o[o.INSTALLING=6]="INSTALLING",o[o.DOWNLOAD_PAUSED=7]="DOWNLOAD_PAUSED"})(GoogleBarcodeScannerModuleInstallState||(GoogleBarcodeScannerModuleInstallState={}));const BarcodeScanner=registerPlugin("BarcodeScanner",{web:()=>__vitePreload(()=>import("./web-CoO9OsR8.js"),[]).then(o=>new o.BarcodeScannerWeb)});class BarcodeScannerUtil{static async scan(){if(!await this.userGrantedPermission())return!1;document.body.classList.add("show-camera-page");const a=new Promise($=>BarcodeScanner.addListener("barcodeScanned",j=>{$(j)}));return await BarcodeScanner.startScan(),a}static async stopScan(){document.body.classList.remove("show-camera-page"),await BarcodeScanner.stopScan()}static async userGrantedPermission(){const{camera:s}=await BarcodeScanner.checkPermissions(),a=s==="granted",$=s==="denied",j=s==="prompt";if(a)return!0;if(j)return BarcodeScanner.requestPermissions();if($&&window.confirm("Camera access is required to activate products via a QR code - You can enable it in the app settings."))return BarcodeScanner.openSettings()}}function setWithExpiry(o,s,a){const $={value:s,expiry:new Date().getTime()+a};localStorage.setItem(o,JSON.stringify($))}function getWithExpiry(o){const s=window.localStorage.getItem(o);if(!s)return null;const a=JSON.parse(s);return new Date().getTime()>a.expiry?(localStorage.removeItem(o),null):a.value}class ErrorBoundaryForPage extends reactExports.Component{constructor(s){super(s),this.state={hasError:!1}}static getDerivedStateFromError(s){return{hasError:!0}}componentDidCatch(s){const a=/Loading chunk [\d]+ failed/;if(s!=null&&s.message&&a.test(s.message)){this.props.track("viewed error boundary for page",{errorObject:s,reloads:!0}),getWithExpiry("chunk_failed")||(setWithExpiry("chunk_failed","true",1e4),window.location.reload()),this.props.sendErrorToLogger({errorMessage:"Reloaded chunk error",errorObject:s});return}else this.props.track("viewed error boundary for page",{errorObject:s,reloads:!1,pathname:window.location.pathname});const $=/Loading CSS chunk [\d]+ failed/;if(s!=null&&s.message&&$.test(s.message)){this.props.track("viewed error boundary for page",{errorObject:s,reloads:!0}),getWithExpiry("css_chunk_failed")||(setWithExpiry("css_chunk_failed","true",1e4),window.location.reload()),this.props.sendErrorToLogger({errorMessage:"Reloaded CSS chunk error",errorObject:s});return}else this.props.track("viewed error boundary for page",{errorObject:s,reloads:!1,pathname:window.location.pathname});this.props.sendErrorToLogger({errorMessage:s.message,errorObject:s}),document.body.classList.contains("show-camera-page")&&BarcodeScannerUtil.stopScan()}render(){return this.state.hasError?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(IonToolbar,{children:jsxRuntimeExports.jsx(IonButtons,{slot:"start",children:jsxRuntimeExports.jsx(IonBackButton,{defaultHref:"/profile"})})}),jsxRuntimeExports.jsxs(IonContent,{className:"ion-padding","data-test":APP_TEST_IDS.ERROR_BOUNDARY,children:[jsxRuntimeExports.jsxs("div",{style:{textAlign:"center"},children:[jsxRuntimeExports.jsx(IonIcon,{className:"ion-margin no-margin-bottom",style:{fontSize:"64px"},icon:"assets/icons/dog-face.svg",color:"gray-500"}),jsxRuntimeExports.jsx("h3",{className:"ion-margin text-gray-600",children:"Uh oh... Something went wrong. Check your internet connection and refresh."})]}),jsxRuntimeExports.jsxs("div",{style:{textAlign:"center"},children:[jsxRuntimeExports.jsx("div",{className:"ion-padding",children:jsxRuntimeExports.jsxs(SuccessButton,{className:"pointer",onClick:()=>window.location.reload(),children:["Refresh ",jsxRuntimeExports.jsx(IonIcon,{icon:refreshOutline})]})}),jsxRuntimeExports.jsx("p",{className:"text-gray-600",children:"If this continues to happen, please contact us at contact@linqapp.com."})]})]})]}):this.props.children}}const mapStateToProps=o=>({}),mapDispatchToProps=o=>({track:(s,a)=>o(track(s,a)),sendErrorToLogger:s=>o(sendErrorLog(s))}),ErrorBoundaryForPage$1=connect(mapStateToProps,mapDispatchToProps)(ErrorBoundaryForPage),HomeRedirect=()=>{const o=useSelectCurrentUser(),[s,a]=reactExports.useState(null);reactExports.useEffect(()=>{async function j(){if(await $())return goToUrl(MARKETING_SITE_URL);if(window.location.pathname!=="/")return;const _e=localStorage.getItem("lastMobileRoute");if(_e)return a(_e);if(o)return a(PAGE_ROUTES.dashboard);a(PAGE_ROUTES.welcome)}j()},[]);const $=async()=>{var _e,et;return await getPlatform()!=="web"||window.location.hostname.includes("localhost")||(_e=window.location.hostname.split(".")[1])!=null&&_e.includes("herokuapp")||(et=window.location.hostname.split(".")[0])!=null&&et.includes("staging")||o||!window.location.pathname||window.location.pathname!=="/"?!1:!window.location.hostname.includes("trylinq.com")};return s?jsxRuntimeExports.jsx(Redirect,{to:s}):jsxRuntimeExports.jsx(LoadingIndicator,{safeAreaTop:!0})},QRReadToNFCWritePage=reactExports.lazy(()=>__vitePreload(()=>import("./qr-read-to-nfc-write-page-DulJIXi0.js"),__vite__mapDeps([11,12,13,14,15,16]))),TaskLogsPage=reactExports.lazy(()=>__vitePreload(()=>import("./task-logs-page--nk9j42j.js"),__vite__mapDeps([17,18,19,20,21,22,23,24,25,26,27,10,28,29,13,30,31,32,33,34,35,36,37,1,38,39,40,41,42,9,43,44,45,46,47,48,49,50,51,7,52,53,54,55,56,57,58,59,60,61,62,63]))),BookMeetingDetailsPage=reactExports.lazy(()=>__vitePreload(()=>import("./book-meeting-details-page-CBQAzi_D.js"),__vite__mapDeps([64,35,65,66,67,68,69,70,71,72,25,26,73]))),BookMeetingConfirmDetailsPage=reactExports.lazy(()=>__vitePreload(()=>import("./book-meeting-confirm-details-page-CtkdpkPm.js"),__vite__mapDeps([74,65,66,67,69,70,71]))),BookMeetingCalendarPage=reactExports.lazy(()=>__vitePreload(()=>import("./book-meeting-calendar-page-DSFsUVbL.js"),__vite__mapDeps([75,65,66,67,68,69,70,71]))),LinkedInCallback=reactExports.lazy(()=>__vitePreload(()=>import("./index.esm-BV1l4BwP.js"),[]).then(o=>({default:o.LinkedInCallback}))),AddTeamMembersPage=reactExports.lazy(()=>__vitePreload(()=>import("./add-team-members-page-DGj2hRIf.js"),__vite__mapDeps([76,77,20,21,78,79,35,22,23,32,80,25,26,81,82,83,84,85,4,70,62,86,87,88,89,90,91,92,93,61,34,36,94,95,13,96,97,9,38,98,99,100,101,73,28,3,102,103,104,105,106,107,108,109,53,54,55]))),BookMeetingPage=reactExports.lazy(()=>__vitePreload(()=>import("./book-meeting-page-wMUk0Fl8.js"),__vite__mapDeps([110,35,65,66,67,72,25,26,73,71,111,4]))),CallPage=reactExports.lazy(()=>__vitePreload(()=>import("./call-page-N-h6edhU.js"),__vite__mapDeps([112,113,114,115,116,117,31,118,62,119,120,121,1,122,42,123,124,125,102,126,70,23,127,128,129,130,56]))),ConversationPage=reactExports.lazy(()=>__vitePreload(()=>import("./conversation-page-DKGun6ug.js"),__vite__mapDeps([131,132,118,62,133,134,35,135,136,137,4,30,138,25,26,139,140,70,51,7,52,10,53,54,55,141,142,91,92,143,144,145,82,83,146,147,148,149,150,124,125,102,126,40,1,41,42,9,43,44,45,46,47,48,49,50,36,56,57,128,129,151,152,73,29,153,154,155,115,116,117,31,123,156,157,103,105,93,158,84,85]))),EmailThreadPage=reactExports.lazy(()=>__vitePreload(()=>import("./email-thread-page-7N-3bCdw.js"),__vite__mapDeps([159,118,62,85,146,115,116,117,31,48,49,1,41,50,36,160]))),NewEmailPage=reactExports.lazy(()=>__vitePreload(()=>import("./new-email-page-DBqZMa_C.js"),__vite__mapDeps([161,47,48,49,1,41,50,36]))),VoicemailsPage=reactExports.lazy(()=>__vitePreload(()=>import("./voicemails-page-CBvV1Swe.js"),__vite__mapDeps([162,163,124,125,102,126,115,116,117,31,70,23,36,119,120,121,1,122,42,123,127,128,129,130,56]))),VoicemailGreetingPage=reactExports.lazy(()=>__vitePreload(()=>import("./voicemail-greeting-page-BQOqk1r8.js"),__vite__mapDeps([164,114,151,119,120,121,1,122,42,123,124,125,102,126,70,23,127,128,129,130,73,56,165]))),NewMessagePage=reactExports.lazy(()=>__vitePreload(()=>import("./new-message-page-C27MZkOm.js"),__vite__mapDeps([166,156,157,40,1,41,42,9,43,44,45,46,47,48,49,50,36,51,7,52,10,53,54,55,56,57,103,105,93,4,167,168,20,21,62,90,91,92,169,149,170,97,104,171,70,158,172,84,85,173]))),TeamAdminAddTeamMembersPage=reactExports.lazy(()=>__vitePreload(()=>import("./team-admin-add-team-members-page-B0awMIiQ.js"),__vite__mapDeps([174,77,20,21,78,79,35,22,23,32,80,25,26,81,82,83,84,85,4,70,62,87,88,89,90,91,92,93,61,34,36,94,95,13,96,97,9,38,98,99,100,101,73,28,3,102,103,104,105,107,108,109]))),StripeCheckoutLinkPage=reactExports.lazy(()=>__vitePreload(()=>import("./stripe-checkout-link-page-T_QBMcRQ.js"),[])),SelectSSOConnectionPage=reactExports.lazy(()=>__vitePreload(()=>import("./select-sso-connection-page-Bx6BB8VQ.js"),__vite__mapDeps([175,87,88,89,90,91,92,93,35,61,34,25,26,36,20,21,94,95,4,13,96,97,22,23,9,38,98,99,100,101,73,28,3,102,78,15,176,111]))),ContactsPage=reactExports.lazy(()=>__vitePreload(()=>import("./contacts-page-D-n0xzwv.js"),__vite__mapDeps([177,178,1,179,180,181,118,62,182,183,20,21,78,184,185,60,186,187,101,188,121,189,190,59,191,192,193,194,195,196,197,146,63,198,199,200,70,201,51,7,52,10,53,54,55,13,48,49,41,50,36,40,42,9,43,44,45,46,47,56,57,124,125,102,126,153,73,138,202,39,19,22,23,24,25,26,27,28,29,30,31,32,147,203,37,38,133,134,35,135,136,137,4,139,140,141,142,91,92,143,144,145,82,83,148,149,168,90,169,103,104,105,204,205,206,207,208,209,210,211,212,89,93,61,34,88,94,95,96,97,98,99,100,3,170,15,167,171,173]))),ConversationsPage=reactExports.lazy(()=>__vitePreload(()=>import("./conversations-page-27jvmerQ.js"),__vite__mapDeps([213,214,163,124,125,102,126,115,116,117,31,70,23,36,215,119,120,121,1,122,42,123,127,128,129,130,150,151,216,51,7,52,10,53,54,55,56]))),RecentScannedContactsPage=reactExports.lazy(()=>__vitePreload(()=>import("./recent-scanned-contacts-page-D-TNd5Cw.js"),__vite__mapDeps([217,167,168,20,21,62,90,91,92,169,149,170,103,97,104,105,93,171,70]))),OnboardingLitePage=reactExports.lazy(()=>__vitePreload(()=>import("./onboarding-lite-page-DUGsL8eH.js"),__vite__mapDeps([218,219,35,139,140,70,51,7,52,10,53,54,55,4,141,142,91,92,26,25,143,144,145,82,83,87,88,89,90,93,61,34,36,20,21,94,95,13,96,97,22,23,9,38,98,99,100,101,73,28,3,102,220,24,221,15,148]))),ScanBusinessCardPage=reactExports.lazy(()=>__vitePreload(()=>import("./scan-business-card-page-DVHSchog.js"),__vite__mapDeps([222,176,212,157,223]))),ScanQRCodePage=reactExports.lazy(()=>__vitePreload(()=>import("./scan-qr-code-page-B6woY_Ke.js"),__vite__mapDeps([224,223]))),UserContactDetailPage=reactExports.lazy(()=>__vitePreload(()=>import("./user-contact-detail-page-Dh4oBp3j.js"),__vite__mapDeps([225,19,20,21,22,23,24,25,26,27,10,28,29,13,30,31,32,226,41,227,15,180,181,118,62,182,183,78,184,185,60,186,187,101,188,121,189,190,59,191,192,193,194,195,196,197,146,63,198,199,200,70,201,51,7,52,53,54,55,48,49,1,50,36,40,42,9,43,44,45,46,47,56,57,124,125,102,126,153,73,138,202,39,203,37,38,133,134,35,135,136,137,4,139,140,141,142,91,92,143,144,145,82,83,147,148,149,168,90,169,103,104,105,204,205]))),UserContactEditPage=reactExports.lazy(()=>__vitePreload(()=>import("./user-contact-edit-page-CrTlUos-.js"),__vite__mapDeps([228,134,35,135,136,137,4,30,138,25,26,62,139,140,70,51,7,52,10,53,54,55,141,142,91,92,143,144,145,82,83,146,87,88,89,90,93,61,34,36,20,21,94,95,13,96,97,22,23,9,38,98,99,100,101,73,28,3,102,14,148,149]))),UserContactNotesPage=reactExports.lazy(()=>__vitePreload(()=>import("./user-contact-notes-page-BlEiod4F.js"),__vite__mapDeps([229,37,1,38,26,39,14,149,63]))),TasksPage=reactExports.lazy(()=>__vitePreload(()=>import("./tasks-page-Cj6Deu5k.js"),__vite__mapDeps([230,231,87,88,89,90,91,92,93,35,61,34,25,26,36,20,21,94,95,4,13,96,97,22,23,9,38,98,99,100,101,73,28,3,102,15,18,19,24,27,10,29,30,31,32,33,37,1,39,40,41,42,43,44,45,46,47,48,49,50,51,7,52,53,54,55,56,57,58,59,60,62]))),SettingsTab=reactExports.lazy(()=>__vitePreload(()=>import("./settings-tab-BFLGMVip.js"),__vite__mapDeps([232,233,41,51,7,52,10,53,54,55,70,15,234,87,88,89,90,91,92,93,35,61,34,25,26,36,20,21,94,95,4,13,96,97,22,23,9,38,98,99,100,101,73,28,3,102,235,236,12,237]))),AuthPage=reactExports.lazy(()=>__vitePreload(()=>import("./auth-page-BSXw3Fz0.js"),__vite__mapDeps([238,35,72,25,26,73,4,239,71,240,15,176,111]))),WelcomePage=reactExports.lazy(()=>__vitePreload(()=>import("./welcome-page-CHhHtleA.js"),__vite__mapDeps([241,43,242,71,240]))),WelcomePageDeprecated=reactExports.lazy(()=>__vitePreload(()=>import("./welcome-page-deprecated-CtYNqKNv.js"),[])),SignupPage=reactExports.lazy(()=>__vitePreload(()=>import("./signup-page-C0Q562FG.js"),__vite__mapDeps([243,239,71,240,244,35,72,25,26,73,51,7,52,10,53,54,55,220,24,67,245,4,70,15,66]))),SignupPhotoPage=reactExports.lazy(()=>__vitePreload(()=>import("./signup-photo-page-BQe7F2bn.js"),__vite__mapDeps([246,51,7,52,10,53,54,55,239,71,240,210,144,145,82,83,142,91,92,247,148]))),SignupAboutPage=reactExports.lazy(()=>__vitePreload(()=>import("./signup-about-page-BPn2VdAF.js"),__vite__mapDeps([248,35,72,25,26,73,249,239,71,240,67,247,148,250]))),SignupOrganizationSetupPage=reactExports.lazy(()=>__vitePreload(()=>import("./signup-organization-setup-page-B7XvaXeC.js"),__vite__mapDeps([251,252,143,144,145,82,83,250,253]))),SignupInviteTeamMembersPage=reactExports.lazy(()=>__vitePreload(()=>import("./signup-invite-team-members-page-BfbkCd5t.js"),__vite__mapDeps([254,14,255,107]))),LinqPaySettingsPage=reactExports.lazy(()=>__vitePreload(()=>import("./linq-pay-settings-page-y12ikb2w.js"),__vite__mapDeps([256,187,101,257,14,258,259]))),LinqPayStripeAuthSuccessPage=reactExports.lazy(()=>__vitePreload(()=>import("./linq-pay-stripe-auth-success-page-CoGbeSHp.js"),[])),StripeCheckoutPage=reactExports.lazy(()=>__vitePreload(()=>import("./redirect-stripe-checkout-page-CQ7oE76I.js"),[])),EditCardPage=reactExports.lazy(()=>__vitePreload(()=>import("./edit-page-page-C9aLYPST.js"),__vite__mapDeps([260,261,262,263,264,35,20,21,78,94,95,4,265,145,165,85,41,252,266,121,267,73,268,269,60,185,102,270,271,253,234,272,183,184,273,210,144,82,83,142,91,92,25,26,274,275,276,32,188,189,190,62,59,277,147,87,88,89,90,93,61,34,36,13,96,97,22,23,9,38,98,99,100,101,28,3,15,205,278,279,280,281,282,1,66,67,201,283,204,194,197,284,137,285,108,286,171,70,287,27,10,182,186,187,191,192,193,195,196,146,63,198,199,288,8,289,290,143,107,291,292]))),EditContactExchangeSettingFormPage=reactExports.lazy(()=>__vitePreload(()=>import("./edit-contact-exchange-setting-form-page-CKHMhF8n.js"),__vite__mapDeps([293,285,294,282,35,1,66,67,94,95,201,4,62,278,283,204,205,194,197,96,284,20,21,100,101,295,129,296,25,26,73,297,10,23,87,88,89,90,91,92,93,61,34,36,13,97,22,9,38,98,99,28,3,102,191,192,280]))),EditAppClipExperiencesPage=reactExports.lazy(()=>__vitePreload(()=>import("./edit-app-clip-experiences-page-CE_jMvEZ.js"),__vite__mapDeps([298,299,300,20,21,78,35,262,263,264,94,95,4,265,145,165,85,41,252,266,121,267,73,268,269,60,185,102,270,271,253,234,272,183,184,273,210,144,82,83,142,91,92,25,26,274,275,276,32,188,189,190,62,59,277,147,87,88,89,90,93,61,34,36,13,96,97,22,23,9,38,98,99,100,101,28,3,15,205,278,279,280,285,51,7,52,10,53,54,55,191,192]))),CreateContactPage=reactExports.lazy(()=>__vitePreload(()=>import("./create-contact-page-kJdkBByL.js"),__vite__mapDeps([301,134,35,135,136,137,4,30,138,25,26,62,139,140,70,51,7,52,10,53,54,55,141,142,91,92,143,144,145,82,83,146,87,88,89,90,93,61,34,36,20,21,94,95,13,96,97,22,23,9,38,98,99,100,101,73,28,3,102,14,211,176]))),EditContactPage=reactExports.lazy(()=>__vitePreload(()=>import("./edit-contact-page-C519Z_JP.js"),__vite__mapDeps([302,209,35,135,136,137,4,30,138,25,26,62,142,91,92,210,144,145,82,83,146,139,140,70,51,7,52,10,53,54,55,141,56,20,21,78,87,88,89,90,93,61,34,36,94,95,13,96,97,22,23,9,38,98,99,100,101,73,28,3,102,14,15,147,32,303,148]))),AccountEditPage=reactExports.lazy(()=>__vitePreload(()=>import("./account-edit-page-AhUfrKK8.js"),__vite__mapDeps([304,35,140,70,22,23,25,26,87,88,89,90,91,92,93,61,34,36,20,21,94,95,4,13,96,97,9,38,98,99,100,101,73,28,3,102,15,305,245,306]))),CardPage=reactExports.lazy(()=>__vitePreload(()=>import("./card-page-D_-AcA22.js"),__vite__mapDeps([307,186,187,101,191,192,193,121,62,194,195,60,196,197,146,63,198,308,309,20,21,78,310,283,311,1,41,227,51,7,52,10,53,54,55,312,313,199]))),CreateLinqLeadPage=reactExports.lazy(()=>__vitePreload(()=>import("./create-linq-lead-page-D_c7kxGr.js"),__vite__mapDeps([314,312]))),AnalyticsPage=reactExports.lazy(()=>__vitePreload(()=>import("./analytics-page-xiHQZ5Rk.js"),__vite__mapDeps([315,316,317,20,21,78,318,319,22,23,15]))),IntegrationsPage=reactExports.lazy(()=>__vitePreload(()=>import("./integrations-page-CMOeFDKL.js"),__vite__mapDeps([320,321,20,21,78,126,322,25,26,44,172,45,46,323,51,7,52,10,53,54,55,41,121,169,93]))),OAuthCloseWindowPage=reactExports.lazy(()=>__vitePreload(()=>import("./oauth-close-window-page-DDtYhC0h.js"),[])),WorkosAuthCallbackPage=reactExports.lazy(()=>__vitePreload(()=>import("./workos-auth-callback-page-DixCFoeP.js"),__vite__mapDeps([324,15]))),CreateUserFromSimplePage=reactExports.lazy(()=>__vitePreload(()=>import("./create-user-from-simple-page-CM7vI9lt.js"),__vite__mapDeps([325,66,67]))),NFCSetupPage=reactExports.lazy(()=>__vitePreload(()=>import("./nfc-setup-page-Br0E-EbL.js"),__vite__mapDeps([326,12,231,327,236,328,329,330,286,171,70,36,331,299,300,20,21,78,35,262,263,264,94,95,4,265,145,165,85,41,252,266,121,267,73,268,269,60,185,102,270,271,253,234,272,183,184,273,210,144,82,83,142,91,92,25,26,274,275,276,32,188,189,190,62,59,277,147,87,88,89,90,93,61,34,13,96,97,22,23,9,38,98,99,100,101,28,3,15,205,278,279,280,285,51,7,52,10,53,54,55,191,192,332,311,1,227,312,313,309,310,283,226,333]))),StripeSuccessPage=reactExports.lazy(()=>__vitePreload(()=>import("./stripe-success-page-COx6qNot.js"),__vite__mapDeps([334,335,336,146]))),TempWriteNFCPage=reactExports.lazy(()=>__vitePreload(()=>import("./temp-write-nfc-page-DJt4O9QF.js"),__vite__mapDeps([337,12,309,20,21,78,310,283,16,268]))),AdminLFTPurchaseBuilderPage=reactExports.lazy(()=>__vitePreload(()=>import("./admin-lft-purchase-builder-page-kwG_-CsE.js"),__vite__mapDeps([338,121,15]))),AdminUserManagementPage=reactExports.lazy(()=>__vitePreload(()=>import("./admin-user-management-page-CdDZCpuD.js"),__vite__mapDeps([339,121,15,172]))),ProductEducationPage=reactExports.lazy(()=>__vitePreload(()=>import("./product-education-page-Dmo3TduM.js"),__vite__mapDeps([340,12,283,146,341,199]))),ProductEducationMenuPage=reactExports.lazy(()=>__vitePreload(()=>import("./product-education-menu-page-uOGqCblc.js"),__vite__mapDeps([342,199]))),EditDirectoryPage=reactExports.lazy(()=>__vitePreload(()=>import("./edit-directory-page-DV8Hnbij.js"),__vite__mapDeps([343,15,172,36,20,21,78,273,41,344]))),QRCodeDownloadPage=reactExports.lazy(()=>__vitePreload(()=>import("./qr-code-download-page-Cm-MRGgy.js"),__vite__mapDeps([345,346]))),OrganizationDetailPage=reactExports.lazy(()=>__vitePreload(()=>import("./organization-detail-page-BFW7pQmd.js"),__vite__mapDeps([347,348,41,172,344,36,349,236,12,226,227,15,235,208,107]))),TeamSettingsPage=reactExports.lazy(()=>__vitePreload(()=>import("./team-settings-page-CJ1ZQXsJ.js"),__vite__mapDeps([350,351,35,352,25,26,353,253,143,144,145,82,83,32,4,81,208,354]))),TeamWorkflowsPage=reactExports.lazy(()=>__vitePreload(()=>import("./team-workflows-page-Cm_o8IxR.js"),__vite__mapDeps([355,14,354]))),WorkflowPage=reactExports.lazy(()=>__vitePreload(()=>import("./workflow-page-BA3xqrXw.js"),__vite__mapDeps([356,357,14,62]))),TeamDetailPage=reactExports.lazy(()=>__vitePreload(()=>import("./linq-team-detail-page-CGzTS9K7.js"),__vite__mapDeps([358,348,41,172,344,36,349,226,227,15,235,236,12,359,208,354,291]))),LinqTeamManagePage=reactExports.lazy(()=>__vitePreload(()=>import("./linq-team-manage-page-BPt4HOeX.js"),__vite__mapDeps([360,361,41,255,362,15,354,363]))),TeamDirectoriesPage=reactExports.lazy(()=>__vitePreload(()=>import("./linq-team-directories-page-vEHIN9UB.js"),__vite__mapDeps([364,365,348,41,172,344,36,15,366,354,291]))),OrganizationManagePage=reactExports.lazy(()=>__vitePreload(()=>import("./organization-manage-page-Bt_x_kHS.js"),__vite__mapDeps([367,88,368,41,15,255,362,369,170,35,22,23,24,107,109,370]))),OrganizationSettingsPage=reactExports.lazy(()=>__vitePreload(()=>import("./organization-settings-page-BlvmIytZ.js"),__vite__mapDeps([371,372,35,296,25,26,73,297,373,153,250]))),HrSettingsPage=reactExports.lazy(()=>__vitePreload(()=>import("./hr-settings-page-_3th06Nu.js"),__vite__mapDeps([374,20,21,78,61,22,23,87,88,89,90,91,92,93,35,34,25,26,36,94,95,4,13,96,97,9,38,98,99,100,101,73,28,3,102,32,375,303,107,109,376]))),SsoSettingsPage=reactExports.lazy(()=>__vitePreload(()=>import("./sso-settings-page-zT4awHLG.js"),__vite__mapDeps([377,20,21,78,87,88,89,90,91,92,93,35,61,34,25,26,36,94,95,4,13,96,97,22,23,9,38,98,99,100,101,73,28,3,102,15,32,375,303]))),OrganizationContentBlocksPage=reactExports.lazy(()=>__vitePreload(()=>import("./organization-content-blocks-page-CTAYLuOn.js"),__vite__mapDeps([378,379,380,381,20,21,78,108]))),OrganizationPageTemplatesPage=reactExports.lazy(()=>__vitePreload(()=>import("./organization-page-templates-page-Cvxv76So.js"),__vite__mapDeps([382,87,88,89,90,91,92,93,35,61,34,25,26,36,20,21,94,95,4,13,96,97,22,23,9,38,98,99,100,101,73,28,3,102,383,384,109]))),OrganizationEditIntegrationPage=reactExports.lazy(()=>__vitePreload(()=>import("./organization-edit-integration-page-CrSAKYfH.js"),__vite__mapDeps([385,20,78,14,15,45,386]))),OrganizationManageProductsPage=reactExports.lazy(()=>__vitePreload(()=>import("./organization-manage-products-page-imNF_7Zw.js"),__vite__mapDeps([387,388,330,286,171,70,36,15,313,332]))),TeamManageProductsPage=reactExports.lazy(()=>__vitePreload(()=>import("./team-manage-products-page-B1fs7Y9u.js"),__vite__mapDeps([389,388,330,286,171,70,36,15,313,332]))),OrganizationDirectoriesPage=reactExports.lazy(()=>__vitePreload(()=>import("./organization-directories-page-BMnO7aKM.js"),__vite__mapDeps([390,365,348,41,172,344,36,15,366]))),LinqTeamsAcceptInvitePage=reactExports.lazy(()=>__vitePreload(()=>import("./linq-teams-accept-invite-page-6uIQ3hGT.js"),__vite__mapDeps([391,15]))),LinqTeamsMemberDetailsPage=reactExports.lazy(()=>__vitePreload(()=>import("./linq-teams-member-details-9FzOZmCK.js"),__vite__mapDeps([392,393,394,395,15,41,269]))),OrganizationMemberDetailsPage=reactExports.lazy(()=>__vitePreload(()=>import("./organization-member-details-BijaAEXa.js"),__vite__mapDeps([396,359,107,393,394,15,397,370]))),LinqTeamsPurchasePage=reactExports.lazy(()=>__vitePreload(()=>import("./linq-teams-purchase-page-DFi2pd8G.js"),__vite__mapDeps([398,187,101,15,399]))),LinqTeamsStripeSuccessPage=reactExports.lazy(()=>__vitePreload(()=>import("./linq-teams-stripe-success-page-yCyJ4Fck.js"),__vite__mapDeps([400,335,336]))),MobileLinqTeamsStripeSuccessPage=reactExports.lazy(()=>__vitePreload(()=>import("./mobile-linq-teams-stripe-success-page-D3-gkTVD.js"),__vite__mapDeps([401,335,336]))),LinqTeamBillingPage=reactExports.lazy(()=>__vitePreload(()=>import("./linq-team-billing-page-DKdpPSk9.js"),__vite__mapDeps([402,285,35,25,26,27,10,5,370,99,15,403]))),LinqTeamAnalyticsOverviewPage=reactExports.lazy(()=>__vitePreload(()=>import("./linq-team-analytics-overview-page-C1_v_CTv.js"),__vite__mapDeps([404,318,319,316,15,405,354,363,63]))),LinqTeamInvitesListPage=reactExports.lazy(()=>__vitePreload(()=>import("./linq-team-invites-list-page-q5wjdkT1.js"),__vite__mapDeps([406,121,407,361,41,255,362,15,354]))),OrganizationInvitesListPage=reactExports.lazy(()=>__vitePreload(()=>import("./organization-invites-list-page-M7SPphsl.js"),__vite__mapDeps([408,121,407,368,41,15,255,362,107]))),EditContentBlockPage=reactExports.lazy(()=>__vitePreload(()=>import("./edit-content-block-page-BErYNvo2.js"),__vite__mapDeps([409,263,264,35,20,21,78,94,95,4,265,145,165,85,41,252,266,121,267,73,268,269,60,185,102,270,271,253,234,15,183,184,273,193,62,194,195,196,192,197,146,63,381]))),LinqTeamContentBlocksPage=reactExports.lazy(()=>__vitePreload(()=>import("./linq-team-content-blocks-page-CcDD-MlY.js"),__vite__mapDeps([410,379,380,381,354]))),LinqTeamManageContentBlockPagesPage=reactExports.lazy(()=>__vitePreload(()=>import("./linq-team-manage-content-block-pages-page-Bhn9dXe8.js"),__vite__mapDeps([411,412,184,14,20,21,15,270]))),LinqOrgManageContentBlockPagesPage=reactExports.lazy(()=>__vitePreload(()=>import("./linq-org-manage-content-block-pages-page-CqJdP4vS.js"),__vite__mapDeps([413,412,184,14,20,21,15,270]))),UserLeadsPage=reactExports.lazy(()=>__vitePreload(()=>import("./user-leads-page-scMmCt5X.js"),__vite__mapDeps([414,177,178,1,179,180,181,118,62,182,183,20,21,78,184,185,60,186,187,101,188,121,189,190,59,191,192,193,194,195,196,197,146,63,198,199,200,70,201,51,7,52,10,53,54,55,13,48,49,41,50,36,40,42,9,43,44,45,46,47,56,57,124,125,102,126,153,73,138,202,39,19,22,23,24,25,26,27,28,29,30,31,32,147,203,37,38,133,134,35,135,136,137,4,139,140,141,142,91,92,143,144,145,82,83,148,149,168,90,169,103,104,105,204,205,206,207,208,209,210,211,212,89,93,61,34,88,94,95,96,97,98,99,100,3,170,15,167,171,173]))),LinqTeamLeadsPage=reactExports.lazy(()=>__vitePreload(()=>import("./linq-team-leads-page-Cb9FoXw0.js"),__vite__mapDeps([415,177,178,1,179,180,181,118,62,182,183,20,21,78,184,185,60,186,187,101,188,121,189,190,59,191,192,193,194,195,196,197,146,63,198,199,200,70,201,51,7,52,10,53,54,55,13,48,49,41,50,36,40,42,9,43,44,45,46,47,56,57,124,125,102,126,153,73,138,202,39,19,22,23,24,25,26,27,28,29,30,31,32,147,203,37,38,133,134,35,135,136,137,4,139,140,141,142,91,92,143,144,145,82,83,148,149,168,90,169,103,104,105,204,205,206,207,208,209,210,211,212,89,93,61,34,88,94,95,96,97,98,99,100,3,170,15,167,171,173]))),TileAnalyticsPage=reactExports.lazy(()=>__vitePreload(()=>import("./tile-analytics-page-4JHnFi93.js"),__vite__mapDeps([416,183,20,21,78,184,185,60,15,405,191,192,198]))),EditCardContentBlockOverridesPage=reactExports.lazy(()=>__vitePreload(()=>import("./edit-card-content-block-overrides-page-BaP_toBa.js"),__vite__mapDeps([417,265,20,78,145,165,85,41,252,266,121,267,73,268,269,4,60,185,102,270,271,253,191,192,184,198,195,196]))),VirtualBackgroundsPage=reactExports.lazy(()=>__vitePreload(()=>import("./virtual-backgrounds-page-BPlQpabE.js"),__vite__mapDeps([418,87,88,89,90,91,92,93,35,61,34,25,26,36,20,21,94,95,4,13,96,97,22,23,9,38,98,99,100,101,73,28,3,102,147,181,419,145,144,62,302,209,135,136,137,30,138,142,210,82,83,146,139,140,70,51,7,52,10,53,54,55,141,56,78,14,15,32,303,148,420,268,421,422,290,190,59,143,373,250,423,291,191,192]))),TeamAssetsLibraryPage=reactExports.lazy(()=>__vitePreload(()=>import("./virtual-backgrounds-message-BnsLazAz.js").then(o=>o.t),__vite__mapDeps([421,422,290,190,62,59,143,144,145,82,83,13,147,419,36,420,373,250,423,87,88,89,90,91,92,93,35,61,34,25,26,20,21,94,95,4,96,97,22,23,9,38,98,99,100,101,73,28,3,102]))),OrgAssetsLibraryPage=reactExports.lazy(()=>__vitePreload(()=>import("./org-assets-library-page-DTlQdAUX.js"),__vite__mapDeps([424,290,190,62,59,87,88,89,90,91,92,93,35,61,34,25,26,36,20,21,94,95,4,13,96,97,22,23,9,38,98,99,100,101,73,28,3,102,143,144,145,82,83,419,420,373,250,423]))),OrgPromptsPage=reactExports.lazy(()=>__vitePreload(()=>import("./org-prompts-page-BY-r1c07.js"),__vite__mapDeps([425,426,274,275,73,297,427,428,429,20,21,78,87,88,89,90,91,92,93,35,61,34,25,26,36,94,95,4,13,96,97,22,23,9,38,98,99,100,101,28,3,102,430,431,140,70,277,147,432,276,433]))),SharePage=reactExports.lazy(()=>__vitePreload(()=>import("./share-page-By9BPNFQ.js"),__vite__mapDeps([434,346,188,121,189,435,181,331,299,300,20,21,78,35,262,263,264,94,95,4,265,145,165,85,41,252,266,267,73,268,269,60,185,102,270,271,253,234,272,183,184,273,210,144,82,83,142,91,92,25,26,274,275,276,32,190,62,59,277,147,87,88,89,90,93,61,34,36,13,96,97,22,23,9,38,98,99,100,101,28,3,15,205,278,279,280,285,51,7,52,10,53,54,55,191,192,291,140,70,418,419,302,209,135,136,137,30,138,146,139,141,56,14,303,148,420,421,422,290,143,373,250,423,436,292,27]))),DeleteOrDeactivateAccountPage=reactExports.lazy(()=>__vitePreload(()=>import("./delete-or-deactivate-account-page-CmJBhz6b.js"),__vite__mapDeps([437,35,20,21,78,25,26,15]))),NotificationSettingsPage=reactExports.lazy(()=>__vitePreload(()=>import("./notification-settings-page-e4RZ_x2k.js"),__vite__mapDeps([438,20,21,91,92,61]))),EmailUnsubscribeConfirmationPage=reactExports.lazy(()=>__vitePreload(()=>import("./email-unsubscribe-confirmation-page-D-FUzZOB.js"),__vite__mapDeps([439,20,21,87,88,89,90,91,92,93,35,61,34,25,26,36,94,95,4,13,96,97,22,23,9,38,98,99,100,101,73,28,3,102]))),PageNotFound=reactExports.lazy(()=>__vitePreload(()=>import("./page-not-found-page-C1UcH6As.js"),__vite__mapDeps([440,20,21,78]))),PromptsPage=reactExports.lazy(()=>__vitePreload(()=>import("./prompts-page-DSjT_npH.js"),__vite__mapDeps([441,426,274,275,73,297,427,428,429,20,21,78,87,88,89,90,91,92,93,35,61,34,25,26,36,94,95,4,13,96,97,22,23,9,38,98,99,100,101,28,3,102,430,431,140,70,277,147,432,276,442]))),SnippetsPage=reactExports.lazy(()=>__vitePreload(()=>import("./snippets-page-BpTyBx4c.js"),__vite__mapDeps([443,300,20,21,78,87,88,89,90,91,92,93,35,61,34,25,26,36,94,95,4,13,96,97,22,23,9,38,98,99,100,101,73,28,3,102,277,147,444,445,430,274,275,446,121,432,276,427,50]))),SnippetDetailsPage=reactExports.lazy(()=>__vitePreload(()=>import("./snippet-details-page-CdP8bHO7.js"),__vite__mapDeps([447,35,9,25,26,87,88,89,90,91,92,93,61,34,36,20,21,94,95,4,13,96,97,22,23,38,98,99,100,101,73,28,3,102,430,277,147,445,274,275,446,121,432,276,427,444,443,300,78,50]))),OrgSnippetDetailsPage=reactExports.lazy(()=>__vitePreload(()=>import("./org-snippet-details-page-BYcvoEwB.js").then(o=>o.o),__vite__mapDeps([445,35,9,25,26,87,88,89,90,91,92,93,61,34,36,20,21,94,95,4,13,96,97,22,23,38,98,99,100,101,73,28,3,102,430,277,147,274,275,446,121,432,276,427]))),OrgSnippetsPage=reactExports.lazy(()=>__vitePreload(()=>import("./org-snippets-page-CSxBEyBe.js"),__vite__mapDeps([448,300,20,21,78,87,88,89,90,91,92,93,35,61,34,25,26,36,94,95,4,13,96,97,22,23,9,38,98,99,100,101,73,28,3,102,277,147,444,445,430,274,275,446,121,432,276,427,449]))),MobileDashboardPage=reactExports.lazy(()=>__vitePreload(()=>import("./mobile-dashboard-page-B1jleJgL.js"),__vite__mapDeps([450,264,35,20,21,78,94,95,4,1,451,26,22,23,98,234,8,9,102,87,88,89,90,91,92,93,61,34,25,36,13,96,97,38,99,100,101,73,28,3,52,452,453,212,454]))),ConfirmEmailPage=reactExports.lazy(()=>__vitePreload(()=>import("./confirm-email-page-BozF8qEL.js"),[])),DomainContactPage=reactExports.lazy(()=>__vitePreload(()=>import("./domain-contact-page-C2QBGAAT.js"),__vite__mapDeps([455,121,181,136,137,4,226,41,227,15,58,59,60,62,204,205,194,197,57,63]))),OrganizationEditPageTemplatePage=reactExports.lazy(()=>__vitePreload(()=>import("./organization-edit-page-template-page-q_BuUUno.js"),__vite__mapDeps([456,262,263,264,35,20,21,78,94,95,4,265,145,165,85,41,252,266,121,267,73,268,269,60,185,102,270,271,253,234,272,183,184,273,210,144,82,83,142,91,92,25,26,274,275,276,32,188,189,190,62,59,277,147,87,88,89,90,93,61,34,36,13,96,97,22,23,9,38,98,99,100,101,28,3,15,205,278,279,280]))),OrganizationPageTemplatesAssignerPage=reactExports.lazy(()=>__vitePreload(()=>import("./organization-page-templates-assigner-page-wvWDdYcB.js"),__vite__mapDeps([457,458,20,21,459,460,62,23,9,87,88,89,90,91,92,93,35,61,34,25,26,36,94,95,4,13,96,97,22,38,98,99,100,101,73,28,3,102,147,279]))),LftTrialSignupPricingPage=reactExports.lazy(()=>__vitePreload(()=>import("./pricing-page-Bqn-tksY.js"),__vite__mapDeps([461,6,7,8,9,2,3,4,10,1,89,90,91,92,93,35,61,34,25,26,36,88,20,21,94,95,13,96,97,22,23,38,98,99,100,101,73,28,102,462,5,463,78,464,142,465,87]))),LftTrialSignupCreateProfilePage=reactExports.lazy(()=>__vitePreload(()=>import("./create-profile-page-BmBWvqSU.js"),__vite__mapDeps([466,219,221,244,35,72,25,26,73,51,7,52,10,53,54,55,220,24,67,245,4,70,66]))),LftTrialSignupAboutYourTeamPage=reactExports.lazy(()=>__vitePreload(()=>import("./about-team-page-C-4er5uS.js"),__vite__mapDeps([467,35,22,23,219,25,26,38,221,98,67,148,468,250,469]))),ManageLinqOneSubscriptionPage=reactExports.lazy(()=>__vitePreload(()=>import("./manage-linq-one-subscription-page-w7bkpWBK.js"),__vite__mapDeps([470,471,182,183,20,21,78,184,185,60,186,187,101,188,121,189,190,62,59,191,192,193,194,195,196,197,146,63,198,199,472,473,80,474,475,332,117,31,403,35,25,26,38,27,10,54,51,7,52,53,55,8,9,476,105,464,142,91,92]))),EntitlementInterestPage=reactExports.lazy(()=>__vitePreload(()=>import("./entitlement-interest-page-Cg2UoWNc.js"),__vite__mapDeps([477,38,26,478]))),HubspotDialerPage=reactExports.lazy(()=>__vitePreload(()=>import("./hubspot-dialer-page-Boiuyq5t.js"),__vite__mapDeps([479,42,124,125,102,126,56,152,73,29,153,154,155,118,62,115,116,117,31,123,146,70,52,35,25,26,156,157,40,1,41,9,43,44,45,46,47,48,49,50,36,51,7,10,53,54,55,57,103,105,93,158,84,85,226,227,15,180,181,182,183,20,21,78,184,185,60,186,187,101,188,121,189,190,59,191,192,193,194,195,196,197,63,198,199,200,201,13,138,202,39,149,127]))),DialerPage=reactExports.lazy(()=>__vitePreload(()=>import("./dialer-page-CeonwKkO.js"),__vite__mapDeps([480,120,121,1,122,42,123,124,125,102,126,70,23,127]))),SalesforceEntryPage=reactExports.lazy(()=>__vitePreload(()=>import("./salesforce-entry-page-d1_1_j8O.js"),__vite__mapDeps([481,42]))),WorknumberPreviewMessage=reactExports.lazy(()=>__vitePreload(()=>import("./message-B3lJrdqV.js"),__vite__mapDeps([482,156,157,40,1,41,42,9,43,44,45,46,47,48,49,50,36,51,7,52,10,53,54,55,56,57,103,105,93,154,155,118,62,115,116,117,31,123,124,125,102,126,146,70]))),WorknumberPreviewMessages=reactExports.lazy(()=>__vitePreload(()=>import("./messages-DHCamae1.js"),__vite__mapDeps([483,214,163,124,125,102,126,115,116,117,31,70,23,36,215,119,120,121,1,122,42,123,127,128,129,130,53,54,55]))),ConversationsSetupPage=reactExports.lazy(()=>__vitePreload(()=>import("./conversations-setup-page-C4mEUPbe.js"),__vite__mapDeps([484,187,101,27,10,32,56]))),ConversationsSettingsPage=reactExports.lazy(()=>__vitePreload(()=>import("./conversations-settings-page-BIrzdfHg.js"),__vite__mapDeps([485,56,140,70,25,26,431,35,427,4,274,275,32,197]))),ConversationsAutomationsPage=reactExports.lazy(()=>__vitePreload(()=>import("./phone-automations-page-Rvltt4d2.js"),__vite__mapDeps([486,463,20,21,78,285,87,88,89,90,91,92,93,35,61,34,25,26,36,94,95,4,13,96,97,22,23,9,38,98,99,100,101,73,28,3,102,487]))),EditAutomationPage=reactExports.lazy(()=>__vitePreload(()=>import("./edit-automation-page-CnE3hK9w.js"),__vite__mapDeps([488,285,87,88,89,90,91,92,93,35,61,34,25,26,36,20,21,94,95,4,13,96,97,22,23,9,38,98,99,100,101,73,28,3,102,32,1,446,121,274,275,27,10,202,489,128,129,453,430,490]))),ImportNativeContactsPage=reactExports.lazy(()=>__vitePreload(()=>import("./import-native-contacts-page-CimL66pW.js"),__vite__mapDeps([491,285,87,88,89,90,91,92,93,35,61,34,25,26,36,20,21,94,95,4,13,96,97,22,23,9,38,98,99,100,101,73,28,3,102,492,493,494,179,180,181,118,62,182,183,78,184,185,60,186,187,188,121,189,190,59,191,192,193,194,195,196,197,146,63,198,199,200,70,201,51,7,52,10,53,54,55,48,49,1,41,50,40,42,43,44,45,46,47,56,57,124,125,126,153,138,202,39,19,24,27,29,30,31,32,147,203,37,133,134,135,136,137,139,140,141,142,143,144,145,82,83,148,149,168,169,103,104,105,204,205,206,207,208,167,170,171,84,85]))),BASE_PATH_SKELETONS={[PAGE_ROUTES.conversations]:ConversationsPageSkeleton},BASE_PATHS={"/contacts":ContactsPage,[PAGE_ROUTES.conversations]:ConversationsPage,"/conversations-setup":ConversationsSetupPage,"/analytics":AnalyticsPage,[PAGE_ROUTES.bookMeeting.email]:BookMeetingPage,"/products":NFCSetupPage,"/settings-tab":SettingsTab,"/create-contact":CreateContactPage,[PAGE_ROUTES.welcomeDeprecated]:WelcomePageDeprecated,[PAGE_ROUTES.welcome]:WelcomePage,"/account-edit":AccountEditPage,"/create-lead":CreateLinqLeadPage,"/scan-business-card":ScanBusinessCardPage,"/scan-qr-code":ScanQRCodePage,"/leads":UserLeadsPage,"/tasks":TasksPage,"/auth-page":AuthPage,"/integrations":IntegrationsPage,"/oauth/callback":OAuthCloseWindowPage,"/stripe-success":StripeSuccessPage,"/create-user-from-simple":CreateUserFromSimplePage,"/temp-write-nfc-page":TempWriteNFCPage,"/qr-to-nfc-write-page":QRReadToNFCWritePage,"/product-education":ProductEducationPage,"/product-education-menu":ProductEducationMenuPage,"/qr-download":QRCodeDownloadPage,"/subscriptions":ManageLinqOneSubscriptionPage,"/delete-or-deactivate-user-account":DeleteOrDeactivateAccountPage,"/notification-settings":NotificationSettingsPage,"/select-sso-connection":SelectSSOConnectionPage,"/page-not-found":PageNotFound,"/snippets":SnippetsPage,[PAGE_ROUTES.dashboard]:MobileDashboardPage,"/confirm-email":ConfirmEmailPage,"/recent-scanned-contacts":RecentScannedContactsPage,"/manage-pro-subscription":ManageLinqOneSubscriptionPage,"/manage-linq-one-subscription":ManageLinqOneSubscriptionPage,"/import-native-contacts":ImportNativeContactsPage,"/workos-callback":WorkosAuthCallbackPage,"/voicemails":VoicemailsPage,"/dialer":DialerPage,"/new-email":NewEmailPage},AUTH_REQUIRED_PAGES=[PAGE_ROUTES.conversations],LinqAppRoutes=(o=!1)=>[{path:"/",component:HomeRedirect,exact:!0},{path:"/signup",render:s=>jsxRuntimeExports.jsx(SignupPage,{...s}),exact:!0},{path:"/dialer",render:s=>jsxRuntimeExports.jsx(DialerPage,{...s}),authRequired:!0},{path:"/new-email",render:s=>jsxRuntimeExports.jsx(NewEmailPage,{...s}),exact:!0,authRequired:!0},{path:"/oauth/callback",render:()=>jsxRuntimeExports.jsx(OAuthCloseWindowPage,{}),exact:!0},{path:"/salesforce/dialer",render:s=>jsxRuntimeExports.jsx(SalesforceEntryPage,{...s}),exact:!0},{path:PAGE_ROUTES.bookMeeting.userDetails,render:s=>jsxRuntimeExports.jsx(BookMeetingDetailsPage,{...s}),exact:!0},{path:PAGE_ROUTES.bookMeeting.confirmDetails,render:s=>jsxRuntimeExports.jsx(BookMeetingConfirmDetailsPage,{...s}),exact:!0},{path:PAGE_ROUTES.bookMeeting.calendar,render:s=>jsxRuntimeExports.jsx(BookMeetingCalendarPage,{...s}),exact:!0},{path:"/hubspot/dialer",render:s=>jsxRuntimeExports.jsx(HubspotDialerPage,{...s}),exact:!0,authRequired:!0},{path:"/entitlement-interest/:entitlementId",render:s=>jsxRuntimeExports.jsx(EntitlementInterestPage,{...s}),exact:!0,doubleWide:!0},{path:"/lft-trial-signup/pricing-page",render:s=>jsxRuntimeExports.jsx(LftTrialSignupPricingPage,{...s}),exact:!0},{path:"/lft-trial-signup/create-profile",render:s=>jsxRuntimeExports.jsx(LftTrialSignupCreateProfilePage,{...s}),exact:!0},{path:"/lft-trial-signup/about-your-team",render:s=>jsxRuntimeExports.jsx(LftTrialSignupAboutYourTeamPage,{...s}),exact:!0},{path:["//:card_code","/:card_code"],render:s=>{const a=s.match.url,$=!!a.split("/")[2],j=a.split("/")[1]==="";if($&&!j)return;const et=a.endsWith("/")?a.slice(0,-1):a,tt=BASE_PATHS[et];return tt?jsxRuntimeExports.jsx(tt,{...s}):et==="/chat-with-us"?jsxRuntimeExports.jsx(OutsideRedirect,{to:`${MARKETING_SITE_URL}/chat-with-us`}):jsxRuntimeExports.jsx(CardPage,{...s})},isCardPage:!0,exact:!0,skeleton:s=>{const a=s.match.url,$=!!a.split("/")[2],j=a.split("/")[1]==="";if($&&!j)return;const et=a.endsWith("/")?a.slice(0,-1):a,tt=BASE_PATH_SKELETONS[et];return tt?jsxRuntimeExports.jsx(tt,{}):jsxRuntimeExports.jsx(LoadingIndicator,{safeAreaTop:!0})}},{path:"/setup-profile/:page",render:s=>jsxRuntimeExports.jsx(OnboardingLitePage,{...s}),exact:!0},{path:"/teams/:team-id/scan-business-card",render:s=>jsxRuntimeExports.jsx(ScanBusinessCardPage,{...s}),exact:!0},{path:"/cards/:cardCode/edit",render:s=>jsxRuntimeExports.jsx(EditCardPage,{...s}),exact:!0},{path:"/cards/:cardCode/contact-exchange-setting/:contactExchangeSettingId/customize-form",render:s=>jsxRuntimeExports.jsx(EditContactExchangeSettingFormPage,{...s}),exact:!0},{path:"/cards/:cardCode/app-clip-experiences",render:s=>jsxRuntimeExports.jsx(EditAppClipExperiencesPage,{...s}),exact:!0},{path:"/cards/:cardId/prompts",render:s=>jsxRuntimeExports.jsx(PromptsPage,{...s}),exact:!0},{path:["/snippets/new","/snippets/:snippetId/edit"],render:s=>jsxRuntimeExports.jsx(SnippetDetailsPage,{isDrawer:!1,...s}),exact:!0},{path:"/contacts/:contactId/edit",render:s=>jsxRuntimeExports.jsx(EditContactPage,{...s}),exact:!0},{path:"/profile/:contactId/edit",render:s=>jsxRuntimeExports.jsx(EditContactPage,{...s}),exact:!0},{path:"/worknumber-preview/messages",render:s=>jsxRuntimeExports.jsx(WorknumberPreviewMessages,{...s}),exact:!0},{path:"/worknumber-preview/messages/:messageId",render:s=>jsxRuntimeExports.jsx(WorknumberPreviewMessage,{...s}),exact:!0},{path:["/organizations/:orgId/directories/:groupUuid/edit","/organizations/:orgId/teams/:teamId/directories/:groupUuid/edit"],render:s=>jsxRuntimeExports.jsx(EditDirectoryPage,{...s}),exact:!0},{path:"/contacts/:userContactId",exact:!0,render:s=>jsxRuntimeExports.jsx(UserContactDetailPage,{...s})},{path:"/user_contacts/:userContactId/edit",exact:!0,render:s=>jsxRuntimeExports.jsx(UserContactEditPage,{...s})},{path:"/contacts/:userContactId/notes",exact:!0,render:s=>jsxRuntimeExports.jsx(UserContactNotesPage,{...s})},{path:"/phone/settings",exact:!0,render:s=>jsxRuntimeExports.jsx(ConversationsSettingsPage,{...s})},{path:PAGE_ROUTES.phoneAutomations,exact:!0,render:s=>jsxRuntimeExports.jsx(ConversationsAutomationsPage,{...s})},{path:[PAGE_ROUTES.newPhoneAutomation,PAGE_ROUTES.editPhoneAutomation(":workflowId")],exact:!0,render:s=>jsxRuntimeExports.jsx(EditAutomationPage,{...s})},{path:PAGE_ROUTES.voicemail.greeting,exact:!0,render:s=>jsxRuntimeExports.jsx(VoicemailGreetingPage,{...s})},{path:"/calls/:callId",exact:!0,render:s=>jsxRuntimeExports.jsx(CallPage,{...s}),authRequired:!0},{path:"/conversations/:conversationId",exact:!0,render:s=>jsxRuntimeExports.jsx(ConversationPage,{...s}),skeleton:()=>jsxRuntimeExports.jsx(ConversationPageSkeleton,{})},{path:"/emails/:emailThreadId",exact:!0,render:s=>jsxRuntimeExports.jsx(EmailThreadPage,{...s})},{path:"/voicemails",exact:!0,render:s=>jsxRuntimeExports.jsx(VoicemailsPage,{...s})},{path:"/messages/new",exact:!0,render:s=>jsxRuntimeExports.jsx(NewMessagePage,{...s})},{path:"/domain_contacts/:domainContactId",exact:!0,render:s=>jsxRuntimeExports.jsx(DomainContactPage,{...s})},{path:"/tasks/logs",render:s=>jsxRuntimeExports.jsx(TaskLogsPage,{...s}),exact:!0},{path:"/analytics/:cardCode",render:s=>jsxRuntimeExports.jsx(TileAnalyticsPage,{...s}),exact:!0},{path:"/cards/:cardCode/edit-content-block-fields",render:s=>jsxRuntimeExports.jsx(EditCardContentBlockOverridesPage,{...s}),exact:!0},{path:["/auth/workos-callback"],render:s=>jsxRuntimeExports.jsx(WorkosAuthCallbackPage,{...s}),exact:!0},{path:PAGE_ROUTES.auth.oauth.linkedinCallback,render:s=>jsxRuntimeExports.jsx(LinkedInOAuthCallbackPage,{}),exact:!0},{path:PAGE_ROUTES.auth.oauth.linkedinWebCallback,render:s=>jsxRuntimeExports.jsx(LinkedInCallback,{...s}),exact:!0},{path:PAGE_ROUTES.auth.oauth.appleCallback,render:s=>jsxRuntimeExports.jsx(LinkedInCallback,{...s}),exact:!0},{path:"/signup/add-photo",render:s=>jsxRuntimeExports.jsx(SignupPhotoPage,{...s}),exact:!0},{path:"/signup/about-me",render:s=>jsxRuntimeExports.jsx(SignupAboutPage,{...s}),exact:!0},{path:"/signup/organization-setup",render:s=>jsxRuntimeExports.jsx(SignupOrganizationSetupPage,{...s}),exact:!0},{path:"/signup/invite-team-members",render:s=>jsxRuntimeExports.jsx(SignupInviteTeamMembersPage,{...s}),exact:!0},{path:"/admin/lft-purchase-page-builder",exact:!0,render:s=>jsxRuntimeExports.jsx(AdminLFTPurchaseBuilderPage,{...s})},{path:"/admin/users",exact:!0,render:s=>jsxRuntimeExports.jsx(AdminUserManagementPage,{...s})},{path:"/organizations/:orgId/teams/:teamId/analytics-overview",exact:!0,render:s=>jsxRuntimeExports.jsx(LinqTeamAnalyticsOverviewPage,{...s})},{path:"/organizations/:orgId/detail",exact:!0,render:s=>jsxRuntimeExports.jsx(OrganizationDetailPage,{...s})},{path:"/organizations/:orgId/add-team-members",exact:!0,doubleWide:!0,render:s=>jsxRuntimeExports.jsx(AddTeamMembersPage,{...s})},{path:"/organizations/:orgId/team-admin-add-team-members",exact:!0,doubleWide:!0,render:s=>jsxRuntimeExports.jsx(TeamAdminAddTeamMembersPage,{...s})},{path:"/org/manage_products",exact:!0,render:s=>jsxRuntimeExports.jsx(OrganizationDetailPage,{...s})},{path:"/organizations/:orgId/settings",exact:!0,render:s=>jsxRuntimeExports.jsx(OrganizationSettingsPage,{...s})},{path:"/organizations/:orgId/hr-settings",exact:!0,render:s=>jsxRuntimeExports.jsx(HrSettingsPage,{...s})},{path:"/organizations/:orgId/sso-settings",exact:!0,render:s=>jsxRuntimeExports.jsx(SsoSettingsPage,{...s})},{path:"/organizations/:orgId/integrations/:integrationConnectionId/manage",exact:!0,render:s=>jsxRuntimeExports.jsx(OrganizationEditIntegrationPage,{...s})},{path:"/organizations/:orgId/manage-products/:productCode",exact:!0,render:s=>reactExports.createElement(OrganizationManageProductsPage,{...s,key:Date.now()})},{path:"/organizations/:orgId/directories",exact:!0,render:s=>jsxRuntimeExports.jsx(OrganizationDirectoriesPage,{...s})},{path:"/organizations/:orgId/create-team",exact:!0,render:s=>jsxRuntimeExports.jsx(TeamSettingsPage,{...s})},{path:"/organizations/:orgId/teams/:teamId/",exact:!0,render:s=>jsxRuntimeExports.jsx(TeamDetailPage,{...s})},{path:"/organizations/:orgId/manage",exact:!0,render:s=>jsxRuntimeExports.jsx(OrganizationManagePage,{...s})},{path:"/organizations/:orgId/teams/:teamId/manage",exact:!0,render:s=>jsxRuntimeExports.jsx(LinqTeamManagePage,{...s})},{path:"/organizations/:orgId/teams/:teamId/settings",exact:!0,render:s=>jsxRuntimeExports.jsx(TeamSettingsPage,{...s})},{path:"/organizations/:orgId/teams/:teamId/manage-products/:productCode",exact:!0,render:s=>reactExports.createElement(TeamManageProductsPage,{...s,key:Date.now()})},{path:"/teams/:teamId/workflows",exact:!0,render:s=>jsxRuntimeExports.jsx(TeamWorkflowsPage,{...s})},{path:"/workflows/:id",exact:!0,render:s=>jsxRuntimeExports.jsx(WorkflowPage,{...s})},{path:"/organizations/:orgId/billing",exact:!0,render:s=>jsxRuntimeExports.jsx(LinqTeamBillingPage,{...s})},{path:"/organizations/:orgId/teams/:teamId/leads",exact:!0,render:s=>jsxRuntimeExports.jsx(LinqTeamLeadsPage,{...s})},{path:"/organizations/:orgId/teams/:teamId/directories",exact:!0,render:s=>jsxRuntimeExports.jsx(TeamDirectoriesPage,{...s})},{path:"/organizations/:orgId/manage/members/:userOrganizationId",exact:!0,render:s=>jsxRuntimeExports.jsx(OrganizationMemberDetailsPage,{...s})},{path:"/organizations/:orgId/teams/:teamId/manage/members/:userTeamId",exact:!0,render:s=>jsxRuntimeExports.jsx(LinqTeamsMemberDetailsPage,{...s})},{path:"/organizations/:orgId/invites/:inviteUuid/accept",exact:!0,render:s=>reactExports.createElement(LinqTeamsAcceptInvitePage,{...s,key:Date.now()})},{path:"/organizations/:orgId/manage/invites",exact:!0,render:s=>reactExports.createElement(OrganizationInvitesListPage,{...s,key:Date.now()})},{path:"/organizations/:orgId/teams/:teamId/manage/invites",exact:!0,render:s=>reactExports.createElement(LinqTeamInvitesListPage,{...s,key:Date.now()})},{path:"/teams/purchase",exact:!0,render:s=>jsxRuntimeExports.jsx(LinqTeamsPurchasePage,{...s})},{path:"/teams/stripe-success",exact:!0,render:s=>jsxRuntimeExports.jsx(LinqTeamsStripeSuccessPage,{...s})},{path:"/teams/mobile-stripe-success",exact:!0,render:s=>jsxRuntimeExports.jsx(MobileLinqTeamsStripeSuccessPage,{...s})},{path:"/organizations/:orgId/content-blocks",exact:!0,render:s=>jsxRuntimeExports.jsx(OrganizationContentBlocksPage,{...s})},{path:"/organizations/:orgId/page-templates",exact:!0,render:s=>jsxRuntimeExports.jsx(OrganizationPageTemplatesPage,{...s})},{path:["/organizations/:orgId/content-blocks/:tileGroupId/edit","/organizations/:orgId/teams/:teamId/content-blocks/:tileGroupId/edit"],exact:!0,render:s=>jsxRuntimeExports.jsx(EditContentBlockPage,{...s})},{path:"/organizations/:orgId/teams/:teamId/content-blocks",exact:!0,render:s=>jsxRuntimeExports.jsx(LinqTeamContentBlocksPage,{...s})},{path:"/organizations/:orgId/teams/:teamId/content-blocks/:tileGroupId/manage",exact:!0,render:s=>jsxRuntimeExports.jsx(LinqTeamManageContentBlockPagesPage,{...s})},{path:"/organizations/:orgId/content-blocks/:tileGroupId/manage",exact:!0,render:s=>jsxRuntimeExports.jsx(LinqOrgManageContentBlockPagesPage,{...s})},{path:["/organizations/:orgId/page-templates/:pageTemplateId/contact-exchange-settings/:contactExchangeSettingId/edit"],exact:!0,render:s=>jsxRuntimeExports.jsx(OrganizationEditPageTemplatePage,{...s})},{path:["/organizations/:orgId/page-templates/:pageTemplateId/manage"],exact:!0,render:s=>jsxRuntimeExports.jsx(OrganizationPageTemplatesAssignerPage,{...s})},{path:"/pay/settings",exact:!0,render:s=>jsxRuntimeExports.jsx(LinqPaySettingsPage,{...s})},{path:"/pay/settings/stripe_auth_success",exact:!0,render:s=>jsxRuntimeExports.jsx(LinqPayStripeAuthSuccessPage,{...s})},{path:["/pay/send-to-stripe-checkout","/pay/send_to_stripe_checkout"],exact:!0,render:s=>jsxRuntimeExports.jsx(StripeCheckoutPage,{...s})},{path:"/stripe_checkout_link/:uuid",exact:!0,render:s=>jsxRuntimeExports.jsx(StripeCheckoutLinkPage,{...s})},{path:"/:card_code/share",exact:!1,render:s=>jsxRuntimeExports.jsx(SharePage,{...s})},{path:"/:card_code/virtual-backgrounds",exact:!0,render:s=>jsxRuntimeExports.jsx(VirtualBackgroundsPage,{...s})},{path:"/organizations/:orgId/teams/:teamId/assetsLibrary",exact:!0,render:s=>jsxRuntimeExports.jsx(TeamAssetsLibraryPage,{...s})},{path:"/organizations/:orgId/assetsLibrary",exact:!0,render:s=>jsxRuntimeExports.jsx(OrgAssetsLibraryPage,{...s})},{path:"/organizations/:orgId/prompts",exact:!0,render:s=>jsxRuntimeExports.jsx(OrgPromptsPage,{...s})},{path:"/organizations/:orgId/snippets",exact:!0,render:s=>jsxRuntimeExports.jsx(OrgSnippetsPage,{...s},Date.now())},{path:["/organizations/:orgId/snippets/:snippetId/edit","/organizations/:orgId/create-snippet"],exact:!0,render:s=>jsxRuntimeExports.jsx(OrgSnippetDetailsPage,{...s})},{path:"/unsubscribe/email/:emailType",exact:!0,render:s=>jsxRuntimeExports.jsx(EmailUnsubscribeConfirmationPage,{...s})},{path:["/c/:card_code","/user/:card_code","/users/:card_code"],render:s=>jsxRuntimeExports.jsx(CardPage,{...s}),exact:!0}].map(s=>s.render?{...s,render:a=>{document.querySelectorAll('ion-modal[is-open="true"]').forEach(tt=>tt.setAttribute("is-open",!1));const j=store.getState().user.currentUser,_e=a.location.pathname;return(AUTH_REQUIRED_PAGES.includes(_e)||s.authRequired)&&!j?(store.dispatch(setRedirectPathAfterLogin(_e)),jsxRuntimeExports.jsx(Redirect,{to:PAGE_ROUTES.welcome})):jsxRuntimeExports.jsx(IonPage,{children:jsxRuntimeExports.jsx(ErrorBoundaryForPage$1,{children:jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:s.skeleton?s.skeleton(a):jsxRuntimeExports.jsx(LoadingIndicator,{safeAreaTop:!0}),children:s.render(a)})})})}}:s);class AppClipContactsWeb extends WebPlugin{constructor(){super({name:"AppClipContactsPlugin",platforms:["web","android"]})}checkIsAppClip(){return Promise.resolve({value:!1})}createContact(s){return Promise.resolve({value:!1})}createContactReminderNotification(s){return Promise.resolve({value:!1})}}const runningAppClip=async()=>(await AppClipContactsPlugin.checkIsAppClip()).value,AppClipContactsPlugin=registerPlugin("AppClipContactsPlugin",{web:()=>new AppClipContactsWeb,android:()=>new AppClipContactsWeb}),getProduct=(o,s)=>(s=s.sort(($,j)=>{var _e,et;return((_e=j==null?void 0:j.prefix)==null?void 0:_e.length)-((et=$==null?void 0:$.prefix)==null?void 0:et.length)}),s?s.find($=>{var j;return($==null?void 0:$.prefix)===o.substring(0,(j=$==null?void 0:$.prefix)==null?void 0:j.length)}):void 0),matchesCardPagePath=(o,s)=>{if(!(!o||!s)&&!NON_CARD_PAGE_PATHS.includes(o))return!!s.find(a=>matchPath(o,a))},NON_CARD_PAGE_PATHS=Object.keys(BASE_PATHS),routes$2=LinqAppRoutes(),cardPageRoutes=routes$2.filter(o=>o.isCardPage);function viewingInPreviewMode(o){return new URLSearchParams(o==null?void 0:o.search).get("viewingAs")==="1"}const determineIsProduct=o=>{var _e;const a=(store.getState().linqProducts.allProducts||[]).sort((et,tt)=>{var nt,it;return(((nt=tt==null?void 0:tt.prefix)==null?void 0:nt.length)||0)-(((it=et==null?void 0:et.prefix)==null?void 0:it.length)||0)}),$=((_e=o==null?void 0:o.pathname)==null?void 0:_e.substring(1))||"";return!!getProduct($,a)},getTypeOfView=(o,s,a)=>{const $=determineIsProduct(a),j=(s==null?void 0:s.is_unactivated_linq_product)===!0,_e=viewingInPreviewMode(a),et=(s==null?void 0:s.is_unactivated_alias)===!0,tt=(s==null?void 0:s.is_unpaired)===!0,nt=(a==null?void 0:a.pathname)==="/profile";return o||(j?"unactivated product":_e?"preview mode":et?"unclaimed alias":tt?"unpaired product":$?"product scan":nt?"default profile":null)},trackPage=async(o,s,a)=>{var _e,et,tt,nt;let $=null;try{$=new URLSearchParams(a.search).get("r")}catch(it){console.error(it)}const j=await AppClipContactsPlugin.checkIsAppClip();if(o){const it={route:a==null?void 0:a.pathname,referralSource:$,typeOfView:getTypeOfView($,o,a),actionableType:"card",actionableId:(_e=o==null?void 0:o.card)==null?void 0:_e.id,ownCard:((et=o==null?void 0:o.card)==null?void 0:et.user_id)===((nt=(tt=store.getState().user)==null?void 0:tt.currentUser)==null?void 0:nt.id),cardData:o};s(track(TRACK_VIEW_PAGED,it));return}else{const it={route:a==null?void 0:a.pathname,referralSource:$,typeOfView:$,isAppClip:j.value};s(track(TRACK_VIEW_PAGED,it));return}},useTrackPage=()=>{const o=useDispatch(),s=useLocation();reactExports.useEffect(()=>{matchesCardPagePath(s==null?void 0:s.pathname,cardPageRoutes)||trackPage(null,o,s)},[s==null?void 0:s.pathname])};function isSafari$1(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function LinqImage({fallback:o="/assets/image-not-found.svg",src:s,alt:a,loading:$="lazy",...j}){const[_e,et]=reactExports.useState(s),tt=()=>et(o);reactExports.useEffect(()=>{et(s)},[s]);const nt=reactExports.useMemo(()=>isSafari$1(),[]);return jsxRuntimeExports.jsx("img",{loading:nt?"eager":$,src:_e||o,onError:tt,alt:a,...j})}const EMPTY_ARRAY=Object.freeze([]),EMPTY_OBJECT=Object.freeze({}),ADD_CONTENT_ICON="assets/icons/add-content-icon.svg",ALERT_ICON="assets/icons/alert_icon.svg",ANALYTICS_LINE_ICON="/assets/icons/analytics-line.svg",APP_STORE_ICON="assets/icons/app-store-logo.svg",ARROW_FORWARD_ICON="assets/icons/arrow-forward-circle-outline.svg",AUTOMATIONS_PAD="assets/icons/automations-pad.svg",CLOUD_CHECKED_OUTLINE="assets/icons/cloud-checked-outline.svg",CLOUD_UPLOAD_OUTLINE="assets/icons/cloud-upload-outline.svg",CONTACT_CARD="assets/icons/contact-card.svg",CONTACT_LABEL="assets/icons/contact-label.svg",CONTACT_LABEL_OUTLINE="assets/icons/contact-label-outline.svg",CONTACT_SHARE="assets/icons/contact-share.svg",DOWNLOAD_ICON="assets/icons/download-icon.svg",EDIT_FILLED_PAD="assets/icons/edit-filled-pad.svg",EDIT_LINE_PAD_OUTLINE="assets/icons/edit-line-pad-outline.svg",FILTER_OUTLINE="assets/icons/filter-outline.svg",HR_INTEGRATIONS_ICON="assets/icons/hr-integrations.svg",INTEGRATION_ICON="assets/icons/integration.svg",LINK_ICON="assets/icons/link.svg",NOTE="assets/icons/note.svg",NOTIFICATION_SETTING="assets/icons/notification-setting-icon.svg",QR_CODE_OUTLINE_ICON="/assets/icons/qr-code-outline.svg",QUICK_SHARE_FILLED_ICON="/assets/icons/quick-share-filled.svg",QUICK_SHARE_ICON="/assets/icons/quick-share.svg",REMINDER_ICON="assets/icons/reminder-icon.svg",SETTINGS_ICON="assets/icons/settings-outline.svg",SNOOZE="assets/icons/snooze.svg",CONTENT_BLOCK_OUTLINE_ICON="/assets/icons/content-blocks-outline.svg",UNION_ICON="assets/icons/union_icon.svg",BEACH_EMPTY_ICON="assets/icons/beach-empty-tasks.svg",CHECKMARK_ICON="assets/icons/checkmark.svg",EDIT_PENCIL_ICON="assets/icons/edit-pencil.svg",CONTACT_FILE_ICON="assets/icons/contact-file.svg",PRODUCT_ACTIVATION_OUTLINE_ICON="assets/icons/product-activation-outline.svg",EMAIL="assets/icons/email.svg",PHONE="assets/icons/phone.svg",SMS="assets/icons/sms.svg",ELEVATE="assets/icons/elevate.svg",REMOVE_ICON="assets/icons/remove-button.svg",NFC_ICON="assets/icons/nfc-icon.svg",LINK_ICON_OUTLINE="assets/icons/link-icon-outline.svg",TRASH_ICON="assets/icons/trash-icon.svg",MENU_ICON_DASHBOARD="/assets/icons/menu/dashboard-filled.svg",MENU_ICON_CONTACTS="/assets/icons/menu/contacts-filled.svg",MENU_ICON_ANALYTICS="/assets/icons/menu/analytics-filled.svg",MENU_ICON_PRODUCTS="/assets/icons/menu/products-filled.svg",MENU_ICON_PEOPLE="/assets/icons/menu/people-circle.svg",MENU_ICON_SETTINGS_FILLED="/assets/icons/menu/settings-filled.svg",MENU_ICON_AUTOMATIONS_FILLED="/assets/icons/menu/automations-filled.svg",EDIT_PAGE_ICON="/assets/icons/edit-page-pencil.svg",SHARE_PAGE_ICON="/assets/icons/share-page.svg",FILTER_SOLID_ICON="assets/icons/filter-solid.svg",INFINITE_ICON="assets/icons/infinite.svg",RIGHT_LEFT_ARROW_ICON="assets/icons/right-left-arrow.svg",SNIPPET_ICON="assets/icons/snippet-icon.svg",PROFILE_OUTLINE_ICON="assets/icons/icon-profile-line.svg",PRODUCTS_OUTLINE_ICON="assets/icons/icon-products-outlined.svg",REMOVE_USER_ICON="assets/icons/remove-user-icon.svg",ENRICHMENT_SPARKLES="assets/icons/enrichment-sparkles.svg",PAGE_TO_CONTENT_BLOCK_OUTLINE_ICON="assets/icons/icon-page-to-content-block-outlined.svg",ZAPIER_LOGO="assets/icons/zapier.svg",ICONS=Object.freeze({LINQ_ONE_ICON:"assets/icons/linq-one-icon.svg",ADD_CONTENT_ICON:"assets/icons/add-content-icon.svg",ADMIN_DASHBOARD_FRAME_ICON:"assets/icons/admin-dashboard-frame.svg",ALERT_ICON:"assets/icons/alert_icon.svg",ANALYTICS_LINE_ICON:"/assets/icons/analytics-line.svg",APP_STORE_ICON:"assets/icons/app-store-logo.svg",ARROW_FORWARD_ICON:"assets/icons/arrow-forward-circle-outline.svg",AUTOMATIONS_PAD:"assets/icons/automations-pad.svg",CALL_WITH_CHECKMARK:"assets/icons/call-with-checkmark.svg",CLOUD_CHECKED_OUTLINE:"assets/icons/cloud-checked-outline.svg",CLOUD_UPLOAD_OUTLINE:"assets/icons/cloud-upload-outline.svg",CONTACT_CARD:"assets/icons/contact-card.svg",CONTACT_FILE:"assets/icons/contact-file.svg",CONTACT_LABEL:"assets/icons/contact-label.svg",CONTACT_LABEL_OUTLINE:"assets/icons/contact-label-outline.svg",CONTACT_SHARE:"assets/icons/contact-share.svg",DOWNLOAD_ICON:"assets/icons/download-icon.svg",EDIT_PENCIL:"assets/icons/edit-pencil.svg",EDIT_FILLED_PAD:"assets/icons/edit-filled-pad.svg",EDIT_LINE_PAD_OUTLINE:"assets/icons/edit-line-pad-outline.svg",EDIT_PENCIL_FAST_OUTLINE:"assets/icons/edit-line-pad-outline.svg",FILTER_OUTLINE:"assets/icons/filter-outline.svg",HR_INTEGRATIONS_ICON:"assets/icons/hr-integrations.svg",INTEGRATION_ICON:"assets/icons/integration.svg",INTEGRATIONS_IMAGE:"assets/integrations-image.svg",LINK_ICON:"assets/icons/link.svg",MESSAGES_FILLED:"assets/icons/messages-icon-filled.svg",MESSAGES_OUTLINED:"assets/icons/messages-icon-outline.svg",NFC_SCANNER_ICON:"/assets/icons/contactless-med.svg",NOTE:"assets/icons/note.svg",NOTIFICATION_SETTING:"assets/icons/notification-setting-icon.svg",QR_CODE_OUTLINE_ICON:"/assets/icons/qr-code-outline.svg",QUICK_SHARE_FILLED_ICON:"/assets/icons/quick-share-filled.svg",QUICK_SHARE_ICON:"/assets/icons/quick-share.svg",REMINDER_ICON:"assets/icons/reminder-icon.svg",SETTINGS_ICON:"assets/icons/settings-outline.svg",SNOOZE:"assets/icons/snooze.svg",CONTENT_BLOCK_OUTLINE_ICON:"/assets/icons/content-blocks-outline.svg",UNION_ICON:"assets/icons/union_icon.svg",BEACH_EMPTY_ICON:"assets/icons/beach-empty-tasks.svg",CHECKMARK_ICON:"assets/icons/checkmark.svg",SUPPORT_PERSON_ICON:"assets/icons/support-person.svg",CONTACT_FILE_ICON:"assets/icons/contact-file.svg",PRODUCT_ACTIVATION_OUTLINE_ICON:"assets/icons/product-activation-outline.svg",EMAIL:"assets/icons/email.svg",PHONE:"assets/icons/phone.svg",SMS:"assets/icons/sms.svg",ELEVATE:"assets/icons/elevate.svg",REMOVE_ICON:"assets/icons/remove-button.svg",NFC_ICON:"assets/icons/nfc-icon.svg",LINK_ICON_OUTLINE:"assets/icons/link-icon-outline.svg",TRASH_ICON:"assets/icons/trash-icon.svg",MENU_ICON_DASHBOARD:"/assets/icons/menu/dashboard-filled.svg",MENU_ICON_PAGES:"/assets/icons/menu/pages-filled.svg",MENU_ICON_CONTACTS:"/assets/icons/menu/contacts-filled.svg",MENU_ICON_ANALYTICS:"/assets/icons/menu/analytics-filled.svg",MENU_ICON_PRODUCTS:"/assets/icons/menu/products-filled.svg",MENU_ICON_PEOPLE:"/assets/icons/menu/people-circle.svg",MENU_ICON_SETTINGS_FILLED:"/assets/icons/menu/settings-filled.svg",MENU_ICON_AUTOMATIONS_FILLED:"/assets/icons/menu/automations-filled.svg",MENU_ICON_CLOUD_UPLOAD_FILLED:"/assets/icons/menu/cloud-upload-filled.svg",EDIT_PAGE_ICON:"/assets/icons/edit-page-pencil.svg",PREVIEW_PAGE_ICON:"/assets/icons/preview-page-eye.svg",SHARE_PAGE_ICON:"/assets/icons/share-page.svg",FILTER_SOLID_ICON:"assets/icons/filter-solid.svg",INFINITE_ICON:"assets/icons/infinite.svg",RIGHT_LEFT_ARROW_ICON:"assets/icons/right-left-arrow.svg",NEW_CONTACT_ADDED_ICON:"assets/icons/new-contact-added.svg",SNIPPET_ICON:"assets/icons/snippet-icon.svg",PROFILE_OUTLINE_ICON:"assets/icons/icon-profile-line.svg",PRODUCTS_OUTLINE_ICON:"assets/icons/icon-products-line.svg",REMOVE_USER_ICON:"assets/icons/remove-user-icon.svg",GOAL_LOCK:"assets/icons/goal-lock.svg",ENRICHMENT_SPARKLES:"assets/icons/enrichment-sparkles.svg",GRADIENT_SPARKLES_SHARP:"assets/icons/gradient-sparkles-sharp.svg",ADD_ONS:"assets/icons/add-ons.svg",PAGE_TO_CONTENT_BLOCK_OUTLINE_ICON:"assets/icons/icon-page-to-content-block-outlined.svg",ZAPIER_LOGO:"assets/icons/zapier.svg",ACTION_FILLED:"assets/icons/icon-action-filled.svg",ACTION_OUTLINED:"assets/icons/icon-action-outlined.svg",ANALYTICS_FILLED:"assets/icons/icon-analytics-filled.svg",ANALYTICS_OUTLINED:"assets/icons/icon-analytics-outlined.svg",AUTOMATION_FILLED:"assets/icons/icon-automation-filled.svg",AUTOMATION_OUTLINED:"assets/icons/icon-automation-outlined.svg",CALL_SUCCESS:"assets/icons/call-success.svg",CLOUD_CHECKED_FILLED:"assets/icons/icon-cloud-checked-filled.svg",CLOUD_CHECKED_OUTLINED:"assets/icons/icon-cloud-checked-outlined.svg",CLOUD_UPLOADED_FILLED:"assets/icons/icon-cloud-uploaded-filled.svg",CLOUD_UPLOADED_OUTLINED:"assets/icons/icon-cloud-uploaded-outlined.svg",CONNECTION_FILLED:"assets/icons/icon-connection-filled.svg",CONNECTION_OUTLINED:"assets/icons/icon-connection-outlined.svg",CONTACT_LABEL_FILLED:"assets/icons/icon-contact-label-filled.svg",CONTACT_LABEL_OUTLINED:"assets/icons/icon-contact-label-outlined.svg",CONTACTS_FILLED:"assets/icons/icon-contacts-filled.svg",CONTACTS_OUTLINED:"assets/icons/icon-contacts-outlined.svg",DASH_FILLED:"assets/icons/icon-dash-filled.svg",DASH_OUTLINED:"assets/icons/icon-dash-outlined.svg",DOWNLOAD_PDF_OUTLINED:"assets/icons/icon-download-pdf-outlined.svg",DOWNLOAD_PNG_OUTLINED:"assets/icons/icon-download-png-outlined.svg",DOWNLOAD_SVG_OUTLINED:"assets/icons/icon-download-svg-outlined.svg",EDIT_FILLED:"assets/icons/icon-edit-filled.svg",EDIT_OUTLINED:"assets/icons/icon-edit-outlined.svg",ELEVATE_FILLED:"assets/icons/icon-elevate-filled.svg",ELEVATE_OUTLINED:"assets/icons/icon-elevate-outlined.svg",FAST_FILLED:"assets/icons/icon-fast-filled.svg",FAST_OUTLINED:"assets/icons/icon-fast-outlined.svg",FILTER_CAMERA_FILLED:"assets/icons/icon-filter-camera-filled.svg",FILTER_CAMERA_OUTLINED:"assets/icons/icon-filter-camera-outlined.svg",FILTER_FILLED:"assets/icons/icon-filter-filled.svg",FILTER_OUTLINED:"assets/icons/icon-filter-outlined.svg",FLIPPED_FILLED:"assets/icons/icon-flipped-filled.svg",FLIPPED_OUTLINED:"assets/icons/icon-flipped-outlined.svg",HOME_FILLED:"assets/icons/icon-home-filled.svg",HOME_OUTLINED:"assets/icons/icon-home-outlined.svg",HR_INTEGRATION_FILLED:"assets/icons/icon-hr-integration-filled.svg",HR_INTEGRATION_OUTLINED:"assets/icons/icon-hr-integration-outlined.svg",MISSED_CALL:"assets/icons/missed-call.svg",MOVE_ICON:"assets/icons/move-icon.svg",NEW_CONTACT_CARD_FILLED:"assets/icons/icon-new-contact-card-filled.svg",NEW_CONTACT_CARD_OUTLINED:"assets/icons/icon-new-contact-card-outlined.svg",PAGES_FILLED:"assets/icons/icon-pages-filled.svg",PAGES_OUTLINED:"assets/icons/icon-pages-outlined.svg",PHONE_OUTLINED:"assets/icons/icon-phone-outline.svg",PHONE_FILLED:"assets/icons/icon-phone-outline-filled.svg",PRODUCTS_FILLED:"assets/icons/icon-products-filled.svg",PRODUCTS_LINE:"assets/icons/icon-products-line.svg",PRODUCTS_OUTLINED:"assets/icons/icon-products-outlined.svg",PROFILE_LINE:"assets/icons/icon-profile-line.svg",REMINDER_FILLED:"assets/icons/icon-reminder-filled.svg",REMINDER_OUTLINED:"assets/icons/icon-reminder-outlined.svg",SCAN_BIZCARD_FILLED:"assets/icons/icon-scan-bizcard-filled.svg",SCAN_BIZCARD_OUTLINED:"assets/icons/icon-scan-bizcard-outlined.svg",SHARE_CONTACT_WITH_TEAM_FILLED:"assets/icons/icon-share-contact-with-team-filled.svg",SHARE_CONTACT_WITH_TEAM_OUTLINED:"assets/icons/icon-share-contact-with-team-outlined.svg",SNIPPETS_FILLED:"assets/icons/icon-snippets-filled.svg",SNIPPETS_OUTLINED:"assets/icons/icon-snippets-outlined.svg",CONTENT_BLOCK_FILLED:"assets/icons/icon-content-block-filled.svg",CONTENT_BLOCK_OUTLINED:"assets/icons/icon-content-block-outlined.svg",TRIGGER_FILLED:"assets/icons/icon-trigger-filled.svg",TRIGGER_OUTLINED:"assets/icons/icon-trigger-outlined.svg",UPLOAD_OUTLINED:"assets/icons/upload-outlined.svg",DRAG_TO_SORT_HANDLE:"assets/icons/drag-to-sort-handle.svg",PHONE_SPARKLES:"assets/icons/phone_sparkles.svg",REWIND_15:"assets/icons/rewind-15.svg",FAST_FORWARD_15:"assets/icons/fast-forward-15.svg",PAGE_TO_TEMPLATE_OUTLINE_ICON:"assets/icons/icon-page-to-template-outlined.svg",FOLDER_OPEN_OUTLINE:"assets/icons/folder-open-outline.svg",X_ICON:"assets/icons/x.svg",SET_PAGE_PERMISSIONS_OUTLINE:"assets/icons/icon-set-page-permissions-outlined.svg",HYPER_LINQ_PRODUCT:"assets/icons/hyper-linq-product-icon.svg",HANGUP:"assets/icons/hangup.svg",LARGE_AIRPLANE:"assets/icons/large_airplane.svg",LOGO_LINKEDIN:"assets/icons/logo-linkedin.svg",LOGO_GOOGLE:"assets/icons/logo-google.svg",LOGO_APPLE:"assets/icons/logo-apple.svg",CREDIT_CARD:"assets/icons/credit-card-icon.svg",PROFILE_CARD_RIGHT:"assets/icons/profile-right-icon.svg"}),CLOUDINARY_ICONS=Object.freeze({X:"https://res.cloudinary.com/linq/image/upload/v1731511436/social_icons/x_pp6sct.svg",TIKTOK:"https://res.cloudinary.com/linq/image/upload/v1731511479/social_icons/tiktok_m8chh3.svg",PAYPAL:"https://res.cloudinary.com/linq/image/upload/v1731511523/social_icons/paypal_zxldca.svg",VENMO:"https://res.cloudinary.com/linq/image/upload/v1731511561/social_icons/venmo_oeh57u.svg",CASH_APP:"https://res.cloudinary.com/linq/image/upload/v1731511607/social_icons/cash-app_evndy0.svg",CASH_APP_DARK:"https://res.cloudinary.com/linq/image/upload/v1731509816/social_icons/cash-app-dark_kvrudy.svg",SNAP_CHAT:"https://res.cloudinary.com/linq/image/upload/v1731511641/social_icons/snapchat_uzrdcf.svg",TELEGRAM:"https://res.cloudinary.com/linq/image/upload/v1731511649/social_icons/telegram_qnovwb.svg",TELEGRAM_DARK:"https://res.cloudinary.com/linq/image/upload/v1731510032/social_icons/telegram-dark_uyzf42.svg",ETSY:"https://res.cloudinary.com/linq/image/upload/v1731511691/social_icons/etsy_m3ico4.svg",ETSY_DARK:"https://res.cloudinary.com/linq/image/upload/v1731510116/social_icons/etsy-dark_juagda.svg",OPEN_SEA:"https://res.cloudinary.com/linq/image/upload/v1731511702/social_icons/opensea_pbvgnb.svg",OPEN_SEA_DARK:"https://res.cloudinary.com/linq/image/upload/v1731510982/social_icons/opensea-dark_zroni6.svg",STRAVA:"https://res.cloudinary.com/linq/image/upload/v1731510999/social_icons/strava_mpnutv.svg",STRAVA_DARK:"https://res.cloudinary.com/linq/image/upload/v1731510996/social_icons/strava-dark_y3jhxa.svg"}),ORGANIZATION_SETUP="org-setup",STANDARD_ONBOARDING="standard",DIRECTORY_USER_ONBOARDING="directory-user",LFT_TRIAL_ONBOARDING="lft-trial",useMenuItems=(o,s=!1)=>({onboardingMenuItems:getOnboardingItems(o,s)});function getOnboardingItems(o,s=!1){if(o===DIRECTORY_USER_ONBOARDING)return[{title:"Profile",url:"/setup-profile/1"},...s?[]:[{title:"Photo",url:"/setup-profile/2"}],{title:"About You",url:`/setup-profile/${s?"2":"3"}`}];const a=[{title:"Get Started",url:"/signup"},{title:"Profile Picture",url:"/signup/add-photo"},{title:"About Me",url:"/signup/about-me"}];return!o||o===STANDARD_ONBOARDING?a:o===ORGANIZATION_SETUP?a.concat([{title:"Organization Details",url:"/signup/organization-setup"},{title:"Invite Team Members",url:"/signup/invite-team-members"}]):o===LFT_TRIAL_ONBOARDING?[{title:"Linq One Trial",url:"/lft-trial-signup/pricing-page"},{title:"Create a Profile",url:"/lft-trial-signup/create-profile"},{title:"About Your Team",url:"/lft-trial-signup/about-your-team"}]:a}const requestData$6=()=>({url:`${BASE_API_URL}/api/v2/teams`,apiMethod:API_METHODS.GET}),useTeams=()=>{const o=useApiRequest(),s=async()=>(await o(requestData$6())).data.teams;return useQuery(teamsKeys.indexes,s,{enabled:store.getState().user.currentUserFetched,staleTime:1e4})};var AppPageMenuItemType=(o=>(o.ANALYTICS="analytics",o.CONTACTS="contacts",o.HOME="home",o.MENU="menu",o.PAGES="pages",o.PRODUCTS="products",o.PHONE="phone",o.MESSAGES="messages",o))(AppPageMenuItemType||{});const SvgLinqLogo=o=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 71 42",...o},reactExports.createElement("path",{fill:"currentColor",d:"M20.03 7.41H15.3C15.1675 7.41 15.06 7.51745 15.06 7.64999V31.78C15.06 31.9125 15.1675 32.02 15.3 32.02H20.03C20.1625 32.02 20.27 31.9125 20.27 31.78V7.64999C20.27 7.51745 20.1625 7.41 20.03 7.41Z"}),reactExports.createElement("path",{fill:"currentColor",d:"M34.91 6.92C33.7685 6.90579 32.637 7.1327 31.5892 7.58591C30.5415 8.03912 29.6013 8.70841 28.83 9.55C28.68 9.7 28.39 9.79 28.3 9.55L27.81 7.7C27.7895 7.62704 27.7445 7.56335 27.6826 7.51965C27.6207 7.47594 27.5456 7.45488 27.47 7.46H23.34C23.3081 7.45858 23.2763 7.46382 23.2465 7.47538C23.2167 7.48693 23.1897 7.50457 23.1671 7.52714C23.1446 7.54972 23.1269 7.57674 23.1154 7.6065C23.1038 7.63626 23.0986 7.66811 23.1 7.7V31.77C23.0986 31.8019 23.1038 31.8337 23.1154 31.8635C23.1269 31.8933 23.1446 31.9203 23.1671 31.9429C23.1897 31.9654 23.2167 31.9831 23.2465 31.9946C23.2763 32.0062 23.3081 32.0114 23.34 32.01H28.06C28.0927 32.0129 28.1256 32.0088 28.1566 31.9979C28.1876 31.987 28.2159 31.9695 28.2395 31.9468C28.2632 31.9241 28.2818 31.8965 28.2939 31.866C28.3061 31.8355 28.3116 31.8028 28.31 31.77V18.21C28.31 14.85 30.25 11.69 34.19 11.69C38.52 11.69 40.13 15.14 40.13 18.45V31.77C40.1269 31.8023 40.131 31.8349 40.1419 31.8654C40.1529 31.8959 40.1705 31.9236 40.1934 31.9466C40.2164 31.9695 40.2441 31.9871 40.2746 31.9981C40.3051 32.009 40.3377 32.0131 40.37 32.01H45.14C45.1719 32.0114 45.2037 32.0062 45.2335 31.9946C45.2633 31.9831 45.2903 31.9654 45.3129 31.9429C45.3354 31.9203 45.3531 31.8933 45.3646 31.8635C45.3762 31.8337 45.3814 31.8019 45.38 31.77V18.45C45.38 12.22 42.27 6.92 34.91 6.92Z"}),reactExports.createElement("path",{fill:"currentColor",d:"M70.38 7.41H66.25C66.05 7.41 65.96 7.40999 65.91 7.64999L65.42 9.39999C65.32 9.64999 65.08 9.65 64.89 9.45C63.051 7.88487 60.7338 6.99257 58.32 6.92C51.31 6.92 46.91 12.13 46.91 19.77C46.91 27.41 51.53 32.56 58.29 32.56C60.7749 32.5932 63.1774 31.6694 65 29.98C65.0328 29.953 65.0722 29.9351 65.1141 29.9283C65.1561 29.9215 65.1991 29.926 65.2388 29.9412C65.2784 29.9565 65.3133 29.982 65.3399 30.0152C65.3665 30.0483 65.3838 30.088 65.39 30.13V41.46C65.3886 41.4932 65.3941 41.5263 65.4061 41.5573C65.4182 41.5883 65.4366 41.6164 65.4601 41.6399C65.4836 41.6634 65.5117 41.6818 65.5427 41.6938C65.5737 41.7059 65.6068 41.7114 65.64 41.71H70.35C70.3832 41.7114 70.4164 41.7059 70.4473 41.6938C70.4783 41.6818 70.5064 41.6634 70.5299 41.6399C70.5534 41.6164 70.5718 41.5883 70.5839 41.5573C70.5959 41.5263 70.6014 41.4932 70.6 41.46V7.64999C70.6013 7.61978 70.5967 7.58961 70.5864 7.56119C70.576 7.53277 70.5602 7.50667 70.5398 7.48438C70.5193 7.46208 70.4947 7.44404 70.4673 7.43127C70.4399 7.41851 70.4102 7.41128 70.38 7.41ZM59.05 27.77C54.62 27.77 52.19 24.46 52.19 19.77C52.19 15.08 54.62 11.69 59.05 11.69C63.18 11.69 65.42 15.05 65.42 19.77C65.42 24.68 63.18 27.77 59.05 27.77Z"}),reactExports.createElement("path",{fill:"currentColor",d:"M17.66 0C17.0667 0 16.4866 0.17594 15.9933 0.505585C15.4999 0.835229 15.1154 1.30377 14.8884 1.85194C14.6613 2.40012 14.6019 3.00332 14.7176 3.58527C14.8334 4.16721 15.1191 4.70176 15.5387 5.12132C15.9582 5.54087 16.4928 5.8266 17.0747 5.94235C17.6567 6.05811 18.2599 5.9987 18.808 5.77164C19.3562 5.54457 19.8248 5.16006 20.1544 4.66671C20.4841 4.17336 20.66 3.59334 20.66 3C20.66 2.20435 20.3439 1.44129 19.7813 0.878677C19.2187 0.316068 18.4557 0 17.66 0Z"}),reactExports.createElement("path",{fill:"currentColor",d:"M11.97 26.82H5.67C5.54706 26.82 5.429 26.7719 5.34114 26.6859C5.25328 26.5999 5.20262 26.4829 5.2 26.36V1.53999C5.2 1.47634 5.17472 1.4153 5.12971 1.37029C5.0847 1.32528 5.02365 1.3 4.96 1.3H0.240002C0.17635 1.3 0.115302 1.32528 0.0702934 1.37029C0.0252847 1.4153 0 1.47634 0 1.53999V28.54C0 29.4656 0.367696 30.3533 1.0222 31.0078C1.6767 31.6623 2.5644 32.03 3.49 32.03H11.97C12.0337 32.03 12.0947 32.0047 12.1397 31.9597C12.1847 31.9147 12.21 31.8536 12.21 31.79V27.06C12.21 26.9963 12.1847 26.9353 12.1397 26.8903C12.0947 26.8453 12.0337 26.82 11.97 26.82Z"})),STRIPE_TEAMS_SELF_SERVE="stripe-teams-self-serve",getOnboardingType=(o,s,a=!1,$=!1)=>{if(a)return DIRECTORY_USER_ONBOARDING;if($)return LFT_TRIAL_ONBOARDING;if(s)return ORGANIZATION_SETUP;if(!o)return STANDARD_ONBOARDING;const j=o.organization_subscription;if(!j)return STANDARD_ONBOARDING;const _e=j.product_identifier;return _e&&_e===STRIPE_TEAMS_SELF_SERVE?ORGANIZATION_SETUP:STANDARD_ONBOARDING},LeftSideMenu=({isShown:o=!0,isOnboarding:s=!1,isDirectoryUserOnboarding:a=!1,isLftTrialOnboarding:$=!1,style:j})=>{var St,Nt;const _e=useLocation(),et=useHistory(),tt=useDispatch(),nt=useSelectCurrentUser(),it=useIsAdmin(),{data:rt=EMPTY_ARRAY}=useTeams(),st=useSelector(Rt=>Rt.auth.checkoutSessionId),ot=getOnboardingType(nt==null?void 0:nt.organization,st,a,$),at=((Nt=(St=nt==null?void 0:nt.organization)==null?void 0:St.hr_settings)==null?void 0:Nt.sync_contact_photo)==="sync",{onboardingMenuItems:lt}=useMenuItems(ot,at),[ct,ht]=reactExports.useState(!1),[dt,ut]=reactExports.useState(!1),pt=cArray({title:"Pages",type:AppPageMenuItemType.PAGES,url:"/profile",iosIcon:"/assets/icons/menu/pages-filled.svg",testId:APP_TEST_IDS.SIDE_MENU.PAGES},{title:"Contacts",type:AppPageMenuItemType.CONTACTS,url:"/contacts",iosIcon:"/assets/icons/menu/contacts-filled.svg",testId:APP_TEST_IDS.SIDE_MENU.CONTACTS},!(nt!=null&&nt.linq_phone_disabled)&&{title:"Phone",type:AppPageMenuItemType.PHONE,url:"/conversations",iosIcon:ICONS.PHONE_OUTLINED,testId:APP_TEST_IDS.SIDE_MENU.INBOX},{title:"Analytics",type:AppPageMenuItemType.ANALYTICS,url:"/analytics",iosIcon:"/assets/icons/menu/analytics-filled.svg",testId:APP_TEST_IDS.SIDE_MENU.ANALYTICS},{title:"Products",type:AppPageMenuItemType.PRODUCTS,url:"/products",iosIcon:"/assets/icons/menu/products-filled.svg",testId:APP_TEST_IDS.SIDE_MENU.PRODUCTS},{title:"Menu",type:AppPageMenuItemType.MENU,url:"/settings-tab",otherUrls:[PAGE_ROUTES.notificationSettings,PAGE_ROUTES.manageSubscription,PAGE_ROUTES.paySettings,PAGE_ROUTES.snippets],iosIcon:menuOutline,testId:APP_TEST_IDS.SIDE_MENU.MENU});reactExports.useEffect(function(){nt!=null&&nt.id&&(it?(ut(!0),ht(!1)):(ht(!0),ut(!1)))},[it,nt]);const ft=()=>{s||et.push(PAGE_ROUTES.dashboard)},mt=({url:Rt,type:Ft})=>{tt(track("clicked sidebar button",{type:Ft})),et.push(Rt)},gt=Rt=>{tt(track("clicked team sidebar button")),et.push(Rt)},bt=Rt=>{tt(track("clicked organization sidebar button")),window.location.href=`${WEB_APP_URL}/admin/${Rt}/dashboard`};return jsxRuntimeExports.jsx(IonMenu,{side:"start",contentId:"main",type:"overlay",className:clsx(!o&&"hidden","w-72 2xl:w-full"),...j&&{style:j},children:jsxRuntimeExports.jsx(IonContent,{className:"border-r border-gray-900",children:jsxRuntimeExports.jsx("div",{className:"2xl:w-72 2xl:float-right",children:jsxRuntimeExports.jsxs(IonList,{children:[jsxRuntimeExports.jsx("div",{className:clsx("w-full","my-8","pl-12","flex","justify-start","pointer","transition","ease-in-out","duration-220","text-primary-100","hover:text-primary"),onClick:ft,children:jsxRuntimeExports.jsx(SvgLinqLogo,{className:" fill-current w-24 h-16"})}),s||a||$?jsxRuntimeExports.jsx(OnboardingMenuItems,{items:lt}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[pt==null?void 0:pt.map((Rt,Ft)=>{var Pt;const Ot=_e.pathname.startsWith(Rt.url)||((Pt=Rt.otherUrls)==null?void 0:Pt.includes(_e.pathname)),Ct=Ft===0,yt=Ft===pt.length-1;return jsxRuntimeExports.jsxs("button",{onClick:()=>mt(Rt),className:clsx("w-full","pl-8",Ct?"mb-1":yt?"mt-1":"my-1","relative","select-none","text-body-regular"),children:[jsxRuntimeExports.jsxs("div",{className:clsx("w-52","p-4","bg-white","hover:bg-gray-1000","rounded","rounded-lg","flex","flex-row","items-center","cursor-pointer","transition-all","duration-220","ease-in-out"),"data-intercom-target":`sideMenu:appPages:${Rt.title}`,"data-test":Rt.testId,children:[jsxRuntimeExports.jsx(IonIcon,{slot:"start",icon:Rt.iosIcon,className:`text-2xl mr-4 ${Ot?"text-secondary-600":"text-gray-500 "}`}),jsxRuntimeExports.jsx(IonLabel,{className:` ${Ot?"text-secondary":"text-gray-500 "}`,children:Rt.title}),Rt.title==="Phone"&&(nt==null?void 0:nt.has_unread_messages)&&jsxRuntimeExports.jsx("span",{className:clsx("absolute","top-3.5","left-16","rounded-full","w-3","h-3","text-center","text-white","bg-primary")})]}),Ot&&jsxRuntimeExports.jsx("div",{className:clsx("absolute","h-12","top-1","right-0","border-2","border-secondary-600","bg-secondary-600","rounded-l-lg")})]},Ft)}),ct&&rt.map(Rt=>{const Ft=`/organizations/${Rt.organization_id}/teams/${Rt.id}`;return jsxRuntimeExports.jsx("div",{onClick:()=>gt(Ft),className:"w-full pl-8 my-2 relative select-none",children:jsxRuntimeExports.jsxs("div",{className:"w-52 p-2 bg-white hover:bg-gray-1000 rounded rounded-lg flex flex-row items-center cursor-pointer",style:{transition:"color .22s ease-in-out"},children:[jsxRuntimeExports.jsx(IonAvatar,{className:"w-10 h-auto mr-4 rounded-full border border-gray-900",slot:"start",style:{backgroundColor:Rt.visible_primary_color||"var(--ion-color-white)"},children:Rt.visible_logo_url&&jsxRuntimeExports.jsx(LinqImage,{src:Rt.visible_logo_url,alt:"team"})}),jsxRuntimeExports.jsx(IonLabel,{className:`w-36 overflow-ellipsis overflow-hidden whitespace-nowrap
                              ${_e.pathname===Ft?" text-secondary":" text-gray-500 "}`,children:Rt.name?Rt.name:"No team name yet..."})]})},Rt.id)}),dt&&(nt==null?void 0:nt.organization)&&jsxRuntimeExports.jsx("div",{onClick:()=>bt(nt.organization.id),className:clsx("w-full","pl-8","my-2","relative","select-none"),children:jsxRuntimeExports.jsxs("div",{className:clsx("w-52","p-2","bg-white","hover:bg-gray-1000","rounded","rounded-lg","flex","flex-row","items-center","cursor-pointer"),style:{transition:"color .22s ease-in-out"},"data-intercom-target":"sideMenu:organizationsList:organization",children:[jsxRuntimeExports.jsx(IonAvatar,{className:`w-10 ${nt.organization.badge_logo_url?"h-auto":"h-10"} mr-4 rounded-full border border-gray-900`,style:{backgroundColor:nt.organization.primary_color||"var(--ion-color-white)"},children:nt.organization.badge_logo_url&&jsxRuntimeExports.jsx(LinqImage,{src:nt.organization.badge_logo_url,alt:"organization"})}),jsxRuntimeExports.jsx(IonLabel,{className:`w-36 overflow-ellipsis overflow-hidden whitespace-nowrap
                              ${_e.pathname===`/organizations/${nt.organization.id}/detail`?" text-secondary":" text-gray-500 "}`,children:nt.organization.name?nt.organization.name:"No org name yet..."})]})},nt.organization.id)]})]})})})})},OnboardingMenuItems=({items:o})=>{const s=useLocation();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:o.map(a=>jsxRuntimeExports.jsx("div",{className:"w-full pl-8 my-2 relative select-none",children:jsxRuntimeExports.jsxs("div",{className:"relative w-52 p-4 bg-white hover:bg-gray-1000 rounded rounded-lg flex flex-row items-center cursor-pointer transition-colors duration-220 ease-in-out",children:[jsxRuntimeExports.jsx(IonLabel,{className:` ${s.pathname===a.url?"text-secondary":"text-gray-500 "}`,children:a.title}),s.pathname===a.url&&jsxRuntimeExports.jsx(IonIcon,{slot:"end",icon:arrowBackOutline,className:"text-2xl text-secondary-600 absolute top-4 right-0"})]})},a.url))})};function useElementSize$1(){const[o,s]=reactExports.useState(null),[a,$]=reactExports.useState({width:0,height:0}),j=reactExports.useCallback(()=>{$({width:(o==null?void 0:o.offsetWidth)||0,height:(o==null?void 0:o.offsetHeight)||0})},[o==null?void 0:o.offsetHeight,o==null?void 0:o.offsetWidth]);return useEventListener("resize",j),useIsomorphicLayoutEffect(()=>{j()},[o==null?void 0:o.offsetHeight,o==null?void 0:o.offsetWidth]),[s,a]}function useEventListener(o,s,a,$){const j=reactExports.useRef(s);useIsomorphicLayoutEffect(()=>{j.current=s},[s]),reactExports.useEffect(()=>{var _e;const et=(_e=void 0)!==null&&_e!==void 0?_e:window;if(!(et&&et.addEventListener))return;const tt=nt=>j.current(nt);return et.addEventListener(o,tt,$),()=>{et.removeEventListener(o,tt,$)}},[o,a,$])}function useInterval(o,s){const a=reactExports.useRef(o);useIsomorphicLayoutEffect(()=>{a.current=o},[o]),reactExports.useEffect(()=>{if(!s&&s!==0)return;const $=setInterval(()=>a.current(),s);return()=>clearInterval($)},[s])}const useIsomorphicLayoutEffect=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function useClickToDismiss({show:o,onClickOutside:s}){const a=reactExports.useRef(null),[$,j]=reactExports.useState(o);reactExports.useEffect(()=>{j(o)},[o]);const _e=reactExports.useCallback(et=>{var tt;et.target&&o&&et.target!==a.current&&((tt=a.current)!=null&&tt.contains(et.target)||(j(!1),s==null||s(!1)))},[s,o]);return reactExports.useEffect(()=>{if(o)return document.addEventListener("click",_e),()=>document.removeEventListener("click",_e)},[_e,o]),{containerRef:a,showElement:$}}const ROUNDING="rounded-xl",ROUNDING_TOP="rounded-t-xl",ROUNDING_BOTTOM="rounded-b-xl",DropdownMenu=({"data-test":o,maxHeight:s,buttonLabel:a=()=>"Choose an action",dropdownContent:$,shadowed:j,absolute:_e,bordered:et=!0})=>{const[tt,nt]=reactExports.useState(!1),[it,{height:rt}]=useElementSize$1(),{containerRef:st,showElement:ot}=useClickToDismiss({show:tt});return reactExports.useEffect(()=>{nt(ot)},[ot]),jsxRuntimeExports.jsxs("div",{className:clsx("flex flex-col","w-full","h-full","transition-all duration-220 ease-in-out",et&&"border border-gray-800",tt?ROUNDING_TOP:ROUNDING,"relative"),style:{boxShadow:tt&&j?"0px 64px 64px rgba(0, 15, 49, 0.08), 0px 41.4815px 37.4815px rgba(0, 15, 49, 0.0607407), 0px 24.6519px 20.3852px rgba(0, 15, 49, 0.0485926), 0px 12.8px 10.4px rgba(0, 15, 49, 0.04), 0px 5.21481px 5.21481px rgba(0, 15, 49, 0.0314074), 0px 1.18519px 2.51852px rgba(0, 15, 49, 0.0192593)":"none"},"data-test":o,ref:st,children:[jsxRuntimeExports.jsx("button",{id:"batch-action-select",className:clsx("w-full","h-full","transition-all duration-220 ease-in-out",tt?ROUNDING_TOP:ROUNDING,"focus:outline-secondary-solid","z-10"),onClick:()=>nt(!tt),children:a(tt)}),jsxRuntimeExports.jsx(TransitionComponent,{keepMounted:!0,show:tt,children:({isOpen:at})=>jsxRuntimeExports.jsx("div",{className:clsx("relative","w-full"),children:jsxRuntimeExports.jsx("div",{className:clsx(_e?"absolute":"relative","w-full","transition-all duration-220 ease-in-out","overflow-auto","border","border-t-0","border-b-0","border-gray-800",ROUNDING_BOTTOM,at?"opacity-100":"opacity-40","z-20"),style:{height:at?rt:0},children:jsxRuntimeExports.jsx("div",{className:clsx("absolute","top-0 left-0 right-0",ROUNDING_BOTTOM,"overflow-auto"),style:{maxHeight:s},ref:it,children:$})})})})]})},colors=["linear-gradient(to bottom right, #FF16AF, #BE0081)","linear-gradient(to bottom right, #B97D00, #885A00)","linear-gradient(to bottom right, #009897, #00706F)","linear-gradient(to bottom right, #7D9200, #5B6A00)","linear-gradient(to bottom right, #E55F00, #A94400)","linear-gradient(to bottom right, #B060FF, #9600ED)"];function fullNameAvatarColor(o=""){const[s,a]=(o==null?void 0:o.split(" "))||[];return avatarColor(s,a)}function contactAvatarColor(o){if(o===void 0)return colors[0];const{first_name:s,last_name:a}=o;return avatarColor(s,a)}function avatarColor(o,s){if(!o&&!s)return colors[0];const a=`${o||""} ${s||""}`.trim(),$=(a.length+a.charCodeAt(0)+a.charCodeAt(a.length-1))%6;return colors[$]}const UserAvatar=({contact:o,name:s,imageUrl:a,size:$="large",rounded:j=!0,shadowed:_e=!0,backgroundImageGradient:et})=>{var rt;const{full_name:tt,image_url:nt}=o||{full_name:s,image_url:a},it=$==="large"?"h-16 w-16":"h-8 w-8";return nt?jsxRuntimeExports.jsx(LinqImage,{src:nt,alt:tt,className:clsx(j&&"rounded-full",it),style:{boxShadow:_e?"4px 4px 8px rgba(0, 15, 49, 0.08), 1.74933px 1.74933px 3.49867px rgba(0, 74, 177, 0.16)":"none"}}):jsxRuntimeExports.jsx("div",{style:{backgroundImage:et??fullNameAvatarColor(tt)},className:clsx("flex items-center justify-center",j&&"rounded-full",it),children:jsxRuntimeExports.jsx("div",{className:"text-white",children:(rt=tt==null?void 0:tt.substring(0,1))==null?void 0:rt.toUpperCase()})})},requestData$5=(o,s)=>({url:`${BASE_API_URL}/api/v3/users/${s}/user_metadata`,apiMethod:API_METHODS.PUT,data:o}),useUpdateUserMetaData=(o,s)=>{const a=useDispatch(),$=useApiRequest();return useMutation(organizationsKeys.archivedUsers.index(o),async j=>await $(requestData$5(j,o)),{onSettled:()=>{a(refreshCurrentUser())}})};var UserMetadataAdminViewType=(o=>(o.V1="v1",o.V2="v2",o))(UserMetadataAdminViewType||{});const useChangeView=({user:o,organizationId:s})=>{const{id:a,user_metadatum:$}=o||{},{mutateAsync:j}=useUpdateUserMetaData(a),_e=reactExports.useCallback(async()=>{await j({...$,admin_view:UserMetadataAdminViewType.V1}),goToUrl(`${WEB_APP_URL}${PAGE_ROUTES.dashboard}`)},[j,$]),et=reactExports.useCallback(async()=>{await j({...$,admin_view:UserMetadataAdminViewType.V2}),window.location.href=`${WEB_APP_URL}/admin/${s||""}/dashboard`},[j,$,s]);return{viewAsMember:_e,viewAsAdmin:et}},requestData$4=o=>({url:`${BASE_API_URL}/api/v2/contacts/${o}`,apiMethod:API_METHODS.GET}),useContact=(o,s={})=>{const a=useApiRequest(),$=async()=>(await a(requestData$4(o==null?void 0:o.toString()))).data.contact;return useQuery(contactsKeys.detail(o==null?void 0:o.toString()),$,{enabled:!!o,...s})},UserDropdownMenu=({"data-test":o=APP_TEST_IDS.USER_DROPDOWN.BASE,organization:s,organizationId:a})=>{const $=useSelectCurrentUser(),j=$==null?void 0:$.is_admin,_e=$==null?void 0:$.name,et=useSelectCurrentUserCards(),tt=et==null?void 0:et.find(dt=>dt.is_primary),{data:nt}=useContact(tt==null?void 0:tt.contact_id),it=nt==null?void 0:nt.company,rt=s||(j?$==null?void 0:$.organization:void 0),st=$==null?void 0:$.role,ot=window.location.href.includes("/admin")?"admin":"member";function at(){window.location.href=`${WEB_APP_URL}/settings-tab`}const{viewAsMember:lt,viewAsAdmin:ct}=useChangeView({user:$,organizationId:rt==null?void 0:rt.id}),ht=cArray(st===OrganizationRoleType.ADMIN&&{label:"Organization Admin",shortLabel:"Admin",viewingAs:"admin",onClick:ct,dataTest:APP_TEST_IDS.USER_DROPDOWN.ADMIN_VIEW_BUTTON},st===OrganizationRoleType.MANAGER&&{label:"Organization Manager",shortLabel:"Manager",viewingAs:"admin",onClick:ct},{label:"Team Admin / Member Mode",shortLabel:"Member",viewingAs:"member",onClick:lt,dataTest:APP_TEST_IDS.USER_DROPDOWN.MEMBER_VIEW_BUTTON});return jsxRuntimeExports.jsx("div",{className:clsx("flex","flex-col","justify-center","w-full","z-10"),children:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(DropdownMenu,{"data-test":o,absolute:!0,buttonLabel:dt=>{var ut;return jsxRuntimeExports.jsxs("div",{className:clsx("flex flex-row","items-center","w-full h-full","px-4 py-2","gap-4","transition-all duration-220 ease-in-out","bg-white",dt?"rounded-t-xl":"rounded-xl"),children:[jsxRuntimeExports.jsx(UserAvatar,{contact:nt,backgroundImageGradient:"linear-gradient(to bottom right, #CCC, #DDD)"}),jsxRuntimeExports.jsxs("div",{className:clsx("flex flex-col","flex-grow","items-start","text-caption-regular","w-3/5"),children:[jsxRuntimeExports.jsx("div",{children:_e}),jsxRuntimeExports.jsxs("div",{className:"truncate w-100 text-left",children:[jsxRuntimeExports.jsx("span",{className:clsx("text-primary","text-caption-bold"),children:(ut=ht.find(pt=>pt.viewingAs===ot))==null?void 0:ut.shortLabel})," ",it&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:clsx("text-primary-100","text-caption-bold"),children:"·"})," ",jsxRuntimeExports.jsx("span",{children:it||""})]})]})]}),jsxRuntimeExports.jsx(IonIcon,{className:clsx("text-gray-500","text-2xl"),icon:dt?chevronUpOutline:chevronDownOutline})]})},dropdownContent:jsxRuntimeExports.jsxs("div",{className:clsx("flex flex-col","border-t","border-gray-800","relative","bg-white","rounded-b-xl"),children:[jsxRuntimeExports.jsxs("button",{className:clsx("p-6","flex flex-row","items-center","gap-2","focus:outline-secondary-solid","focus:z-10"),onClick:at,children:[jsxRuntimeExports.jsx(IonIcon,{className:clsx("text-2xl"),icon:personCircleOutline}),jsxRuntimeExports.jsx("div",{children:"Account Settings"})]}),jsxRuntimeExports.jsx("div",{className:clsx("bg-gray-950","relative","left-0 right-0","px-4 py-1","text-caption-small"),children:"VIEWING AS:"}),jsxRuntimeExports.jsx("div",{className:clsx("flex flex-col"),children:ht.map(dt=>dt.viewingAs===ot?jsxRuntimeExports.jsxs("div",{className:clsx("flex flex-row","justify-between items-center","text-secondary text-body-bold","p-6"),children:[jsxRuntimeExports.jsx("div",{children:dt.label}),jsxRuntimeExports.jsx(IonIcon,{className:clsx("text-2xl"),icon:checkmarkCircle})]},dt.label):jsxRuntimeExports.jsx("button",{className:clsx("flex","transition-all duration-220 ease-in-out","hover:bg-gray-1000","h-full w-full","p-6","focus:outline-secondary-solid","focus:z-10"),onClick:dt.onClick,"data-test":dt.dataTest,children:dt.label},dt.label))})]})})})})},requestData$3=o=>({url:`${BASE_API_URL}/api/v2/organizations/${o}/organization_settings`,apiMethod:API_METHODS.GET}),useOrganizationSettings=({orgId:o=""})=>{const s=useApiRequest(),a=async()=>(await s(requestData$3(o))).data.organization_settings;return useQuery(organizationSettingsKeys.detail(o),a,{enabled:!!o})},TakeControl=reactExports.lazy(()=>__vitePreload(()=>import("./take-control-DqwLaspZ.js"),__vite__mapDeps([495,233,20,21,78,61,221,422,290,190,62,59,143,144,145,82,83,13,147,419,36,420,373,250,423,496,35,497,263,264,94,95,4,265,165,85,41,252,266,121,267,73,268,269,60,185,102,270,271,253,234,272,183,184,273,15,193,194,195,196,192,197,146,63,381,498,499,500,281,282,1,66,67,201,278,283,204,205,96,284,137,285,22,23,25,26,108,286,171,70,9,287,27,10,182,186,187,101,188,189,191,198,199,277,472,352,353,32]))),LinqOneUpsellMenu=reactExports.lazy(()=>__vitePreload(()=>import("./linq-one-upsell-menu-RTPjcZMv.js"),[])),RightSideMenu=({isShown:o=!0})=>{var tt;const s=window.location.href.includes("/admin"),a=useLocation(),$=useSelectCurrentUser(),j=useIsAdmin(),_e=j,{data:et}=useOrganizationSettings({orgId:(tt=$==null?void 0:$.organization)==null?void 0:tt.id});return jsxRuntimeExports.jsx(IonMenu,{side:"end",contentId:"main",type:"overlay",className:`${o?"":"hidden"} min-w-96 2xl:w-full`,children:jsxRuntimeExports.jsxs(IonContent,{className:"2xl:w-full 2xl:float-left",children:[_e&&jsxRuntimeExports.jsx("div",{className:"mx-4",children:jsxRuntimeExports.jsx(UserDropdownMenu,{organization:$==null?void 0:$.organization})}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(IonSpinner,{name:"dots",className:"ion-margin-top w-100"}),children:!($!=null&&$.organization)&&a.pathname!=="/subscriptions"?jsxRuntimeExports.jsx("div",{className:"mx-4",children:jsxRuntimeExports.jsx(LinqOneUpsellMenu,{})}):j&&$&&!(et!=null&&et.onboarding_dismissed)&&s?jsxRuntimeExports.jsx(TakeControl,{organization:$.organization}):null})]})})},HeadScripts$1=reactExports.lazy(()=>__vitePreload(()=>import("./head-scripts-C7rsMMga.js"),__vite__mapDeps([501,187,101]))),ReEngageLinqOneSubscriptionModal$1=reactExports.lazy(()=>__vitePreload(()=>import("./re-engage-linq-one-subscription-modal-D4-CulTW.js"),__vite__mapDeps([502,73,55]))),lftOnboardingPaths=["/signup/organization-setup","/signup/invite-team-members"],onboardingPaths=["/signup","/signup/add-photo","/signup/about-me"].concat(lftOnboardingPaths),lftTrialOnboardingPaths=["/lft-trial-signup/pricing-page","/lft-trial-signup/create-profile","/lft-trial-signup/about-your-team","/lft-trial-signup/activate-product"],authPagePaths=[PAGE_ROUTES.auth.authPage],matchingRoute=(o,s)=>{if(!(!o||!s))return s.find(a=>matchPath(o,a))},fullScreenRoutes=[PAGE_ROUTES.welcome,PAGE_ROUTES.bookMeeting.email,PAGE_ROUTES.bookMeeting.userDetails,PAGE_ROUTES.bookMeeting.calendar],DesktopAppView=({location:o,history:s})=>{var Lt;const a=useDispatch(),$=useSelectCurrentUser(),j=o.pathname.includes("/setup-profile"),[_e,et]=reactExports.useState("none");useTrackPage();const tt=onboardingPaths.includes(o.pathname),nt=authPagePaths.includes(o.pathname),it=lftTrialOnboardingPaths.includes(o.pathname),rt=o.pathname===PAGE_ROUTES.welcome,st=o.pathname==="/oauth/callback",ot=o.pathname==="/manage-pro-subscription"||o.pathname==="/manage-linq-one-subscription",at=window.location.href.includes("/entitlement-interest"),{data:lt}=usePlatform(),{subscriptionStatus:ct}=useOrganizationSubscriptionInfo(),{notificationStatus:ht}=useNotificationCallout("re-engage-linq-one-subscription-modal"),dt=$!=null&&$.subscription_updated_at?new Date($.subscription_updated_at)<new Date(new Date().setMonth(new Date().getMonth()-1)):!1,ut=ct===OrganizationSubscriptionStatus.Canceled&&dt&&ht!==ACKNOWLEDGED&&lt!==Platform.IOS;reactExports.useEffect(()=>{et(tt||rt||it||at||$?"none":"768px")},[$,tt,rt,at,it]);const pt=LinqAppRoutes(),ft=pt.filter(vt=>vt.doubleWide),mt=matchingRoute(o.pathname,ft),[gt,bt]=reactExports.useState(mt!==void 0?{width:"200px"}:void 0);reactExports.useEffect(()=>s.listen(vt=>{vt||bt(void 0);const xt=matchingRoute(vt.pathname,ft);bt(xt?{width:"200px"}:void 0)}));const Nt=window.location.pathname.includes("/admin")||window.location.pathname.includes("/organizations")?window.location.pathname.split("/")[2]:(Lt=$==null?void 0:$.organization)==null?void 0:Lt.id,{showModal:Rt,orgSubscriptionStatus:Ft,orgSubscription:Ot}=useShowOrganizationSubscriptionMessageModal(Nt);reactExports.useEffect(()=>{!Rt||!Ot||!Nt||(a(track("show suspended organization modal",{subscriptionStatus:Ft})),a(showAlertModal({wrappedContent:jsxRuntimeExports.jsx(OrganizationSubscriptionMessageModal,{subscription:Ot,orgId:Nt}),disableBackdropDismiss:!0})))},[Rt,Ot,a,Ft,Nt]),reactExports.useEffect(()=>{!ut||!lt||(a(track("show re-engage linq one subscription modal",{subscriptionStatus:ct})),a(showAlertModal({wrappedContent:jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(LoadingIndicator,{}),children:jsxRuntimeExports.jsx(ReEngageLinqOneSubscriptionModal$1,{platform:lt})})})))},[a,ct,ut,lt]);const Ct=useLayout(),yt=$&&!tt&&!rt&&!ot&&!at&&!it&&Ct===Layout.DESKTOP&&!st&&!nt,Pt=($||tt||it)&&!rt&&!at&&!st&&!tt&&!nt,wt=tt||fullScreenRoutes.includes(o.pathname)||nt;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsx(HeadScripts$1,{})}),wt?jsxRuntimeExports.jsx(IonRouterOutlet,{id:"main",children:jsxRuntimeExports.jsx(Switch,{children:pt.map(vt=>jsxRuntimeExports.jsx(Route,{path:vt.path,component:vt.component,exact:vt.exact,render:vt.render},vt.path))})}):jsxRuntimeExports.jsxs(IonSplitPane,{className:`flex ${tt?"justify-start":"justify-center"} non-admin-view`,style:{maxWidth:_e},when:"md",contentId:"main",children:[jsxRuntimeExports.jsx(LeftSideMenu,{isOnboarding:tt,isDirectoryUserOnboarding:j,isShown:Pt,isLftTrialOnboarding:it,...gt&&{style:gt}}),jsxRuntimeExports.jsx(IonRouterOutlet,{id:"main",className:clsx(!yt&&Pt&&"border-r border-gray-900",gt?"flex-grow":"max-w-2xl"),children:jsxRuntimeExports.jsx(Switch,{children:pt.map(vt=>jsxRuntimeExports.jsx(Route,{path:vt.path,component:vt.component,exact:vt.exact,render:vt.render},vt.path))})}),jsxRuntimeExports.jsx(RightSideMenu,{isShown:yt}),jsxRuntimeExports.jsx(DeepLinkingHandlerDesktop,{})]},"ion-split-pane-")]})},DesktopAppView$1=withRouter(DesktopAppView);var SwipeableBottomSheet$1={exports:{}},lib$1={};function _interopRequireWildcard(o){if(o&&o.__esModule)return o;var s={};if(o!=null){for(var a in o)if(Object.prototype.hasOwnProperty.call(o,a)){var $=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(o,a):{};$.get||$.set?Object.defineProperty(s,a,$):s[a]=o[a]}}return s.default=o,s}var interopRequireWildcard=_interopRequireWildcard,SwipeableViews={},interopRequireDefault$1,hasRequiredInteropRequireDefault$1;function requireInteropRequireDefault$1(){if(hasRequiredInteropRequireDefault$1)return interopRequireDefault$1;hasRequiredInteropRequireDefault$1=1;function o(s){return s&&s.__esModule?s:{default:s}}return interopRequireDefault$1=o,interopRequireDefault$1}var _extends_1,hasRequired_extends;function require_extends(){if(hasRequired_extends)return _extends_1;hasRequired_extends=1;function o(){return _extends_1=o=Object.assign||function(s){for(var a=1;a<arguments.length;a++){var $=arguments[a];for(var j in $)Object.prototype.hasOwnProperty.call($,j)&&(s[j]=$[j])}return s},o.apply(this,arguments)}return _extends_1=o,_extends_1}var objectWithoutPropertiesLoose,hasRequiredObjectWithoutPropertiesLoose;function requireObjectWithoutPropertiesLoose(){if(hasRequiredObjectWithoutPropertiesLoose)return objectWithoutPropertiesLoose;hasRequiredObjectWithoutPropertiesLoose=1;function o(s,a){if(s==null)return{};var $={},j=Object.keys(s),_e,et;for(et=0;et<j.length;et++)_e=j[et],!(a.indexOf(_e)>=0)&&($[_e]=s[_e]);return $}return objectWithoutPropertiesLoose=o,objectWithoutPropertiesLoose}var objectWithoutProperties,hasRequiredObjectWithoutProperties;function requireObjectWithoutProperties(){if(hasRequiredObjectWithoutProperties)return objectWithoutProperties;hasRequiredObjectWithoutProperties=1;var o=requireObjectWithoutPropertiesLoose();function s(a,$){if(a==null)return{};var j=o(a,$),_e,et;if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(a);for(et=0;et<tt.length;et++)_e=tt[et],!($.indexOf(_e)>=0)&&Object.prototype.propertyIsEnumerable.call(a,_e)&&(j[_e]=a[_e])}return j}return objectWithoutProperties=s,objectWithoutProperties}var classCallCheck,hasRequiredClassCallCheck;function requireClassCallCheck(){if(hasRequiredClassCallCheck)return classCallCheck;hasRequiredClassCallCheck=1;function o(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}return classCallCheck=o,classCallCheck}var createClass,hasRequiredCreateClass;function requireCreateClass(){if(hasRequiredCreateClass)return createClass;hasRequiredCreateClass=1;function o(a,$){for(var j=0;j<$.length;j++){var _e=$[j];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(a,_e.key,_e)}}function s(a,$,j){return $&&o(a.prototype,$),j&&o(a,j),a}return createClass=s,createClass}var _typeof_1,hasRequired_typeof;function require_typeof(){if(hasRequired_typeof)return _typeof_1;hasRequired_typeof=1;function o(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(j){return typeof j}:o=function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},o(a)}function s(a){return typeof Symbol=="function"&&o(Symbol.iterator)==="symbol"?_typeof_1=s=function(j){return o(j)}:_typeof_1=s=function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":o(j)},s(a)}return _typeof_1=s,_typeof_1}var assertThisInitialized,hasRequiredAssertThisInitialized;function requireAssertThisInitialized(){if(hasRequiredAssertThisInitialized)return assertThisInitialized;hasRequiredAssertThisInitialized=1;function o(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}return assertThisInitialized=o,assertThisInitialized}var possibleConstructorReturn,hasRequiredPossibleConstructorReturn;function requirePossibleConstructorReturn(){if(hasRequiredPossibleConstructorReturn)return possibleConstructorReturn;hasRequiredPossibleConstructorReturn=1;var o=require_typeof(),s=requireAssertThisInitialized();function a($,j){return j&&(o(j)==="object"||typeof j=="function")?j:s($)}return possibleConstructorReturn=a,possibleConstructorReturn}var getPrototypeOf,hasRequiredGetPrototypeOf;function requireGetPrototypeOf(){if(hasRequiredGetPrototypeOf)return getPrototypeOf;hasRequiredGetPrototypeOf=1;function o(s){return getPrototypeOf=o=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},o(s)}return getPrototypeOf=o,getPrototypeOf}var setPrototypeOf,hasRequiredSetPrototypeOf;function requireSetPrototypeOf(){if(hasRequiredSetPrototypeOf)return setPrototypeOf;hasRequiredSetPrototypeOf=1;function o(s,a){return setPrototypeOf=o=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},o(s,a)}return setPrototypeOf=o,setPrototypeOf}var inherits,hasRequiredInherits;function requireInherits(){if(hasRequiredInherits)return inherits;hasRequiredInherits=1;var o=requireSetPrototypeOf();function s(a,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create($&&$.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),$&&o(a,$)}return inherits=s,inherits}var warning_1,hasRequiredWarning;function requireWarning(){if(hasRequiredWarning)return warning_1;hasRequiredWarning=1;var o=function(){};return warning_1=o,warning_1}var lib={},interopRequireDefault,hasRequiredInteropRequireDefault;function requireInteropRequireDefault(){if(hasRequiredInteropRequireDefault)return interopRequireDefault;hasRequiredInteropRequireDefault=1;function o(s){return s&&s.__esModule?s:{default:s}}return interopRequireDefault=o,interopRequireDefault}var checkIndexBounds={},hasRequiredCheckIndexBounds;function requireCheckIndexBounds(){if(hasRequiredCheckIndexBounds)return checkIndexBounds;hasRequiredCheckIndexBounds=1;var o=requireInteropRequireDefault();Object.defineProperty(checkIndexBounds,"__esModule",{value:!0}),checkIndexBounds.default=void 0;var s=o(reactExports);o(requireWarning());var a=function(_e){_e.index;var et=_e.children;s.default.Children.count(et)},$=a;return checkIndexBounds.default=$,checkIndexBounds}var computeIndex={},constant={},hasRequiredConstant;function requireConstant(){if(hasRequiredConstant)return constant;hasRequiredConstant=1,Object.defineProperty(constant,"__esModule",{value:!0}),constant.default=void 0;var o={RESISTANCE_COEF:.6,UNCERTAINTY_THRESHOLD:3};return constant.default=o,constant}var hasRequiredComputeIndex;function requireComputeIndex(){if(hasRequiredComputeIndex)return computeIndex;hasRequiredComputeIndex=1;var o=requireInteropRequireDefault();Object.defineProperty(computeIndex,"__esModule",{value:!0}),computeIndex.default=$;var s=o(reactExports),a=o(requireConstant());function $(j){var _e=j.children,et=j.startIndex,tt=j.startX,nt=j.pageX,it=j.viewLength,rt=j.resistance,st=s.default.Children.count(_e)-1,ot=et+(tt-nt)/it,at;return rt?ot<0?ot=Math.exp(ot*a.default.RESISTANCE_COEF)-1:ot>st&&(ot=st+1-Math.exp((st-ot)*a.default.RESISTANCE_COEF)):ot<0?(ot=0,at=(ot-et)*it+nt):ot>st&&(ot=st,at=(ot-et)*it+nt),{index:ot,startX:at}}return computeIndex}var getDisplaySameSlide={},hasRequiredGetDisplaySameSlide;function requireGetDisplaySameSlide(){if(hasRequiredGetDisplaySameSlide)return getDisplaySameSlide;hasRequiredGetDisplaySameSlide=1;var o=requireInteropRequireDefault();Object.defineProperty(getDisplaySameSlide,"__esModule",{value:!0}),getDisplaySameSlide.default=void 0;var s=o(reactExports),a=function(_e,et){var tt=!1,nt=function(lt){return lt?lt.key:"empty"};if(_e.children.length&&et.children.length){var it=s.default.Children.map(_e.children,nt),rt=it[_e.index];if(rt!=null){var st=s.default.Children.map(et.children,nt),ot=st[et.index];rt===ot&&(tt=!0)}}return tt},$=a;return getDisplaySameSlide.default=$,getDisplaySameSlide}var mod={},hasRequiredMod;function requireMod(){if(hasRequiredMod)return mod;hasRequiredMod=1,Object.defineProperty(mod,"__esModule",{value:!0}),mod.default=void 0;function o(a,$){var j=a%$;return j<0?j+$:j}var s=o;return mod.default=s,mod}var hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,function(o){var s=requireInteropRequireDefault();Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"checkIndexBounds",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(o,"computeIndex",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(o,"constant",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(o,"getDisplaySameSlide",{enumerable:!0,get:function(){return _e.default}}),Object.defineProperty(o,"mod",{enumerable:!0,get:function(){return et.default}});var a=s(requireCheckIndexBounds()),$=s(requireComputeIndex()),j=s(requireConstant()),_e=s(requireGetDisplaySameSlide()),et=s(requireMod())}(lib)),lib}var hasRequiredSwipeableViews;function requireSwipeableViews(){if(hasRequiredSwipeableViews)return SwipeableViews;hasRequiredSwipeableViews=1;var o=interopRequireWildcard,s=requireInteropRequireDefault$1();Object.defineProperty(SwipeableViews,"__esModule",{value:!0}),SwipeableViews.getDomTreeShapes=dt,SwipeableViews.findNativeHandler=pt,SwipeableViews.default=SwipeableViews.SwipeableViewsContext=void 0;var a=s(require_extends()),$=s(requireObjectWithoutProperties()),j=s(requireClassCallCheck()),_e=s(requireCreateClass()),et=s(requirePossibleConstructorReturn()),tt=s(requireGetPrototypeOf()),nt=s(requireInherits()),it=o(reactExports);s(propTypesExports),s(requireWarning());var rt=requireLib();function st(bt,St,Nt,Rt){return bt.addEventListener(St,Nt,Rt),{remove:function(){bt.removeEventListener(St,Nt,Rt)}}}var ot={container:{direction:"ltr",display:"flex",willChange:"transform"},slide:{width:"100%",WebkitFlexShrink:0,flexShrink:0,overflow:"auto"}},at={root:{x:{overflowX:"hidden"},"x-reverse":{overflowX:"hidden"},y:{overflowY:"hidden"},"y-reverse":{overflowY:"hidden"}},flexDirection:{x:"row","x-reverse":"row-reverse",y:"column","y-reverse":"column-reverse"},transform:{x:function(St){return"translate(".concat(-St,"%, 0)")},"x-reverse":function(St){return"translate(".concat(St,"%, 0)")},y:function(St){return"translate(0, ".concat(-St,"%)")},"y-reverse":function(St){return"translate(0, ".concat(St,"%)")}},length:{x:"width","x-reverse":"width",y:"height","y-reverse":"height"},rotationMatrix:{x:{x:[1,0],y:[0,1]},"x-reverse":{x:[-1,0],y:[0,1]},y:{x:[0,1],y:[1,0]},"y-reverse":{x:[0,-1],y:[1,0]}},scrollPosition:{x:"scrollLeft","x-reverse":"scrollLeft",y:"scrollTop","y-reverse":"scrollTop"},scrollLength:{x:"scrollWidth","x-reverse":"scrollWidth",y:"scrollHeight","y-reverse":"scrollHeight"},clientLength:{x:"clientWidth","x-reverse":"clientWidth",y:"clientHeight","y-reverse":"clientHeight"}};function lt(bt,St){var Nt=St.duration,Rt=St.easeFunction,Ft=St.delay;return"".concat(bt," ").concat(Nt," ").concat(Rt," ").concat(Ft)}function ct(bt,St){var Nt=at.rotationMatrix[St];return{pageX:Nt.x[0]*bt.pageX+Nt.x[1]*bt.pageY,pageY:Nt.y[0]*bt.pageX+Nt.y[1]*bt.pageY}}function ht(bt){return bt.touches=[{pageX:bt.pageX,pageY:bt.pageY}],bt}function dt(bt,St){for(var Nt=[];bt&&bt!==St&&bt!==document.body&&!bt.hasAttribute("data-swipeable");){var Rt=window.getComputedStyle(bt);Rt.getPropertyValue("position")==="absolute"||Rt.getPropertyValue("overflow-x")==="hidden"?Nt=[]:(bt.clientWidth>0&&bt.scrollWidth>bt.clientWidth||bt.clientHeight>0&&bt.scrollHeight>bt.clientHeight)&&Nt.push({element:bt,scrollWidth:bt.scrollWidth,scrollHeight:bt.scrollHeight,clientWidth:bt.clientWidth,clientHeight:bt.clientHeight,scrollLeft:bt.scrollLeft,scrollTop:bt.scrollTop}),bt=bt.parentNode}return Nt}var ut=null;function pt(bt){var St=bt.domTreeShapes,Nt=bt.pageX,Rt=bt.startX,Ft=bt.axis;return St.some(function(Ot){var Ct=Nt>=Rt;(Ft==="x"||Ft==="y")&&(Ct=!Ct);var yt=Math.round(Ot[at.scrollPosition[Ft]]),Pt=yt>0,wt=yt+Ot[at.clientLength[Ft]]<Ot[at.scrollLength[Ft]];return Ct&&wt||!Ct&&Pt?(ut=Ot.element,!0):!1})}var ft=it.createContext();SwipeableViews.SwipeableViewsContext=ft;var mt=function(bt){(0,nt.default)(St,bt);function St(Nt){var Rt;return(0,j.default)(this,St),Rt=(0,et.default)(this,(0,tt.default)(St).call(this,Nt)),Rt.rootNode=null,Rt.containerNode=null,Rt.ignoreNextScrollEvents=!1,Rt.viewLength=0,Rt.startX=0,Rt.lastX=0,Rt.vx=0,Rt.startY=0,Rt.isSwiping=void 0,Rt.started=!1,Rt.startIndex=0,Rt.transitionListener=null,Rt.touchMoveListener=null,Rt.activeSlide=null,Rt.indexCurrent=null,Rt.firstRenderTimeout=null,Rt.setRootNode=function(Ft){Rt.rootNode=Ft},Rt.setContainerNode=function(Ft){Rt.containerNode=Ft},Rt.setActiveSlide=function(Ft){Rt.activeSlide=Ft,Rt.updateHeight()},Rt.handleSwipeStart=function(Ft){var Ot=Rt.props.axis,Ct=ct(Ft.touches[0],Ot);Rt.viewLength=Rt.rootNode.getBoundingClientRect()[at.length[Ot]],Rt.startX=Ct.pageX,Rt.lastX=Ct.pageX,Rt.vx=0,Rt.startY=Ct.pageY,Rt.isSwiping=void 0,Rt.started=!0;var yt=window.getComputedStyle(Rt.containerNode),Pt=yt.getPropertyValue("-webkit-transform")||yt.getPropertyValue("transform");if(Pt&&Pt!=="none"){var wt=Pt.split("(")[1].split(")")[0].split(","),Lt=window.getComputedStyle(Rt.rootNode),vt=ct({pageX:parseInt(wt[4],10),pageY:parseInt(wt[5],10)},Ot);Rt.startIndex=-vt.pageX/(Rt.viewLength-parseInt(Lt.paddingLeft,10)-parseInt(Lt.paddingRight,10))||0}},Rt.handleSwipeMove=function(Ft){if(!Rt.started){Rt.handleTouchStart(Ft);return}if(!(ut!==null&&ut!==Rt.rootNode)){var Ot=Rt.props,Ct=Ot.axis,yt=Ot.children,Pt=Ot.ignoreNativeScroll,wt=Ot.onSwitching,Lt=Ot.resistance,vt=ct(Ft.touches[0],Ct);if(Rt.isSwiping===void 0){var xt=Math.abs(vt.pageX-Rt.startX),Ut=Math.abs(vt.pageY-Rt.startY),Et=xt>Ut&&xt>rt.constant.UNCERTAINTY_THRESHOLD;if(!Lt&&(Ct==="y"||Ct==="y-reverse")&&(Rt.indexCurrent===0&&Rt.startX<vt.pageX||Rt.indexCurrent===it.Children.count(Rt.props.children)-1&&Rt.startX>vt.pageX)){Rt.isSwiping=!1;return}if(xt>Ut&&Ft.preventDefault(),Et===!0||Ut>rt.constant.UNCERTAINTY_THRESHOLD){Rt.isSwiping=Et,Rt.startX=vt.pageX;return}}if(Rt.isSwiping===!0){Ft.preventDefault(),Rt.vx=Rt.vx*.5+(vt.pageX-Rt.lastX)*.5,Rt.lastX=vt.pageX;var Dt=(0,rt.computeIndex)({children:yt,resistance:Lt,pageX:vt.pageX,startIndex:Rt.startIndex,startX:Rt.startX,viewLength:Rt.viewLength}),Bt=Dt.index,Wt=Dt.startX;if(ut===null&&!Pt){var Zt=dt(Ft.target,Rt.rootNode),sn=pt({domTreeShapes:Zt,startX:Rt.startX,pageX:vt.pageX,axis:Ct});if(sn)return}Wt?Rt.startX=Wt:ut===null&&(ut=Rt.rootNode),Rt.setIndexCurrent(Bt);var dn=function(){wt&&wt(Bt,"move")};(Rt.state.displaySameSlide||!Rt.state.isDragging)&&Rt.setState({displaySameSlide:!1,isDragging:!0},dn),dn()}}},Rt.handleSwipeEnd=function(){if(ut=null,!!Rt.started&&(Rt.started=!1,Rt.isSwiping===!0)){var Ft=Rt.state.indexLatest,Ot=Rt.indexCurrent,Ct=Ft-Ot,yt;Math.abs(Rt.vx)>Rt.props.threshold?Rt.vx>0?yt=Math.floor(Ot):yt=Math.ceil(Ot):Math.abs(Ct)>Rt.props.hysteresis?yt=Ct>0?Math.floor(Ot):Math.ceil(Ot):yt=Ft;var Pt=it.Children.count(Rt.props.children)-1;yt<0?yt=0:yt>Pt&&(yt=Pt),Rt.setIndexCurrent(yt),Rt.setState({indexLatest:yt,isDragging:!1},function(){Rt.props.onSwitching&&Rt.props.onSwitching(yt,"end"),Rt.props.onChangeIndex&&yt!==Ft&&Rt.props.onChangeIndex(yt,Ft,{reason:"swipe"}),Ot===Ft&&Rt.handleTransitionEnd()})}},Rt.handleTouchStart=function(Ft){Rt.props.onTouchStart&&Rt.props.onTouchStart(Ft),Rt.handleSwipeStart(Ft)},Rt.handleTouchEnd=function(Ft){Rt.props.onTouchEnd&&Rt.props.onTouchEnd(Ft),Rt.handleSwipeEnd(Ft)},Rt.handleMouseDown=function(Ft){Rt.props.onMouseDown&&Rt.props.onMouseDown(Ft),Ft.persist(),Rt.handleSwipeStart(ht(Ft))},Rt.handleMouseUp=function(Ft){Rt.props.onMouseUp&&Rt.props.onMouseUp(Ft),Rt.handleSwipeEnd(ht(Ft))},Rt.handleMouseLeave=function(Ft){Rt.props.onMouseLeave&&Rt.props.onMouseLeave(Ft),Rt.started&&Rt.handleSwipeEnd(ht(Ft))},Rt.handleMouseMove=function(Ft){Rt.props.onMouseMove&&Rt.props.onMouseMove(Ft),Rt.started&&Rt.handleSwipeMove(ht(Ft))},Rt.handleScroll=function(Ft){if(Rt.props.onScroll&&Rt.props.onScroll(Ft),Ft.target===Rt.rootNode){if(Rt.ignoreNextScrollEvents){Rt.ignoreNextScrollEvents=!1;return}var Ot=Rt.state.indexLatest,Ct=Math.ceil(Ft.target.scrollLeft/Ft.target.clientWidth)+Ot;Rt.ignoreNextScrollEvents=!0,Ft.target.scrollLeft=0,Rt.props.onChangeIndex&&Ct!==Ot&&Rt.props.onChangeIndex(Ct,Ot,{reason:"focus"})}},Rt.updateHeight=function(){if(Rt.activeSlide!==null){var Ft=Rt.activeSlide.children[0];Ft!==void 0&&Ft.offsetHeight!==void 0&&Rt.state.heightLatest!==Ft.offsetHeight&&Rt.setState({heightLatest:Ft.offsetHeight})}},Rt.state={indexLatest:Nt.index,isDragging:!1,renderOnlyActive:!Nt.disableLazyLoading,heightLatest:0,displaySameSlide:!0},Rt.setIndexCurrent(Nt.index),Rt}return(0,_e.default)(St,[{key:"componentDidMount",value:function(){var Rt=this;this.transitionListener=st(this.containerNode,"transitionend",function(Ft){Ft.target===Rt.containerNode&&Rt.handleTransitionEnd()}),this.touchMoveListener=st(this.rootNode,"touchmove",function(Ft){Rt.props.disabled||Rt.handleSwipeMove(Ft)},{passive:!1}),this.props.disableLazyLoading||(this.firstRenderTimeout=setTimeout(function(){Rt.setState({renderOnlyActive:!1})},0)),this.props.action&&this.props.action({updateHeight:this.updateHeight})}},{key:"UNSAFE_componentWillReceiveProps",value:function(Rt){var Ft=Rt.index;typeof Ft=="number"&&Ft!==this.props.index&&(this.setIndexCurrent(Ft),this.setState({displaySameSlide:(0,rt.getDisplaySameSlide)(this.props,Rt),indexLatest:Ft}))}},{key:"componentWillUnmount",value:function(){this.transitionListener.remove(),this.touchMoveListener.remove(),clearTimeout(this.firstRenderTimeout)}},{key:"getSwipeableViewsContext",value:function(){var Rt=this;return{slideUpdateHeight:function(){Rt.updateHeight()}}}},{key:"setIndexCurrent",value:function(Rt){if(!this.props.animateTransitions&&this.indexCurrent!==Rt&&this.handleTransitionEnd(),this.indexCurrent=Rt,this.containerNode){var Ft=this.props.axis,Ot=at.transform[Ft](Rt*100);this.containerNode.style.WebkitTransform=Ot,this.containerNode.style.transform=Ot}}},{key:"handleTransitionEnd",value:function(){this.props.onTransitionEnd&&(this.state.displaySameSlide||this.state.isDragging||this.props.onTransitionEnd())}},{key:"render",value:function(){var Rt=this,Ft=this.props;Ft.action;var Ot=Ft.animateHeight,Ct=Ft.animateTransitions,yt=Ft.axis,Pt=Ft.children,wt=Ft.containerStyle,Lt=Ft.disabled;Ft.disableLazyLoading;var vt=Ft.enableMouseEvents;Ft.hysteresis,Ft.ignoreNativeScroll,Ft.index,Ft.onChangeIndex,Ft.onSwitching,Ft.onTransitionEnd,Ft.resistance;var xt=Ft.slideStyle,Ut=Ft.slideClassName,Et=Ft.springConfig,Dt=Ft.style;Ft.threshold;var Bt=(0,$.default)(Ft,["action","animateHeight","animateTransitions","axis","children","containerStyle","disabled","disableLazyLoading","enableMouseEvents","hysteresis","ignoreNativeScroll","index","onChangeIndex","onSwitching","onTransitionEnd","resistance","slideStyle","slideClassName","springConfig","style","threshold"]),Wt=this.state,Zt=Wt.displaySameSlide,sn=Wt.heightLatest,dn=Wt.indexLatest,vn=Wt.isDragging,kn=Wt.renderOnlyActive,An=Lt?{}:{onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},$n=!Lt&&vt?{onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave,onMouseMove:this.handleMouseMove}:{},On=(0,a.default)({},ot.slide,xt),Cn,rn;if(vn||!Ct||Zt)Cn="all 0s ease 0s",rn="all 0s ease 0s";else if(Cn=lt("transform",Et),rn=lt("-webkit-transform",Et),sn!==0){var Fn=", ".concat(lt("height",Et));Cn+=Fn,rn+=Fn}var Ln={height:null,WebkitFlexDirection:at.flexDirection[yt],flexDirection:at.flexDirection[yt],WebkitTransition:rn,transition:Cn};if(!kn){var Rn=at.transform[yt](this.indexCurrent*100);Ln.WebkitTransform=Rn,Ln.transform=Rn}return Ot&&(Ln.height=sn),it.createElement(ft.Provider,{value:this.getSwipeableViewsContext()},it.createElement("div",(0,a.default)({ref:this.setRootNode,style:(0,a.default)({},at.root[yt],Dt)},Bt,An,$n,{onScroll:this.handleScroll}),it.createElement("div",{ref:this.setContainerNode,style:(0,a.default)({},Ln,ot.container,wt),className:"react-swipeable-view-container"},it.Children.map(Pt,function(Gn,Vn){if(kn&&Vn!==dn)return null;var qn,Zn=!0;return Vn===dn&&(Zn=!1,Ot&&(qn=Rt.setActiveSlide,On.overflowY="hidden")),it.createElement("div",{ref:qn,style:On,className:Ut,"aria-hidden":Zn,"data-swipeable":"true"},Gn)}))))}}]),St}(it.Component);mt.displayName="ReactSwipableView",mt.propTypes={},mt.defaultProps={animateHeight:!1,animateTransitions:!0,axis:"x",disabled:!1,disableLazyLoading:!1,enableMouseEvents:!1,hysteresis:.6,ignoreNativeScroll:!1,index:0,threshold:5,springConfig:{duration:"0.35s",easeFunction:"cubic-bezier(0.15, 0.3, 0.25, 1)",delay:"0s"},resistance:!1};var gt=mt;return SwipeableViews.default=gt,SwipeableViews}(function(o){var s=interopRequireWildcard;Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"default",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(o,"SwipeableViewsContext",{enumerable:!0,get:function(){return a.SwipeableViewsContext}});var a=s(requireSwipeableViews())})(lib$1);var HeightUpdater={exports:{}};(function(o,s){Object.defineProperty(s,"__esModule",{value:!0});var a=function(){function st(ot,at){for(var lt=0;lt<at.length;lt++){var ct=at[lt];ct.enumerable=ct.enumerable||!1,ct.configurable=!0,"value"in ct&&(ct.writable=!0),Object.defineProperty(ot,ct.key,ct)}}return function(ot,at,lt){return at&&st(ot.prototype,at),lt&&st(ot,lt),ot}}(),$=function(ot,at,lt){var ct=!0;e:for(;ct;){var ht=ot,dt=at,ut=lt;ct=!1,ht===null&&(ht=Function.prototype);var pt=Object.getOwnPropertyDescriptor(ht,dt);if(pt===void 0){var ft=Object.getPrototypeOf(ht);if(ft===null)return;ot=ft,at=dt,lt=ut,ct=!0,pt=ft=void 0;continue e}else{if("value"in pt)return pt.value;var mt=pt.get;return mt===void 0?void 0:mt.call(ut)}}};function j(st){return st&&st.__esModule?st:{default:st}}function _e(st,ot){if(!(st instanceof ot))throw new TypeError("Cannot call a class as a function")}function et(st,ot){if(typeof ot!="function"&&ot!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ot);st.prototype=Object.create(ot&&ot.prototype,{constructor:{value:st,enumerable:!1,writable:!0,configurable:!0}}),ot&&(Object.setPrototypeOf?Object.setPrototypeOf(st,ot):st.__proto__=ot)}var tt=reactExports;j(tt);var nt=propTypesExports,it=j(nt),rt=function(st){et(ot,st);function ot(at){_e(this,ot),$(Object.getPrototypeOf(ot.prototype),"constructor",this).call(this,at),this.onWindowResize=this.onWindowResize.bind(this)}return a(ot,[{key:"onWindowResize",value:function(){var lt=window.innerHeight;lt!==this.props.height&&this.props.onHeightChange(lt)}},{key:"componentWillMount",value:function(){window.addEventListener("resize",this.onWindowResize)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onWindowResize)}},{key:"render",value:function(){return null}}]),ot}(tt.Component);rt.propTypes={height:it.default.number,onHeightChange:it.default.func},s.default=rt,o.exports=s.default})(HeightUpdater,HeightUpdater.exports);var HeightUpdaterExports=HeightUpdater.exports,ScrollToTop={exports:{}};(function(o,s){Object.defineProperty(s,"__esModule",{value:!0});var a=function(){function st(ot,at){for(var lt=0;lt<at.length;lt++){var ct=at[lt];ct.enumerable=ct.enumerable||!1,ct.configurable=!0,"value"in ct&&(ct.writable=!0),Object.defineProperty(ot,ct.key,ct)}}return function(ot,at,lt){return at&&st(ot.prototype,at),lt&&st(ot,lt),ot}}(),$=function(ot,at,lt){var ct=!0;e:for(;ct;){var ht=ot,dt=at,ut=lt;ct=!1,ht===null&&(ht=Function.prototype);var pt=Object.getOwnPropertyDescriptor(ht,dt);if(pt===void 0){var ft=Object.getPrototypeOf(ht);if(ft===null)return;ot=ft,at=dt,lt=ut,ct=!0,pt=ft=void 0;continue e}else{if("value"in pt)return pt.value;var mt=pt.get;return mt===void 0?void 0:mt.call(ut)}}};function j(st){return st&&st.__esModule?st:{default:st}}function _e(st,ot){if(!(st instanceof ot))throw new TypeError("Cannot call a class as a function")}function et(st,ot){if(typeof ot!="function"&&ot!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ot);st.prototype=Object.create(ot&&ot.prototype,{constructor:{value:st,enumerable:!1,writable:!0,configurable:!0}}),ot&&(Object.setPrototypeOf?Object.setPrototypeOf(st,ot):st.__proto__=ot)}var tt=reactExports;j(tt);var nt=propTypesExports,it=j(nt),rt=function(st){et(ot,st);function ot(){_e(this,ot),$(Object.getPrototypeOf(ot.prototype),"constructor",this).apply(this,arguments)}return a(ot,[{key:"componentDidMount",value:function(){this.props.element().scrollTop=0}},{key:"render",value:function(){return null}}]),ot}(tt.Component);rt.propTypes={element:it.default.func.isRequired},s.default=rt,o.exports=s.default})(ScrollToTop,ScrollToTop.exports);var ScrollToTopExports=ScrollToTop.exports;(function(o,s){Object.defineProperty(s,"__esModule",{value:!0});var a=Object.assign||function(pt){for(var ft=1;ft<arguments.length;ft++){var mt=arguments[ft];for(var gt in mt)Object.prototype.hasOwnProperty.call(mt,gt)&&(pt[gt]=mt[gt])}return pt},$=function(){function pt(ft,mt){for(var gt=0;gt<mt.length;gt++){var bt=mt[gt];bt.enumerable=bt.enumerable||!1,bt.configurable=!0,"value"in bt&&(bt.writable=!0),Object.defineProperty(ft,bt.key,bt)}}return function(ft,mt,gt){return mt&&pt(ft.prototype,mt),gt&&pt(ft,gt),ft}}(),j=function(ft,mt,gt){var bt=!0;e:for(;bt;){var St=ft,Nt=mt,Rt=gt;bt=!1,St===null&&(St=Function.prototype);var Ft=Object.getOwnPropertyDescriptor(St,Nt);if(Ft===void 0){var Ot=Object.getPrototypeOf(St);if(Ot===null)return;ft=Ot,mt=Nt,gt=Rt,bt=!0,Ft=Ot=void 0;continue e}else{if("value"in Ft)return Ft.value;var Ct=Ft.get;return Ct===void 0?void 0:Ct.call(Rt)}}};function _e(pt){return pt&&pt.__esModule?pt:{default:pt}}function et(pt,ft){if(!(pt instanceof ft))throw new TypeError("Cannot call a class as a function")}function tt(pt,ft){if(typeof ft!="function"&&ft!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ft);pt.prototype=Object.create(ft&&ft.prototype,{constructor:{value:pt,enumerable:!1,writable:!0,configurable:!0}}),ft&&(Object.setPrototypeOf?Object.setPrototypeOf(pt,ft):pt.__proto__=ft)}var nt=reactExports,it=_e(nt),rt=propTypesExports,st=_e(rt),ot=lib$1,at=_e(ot),lt=HeightUpdaterExports,ct=_e(lt),ht=ScrollToTopExports,dt=_e(ht),ut=function(pt){tt(ft,pt);function ft(mt){et(this,ft),j(Object.getPrototypeOf(ft.prototype),"constructor",this).call(this,mt),this.onHeightChange=this.onHeightChange.bind(this),this.onChangeIndex=this.onChangeIndex.bind(this),this.onTransitionEnd=this.onTransitionEnd.bind(this),this.state={open:mt.defaultOpen,height:window.innerHeight}}return $(ft,[{key:"onHeightChange",value:function(gt){this.setState({height:gt})}},{key:"onChangeIndex",value:function(gt){var bt=gt===1;this.props.open===void 0&&this.setState({open:bt}),this.props.onChange!==void 0&&this.props.onChange(bt)}},{key:"onTransitionEnd",value:function(){var gt=this.props,bt=gt.overflowHeight,St=gt.swipeableViewsProps;bt===0&&(this.bodyElt.scrollTop=0),St.onTransitionEnd&&St.onTransitionEnd()}},{key:"render",value:function(){var gt=this,bt=this.props,St=bt.overflowHeight,Nt=bt.fullScreen,Rt=bt.marginTop,Ft=bt.open,Ot=bt.topShadow,Ct=bt.shadowTip,yt=bt.overlay,Pt=bt.swipeableViewsProps,wt=bt.scrollTopAtClose,Lt=St===0,vt=Ft!==void 0,xt=vt?Ft:this.state.open,Ut=Lt&&!xt,Et=xt?1:0,Dt=this.state.height-Rt,Bt={root:a({height:St,position:"fixed",bottom:0,right:0,left:0},this.props.style),swiper:{root:a({overflowY:"initial",boxSizing:"border-box"},Pt.style),container:a({boxSizing:"border-box"},Ot&&!Ut&&{boxShadow:"rgba(0, 0, 0, 0.156863) 0px -6px 5px"},Pt.containerStyle),slide:a({boxSizing:"border-box",overflow:"visible",marginBottom:-St},Pt.slideStyle),bottomSlide:{marginBottom:St},body:a({overflow:xt?"auto":"hidden",backgroundColor:"white",height:Nt?Dt:"initial",maxHeight:Dt},this.props.bodyStyle)},overlay:a({position:"fixed",top:0,right:0,left:0,height:this.state.height,transition:"opacity 450ms",pointerEvents:"none",backgroundColor:"black",opacity:0},xt&&{opacity:.54,pointerEvents:"auto"},this.props.overlayStyle),shadowTip:{position:"fixed",height:60,width:"200%",bottom:-60,left:"-50%",boxShadow:"rgba(0, 0, 0, 0.7) 0px 0px 30px",transition:"transform 450ms",transform:xt?"translateY(50px)":"translateY(0)"}};return it.default.createElement("div",{style:Bt.root},it.default.createElement(ct.default,{height:this.state.height,onHeightChange:this.onHeightChange}),yt&&it.default.createElement("div",{style:Bt.overlay,onClick:function(){return gt.onChangeIndex(0)}}),it.default.createElement(at.default,a({index:Et,axis:"y",enableMouseEvents:!0,onChangeIndex:this.onChangeIndex},this.props.swipeableViewsProps,{onTransitionEnd:this.onTransitionEnd,style:Bt.swiper.root,containerStyle:Bt.swiper.container,slideStyle:Bt.swiper.slide}),it.default.createElement("div",{ref:function(Wt){return gt.bodyElt=Wt},style:Bt.swiper.body,className:"ReactSwipeableBottomSheet--"+(xt?"open":"closed")},this.props.children),it.default.createElement("div",{style:Bt.swiper.bottomSlide})),Ct&&!Ut&&it.default.createElement("div",{style:Bt.shadowTip}),!xt&&wt&&!Lt&&it.default.createElement(dt.default,{element:function(){return gt.bodyElt}}))}}]),ft}(nt.Component);ut.propTypes={bodyStyle:st.default.object,children:st.default.node.isRequired,defaultOpen:st.default.bool,fullScreen:st.default.bool,marginTop:st.default.number,onChange:st.default.func,onTransitionEnd:st.default.func,open:st.default.bool,overflowHeight:st.default.number,overlay:st.default.bool,overlayStyle:st.default.object,scrollTopAtClose:st.default.bool,shadowTip:st.default.bool,style:st.default.object,swipeableViewsProps:st.default.object,topShadow:st.default.bool},ut.defaultProps={defaultOpen:!1,fullScreen:!1,marginTop:0,overflowHeight:0,overlay:!0,scrollTopAtClose:!0,shadowTip:!0,swipeableViewsProps:{},topShadow:!0},s.default=ut,o.exports=s.default})(SwipeableBottomSheet$1,SwipeableBottomSheet$1.exports);var SwipeableBottomSheetExports=SwipeableBottomSheet$1.exports;const SwipeableBottomSheet=getDefaultExportFromCjs(SwipeableBottomSheetExports),showBottomSheetDeprecated=(o,s)=>({type:SHOW_BOTTOM_SHEET_DEPRECATED,payload:{type:o,data:s}}),closeBottomSheetDeprecated=()=>({type:CLOSE_BOTTOM_SHEET_DEPRECATED}),resetBottomSheetDeprecated=()=>({type:RESET_BOTTOM_SHEET_DEPRECATED}),BottomSheetDeprecated=()=>{const o=useLocation(),s=useDispatch(),[a,$]=reactExports.useState(!1),j=useSelector(lt=>{var ct;return(ct=lt.previewPage)==null?void 0:ct.step}),{isShown:_e,type:et,data:tt}=useSelector(lt=>lt.bottomSheetDeprecated),[nt,it]=reactExports.useState(!1),[rt,st]=reactExports.useState(!0),ot=reactExports.useMemo(()=>et||(()=>null),[et]);if(reactExports.useEffect(function(){const ht=new URLSearchParams(window.location.search).get("viewingAs");$(ht==="1")},[]),reactExports.useEffect(()=>{s(resetBottomSheetDeprecated())},[o,s]),reactExports.useEffect(()=>{if(!_e||!ot)return it(!1);const lt=setTimeout(()=>{it(!0)},100);return()=>{clearTimeout(lt)}},[_e,ot]),reactExports.useEffect(function(){return window.onbeforeunload=()=>{s(closeBottomSheetDeprecated())},()=>{window.onbeforeunload=null}},[s]),reactExports.useEffect(()=>{if(_e)return st(!1);_e||setTimeout(()=>{st(!0)},300)},[_e]),rt)return null;const at=!a||a&&j===4;return jsxRuntimeExports.jsxs(SwipeableBottomSheet,{open:nt,onChange:()=>{s(closeBottomSheetDeprecated()),setTimeout(()=>{s(resetBottomSheetDeprecated())},300)},overlayStyle:{background:"rgba(0, 15, 49, 0.32)",pointerEvents:!at&&"none"},swipeableViewsProps:{disabled:!at},style:{maxWidth:"36rem",margin:"auto",zIndex:99},children:[jsxRuntimeExports.jsx(Handle,{}),jsxRuntimeExports.jsx("div",{"data-test":`bottomSheet:component:${et}`,className:"p-4",children:jsxRuntimeExports.jsx(ot,{...tt})})]})},Handle=()=>jsxRuntimeExports.jsx("div",{className:"h-1 w-12 mt-2 bg-gray-900 m-auto rounded-xl"});let initialized=!1,debug=!1;const warn=(...o)=>{debug&&console.info(...["[meta-pixel]"].concat(o))},log=(...o)=>{debug&&console.info(...["[meta-pixel]"].concat(o))},verifyInit=()=>(initialized||warn("Pixel not initialized before using call ReactPixel.init with required params"),initialized),defaultOptions={autoConfig:!0,debug:!1},metaPixel={init(o,s={},a=defaultOptions){debug=a.debug,initialized=typeof window<"u"&&!!window.fbq,function($,j,_e,et,tt,nt,it){$.fbq||(tt=$.fbq=function(){tt.callMethod?tt.callMethod.apply(tt,arguments):tt.queue.push(arguments)},$._fbq||($._fbq=tt),tt.push=tt,tt.loaded=!0,tt.version="2.0",tt.queue=[],nt=j.createElement(_e),nt.async=!0,nt.src=et,it=j.getElementsByTagName(_e)[0],it.parentNode.insertBefore(nt,it))}(window,document,"script","https://connect.facebook.net/en_US/fbevents.js"),o?(a.autoConfig===!1&&fbq("set","autoConfig",!1,o),fbq("init",o,s),initialized=!0):warn("Please insert pixel id for initializing")},pageView(){verifyInit()&&(fbq("track","PageView"),debug&&log("called fbq('track', 'PageView')"))},track(o,s){verifyInit()&&(fbq("track",o,s),debug&&(log(`called fbq('track', '${o}')`),s&&log("with data",s)))},trackSingle(o,s,a){verifyInit()&&(fbq("trackSingle",o,s,a),debug&&(log(`called fbq('trackSingle', '${o}', '${s}')`),a&&log("with data",a)))},trackCustom(o,s){verifyInit()&&(fbq("trackCustom",o,s),debug&&(log(`called fbq('trackCustom', '${o}')`),s&&log("with data",s)))},trackSingleCustom(o,s,a){verifyInit()&&(fbq("trackSingle",o,s,a),debug&&(log(`called fbq('trackSingleCustom', '${o}', '${s}')`),a&&log("with data",a)))},grantConsent(){verifyInit()&&(fbq("consent","grant"),debug&&log("called fbq('consent', 'grant')"))},revokeConsent(){verifyInit()&&(fbq("consent","revoke"),debug&&log("called fbq('consent', 'revoke')"))},fbq(...o){verifyInit()&&(fbq(...o),debug&&(log(`called fbq('${o.slice(0,2).join("', '")}')`),o[2]&&log("with data",o[2])))}},requestData$2=o=>({url:`${BASE_API_URL}/api/v3/app_version/validate_version`,apiMethod:API_METHODS.POST,data:{user_version:o}}),useValidateAppVersion=({userVersion:o,options:s})=>{const a=useApiRequest(),$=async()=>(await a(requestData$2(o))).data.app_version;return useQuery(appVersionKeys.all,$,{...s,enabled:!!o})},appStoreUrls={android:"https://play.google.com/store/apps/details?id=com.linq.app&hl=en",ios:"https://apps.apple.com/us/app/linq-digital-business-card/id1492946255"},openAppStore=o=>()=>{const s=o&&appStoreUrls[o];s&&window.open(s,"_system","location=yes")},UpdateAlert=()=>{const o=useSelector(_e=>_e.user.currentUser),s=useDispatch(),[a,$]=reactExports.useState(void 0);getAppInfo().then(_e=>{_e.version!=="WEB"&&$(_e.version)}).catch(console.error);const{data:j={}}=useValidateAppVersion({userVersion:a});return o&&getPlatform().then(_e=>{if(_e==="web")return null;j!=null&&j.force_update?showForceUpdateAlert(openAppStore(_e),s):j!=null&&j.soft_update&&showSoftUpdateAlert(openAppStore(_e),s)}).catch(console.error),null},showForceUpdateAlert=(o,s)=>{s(showAlertModal({header:"Update to continue",message:"To continue using Linq, you must update to the latest version.",confirmButtonType:"primary",buttonText:"Click to Update",dismissOnConfirm:!1,hideDismissButton:!0,disableBackdropDismiss:!0,onConfirm:o}))},showSoftUpdateAlert=(o,s)=>{s(showAlertModal({header:"New version available",message:"There is a new version of Linq available!",confirmButtonType:"primary",buttonText:"Click to Update",dismissOnConfirm:!0,onConfirm:o}))},CameraPreview=registerPlugin("CameraPreview",{web:()=>__vitePreload(()=>import("./web-Dtx8XTk9.js"),[]).then(o=>new o.CameraPreviewWeb)});var __awaiter=commonjsGlobal$1&&commonjsGlobal$1.__awaiter||function(o,s,a,$){function j(_e){return _e instanceof a?_e:new a(function(et){et(_e)})}return new(a||(a=Promise))(function(_e,et){function tt(rt){try{it($.next(rt))}catch(st){et(st)}}function nt(rt){try{it($.throw(rt))}catch(st){et(st)}}function it(rt){rt.done?_e(rt.value):j(rt.value).then(tt,nt)}it(($=$.apply(o,s||[])).next())})},CdvPurchase$1;(function(o){(function($){$[$.SETUP=6777001]="SETUP",$[$.LOAD=6777002]="LOAD",$[$.PURCHASE=6777003]="PURCHASE",$[$.LOAD_RECEIPTS=6777004]="LOAD_RECEIPTS",$[$.CLIENT_INVALID=6777005]="CLIENT_INVALID",$[$.PAYMENT_CANCELLED=6777006]="PAYMENT_CANCELLED",$[$.PAYMENT_INVALID=6777007]="PAYMENT_INVALID",$[$.PAYMENT_NOT_ALLOWED=6777008]="PAYMENT_NOT_ALLOWED",$[$.UNKNOWN=6777010]="UNKNOWN",$[$.REFRESH_RECEIPTS=6777011]="REFRESH_RECEIPTS",$[$.INVALID_PRODUCT_ID=6777012]="INVALID_PRODUCT_ID",$[$.FINISH=6777013]="FINISH",$[$.COMMUNICATION=6777014]="COMMUNICATION",$[$.SUBSCRIPTIONS_NOT_AVAILABLE=6777015]="SUBSCRIPTIONS_NOT_AVAILABLE",$[$.MISSING_TOKEN=6777016]="MISSING_TOKEN",$[$.VERIFICATION_FAILED=6777017]="VERIFICATION_FAILED",$[$.BAD_RESPONSE=6777018]="BAD_RESPONSE",$[$.REFRESH=6777019]="REFRESH",$[$.PAYMENT_EXPIRED=6777020]="PAYMENT_EXPIRED",$[$.DOWNLOAD=6777021]="DOWNLOAD",$[$.SUBSCRIPTION_UPDATE_NOT_AVAILABLE=6777022]="SUBSCRIPTION_UPDATE_NOT_AVAILABLE",$[$.PRODUCT_NOT_AVAILABLE=6777023]="PRODUCT_NOT_AVAILABLE",$[$.CLOUD_SERVICE_PERMISSION_DENIED=6777024]="CLOUD_SERVICE_PERMISSION_DENIED",$[$.CLOUD_SERVICE_NETWORK_CONNECTION_FAILED=6777025]="CLOUD_SERVICE_NETWORK_CONNECTION_FAILED",$[$.CLOUD_SERVICE_REVOKED=6777026]="CLOUD_SERVICE_REVOKED",$[$.PRIVACY_ACKNOWLEDGEMENT_REQUIRED=6777027]="PRIVACY_ACKNOWLEDGEMENT_REQUIRED",$[$.UNAUTHORIZED_REQUEST_DATA=6777028]="UNAUTHORIZED_REQUEST_DATA",$[$.INVALID_OFFER_IDENTIFIER=6777029]="INVALID_OFFER_IDENTIFIER",$[$.INVALID_OFFER_PRICE=6777030]="INVALID_OFFER_PRICE",$[$.INVALID_SIGNATURE=6777031]="INVALID_SIGNATURE",$[$.MISSING_OFFER_PARAMS=6777032]="MISSING_OFFER_PARAMS",$[$.VALIDATOR_SUBSCRIPTION_EXPIRED=6778003]="VALIDATOR_SUBSCRIPTION_EXPIRED"})(o.ErrorCode||(o.ErrorCode={}));function a($,j,_e,et){return{isError:!0,code:$,message:j,platform:_e,productId:et}}o.storeError=a})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){class s{constructor($,j){this.config=$,$.url||($.url="https://validator.iaptic.com"),this.store=j??o.store,this.log=this.store.log.child("Iaptic")}get braintreeClientTokenProvider(){return $=>{this.log.info("Calling Braintree clientTokenProvider"),o.Utils.ajax(this.log,{url:`${this.config.url}/v3/braintree/client-token?appName=${this.config.appName}&apiKey=${this.config.apiKey}`,method:"POST",data:{applicationUsername:o.store.getApplicationUsername(),customerId:o.Braintree.customerId},success:j=>{this.log.info("clientTokenProvider success: "+JSON.stringify(j)),$(j.clientToken)},error:j=>{this.log.info("clientTokenProvider error: "+JSON.stringify(j)),$(o.storeError(j,"ERROR "+j,o.Platform.BRAINTREE,null))}})}}get appStoreDiscountEligibilityDeterminer(){let $;this.log.debug("AppStore eligibility determiner is listening..."),this.store.when().verified(et=>{et.platform===o.Platform.APPLE_APPSTORE&&(this.log.debug("Got a verified AppStore receipt."),$=et)},"appStoreDiscountEligibilityDeterminer_listening");const j=(et,tt,nt)=>{if(this.log.debug("AppStore eligibility determiner"),$)return this.log.debug("Using cached receipt"),nt(_e($,tt));const it=rt=>{rt.platform===o.Platform.APPLE_APPSTORE&&(this.log.debug("Receipt is verified, let's analyze the content and respond."),this.store.off(it),nt(_e(rt,tt)))};this.log.debug("Waiting for receipt"),this.store.when().verified(it,"appStoreDiscountEligibilityDeterminer_waiting")};return j.cacheReceipt=function(et){$=et},j;function _e(et,tt){const nt=et.raw.ineligible_for_intro_price;return tt.map(it=>{var rt;return it.discountType==="Introductory"&&nt&&nt.find(st=>it.productId===st)?!1:it.discountType==="Subscription"?!!((rt=et.raw.collection)===null||rt===void 0?void 0:rt.find(ot=>ot.id===it.productId)):!0})}}get validator(){return`${this.config.url}/v1/validate?appName=${this.config.appName}&apiKey=${this.config.apiKey}`}}o.Iaptic=s})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){let s;(function(et){et[et.QUIET=0]="QUIET",et[et.ERROR=1]="ERROR",et[et.WARNING=2]="WARNING",et[et.INFO=3]="INFO",et[et.DEBUG=4]="DEBUG"})(s=o.LogLevel||(o.LogLevel={}));class a{constructor(tt,nt=""){this.prefix="",this.store=tt,this.prefix=nt||"CdvPurchase"}child(tt){return new a(this.store,this.prefix+"."+tt)}error(tt){_e(this.store.verbosity,s.ERROR,this.prefix,tt);try{throw new Error(j(tt))}catch(nt){_e(this.store.verbosity,s.ERROR,this.prefix,nt.stack)}}warn(tt){_e(this.store.verbosity,s.WARNING,this.prefix,tt)}info(tt){_e(this.store.verbosity,s.INFO,this.prefix,tt)}debug(tt){_e(this.store.verbosity,s.DEBUG,this.prefix,tt)}logCallbackException(tt,nt){if(this.warn("A callback in '"+tt+"' failed with an exception."),typeof nt=="string")this.warn("           "+nt);else if(nt){const it=nt;it.fileName&&this.warn("           "+it.fileName+":"+it.lineNumber),nt.message&&this.warn("           "+nt.message),nt.stack&&this.warn("           "+nt.stack)}}}a.console=window.console,o.Logger=a;const $=["QUIET","ERROR","WARNING","INFO","DEBUG"];function j(et){return typeof et!="string"&&(et=JSON.stringify(et)),et}function _e(et,tt,nt,it){var rt=et===!0?1:et;if(tt>rt)return;typeof it!="string"&&(it=JSON.stringify(it));const st=nt?`[${nt}] `:"",ot=tt===s.ERROR?at=>a.console.error(at):tt===s.WARNING?at=>a.console.warn(at):at=>a.console.log(at);$[tt]?ot(`${st}${$[tt]}: ${it}`):ot(`${st}${it}`)}})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){s.nonEnumerable=(a,$,j)=>{if(j)return j.enumerable=!1,j;Object.defineProperty(a,$,{set(_e){Object.defineProperty(this,$,{value:_e,writable:!0,configurable:!0})},configurable:!0})}})(o.Utils||(o.Utils={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){class s{constructor($,j){this.className="Product",this.title="",this.description="",this.platform=$.platform,this.type=$.type,this.id=$.id,this.group=$.group,this.offers=[],Object.defineProperty(this,"pricing",{enumerable:!1,get:()=>{var _e;return(_e=this.offers[0])===null||_e===void 0?void 0:_e.pricingPhases[0]}}),Object.defineProperty(this,"canPurchase",{enumerable:!1,get:()=>j.canPurchase(this)}),Object.defineProperty(this,"owned",{enumerable:!1,get:()=>j.owned(this)})}get pricing(){var $;return($=this.offers[0])===null||$===void 0?void 0:$.pricingPhases[0]}get canPurchase(){return!1}get owned(){return!1}getOffer($=""){return $?this.offers.find(j=>j.id===$):this.offers[0]}addOffer($){return this.getOffer($.id)?this:(this.offers.push($),this)}}o.Product=s})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){function a($){const j=[];for(let _e in $)$.hasOwnProperty(_e)&&j.push($[_e]);return j}s.objectValues=a})(o.Utils||(o.Utils={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){function a($){switch($){case o.Platform.APPLE_APPSTORE:return"App Store";case o.Platform.GOOGLE_PLAY:return"Google Play";case o.Platform.WINDOWS_STORE:return"Windows Store";case o.Platform.BRAINTREE:return"Braintree";case o.Platform.TEST:return"Test";default:return $}}s.platformName=a})(o.Utils||(o.Utils={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){class a{constructor(){this.array=[]}get length(){return this.array.length}get(){return this.array.concat()}add(et){this.has(et)||this.array.push(et)}clear(){for(;this.array.length!==0;)this.array.pop()}has(et){return!!this.array.find(tt=>tt===et)}}s.ReceiptsToValidate=a;class ${constructor(et,tt){this.receiptsToValidate=new a,this.verifiedReceipts=[],this.numRequests=0,this.numResponses=0,this.cache={},this.controller=et,this.log=tt.child("Validator")}incrRequestsCounter(){this.numRequests=this.numRequests+1|0,this.log.debug(`Validation requests=${this.numRequests} responses=${this.numResponses}`)}incrResponsesCounter(){this.numResponses=this.numResponses+1|0,this.log.debug(`Validation requests=${this.numRequests} responses=${this.numResponses}`)}addVerifiedReceipt(et,tt){for(const it of this.verifiedReceipts)if(it.platform===et.platform&&it.id===tt.id)return this.log.debug("Updating existing receipt."),it.set(et,tt),it;this.log.debug("Register a new verified receipt.");const nt=new o.VerifiedReceipt(et,tt,this.controller);return this.verifiedReceipts.push(nt),nt}add(et){this.log.debug("Schedule validation: "+JSON.stringify(et));const tt=et instanceof o.Transaction?et.parentReceipt:et;this.receiptsToValidate.has(tt)||(this.incrRequestsCounter(),this.receiptsToValidate.add(tt))}run(){const et=this.receiptsToValidate.get();this.receiptsToValidate.clear();const tt=nt=>__awaiter(this,void 0,void 0,function*(){var it;const{receipt:rt,payload:st}=nt;this.incrResponsesCounter();try{const ot=this.controller.adapters.find(rt.platform);if(yield ot==null?void 0:ot.handleReceiptValidationResponse(rt,st),st.ok){const at=this.addVerifiedReceipt(rt,st.data);this.controller.verifiedCallbacks.trigger(at,"payload_ok")}else if(st.code===o.ErrorCode.VALIDATOR_SUBSCRIPTION_EXPIRED){const at=(it=rt.lastTransaction())===null||it===void 0?void 0:it.transactionId,lt=at?this.verifiedReceipts.find(ct=>{var ht;return((ht=ct.collection[0])===null||ht===void 0?void 0:ht.transactionId)===at}):void 0;lt?(lt==null||lt.collection.forEach(ct=>{ct.transactionId===at&&(ct.isExpired=!0)}),this.controller.verifiedCallbacks.trigger(lt,"payload_expired")):this.controller.unverifiedCallbacks.trigger({receipt:rt,payload:st},"no_verified_receipt")}else this.controller.unverifiedCallbacks.trigger({receipt:rt,payload:st},"validator_error")}catch(ot){this.log.error("Exception probably caused by an invalid response from the validator."+ot.message),this.controller.unverifiedCallbacks.trigger({receipt:rt,payload:{ok:!1,code:o.ErrorCode.VERIFICATION_FAILED,message:ot.message}},"validator_exception")}});et.forEach(nt=>this.runOnReceipt(nt,tt))}runOnReceipt(et,tt){return __awaiter(this,void 0,void 0,function*(){if(et.platform===o.Platform.TEST)return this.log.debug("Using Test Adapter mock verify function."),o.Test.Adapter.verify(et,tt);if(!this.controller.validator){this.incrResponsesCounter(),tt({receipt:et,payload:{ok:!0,data:{id:et.transactions[0].transactionId,latest_receipt:!0,transaction:{type:"test"}}}});return}const nt=yield this.buildRequestBody(et);if(!nt){this.incrResponsesCounter();return}if(typeof this.controller.validator=="function")return this.runValidatorFunction(this.controller.validator,et,nt,tt);const it=typeof this.controller.validator=="string"?{url:this.controller.validator,timeout:2e4}:this.controller.validator;return this.runValidatorRequest(it,et,nt,tt)})}runValidatorFunction(et,tt,nt,it){try{et(nt,rt=>it({receipt:tt,payload:rt}))}catch(rt){this.log.warn("user provided validator function failed with error: "+(rt==null?void 0:rt.stack))}}buildRequestBody(et){var tt,nt,it;return __awaiter(this,void 0,void 0,function*(){const rt=this.controller.adapters.find(et.platform),st=yield rt==null?void 0:rt.receiptValidationBody(et);if(st){if(st.additionalData=Object.assign(Object.assign({},(tt=st.additionalData)!==null&&tt!==void 0?tt:{}),{applicationUsername:this.controller.getApplicationUsername()}),st.additionalData.applicationUsername||delete st.additionalData.applicationUsername,st.device=Object.assign(Object.assign({},(nt=st.device)!==null&&nt!==void 0?nt:{}),o.Validator.Internal.getDeviceInfo(this.controller)),((it=st.offers)===null||it===void 0?void 0:it.length)===1){const ot=st.offers[0];if(ot.pricingPhases.length===1){const at=ot.pricingPhases[0];st.currency=at.currency,st.priceMicros=at.priceMicros}else if(ot.pricingPhases.length===2){const at=ot.pricingPhases[1];st.currency=at.currency,st.priceMicros=at.priceMicros;const lt=ot.pricingPhases[0];st.introPriceMicros=lt.priceMicros}}return st}})}removeExpiredCache(){const et=+new Date,tt=[];for(const nt in this.cache)this.cache[nt].expires<et&&tt.push(nt);for(const nt of tt)delete this.cache[nt]}runValidatorRequest(et,tt,nt,it){this.removeExpiredCache();const rt=o.Utils.md5(JSON.stringify(nt.transaction)),st=this.cache[rt];if(st)return it({receipt:tt,payload:st.payload});o.Utils.ajax(this.log.child("Ajax"),{url:et.url,method:"POST",customHeaders:et.headers,timeout:et.timeout,data:nt,success:ot=>{var at;if(this.log.debug("validator success, response: "+JSON.stringify(ot)),!j(ot))return it({receipt:tt,payload:{ok:!1,code:o.ErrorCode.BAD_RESPONSE,message:"Validator responded with invalid data",data:{latest_receipt:(at=ot==null?void 0:ot.data)===null||at===void 0?void 0:at.latest_receipt}}});this.cache[rt]={payload:ot,expires:+new Date+12e4},it({receipt:tt,payload:ot})},error:(ot,at,lt)=>{var ct="Error "+ot+": "+at;this.log.debug("validator failed, response: "+JSON.stringify(ct)),this.log.debug("body => "+JSON.stringify(lt)),it({receipt:tt,payload:{ok:!1,message:ct,code:o.ErrorCode.COMMUNICATION,status:ot,data:{}}})}})}}s.Validator=$;function j(_e){return!!_e&&typeof _e=="object"&&"ok"in _e&&typeof _e.ok=="boolean"}})(o.Internal||(o.Internal={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){class a{constructor(){this.list=[]}add(j,_e,et){_e.forEach(tt=>{if(j.info(""),!this.find(tt.platform))switch(tt.platform){case o.Platform.APPLE_APPSTORE:return this.list.push(new o.AppleAppStore.Adapter(et,tt.options||{}));case o.Platform.GOOGLE_PLAY:return this.list.push(new o.GooglePlay.Adapter(et));case o.Platform.BRAINTREE:return tt.options||j.error("Options missing for Braintree initialization. Use {platform: Platform.BRAINTREE, options: {...}} in your call to store.initialize"),this.list.push(new o.Braintree.Adapter(et,tt.options));case o.Platform.TEST:return this.list.push(new o.Test.Adapter(et));default:return}})}initialize(j,_e){return __awaiter(this,void 0,void 0,function*(){typeof j=="string"&&(j=[j]);const et=j.map(rt=>typeof rt=="string"?{platform:rt}:rt).filter(rt=>!this.find(rt.platform)),tt=_e.log.child("Adapters");tt.info("Adding platforms: "+JSON.stringify(et)),this.add(tt,et,_e);const nt=_e.registeredProducts.byPlatform();return(yield Promise.all(et.map(rt=>__awaiter(this,void 0,void 0,function*(){var st,ot,at;const lt=(at=(ot=(st=nt.filter(ft=>ft.platform===rt.platform))===null||st===void 0?void 0:st[0])===null||ot===void 0?void 0:ot.products)!==null&&at!==void 0?at:[],ct=this.find(rt.platform);if(!ct)return;if(tt.info(`${ct.name} initializing...`),!ct.isSupported){tt.info(`${ct.name} is not supported.`);return}const ht=yield ct.initialize();if(ct.ready=!0,tt.info(`${ct.name} initialized. ${ht?JSON.stringify(ht):""}`),ht!=null&&ht.code)return ht;if(tt.info(`${ct.name} products: ${JSON.stringify(lt)}`),lt.length===0)return;let dt=[],ut=[];ct.supportsParallelLoading?[dt,ut]=yield Promise.all([ct.loadProducts(lt),ct.loadReceipts()]):(dt=yield ct.loadProducts(lt),ut=yield ct.loadReceipts()),tt.info(`${ct.name} products loaded: ${JSON.stringify(dt)}`);const pt=dt.filter(ft=>ft instanceof o.Product);return _e.listener.productsUpdated(rt.platform,pt),tt.info(`${ct.name} receipts loaded: ${JSON.stringify(ut)}`),dt.filter(ft=>"code"in ft&&"message"in ft)[0]})))).filter(rt=>rt)})}find(j){return this.list.filter(_e=>_e.id===j)[0]}findReady(j){return this.list.filter(_e=>(!j||_e.id===j)&&_e.ready)[0]}}s.Adapters=a})(o.Internal||(o.Internal={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){class a{constructor(j,_e){this.supportedPlatforms=[],this.platformWithReceiptsReady=[],this.lastTransactionState={},this.lastCallTimeForState={},this.delegate=j,this.log=_e.child("AdapterListener")}static makeTransactionToken(j){return j.platform+"|"+j.transactionId}setSupportedPlatforms(j){this.log.debug(`setSupportedPlatforms: ${j.join(",")} (${this.platformWithReceiptsReady.length} have their receipts ready)`),this.supportedPlatforms=j,this.supportedPlatforms.length===this.platformWithReceiptsReady.length&&(this.log.debug("triggering receiptsReady()"),this.delegate.receiptsReadyCallbacks.trigger(void 0,"adapterListener_setSupportedPlatforms"))}receiptsReady(j){if(this.supportedPlatforms.length>0&&this.platformWithReceiptsReady.length===this.supportedPlatforms.length){this.log.debug("receiptsReady: "+j+"(skipping)");return}this.platformWithReceiptsReady.indexOf(j)<0&&(this.platformWithReceiptsReady.push(j),this.log.debug(`receiptsReady: ${j} (${this.platformWithReceiptsReady.length}/${this.supportedPlatforms.length})`),this.platformWithReceiptsReady.length===this.supportedPlatforms.length&&(this.log.debug("triggering receiptsReady()"),this.delegate.receiptsReadyCallbacks.trigger(void 0,"adapterListener_receiptsReady")))}productsUpdated(j,_e){_e.forEach(et=>this.delegate.updatedCallbacks.trigger(et,"adapterListener_productsUpdated"))}receiptsUpdated(j,_e){const et=+new Date;this.log.debug("receiptsUpdated: "+JSON.stringify(_e)),_e.forEach(tt=>{this.delegate.updatedReceiptCallbacks.trigger(tt,"adapterListener_receiptsUpdated"),tt.transactions.forEach(nt=>{const it=a.makeTransactionToken(nt),rt=it+"@"+nt.state,st=this.lastTransactionState[it];nt.state===o.TransactionState.APPROVED?(this.lastCallTimeForState[rt]|0)<et-6e4&&(this.delegate.approvedCallbacks.trigger(nt,"adapterListener_receiptsUpdated_approved"),this.lastCallTimeForState[rt]=et):st!==nt.state&&(nt.state===o.TransactionState.INITIATED?(this.delegate.initiatedCallbacks.trigger(nt,"adapterListener_receiptsUpdated_initiated"),this.lastCallTimeForState[rt]=et):nt.state===o.TransactionState.FINISHED?(this.delegate.finishedCallbacks.trigger(nt,"adapterListener_receiptsUpdated_finished"),this.lastCallTimeForState[rt]=et):nt.state===o.TransactionState.PENDING&&(this.delegate.pendingCallbacks.trigger(nt,"adapterListener_receiptsUpdated_pending"),this.lastCallTimeForState[rt]=et)),this.lastTransactionState[it]=nt.state})})}}s.StoreAdapterListener=a})(o.Internal||(o.Internal={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){class a{constructor(j,_e,et=!1){this.callbacks=[],this.numTriggers=0,this.logger=j,this.className=_e,this.finalStateMode=et}push(j,_e){if(this.finalStateMode&&this.numTriggers>0)j(this.lastTriggerArgument);else{for(const et of this.callbacks)if(et.callback===j)throw new Error("REGISTERING THE SAME CALLBACK TWICE? This is indicative of a bug in your integration.");this.callbacks.push({callback:j,callbackName:_e})}}trigger(j,_e){this.lastTriggerArgument=j,this.numTriggers++;const et=this.callbacks;this.finalStateMode&&(this.callbacks=[]),et.forEach(tt=>{o.Utils.safeCall(this.logger,this.className,tt.callback,j,tt.callbackName,_e)})}remove(j){this.callbacks=this.callbacks.filter(_e=>_e.callback!==j)}}s.Callbacks=a})(o.Internal||(o.Internal={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){class a{constructor(j){this.isReady=!1,this.readyCallbacks=[],this.logger=j}add(j){if(this.isReady)return setTimeout(j,0);this.readyCallbacks.push(j)}trigger(j){this.isReady=!0,this.readyCallbacks.forEach(_e=>o.Utils.safeCall(this.logger,"ready()",_e,void 0,void 0,j)),this.readyCallbacks=[]}remove(j){this.readyCallbacks=this.readyCallbacks.filter(_e=>_e!==j)}}s.ReadyCallbacks=a})(o.Internal||(o.Internal={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){function a(j){return typeof j!="object"?!1:j.hasOwnProperty("platform")&&j.hasOwnProperty("id")&&j.hasOwnProperty("type")}class ${constructor(){this.list=[]}find(_e,et){return this.list.find(tt=>tt.platform===_e&&tt.id===et)}add(_e){const et=[],nt=(Array.isArray(_e)?_e:[_e]).filter(it=>!this.find(it.platform,it.id));for(const it of nt)a(it)?this.list.push(it):et.push(o.storeError(o.ErrorCode.LOAD,'Invalid parameter to "register", expected "id", "type" and "platform". Got: '+JSON.stringify(it),null,null));return et}byPlatform(){const _e={};return this.list.forEach(et=>{_e[et.platform]=(_e[et.platform]||[]).concat(et)}),Object.keys(_e).map(et=>({platform:et,products:_e[et]}))}}s.RegisteredProducts=$})(o.Internal||(o.Internal={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){class a{constructor(j){this.monitors=[],j.approved(_e=>this.callOnChange(_e),"transactionStateMonitors_callOnChange").finished(_e=>this.callOnChange(_e),"transactionStateMonitors_callOnChange")}findMonitors(j){return this.monitors.filter(_e=>_e.transaction.platform===j.platform&&_e.transaction.transactionId===j.transactionId)}callOnChange(j){this.findMonitors(j).forEach(_e=>{_e.lastChange!==j.state&&(_e.lastChange=j.state,_e.onChange(j.state))})}start(j,_e){const et=o.Utils.uuidv4();return this.monitors.push({monitorId:et,transaction:j,onChange:_e,lastChange:j.state}),setTimeout(_e,0,j.state),{transaction:j,stop:()=>this.stop(et)}}stop(j){this.monitors=this.monitors.filter(_e=>_e.monitorId!==j)}}s.TransactionStateMonitors=a})(o.Internal||(o.Internal={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){class a{constructor(j){this.hasCalledReceiptsVerified=!1,this.controller=j,this.log=j.log.child("ReceiptsMonitor")}callReceiptsVerified(){this.hasCalledReceiptsVerified||(this.hasCalledReceiptsVerified=!0,this.log.info("receiptsVerified()"),this.controller.when().receiptsReady(()=>{setTimeout(()=>{this.controller.receiptsVerified()},0)},"receiptsMonitor_callReceiptsVerified"))}launch(){const j=()=>{this.log.debug(`check(${this.controller.numValidationResponses()}/${this.controller.numValidationRequests()})`),this.controller.numValidationRequests()===this.controller.numValidationResponses()&&(this.intervalChecker!==void 0&&(clearInterval(this.intervalChecker),this.intervalChecker=void 0),this.controller.off(j),this.callReceiptsVerified())};this.controller.when().verified(j,"receiptsMonitor_check").unverified(j,"receiptsMonitor_check").receiptsReady(()=>{this.log.debug("receiptsReady..."),(!this.controller.hasLocalReceipts()||!this.controller.hasValidator())&&setTimeout(()=>{j()},0),this.intervalChecker=setInterval(()=>{this.log.debug("keep checking every 10s..."),j()},1e4)},"receiptsMonitor_setup")}}s.ReceiptsMonitor=a})(o.Internal||(o.Internal={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){class a{constructor(j){this.activePurchases={},this.notifiedPurchases={},this.controller=j}launch(){this.interval=setInterval(()=>{var j,_e;const et=+new Date;for(const tt of this.controller.verifiedReceipts){const nt=(j=a.GRACE_PERIOD_MS[tt.platform])!==null&&j!==void 0?j:a.GRACE_PERIOD_MS.DEFAULT;for(const it of tt.collection)if(it.expiryDate){const rt=it.expiryDate+nt,st=(_e=it.transactionId)!==null&&_e!==void 0?_e:`${rt}`;rt>et&&(this.activePurchases[st]=!0),rt<et&&this.activePurchases[st]&&!this.notifiedPurchases[st]&&(this.notifiedPurchases[st]=!0,this.controller.onVerifiedPurchaseExpired(it,tt))}}},a.INTERVAL_MS)}}a.INTERVAL_MS=1e4,a.GRACE_PERIOD_MS={DEFAULT:6e4,"ios-appstore":6e4,"android-playstore":3e4},s.ExpiryMonitor=a})(o.Internal||(o.Internal={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){o.PLUGIN_VERSION="13.11.1";class s{constructor(){this.adapters=new o.Internal.Adapters,this.registeredProducts=new o.Internal.RegisteredProducts,this.log=new o.Logger(this),this.verbosity=o.LogLevel.ERROR,this._readyCallbacks=new o.Internal.ReadyCallbacks(this.log),this.updatedCallbacks=new o.Internal.Callbacks(this.log,"productUpdated()"),this.updatedReceiptsCallbacks=new o.Internal.Callbacks(this.log,"receiptUpdated()"),this.initiatedCallbacks=new o.Internal.Callbacks(this.log,"initiated()"),this.approvedCallbacks=new o.Internal.Callbacks(this.log,"approved()"),this.finishedCallbacks=new o.Internal.Callbacks(this.log,"finished()"),this.pendingCallbacks=new o.Internal.Callbacks(this.log,"pending()"),this.verifiedCallbacks=new o.Internal.Callbacks(this.log,"verified()"),this.unverifiedCallbacks=new o.Internal.Callbacks(this.log,"unverified()"),this.receiptsReadyCallbacks=new o.Internal.Callbacks(this.log,"receiptsReady()",!0),this.receiptsVerifiedCallbacks=new o.Internal.Callbacks(this.log,"receiptsVerified()",!0),this.errorCallbacks=new o.Internal.Callbacks(this.log,"error()"),this.initializedHasBeenCalled=!1,this.lastUpdate=0,this.minTimeBetweenUpdates=6e5,this.version=o.PLUGIN_VERSION;const $=this;this.listener=new o.Internal.StoreAdapterListener({updatedCallbacks:this.updatedCallbacks,updatedReceiptCallbacks:this.updatedReceiptsCallbacks,initiatedCallbacks:this.initiatedCallbacks,approvedCallbacks:this.approvedCallbacks,finishedCallbacks:this.finishedCallbacks,pendingCallbacks:this.pendingCallbacks,receiptsReadyCallbacks:this.receiptsReadyCallbacks},this.log),this.transactionStateMonitors=new o.Internal.TransactionStateMonitors(this.when()),this._validator=new o.Internal.Validator({adapters:this.adapters,getApplicationUsername:this.getApplicationUsername.bind(this),get localReceipts(){return $.localReceipts},get validator(){return $.validator},get validator_privacy_policy(){return $.validator_privacy_policy},verifiedCallbacks:this.verifiedCallbacks,unverifiedCallbacks:this.unverifiedCallbacks,finish:j=>this.finish(j)},this.log),new o.Internal.ReceiptsMonitor({hasLocalReceipts:()=>this.localReceipts.length>0,hasValidator:()=>!!this.validator,numValidationRequests:()=>this._validator.numRequests,numValidationResponses:()=>this._validator.numResponses,off:this.off.bind(this),when:this.when.bind(this),receiptsVerified:()=>{$.receiptsVerifiedCallbacks.trigger(void 0,"receipts_monitor_controller")},log:this.log}).launch(),this.expiryMonitor=new o.Internal.ExpiryMonitor({get verifiedReceipts(){return $.verifiedReceipts},onVerifiedPurchaseExpired(j,_e){$.verify(_e.sourceReceipt)}}),this.expiryMonitor.launch()}getAdapter($){return this.adapters.find($)}getApplicationUsername(){return this.applicationUsername instanceof Function?this.applicationUsername():this.applicationUsername}register($){this.registeredProducts.add($).forEach(_e=>{o.store.errorCallbacks.trigger(_e,"register_error"),this.log.error(_e)})}initialize($=[this.defaultPlatform()]){return __awaiter(this,void 0,void 0,function*(){if(this.initializedHasBeenCalled)return this.log.warn("store.initialized() has been called already."),[];this.log.info("initialize("+JSON.stringify($)+") v"+o.PLUGIN_VERSION),this.initializedHasBeenCalled=!0,this.lastUpdate=+new Date;const j=this,_e=this.adapters.initialize($,{error:this.triggerError.bind(this),get verbosity(){return j.verbosity},getApplicationUsername(){return j.getApplicationUsername()},get listener(){return j.listener},get log(){return j.log},get registeredProducts(){return j.registeredProducts},apiDecorators:{canPurchase:this.canPurchase.bind(this),owned:this.owned.bind(this),finish:this.finish.bind(this),order:this.order.bind(this),verify:this.verify.bind(this)}});return _e.then(()=>{this._readyCallbacks.trigger("initialize_promise_resolved"),this.listener.setSupportedPlatforms(this.adapters.list.filter(et=>et.isSupported).map(et=>et.id))}),_e})}refresh(){throw new Error("use store.initialize() or store.update()")}update(){var $;return __awaiter(this,void 0,void 0,function*(){if(this.log.info("update()"),!this._readyCallbacks.isReady){this.log.warn("Do not call store.update() at startup! It is meant to reload the price of products (if needed) long after initialization.");return}const j=+new Date;if(this.lastUpdate>j-this.minTimeBetweenUpdates){this.log.info("Skipping store.update() as the last call occurred less than store.minTimeBetweenUpdates millis ago.");return}this.lastUpdate=j;for(const _e of this.registeredProducts.byPlatform()){const et=yield($=this.adapters.findReady(_e.platform))===null||$===void 0?void 0:$.loadProducts(_e.products);et==null||et.forEach(tt=>{tt instanceof o.Product&&this.updatedCallbacks.trigger(tt,"update_has_loaded_products")})}})}ready($){this._readyCallbacks.add($)}get isReady(){return this._readyCallbacks.isReady}when(){const $={productUpdated:(j,_e)=>(this.updatedCallbacks.push(j,_e),$),receiptUpdated:(j,_e)=>(this.updatedReceiptsCallbacks.push(j,_e),$),updated:(j,_e)=>(this.updatedCallbacks.push(j,_e),this.updatedReceiptsCallbacks.push(j,_e),$),approved:(j,_e)=>(this.approvedCallbacks.push(j,_e),$),initiated:(j,_e)=>(this.initiatedCallbacks.push(j,_e),$),pending:(j,_e)=>(this.pendingCallbacks.push(j,_e),$),finished:(j,_e)=>(this.finishedCallbacks.push(j,_e),$),verified:(j,_e)=>(this.verifiedCallbacks.push(j,_e),$),unverified:(j,_e)=>(this.unverifiedCallbacks.push(j,_e),$),receiptsReady:(j,_e)=>(this.receiptsReadyCallbacks.push(j,_e),$),receiptsVerified:(j,_e)=>(this.receiptsVerifiedCallbacks.push(j,_e),$)};return $}off($){this.updatedCallbacks.remove($),this.updatedReceiptsCallbacks.remove($),this.approvedCallbacks.remove($),this.finishedCallbacks.remove($),this.pendingCallbacks.remove($),this.verifiedCallbacks.remove($),this.unverifiedCallbacks.remove($),this.receiptsReadyCallbacks.remove($),this.receiptsVerifiedCallbacks.remove($),this.errorCallbacks.remove($),this._readyCallbacks.remove($)}monitor($,j,_e){return this.transactionStateMonitors.start($,o.Utils.safeCallback(this.log,"monitor()",j,_e,"transactionStateMonitors_stateChanged"))}get products(){return[].concat(...this.adapters.list.map($=>$.products))}get($,j){var _e;return(_e=this.adapters.findReady(j))===null||_e===void 0?void 0:_e.products.find(et=>et.id===$)}get localReceipts(){return[].concat(...this.adapters.list.map($=>$.receipts))}get localTransactions(){const $=[];for(const j of this.localReceipts)$.push(...j.transactions);return $}get verifiedReceipts(){return this._validator.verifiedReceipts}get verifiedPurchases(){return o.Internal.VerifiedReceipts.getVerifiedPurchases(this.verifiedReceipts)}findInVerifiedReceipts($){return o.Internal.VerifiedReceipts.find(this.verifiedReceipts,$)}findInLocalReceipts($){return o.Internal.LocalReceipts.find(this.localReceipts,$)}canPurchase($){const j=$ instanceof o.Offer?this.get($.productId,$.platform):$,_e=this.adapters.findReady($.platform);return _e!=null&&_e.checkSupport("order")?o.Internal.LocalReceipts.canPurchase(this.localReceipts,j):!1}owned($){return o.Internal.owned({product:typeof $=="string"?{id:$}:$,verifiedReceipts:this.validator?this.verifiedReceipts:void 0,localReceipts:this.localReceipts})}order($,j){return __awaiter(this,void 0,void 0,function*(){this.log.info(`order(${$.productId})`);const _e=this.adapters.findReady($.platform);if(!_e)return o.storeError(o.ErrorCode.PAYMENT_NOT_ALLOWED,"Adapter not found or not ready ("+$.platform+")",$.platform,null);const et=yield _e.order($,j||{});return et&&"isError"in et&&o.store.triggerError(et),et})}requestPayment($,j){var _e,et,tt,nt,it;const rt=this.adapters.findReady($.platform);if(!rt)return o.PaymentRequestPromise.failed(o.ErrorCode.PAYMENT_NOT_ALLOWED,"Adapter not found or not ready ("+$.platform+")",$.platform,null);if(!$.amountMicros){$.amountMicros=0;for(const ot of $.items)$.amountMicros+=(et=(_e=ot==null?void 0:ot.pricing)===null||_e===void 0?void 0:_e.priceMicros)!==null&&et!==void 0?et:0}if($.currency)for(const ot of $.items)if(!((nt=ot==null?void 0:ot.pricing)===null||nt===void 0)&&nt.currency){if($.currency!==ot.pricing.currency)return o.PaymentRequestPromise.failed(o.ErrorCode.PAYMENT_INVALID,"Currencies do not match",$.platform,ot.id)}else ot!=null&&ot.pricing&&(ot.pricing.currency=$.currency);else for(const ot of $.items)!((tt=ot==null?void 0:ot.pricing)===null||tt===void 0)&&tt.currency&&($.currency=ot.pricing.currency);if($.items.length===1){const ot=$.items[0];ot&&!ot.pricing&&(ot.pricing={priceMicros:(it=$.amountMicros)!==null&&it!==void 0?it:0,currency:$.currency})}const st=new o.PaymentRequestPromise;return rt.requestPayment($,j).then(ot=>{if(st.trigger(ot),ot instanceof o.Transaction){const at=ct=>{st.trigger(ot),ot.state===o.TransactionState.FINISHED&&lt.stop()},lt=this.monitor(ot,at,"requestPayment_onStateChange")}}),st}checkSupport($,j){const _e=this.adapters.find($);return _e?_e.checkSupport(j):!1}verify($){return __awaiter(this,void 0,void 0,function*(){this.log.info(`verify(${$.className})`),this._validator.add($),setTimeout(()=>this._validator.run(),200)})}finish($){return __awaiter(this,void 0,void 0,function*(){this.log.info(`finish(${$.className})`),($ instanceof o.VerifiedReceipt?$.sourceReceipt.transactions:$ instanceof o.Receipt?$.transactions:[$]).forEach(_e=>{var et;(et=this.adapters.findReady(_e.platform))===null||et===void 0||et.finish(_e)})})}restorePurchases(){return __awaiter(this,void 0,void 0,function*(){let $;for(const j of this.adapters.list)j.ready&&($=$??(yield j.restorePurchases()));return $})}manageSubscriptions($){return __awaiter(this,void 0,void 0,function*(){this.log.info("manageSubscriptions()");const j=this.adapters.findReady($);return j?j.manageSubscriptions():o.storeError(o.ErrorCode.SETUP,"Found no adapter ready to handle 'manageSubscription'",$??null,null)})}manageBilling($){return __awaiter(this,void 0,void 0,function*(){this.log.info("manageBilling()");const j=this.adapters.findReady($);return j?j.manageBilling():o.storeError(o.ErrorCode.SETUP,"Found no adapter ready to handle 'manageBilling'",$??null,null)})}defaultPlatform(){switch(o.Utils.platformId()){case"android":return o.Platform.GOOGLE_PLAY;case"ios":return o.Platform.APPLE_APPSTORE;default:return o.Platform.TEST}}error($){this.errorCallbacks.push($)}triggerError($){this.errorCallbacks.trigger($,"triggerError")}}o.Store=s})(CdvPurchase$1||(CdvPurchase$1={}));window.cordova?setTimeout(initCDVPurchase,0):initCDVPurchase();function initCDVPurchase(){var o;console.log("Create CdvPurchase...");const s=(o=window.CdvPurchase)===null||o===void 0?void 0:o.store;window.CdvPurchase=CdvPurchase$1,s?window.CdvPurchase.store=s:window.CdvPurchase.store=new CdvPurchase$1.Store,Object.assign(window.CdvPurchase.store,CdvPurchase$1.LogLevel,CdvPurchase$1.ProductType,CdvPurchase$1.ErrorCode,CdvPurchase$1.Platform)}var CdvPurchase$1;(function(o){(function(s){s.CONSUMABLE="consumable",s.NON_CONSUMABLE="non consumable",s.FREE_SUBSCRIPTION="free subscription",s.PAID_SUBSCRIPTION="paid subscription",s.NON_RENEWING_SUBSCRIPTION="non renewing subscription",s.APPLICATION="application"})(o.ProductType||(o.ProductType={})),function(s){s.NON_RECURRING="NON_RECURRING",s.FINITE_RECURRING="FINITE_RECURRING",s.INFINITE_RECURRING="INFINITE_RECURRING"}(o.RecurrenceMode||(o.RecurrenceMode={})),function(s){s.PAY_AS_YOU_GO="PayAsYouGo",s.UP_FRONT="UpFront",s.FREE_TRIAL="FreeTrial"}(o.PaymentMode||(o.PaymentMode={})),function(s){s.APPLE_APPSTORE="ios-appstore",s.GOOGLE_PLAY="android-playstore",s.WINDOWS_STORE="windows-store-transaction",s.BRAINTREE="braintree",s.TEST="test"}(o.Platform||(o.Platform={})),function(s){s.INITIATED="initiated",s.PENDING="pending",s.APPROVED="approved",s.CANCELLED="cancelled",s.FINISHED="finished",s.UNKNOWN_STATE=""}(o.TransactionState||(o.TransactionState={})),function(s){s.LAPSE="Lapse",s.RENEW="Renew"}(o.RenewalIntent||(o.RenewalIntent={})),function(s){s.NOTIFIED="Notified",s.AGREED="Agreed"}(o.PriceConsentStatus||(o.PriceConsentStatus={})),function(s){s.NOT_CANCELED="",s.DEVELOPER="Developer",s.SYSTEM="System",s.SYSTEM_REPLACED="System.Replaced",s.SYSTEM_PRODUCT_UNAVAILABLE="System.ProductUnavailable",s.SYSTEM_BILLING_ERROR="System.BillingError",s.SYSTEM_DELETED="System.Deleted",s.CUSTOMER="Customer",s.CUSTOMER_TECHNICAL_ISSUES="Customer.TechnicalIssues",s.CUSTOMER_PRICE_INCREASE="Customer.PriceIncrease",s.CUSTOMER_COST="Customer.Cost",s.CUSTOMER_FOUND_BETTER_APP="Customer.FoundBetterApp",s.CUSTOMER_NOT_USEFUL_ENOUGH="Customer.NotUsefulEnough",s.CUSTOMER_OTHER_REASON="Customer.OtherReason",s.UNKNOWN="Unknown"}(o.CancelationReason||(o.CancelationReason={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){class s{constructor($,j){this.className="Offer",this.id=$.id,this.pricingPhases=$.pricingPhases,Object.defineProperty(this,"productId",{enumerable:!0,get:()=>$.product.id}),Object.defineProperty(this,"productType",{enumerable:!0,get:()=>$.product.type}),Object.defineProperty(this,"productGroup",{enumerable:!0,get:()=>$.product.group}),Object.defineProperty(this,"platform",{enumerable:!0,get:()=>$.product.platform}),Object.defineProperty(this,"order",{enumerable:!1,get:()=>_e=>j.order(this,_e)}),Object.defineProperty(this,"canPurchase",{enumerable:!1,get:()=>j.canPurchase(this)})}get productId(){return""}get productType(){return o.ProductType.APPLICATION}get productGroup(){}get platform(){return o.Platform.TEST}order($){return __awaiter(this,void 0,void 0,function*(){})}get canPurchase(){return!1}}o.Offer=s})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){class s{constructor(){this.failedCallbacks=new o.Internal.PromiseLike,this.initiatedCallbacks=new o.Internal.PromiseLike,this.approvedCallbacks=new o.Internal.PromiseLike,this.finishedCallbacks=new o.Internal.PromiseLike,this.cancelledCallback=new o.Internal.PromiseLike}failed($){return this.failedCallbacks.push($),this}initiated($){return this.initiatedCallbacks.push($),this}approved($){return this.approvedCallbacks.push($),this}finished($){return this.finishedCallbacks.push($),this}cancelled($){return this.cancelledCallback.push($),this}trigger($){if(!$)this.cancelledCallback.resolve();else if("isError"in $)this.failedCallbacks.resolve($);else switch($.state){case o.TransactionState.INITIATED:this.initiatedCallbacks.resolve($);break;case o.TransactionState.APPROVED:this.approvedCallbacks.resolve($);break;case o.TransactionState.FINISHED:this.finishedCallbacks.resolve($);break}return this}static failed($,j,_e,et){return new s().trigger(o.storeError($,j,_e,et))}static cancelled(){return new s().trigger()}static initiated($){return new s().trigger($)}}o.PaymentRequestPromise=s})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){class s{constructor($,j){this.className="Receipt",this.transactions=[],this.platform=$,Object.defineProperty(this,"verify",{enumerable:!1,get(){return()=>j.verify(this)}}),Object.defineProperty(this,"finish",{enumerable:!1,get(){return()=>j.finish(this)}})}verify(){return __awaiter(this,void 0,void 0,function*(){})}finish(){return __awaiter(this,void 0,void 0,function*(){})}hasTransaction($){return!!this.transactions.find(j=>j===$)}lastTransaction(){return this.transactions[this.transactions.length-1]}}o.Receipt=s})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){class s{constructor($,j,_e){this.className="Transaction",this.transactionId="",this.state=o.TransactionState.UNKNOWN_STATE,this.products=[],this.platform=$,Object.defineProperty(this,"finish",{enumerable:!1,get(){return()=>_e.finish(this)}}),Object.defineProperty(this,"verify",{enumerable:!1,get(){return()=>_e.verify(this)}}),Object.defineProperty(this,"parentReceipt",{enumerable:!1,get(){return j}})}finish(){return __awaiter(this,void 0,void 0,function*(){})}verify(){return __awaiter(this,void 0,void 0,function*(){})}get parentReceipt(){return{}}}o.Transaction=s})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){class a{static find(j,_e){var et,tt;if(!_e)return;let nt;for(const it of j)if(!(_e.platform&&it.platform!==_e.platform))for(const rt of it.transactions)for(const st of rt.products)st.id===_e.id&&(!nt||((et=rt.purchaseDate)!==null&&et!==void 0?et:0)<((tt=nt.purchaseDate)!==null&&tt!==void 0?tt:1))&&(nt=rt);return nt}static isOwned(j,_e){if(!_e)return!1;const et=a.find(j,_e);return!et||et.isConsumed||et.isPending?!1:et.expirationDate?et.expirationDate.getTime()>+new Date:!0}static canPurchase(j,_e){if(!_e)return!1;const et=a.find(j,_e);return!et||et.isConsumed?!0:et.expirationDate?et.expirationDate.getTime()<=+new Date:!0}}s.LocalReceipts=a})(o.Internal||(o.Internal={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){function a($){return $.verifiedReceipts!==void 0?s.VerifiedReceipts.isOwned($.verifiedReceipts,$.product):$.localReceipts!==void 0?s.LocalReceipts.isOwned($.localReceipts,$.product):!1}s.owned=a})(o.Internal||(o.Internal={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){class a{constructor(){this.resolved=!1,this.callbacks=[]}push(j){this.resolved?setTimeout(j,0,this.resolvedArgument):this.callbacks.push(j)}resolve(j){this.resolved||(this.resolved=!0,this.resolvedArgument=j,this.callbacks.forEach(_e=>setTimeout(_e,0,j)),this.callbacks=[])}}s.PromiseLike=a})(o.Internal||(o.Internal={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){class a{constructor(j=5e3,_e=12e4){this.maxTimeout=12e4,this.minTimeout=5e3,this.retryTimeout=5e3,this.retries=[],this.minTimeout=j,this.maxTimeout=_e,this.retryTimeout=j,document.addEventListener("online",()=>{const et=this.retries;this.retries=[],this.retryTimeout=this.minTimeout;for(var tt=0;tt<et.length;++tt)clearTimeout(et[tt].tid),et[tt].fn.call(this)},!1)}retry(j){var _e=setTimeout(()=>{this.retries=this.retries.filter(function(et){return _e!==et.tid}),j()},this.retryTimeout);this.retries.push({tid:_e,fn:j}),this.retryTimeout*=2,this.retryTimeout>this.maxTimeout&&(this.retryTimeout=this.maxTimeout)}}s.Retry=a})(o.Internal||(o.Internal={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){class a{static find(j,_e){var et,tt;if(!_e)return;let nt;for(const it of j)if(!(_e.platform&&it.platform!==_e.platform))for(const rt of it.collection)rt.id===_e.id&&((et=nt==null?void 0:nt.purchaseDate)!==null&&et!==void 0?et:0)<((tt=rt.purchaseDate)!==null&&tt!==void 0?tt:1)&&(nt=rt);return nt}static isOwned(j,_e){if(!_e)return!1;const et=a.find(j,_e);return!et||et!=null&&et.isExpired?!1:et!=null&&et.expiryDate?et.expiryDate>+new Date:!0}static getVerifiedPurchases(j){var _e,et,tt,nt;const it={};for(const rt of j)for(const st of rt.collection){const ot=rt.platform+":"+st.id,at=it[ot];(!at||at&&((et=(_e=at.lastRenewalDate)!==null&&_e!==void 0?_e:at.purchaseDate)!==null&&et!==void 0?et:0)<((nt=(tt=st.lastRenewalDate)!==null&&tt!==void 0?tt:st.purchaseDate)!==null&&nt!==void 0?nt:0))&&(it[ot]=Object.assign(Object.assign({},st),{platform:rt.platform}))}return Object.keys(it).map(rt=>it[rt])}}s.VerifiedReceipts=a})(o.Internal||(o.Internal={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){(function(a){a.Name="name",a.EmailAddress="emailAddress",a.PhoneNumber="phoneNumber",a.PostalAddress="postalAddress",a.PhoneticName="phoneticName"})(s.ContactField||(s.ContactField={})),function(a){a.Amex="Amex",a.Barcode="Barcode",a.CartesBancaires="CartesBancaires",a.ChinaUnionPay="ChinaUnionPay",a.Dankort="Dankort",a.Discover="Discover",a.Eftpos="Eftpos",a.Electron="Electron",a.Elo="Elo",a.Girocard="Girocard",a.IDCredit="IDCredit",a.Interac="Interac",a.JCB="JCB",a.Mada="Mada",a.Maestro="Maestro",a.MasterCard="MasterCard",a.Mir="Mir",a.Nanaco="Nanaco",a.PrivateLabel="PrivateLabel",a.QuicPay="QuicPay",a.Suica="Suica",a.Visa="Visa",a.VPay="VPay",a.Waon="Waon"}(s.PaymentNetwork||(s.PaymentNetwork={})),function(a){a.ThreeDS="3DS",a.EMV="EMV",a.Credit="Credit",a.Debit="Debit"}(s.MerchantCapability||(s.MerchantCapability={}))})(o.ApplePay||(o.ApplePay={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){function a(_e){return`virtual.${_e}`}class ${constructor(et,tt){var nt,it;this.id=o.Platform.APPLE_APPSTORE,this.name="AppStore",this.ready=!1,this._canMakePayments=!1,this.forceReceiptReload=!1,this._products=[],this.validProducts={},this._paymentMonitor=()=>{},this.supportsParallelLoading=!0,this._appStoreReceiptLoading=!1,this._appStoreReceiptCallbacks=[],this.context=et,this.bridge=new s.Bridge.Bridge,this.log=et.log.child("AppleAppStore"),this.discountEligibilityDeterminer=tt.discountEligibilityDeterminer,this.needAppReceipt=(nt=tt.needAppReceipt)!==null&&nt!==void 0?nt:!0,this.autoFinish=(it=tt.autoFinish)!==null&&it!==void 0?it:!1,this.pseudoReceipt=new o.Receipt(o.Platform.APPLE_APPSTORE,this.context.apiDecorators),this.receiptsUpdated=o.Utils.debounce(()=>{this._receiptsUpdated()},300)}get products(){return this._products}getProduct(et){return this._products.find(tt=>tt.id===et)}get receipts(){return this.isSupported?(this._receipt?[this._receipt]:[]).concat(this.pseudoReceipt?this.pseudoReceipt:[]):[]}addValidProducts(et,tt){tt.forEach(nt=>{const it=et.find(rt=>rt.id===nt.id);it&&(this.validProducts[nt.id]=Object.assign(Object.assign({},nt),it))})}get isSupported(){return o.Utils.platformId()==="ios"}upsertTransactionInProgress(et,tt){const nt=a(et);return new Promise(it=>{const rt=this.pseudoReceipt.transactions.find(st=>st.transactionId===nt);if(rt)rt.state=tt,rt.refresh(et),it(rt);else{const st=new s.SKTransaction(o.Platform.APPLE_APPSTORE,this.pseudoReceipt,this.context.apiDecorators);st.state=tt,st.transactionId=nt,st.refresh(et),this.pseudoReceipt.transactions.push(st),it(st)}})}removeTransactionInProgress(et){const tt=a(et);this.pseudoReceipt.transactions=this.pseudoReceipt.transactions.filter(nt=>nt.transactionId!==tt)}upsertTransaction(et,tt,nt){return __awaiter(this,void 0,void 0,function*(){return new Promise(it=>{this.initializeAppReceipt(()=>{var rt;if(!this._receipt){this.log.warn("Failed to load the application receipt, cannot proceed with handling the purchase");return}const st=(rt=this._receipt)===null||rt===void 0?void 0:rt.transactions.find(ot=>ot.transactionId===tt);if(st)st.state=nt,st.refresh(et),it(st);else{const ot=new s.SKTransaction(o.Platform.APPLE_APPSTORE,this._receipt,this.context.apiDecorators);ot.state=nt,ot.transactionId=tt,ot.refresh(et),this._receipt.transactions.push(ot),it(ot)}})})})}removeTransaction(et){this._receipt&&(this._receipt.transactions=this._receipt.transactions.filter(tt=>tt.transactionId!==et))}_receiptsUpdated(){this._receipt?(this.log.debug("receipt updated and ready."),this.context.listener.receiptsUpdated(o.Platform.APPLE_APPSTORE,[this._receipt,this.pseudoReceipt]),this.context.listener.receiptsReady(o.Platform.APPLE_APPSTORE)):(this.log.debug("receipt updated."),this.context.listener.receiptsUpdated(o.Platform.APPLE_APPSTORE,[this.pseudoReceipt]))}setPaymentMonitor(et){this._paymentMonitor=et}callPaymentMonitor(et,tt,nt){this._paymentMonitor(et)}initialize(){return new Promise(et=>{this.log.info("bridge.init");const tt=this.log.child("Bridge");this.bridge.init({autoFinish:this.autoFinish,debug:this.context.verbosity===o.LogLevel.DEBUG,log:nt=>tt.debug(nt),error:(nt,it,rt)=>{if(this.log.error("ERROR: "+nt+" - "+it),nt===o.ErrorCode.PAYMENT_CANCELLED){this.callPaymentMonitor("cancelled",o.ErrorCode.PAYMENT_CANCELLED,it);return}else this.context.error(j(nt,it,(rt==null?void 0:rt.productId)||null))},ready:()=>{this.log.info("ready")},purchased:(nt,it,rt,st,ot)=>__awaiter(this,void 0,void 0,function*(){this.log.info("purchase: id:"+nt+" product:"+it+" originalTransaction:"+rt+" - date:"+st+" - discount:"+ot),(yield this.upsertTransaction(it,nt,o.TransactionState.APPROVED)).refresh(it,rt,st,ot),this.removeTransactionInProgress(it),this.receiptsUpdated(),this.callPaymentMonitor("purchased")}),purchaseEnqueued:(nt,it)=>__awaiter(this,void 0,void 0,function*(){this.log.info("purchaseEnqueued: "+nt+" - "+it),yield this.upsertTransactionInProgress(nt,o.TransactionState.INITIATED),this.context.listener.receiptsUpdated(o.Platform.APPLE_APPSTORE,[this.pseudoReceipt])}),purchaseFailed:(nt,it,rt)=>{this.log.info("purchaseFailed: "+nt+" - "+it+" - "+rt),this.removeTransactionInProgress(nt),this.context.listener.receiptsUpdated(o.Platform.APPLE_APPSTORE,[this.pseudoReceipt]),this.callPaymentMonitor("failed",it,rt)},purchasing:nt=>__awaiter(this,void 0,void 0,function*(){this.log.info("purchasing: "+nt),yield this.upsertTransactionInProgress(nt,o.TransactionState.INITIATED),this.context.listener.receiptsUpdated(o.Platform.APPLE_APPSTORE,[this.pseudoReceipt])}),deferred:nt=>__awaiter(this,void 0,void 0,function*(){this.log.info("deferred: "+nt),yield this.upsertTransactionInProgress(nt,o.TransactionState.PENDING),this.context.listener.receiptsUpdated(o.Platform.APPLE_APPSTORE,[this.pseudoReceipt]),this.callPaymentMonitor("deferred")}),finished:(nt,it)=>__awaiter(this,void 0,void 0,function*(){this.log.info("finish: "+nt+" - "+it),this.removeTransactionInProgress(it),yield this.upsertTransaction(it,nt,o.TransactionState.FINISHED),this.receiptsUpdated()}),restored:(nt,it)=>__awaiter(this,void 0,void 0,function*(){this.log.info("restore: "+nt+" - "+it),yield this.upsertTransaction(it,nt,o.TransactionState.APPROVED),this.receiptsUpdated()}),receiptsRefreshed:nt=>{this.log.info("receiptsRefreshed"),this._receipt&&this._receipt.refresh(nt,this.needAppReceipt,this.context.apiDecorators)},restoreFailed:nt=>{this.log.info("restoreFailed: "+nt),this.onRestoreCompleted&&(this.onRestoreCompleted(j(nt,"Restore purchases failed",null)),this.onRestoreCompleted=void 0)},restoreCompleted:()=>{this.log.info("restoreCompleted"),this.onRestoreCompleted&&(this.onRestoreCompleted(void 0),this.onRestoreCompleted=void 0)}},()=>__awaiter(this,void 0,void 0,function*(){this.log.info("bridge.init done"),yield this.canMakePayments(),et(void 0)}),(nt,it)=>{this.log.info("bridge.init failed: "+nt+" - "+it),et(j(nt,it,null))})})}loadReceipts(){return new Promise(et=>{setTimeout(()=>{this.initializeAppReceipt(()=>{this.receiptsUpdated(),this._receipt?et([this._receipt,this.pseudoReceipt]):et([this.pseudoReceipt])})},300)})}canMakePayments(){return __awaiter(this,void 0,void 0,function*(){return new Promise(et=>{this.bridge.canMakePayments(()=>{this._canMakePayments=!0,et(!0)},tt=>{this.log.warn(`canMakePayments: ${tt}`),this._canMakePayments=!1,et(!1)})})})}initializeAppReceipt(et){return __awaiter(this,void 0,void 0,function*(){if(this._receipt)return this.log.debug("initializeAppReceipt() => already initialized."),et(void 0);if(this._appStoreReceiptCallbacks.push(et),this._appStoreReceiptLoading){this.log.debug("initializeAppReceipt() => already loading.");return}this._appStoreReceiptLoading=!0;const tt=yield this.loadAppStoreReceipt(),nt=it=>{const rt=this._appStoreReceiptCallbacks;this._appStoreReceiptCallbacks=[],rt.forEach(st=>{st(it)})};if(!(tt!=null&&tt.appStoreReceipt)){this.log.warn("no appStoreReceipt"),this._appStoreReceiptLoading=!1,nt(j(o.ErrorCode.REFRESH,"No appStoreReceipt",null));return}this._receipt=new s.SKApplicationReceipt(tt,this.needAppReceipt,this.context.apiDecorators),nt(void 0)})}prepareReceipt(et){et!=null&&et.appStoreReceipt&&(this._receipt?this._receipt.refresh(et,this.needAppReceipt,this.context.apiDecorators):this._receipt=new s.SKApplicationReceipt(et,this.needAppReceipt,this.context.apiDecorators))}loadAppStoreReceipt(){return __awaiter(this,void 0,void 0,function*(){let et=!1;return new Promise(tt=>{var nt;if(!((nt=this.bridge.appStoreReceipt)===null||nt===void 0)&&nt.appStoreReceipt&&!this.forceReceiptReload)return this.log.debug("using cached appstore receipt"),tt(this.bridge.appStoreReceipt);this.log.debug("loading appstore receipt..."),this.forceReceiptReload=!1,this.bridge.loadReceipts(it=>{this.log.debug("appstore receipt loaded"),et||tt(it),et=!0},(it,rt)=>{this.log.warn("Failed to load appStoreReceipt: "+it+" - "+rt),et||tt(void 0),et=!0}),setTimeout(function(){et||tt(void 0),et=!0},5e3)}).then(tt=>(this.context.listener.receiptsReady(o.Platform.APPLE_APPSTORE),tt)).catch(tt=>(this.context.listener.receiptsReady(o.Platform.APPLE_APPSTORE),tt))})}loadEligibility(et){return __awaiter(this,void 0,void 0,function*(){if(this.log.debug("load eligibility: "+JSON.stringify(et)),!this.discountEligibilityDeterminer)return this.log.debug("No discount eligibility determiner, skipping..."),new s.Internal.DiscountEligibilities([],[]);const tt=[];if(et.forEach(nt=>{var it,rt,st;(it=nt.discounts)===null||it===void 0||it.forEach(ot=>{tt.push({productId:nt.id,discountId:ot.id,discountType:ot.type})}),((st=(rt=nt.discounts)===null||rt===void 0?void 0:rt.length)!==null&&st!==void 0?st:0)===0&&nt.introPrice&&tt.push({productId:nt.id,discountId:"intro",discountType:"Introductory"})}),tt.length>0){const nt=yield this.loadAppStoreReceipt();if(!nt||!nt.appStoreReceipt)return this.log.debug("no receipt, assuming introductory price are available."),new s.Internal.DiscountEligibilities(tt,tt.map(it=>it.discountType==="Introductory"));{this.log.debug("calling discount eligibility determiner.");const it=yield this.callDiscountEligibilityDeterminer(nt,tt);return this.log.debug("response: "+JSON.stringify(it)),new s.Internal.DiscountEligibilities(tt,it)}}else return new s.Internal.DiscountEligibilities([],[])})}callDiscountEligibilityDeterminer(et,tt){return new Promise(nt=>{if(!this.discountEligibilityDeterminer)return nt([]);this.discountEligibilityDeterminer(et,tt,nt)})}loadProducts(et){return new Promise(tt=>{this.log.info("bridge.load"),this.bridge.load(et.map(nt=>nt.id),(nt,it)=>__awaiter(this,void 0,void 0,function*(){this.log.info("bridge.loaded: "+JSON.stringify({validProducts:nt,invalidProducts:it})),this.addValidProducts(et,nt);const rt=yield this.loadEligibility(nt);this.log.info("eligibilities ready: "+JSON.stringify(rt));const st=et.map(ot=>{if(it.indexOf(ot.id)>=0)return this.log.debug(`${ot.id} is invalid`),j(o.ErrorCode.INVALID_PRODUCT_ID,"Product not found in AppStore. #400",ot.id);{const at=nt.find(ct=>ct.id===ot.id);if(this.log.debug(`${ot.id} is valid: ${JSON.stringify(at)}`),!at)return j(o.ErrorCode.INVALID_PRODUCT_ID,"Product not found in AppStore. #404",ot.id);let lt=this.getProduct(ot.id);return lt?(this.log.debug("refreshing existing product"),lt==null||lt.refresh(at,this.context.apiDecorators,rt)):(this.log.debug("registering new product"),lt=new s.SKProduct(at,ot,this.context.apiDecorators,rt),this._products.push(lt)),lt}});this.log.debug(`Products loaded: ${JSON.stringify(st)}`),tt(st)}),(nt,it)=>et.map(rt=>j(nt,it,null)))})}order(et,tt){return __awaiter(this,void 0,void 0,function*(){let nt=!1;return new Promise(it=>{var rt;const st=ht=>{nt||(this.setPaymentMonitor(()=>{}),nt=!0,it(ht))};this.log.info("order");const ot=et.id!==s.DEFAULT_OFFER_ID?et.id:void 0,at=(rt=tt==null?void 0:tt.appStore)===null||rt===void 0?void 0:rt.discount;if(ot&&!at)return st(j(o.ErrorCode.MISSING_OFFER_PARAMS,"Missing additionalData.appStore.discount when ordering a discount offer",et.productId));if(ot&&(at==null?void 0:at.id)!==ot)return st(j(o.ErrorCode.INVALID_OFFER_IDENTIFIER,"Offer identifier does not match additionalData.appStore.discount.id",et.productId));this.setPaymentMonitor((ht,dt,ut)=>{if(this.log.info("order.paymentMonitor => "+ht+" "+(dt??"")+" "+(ut??"")),!nt)switch(ht){case"cancelled":st(j(dt??o.ErrorCode.PAYMENT_CANCELLED,ut??"The user cancelled the order.",et.productId));break;case"failed":setTimeout(()=>{st(j(dt??o.ErrorCode.PURCHASE,ut??"Purchase failed",et.productId))},500);break;case"purchased":case"deferred":st(void 0);break}});const lt=()=>{this.log.info("order.success")},ct=()=>{this.log.info("order.error"),st(j(o.ErrorCode.PURCHASE,"Failed to place order",et.productId))};this.forceReceiptReload=!0,this.bridge.purchase(et.productId,1,this.context.getApplicationUsername(),at,lt,ct)})})}finish(et){return new Promise(tt=>{if(this.log.info("finish("+et.transactionId+")"),et.transactionId===s.APPLICATION_VIRTUAL_TRANSACTION_ID||et.transactionId===a(et.products[0].id))return et.state=o.TransactionState.FINISHED,this.context.listener.receiptsUpdated(o.Platform.APPLE_APPSTORE,[et.parentReceipt]),tt(void 0);const nt=()=>{et.state=o.TransactionState.FINISHED,this.context.listener.receiptsUpdated(o.Platform.APPLE_APPSTORE,[et.parentReceipt]),tt(void 0)},it=rt=>{var st,ot;rt!=null&&rt.includes("[#CdvPurchase:100]")?nt():tt(j(o.ErrorCode.FINISH,"Failed to finish transaction",(ot=(st=et.products[0])===null||st===void 0?void 0:st.id)!==null&&ot!==void 0?ot:null))};this.bridge.finish(et.transactionId,nt,it)})}refreshReceipt(){return new Promise(et=>{const tt=it=>{et(it)},nt=(it,rt)=>{et(j(it,rt,null))};this.bridge.refreshReceipts(tt,nt)})}receiptValidationBody(et){return __awaiter(this,void 0,void 0,function*(){if(et.platform!==o.Platform.APPLE_APPSTORE||et!==this._receipt)return;const tt=et;let nt=tt.nativeData;if(this.forceReceiptReload){const rt=yield this.loadAppStoreReceipt();this.forceReceiptReload=!1,rt&&(nt=rt,this.prepareReceipt(rt))}if(!tt.nativeData.appStoreReceipt){this.log.info("Cannot prepare the receipt validation body, because appStoreReceipt is missing. Refreshing...");const rt=yield this.refreshReceipt();if(!rt||"isError"in rt){this.log.warn("Failed to refresh receipt, cannot run receipt validation."),rt&&this.log.error(rt);return}this.log.info("Receipt refreshed."),nt=rt}const it=tt.transactions.slice(-1)[0];return{id:nt.bundleIdentifier,type:o.ProductType.APPLICATION,products:o.Utils.objectValues(this.validProducts).map(rt=>new s.SKProduct(rt,rt,this.context.apiDecorators,{isEligible:()=>!0})),transaction:{type:"ios-appstore",id:it==null?void 0:it.transactionId,appStoreReceipt:nt.appStoreReceipt}}})}handleReceiptValidationResponse(et,tt){var nt,it;return __awaiter(this,void 0,void 0,function*(){let rt=!1;if(tt.ok){const st=(nt=tt.data)===null||nt===void 0?void 0:nt.transaction;(st==null?void 0:st.type)==="ios-appstore"&&"original_application_version"in st&&((it=this._receipt)===null||it===void 0||it.transactions.forEach(ot=>{ot.transactionId===s.APPLICATION_VIRTUAL_TRANSACTION_ID&&st.original_purchase_date_ms&&(ot.purchaseDate=new Date(parseInt(st.original_purchase_date_ms)),rt=!0)}))}rt&&this.context.listener.receiptsUpdated(o.Platform.APPLE_APPSTORE,[et])})}requestPayment(et,tt){return __awaiter(this,void 0,void 0,function*(){return j(o.ErrorCode.UNKNOWN,"requestPayment not supported",null)})}manageSubscriptions(){return __awaiter(this,void 0,void 0,function*(){this.bridge.manageSubscriptions()})}manageBilling(){return __awaiter(this,void 0,void 0,function*(){this.bridge.manageBilling()})}checkSupport(et){return et==="order"?this._canMakePayments:["order","manageBilling","manageSubscriptions"].indexOf(et)>=0}restorePurchases(){return new Promise(et=>{this.onRestoreCompleted=tt=>{this.onRestoreCompleted=void 0,this.bridge.refreshReceipts(nt=>{et(tt)},(nt,it)=>{et(tt||j(nt,it,null))})},this.forceReceiptReload=!0,this.bridge.restore()})}presentCodeRedemptionSheet(){return new Promise(et=>{this.bridge.presentCodeRedemptionSheet(et)})}}s.Adapter=$;function j(_e,et,tt){return o.storeError(_e,et,o.Platform.APPLE_APPSTORE,tt)}})(o.AppleAppStore||(o.AppleAppStore={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){(function(a){const $=nt=>{};let j=$;function _e(nt,it,rt,st){window.cordova.exec(rt,st,"InAppPurchase",nt,it)}function et(nt,it,...rt){if(nt)try{nt.apply(this,rt)}catch(st){j("exception in "+it+': "'+st+'"')}}class tt{constructor(){this.transactionsForProduct={},this.initialized=!1,this.registeredProducts=[],this.needRestoreNotification=!1,this.pendingUpdates=[],this.onPurchased=!1,this.onFailed=!1,this.onRestored=!1,window.storekit=this,this.options={error:$,ready:$,purchased:$,purchaseEnqueued:$,purchasing:$,purchaseFailed:$,deferred:$,finished:$,restored:$,receiptsRefreshed:$,restoreFailed:$,restoreCompleted:$}}init(it,rt,st){this.options={error:it.error||$,ready:it.ready||$,purchased:it.purchased||$,purchaseEnqueued:it.purchaseEnqueued||$,purchasing:it.purchasing||$,purchaseFailed:it.purchaseFailed||$,deferred:it.deferred||$,finished:it.finished||$,restored:it.restored||$,receiptsRefreshed:it.receiptsRefreshed||$,restoreFailed:it.restoreFailed||$,restoreCompleted:it.restoreCompleted||$},it.debug&&(_e("debug",[],$,$),j=it.log||function(lt){console.log("[CdvPurchase.AppAppStore.Bridge] "+lt)}),it.autoFinish&&_e("autoFinish",[],$,$),_e("setup",[],()=>{j("setup ok"),et(this.options.ready,"options.ready"),et(rt,"init.success"),this.initialized=!0,setTimeout(()=>this.processPendingTransactions(),50)},lt=>{j("setup failed"),et(st,"init.error",o.ErrorCode.SETUP,"Setup failed: "+lt)})}processPendingTransactions(){j("processing pending transactions"),_e("processPendingTransactions",[],()=>{this.finalizeTransactionUpdates()},void 0)}purchase(it,rt,st,ot,at,lt){rt=rt|0||1;const ct=this.options;if(this.registeredProducts.indexOf(it)<0){const ut="Purchasing "+it+" failed.  Ensure the product was loaded first with Bridge.load(...)!";j(ut),typeof ct.error=="function"&&et(ct.error,"options.error",o.ErrorCode.PURCHASE,"Trying to purchase a unknown product.",{productId:it,quantity:rt});return}_e("purchase",[it,rt,st,ot||{}],()=>{j("Purchase enqueued "+it),typeof ct.purchaseEnqueued=="function"&&et(ct.purchaseEnqueued,"options.purchaseEnqueued",it,rt),et(at,"purchase.success")},()=>{const ut="Purchase failed: "+it;j(ut),typeof ct.error=="function"&&et(ct.error,"options.error",o.ErrorCode.PURCHASE,ut,{productId:it,quantity:rt}),et(lt,"purchase.error")})}canMakePayments(it,rt){return _e("canMakePayments",[],it,rt)}restore(it){this.needRestoreNotification=!0,_e("restoreCompletedTransactions",[],it,it)}manageSubscriptions(it){_e("manageSubscriptions",[],it,it)}manageBilling(it){_e("manageBilling",[],it,it)}presentCodeRedemptionSheet(it){_e("presentCodeRedemptionSheet",[],it,it)}load(it,rt,st){const ot=this.options;if(typeof it=="string"&&(it=[it]),!it)et(rt,"load.success",[],[]);else if(!it.length)et(rt,"load.success",[],[]);else{if(typeof it[0]!="string"){const ct="invalid productIds given to store.load: "+JSON.stringify(it);j(ct),et(ot.error,"options.error",o.ErrorCode.LOAD,ct),et(st,"load.error",o.ErrorCode.LOAD,ct);return}j("load "+JSON.stringify(it));const at=ct=>{const ht=ct[0],dt=ct[1];j("load ok: { valid:"+JSON.stringify(ht)+" invalid:"+JSON.stringify(dt)+" }"),et(rt,"load.success",ht,dt)},lt=ct=>{j("load failed"),j(ct);const ht="Load failed: "+ct;et(ot.error,"options.error",o.ErrorCode.LOAD,ht),et(st,"load.error",o.ErrorCode.LOAD,ht)};this.registeredProducts=this.registeredProducts.concat(it),_e("load",[it],at,lt)}}finish(it,rt,st){_e("finishTransaction",[it],rt,st)}finalizeTransactionUpdates(){for(let it=0;it<this.pendingUpdates.length;++it){const rt=this.pendingUpdates[it];this.transactionUpdated(rt.state,rt.errorCode,rt.errorText,rt.transactionIdentifier,rt.productId,rt.transactionReceipt,rt.originalTransactionIdentifier,rt.transactionDate,rt.discountId)}this.pendingUpdates=[]}lastTransactionUpdated(){}transactionUpdated(it,rt,st,ot,at,lt,ct,ht,dt){if(!this.initialized){this.pendingUpdates.push({state:it,errorCode:rt,errorText:st,transactionIdentifier:ot,productId:at,transactionReceipt:lt,originalTransactionIdentifier:ct,transactionDate:ht,discountId:dt});return}switch(j("transaction updated:"+ot+" state:"+it+" product:"+at),at&&ot&&(this.transactionsForProduct[at]?this.transactionsForProduct[at].push(ot):this.transactionsForProduct[at]=[ot]),it){case"PaymentTransactionStatePurchasing":et(this.options.purchasing,"options.purchasing",at);return;case"PaymentTransactionStatePurchased":et(this.options.purchased,"options.purchase",ot,at,ct,ht,dt);return;case"PaymentTransactionStateDeferred":et(this.options.deferred,"options.deferred",at);return;case"PaymentTransactionStateFailed":et(this.options.purchaseFailed,"options.purchaseFailed",at,rt||o.ErrorCode.UNKNOWN,st||"ERROR"),et(this.options.error,"options.error",rt||o.ErrorCode.UNKNOWN,st||"ERROR",{productId:at});return;case"PaymentTransactionStateRestored":et(this.options.restored,"options.restore",ot,at);return;case"PaymentTransactionStateFinished":et(this.options.finished,"options.finish",ot,at);return}}restoreCompletedTransactionsFinished(){this.needRestoreNotification&&(this.needRestoreNotification=!1,et(this.options.restoreCompleted,"options.restoreCompleted"))}restoreCompletedTransactionsFailed(it){this.needRestoreNotification&&(this.needRestoreNotification=!1,et(this.options.restoreFailed,"options.restoreFailed",it))}parseReceiptArgs(it){const rt=it[0],st=it[1],ot=it[2],at=it[3],lt=it[4];return j("infoPlist: "+st+","+ot+","+at+","+lt),{appStoreReceipt:rt,bundleIdentifier:st,bundleShortVersion:ot,bundleNumericVersion:at,bundleSignature:lt}}refreshReceipts(it,rt){const st=at=>{const lt=this.parseReceiptArgs(at);this.appStoreReceipt=lt,et(this.options.receiptsRefreshed,"options.receiptsRefreshed",lt),et(it,"refreshReceipts.success",lt)},ot=at=>{j("refresh receipt failed: "+at),at.includes("(@AMSErrorDomain:100)")&&j('authentication failed, indicated by the string "(@AMSErrorDomain:100)"'),et(this.options.error,"options.error",o.ErrorCode.REFRESH_RECEIPTS,"Failed to refresh receipt: "+at),et(rt,"refreshReceipts.error",o.ErrorCode.REFRESH_RECEIPTS,"Failed to refresh receipt: "+at)};this.appStoreReceipt=null,j("refreshing appStoreReceipt"),_e("appStoreRefreshReceipt",[],st,ot)}loadReceipts(it,rt){const st=at=>{const lt=this.parseReceiptArgs(at);this.appStoreReceipt=lt,et(it,"loadReceipts.callback",lt)},ot=at=>{};j("loading appStoreReceipt"),_e("appStoreReceipt",[],st,ot)}}a.Bridge=tt})(s.Bridge||(s.Bridge={}))})(o.AppleAppStore||(o.AppleAppStore={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){(function(a){class ${constructor(_e,et){this.request=_e,this.response=et}isEligible(_e,et,tt){var nt;for(let it=0;it<this.request.length;++it){const rt=this.request[it];if(rt.productId===_e&&rt.discountId===tt&&rt.discountType===et)return(nt=this.response[it])!==null&&nt!==void 0?nt:!1}return!0}}a.DiscountEligibilities=$})(s.Internal||(s.Internal={}))})(o.AppleAppStore||(o.AppleAppStore={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){s.DEFAULT_OFFER_ID="$";class a extends o.Offer{constructor(_e,et){super(_e,et),this.offerType=_e.offerType}}s.SKOffer=a;class $ extends o.Product{constructor(_e,et,tt,nt){super(et,tt),this.raw=_e,this.refresh(_e,tt,nt)}removeIneligibleDiscounts(_e){this.offers=this.offers.filter(et=>{const tt=et;return tt.offerType==="Default"?!0:_e.isEligible(this.id,tt.offerType,et.id)})}refresh(_e,et,tt){var nt;this.raw=_e,this.title=_e.title,this.description=_e.description,this.countryCode=_e.countryCode,_e.group&&(this.group=_e.group),this.removeIneligibleDiscounts(tt);const it={price:_e.price,priceMicros:_e.priceMicros,currency:_e.currency,billingPeriod:st(_e.billingPeriod,_e.billingPeriodUnit),paymentMode:this.type===o.ProductType.PAID_SUBSCRIPTION?o.PaymentMode.PAY_AS_YOU_GO:o.PaymentMode.UP_FRONT,recurrenceMode:this.type===o.ProductType.PAID_SUBSCRIPTION?o.RecurrenceMode.INFINITE_RECURRING:o.RecurrenceMode.NON_RECURRING};if((nt=_e.discounts)===null||nt===void 0||nt.forEach(ot=>{if(tt.isEligible(_e.id,ot.type,ot.id)){const at=[],lt=ot.paymentMode===o.PaymentMode.PAY_AS_YOU_GO?ot.period:1,ct=ot.paymentMode===o.PaymentMode.PAY_AS_YOU_GO?1:ot.period,ht={price:ot.price,priceMicros:ot.priceMicros,currency:_e.currency,billingPeriod:st(ct,ot.periodUnit),billingCycles:lt,paymentMode:ot.paymentMode,recurrenceMode:o.RecurrenceMode.FINITE_RECURRING};at.push(ht),at.push(it),this.addOffer(new a({id:ot.id,product:this,pricingPhases:at,offerType:ot.type},et))}}),!rt(this)){const ot=[];if(_e.introPrice&&_e.introPriceMicros!==void 0&&tt.isEligible(_e.id,"Introductory","intro")){const at={price:_e.introPrice,priceMicros:_e.introPriceMicros,currency:_e.currency,billingPeriod:st(_e.introPricePeriod,_e.introPricePeriodUnit),paymentMode:_e.introPricePaymentMode,recurrenceMode:o.RecurrenceMode.FINITE_RECURRING,billingCycles:1};ot.push(at)}ot.push(it),this.addOffer(new a({id:s.DEFAULT_OFFER_ID,product:this,pricingPhases:ot,offerType:"Default"},et))}function rt(ot){return ot.offers.filter(at=>{const lt=at;return lt.offerType==="Introductory"||lt.offerType==="Default"&&lt.pricingPhases.length>1}).length>0}function st(ot,at){if(ot&&at)return`P${ot}${at[0]}`}}}s.SKProduct=$})(o.AppleAppStore||(o.AppleAppStore={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){s.APPLICATION_VIRTUAL_TRANSACTION_ID="appstore.application";class a extends o.Receipt{constructor(_e,et,tt){super(o.Platform.APPLE_APPSTORE,tt),this.nativeData=_e,this.refresh(this.nativeData,et,tt)}refresh(_e,et,tt){if(this.nativeData=_e,et){if(this.transactions.find(rt=>rt.transactionId===s.APPLICATION_VIRTUAL_TRANSACTION_ID))return;const it=new o.Transaction(o.Platform.APPLE_APPSTORE,this,tt);it.transactionId=s.APPLICATION_VIRTUAL_TRANSACTION_ID,it.state=o.TransactionState.APPROVED,it.products.push({id:_e.bundleIdentifier}),this.transactions.push(it)}}}s.SKApplicationReceipt=a;class $ extends o.Transaction{refresh(_e,et,tt,nt){_e&&(this.products=[{id:_e,offerId:nt}]),et&&(this.originalTransactionId=et),tt&&(this.purchaseDate=new Date(+tt))}}s.SKTransaction=$})(o.AppleAppStore||(o.AppleAppStore={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){(function(a){(function($){$.CANCELED="1",$.BILLING_ERROR="2",$.PRICE_INCREASE="3",$.PRODUCT_NOT_AVAILABLE="4",$.UNKNOWN="5"})(a.AppleExpirationIntent||(a.AppleExpirationIntent={}))})(s.VerifyReceipt||(s.VerifyReceipt={}))})(o.AppleAppStore||(o.AppleAppStore={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){class a extends o.Receipt{constructor(rt,st,ot){var at,lt,ct;super(o.Platform.BRAINTREE,ot);const ht=new o.Transaction(o.Platform.BRAINTREE,this,ot);ht.purchaseDate=new Date,ht.products=((at=rt.items)===null||at===void 0?void 0:at.filter(dt=>dt).map(dt=>({id:(dt==null?void 0:dt.id)||""})))||[],ht.state=o.TransactionState.APPROVED,ht.transactionId=(ct=(lt=st.paymentMethodNonce)===null||lt===void 0?void 0:lt.nonce)!==null&&ct!==void 0?ct:`UNKNOWN_${st.paymentMethodType}_${st.paymentDescription}`,this.transactions=[ht],this.dropInResult=st,this.paymentRequest=rt,this.refresh(rt,st,ot)}refresh(rt,st,ot){var at,lt;this.dropInResult=st,this.paymentRequest=rt;const ct=new o.Transaction(o.Platform.BRAINTREE,this,ot);ct.products=rt.items.filter(ht=>ht).map(ht=>({id:(ht==null?void 0:ht.id)||""})),ct.state=o.TransactionState.APPROVED,ct.transactionId=(lt=(at=st.paymentMethodNonce)===null||at===void 0?void 0:at.nonce)!==null&&lt!==void 0?lt:`UNKNOWN_${st.paymentMethodType}_${st.paymentDescription}`,ct.amountMicros=rt.amountMicros,ct.currency=rt.currency,this.transactions=[ct]}}s.BraintreeReceipt=a;class ${constructor(rt,st){this.id=o.Platform.BRAINTREE,this.name="BrainTree",this.ready=!1,this.products=[],this._receipts=[],this.supportsParallelLoading=!1,this.context=rt,this.log=rt.log.child("Braintree"),this.options=st}get receipts(){return this._receipts}get isSupported(){return s.IosBridge.Bridge.isSupported()||s.AndroidBridge.Bridge.isSupported()}initialize(){return new Promise(rt=>{if(this.log.info("initialize()"),s.IosBridge.Bridge.isSupported())this.log.info("instantiating ios bridge..."),this.iosBridge=new s.IosBridge.Bridge(this.log,st=>{this.options.tokenizationKey?st(this.options.tokenizationKey):this.options.clientTokenProvider?this.options.clientTokenProvider(st):st(nt(o.ErrorCode.CLIENT_INVALID,"Braintree iOS Bridge requires a clientTokenProvider or tokenizationKey"))},this.options.applePay),this.iosBridge.initialize(this.context,rt);else if(s.AndroidBridge.Bridge.isSupported()&&!this.androidBridge){this.log.info("instantiating android bridge..."),this.androidBridge=new s.AndroidBridge.Bridge(this.log),this.log.info("calling android bridge -> initialize...");const st=this.options.tokenizationKey?this.options.tokenizationKey:this.options.clientTokenProvider?this.options.clientTokenProvider:"";this.androidBridge.initialize(st,rt)}else this.log.info("platform not supported..."),rt(void 0);this.context.listener.receiptsReady(o.Platform.BRAINTREE)})}loadProducts(rt){return __awaiter(this,void 0,void 0,function*(){return rt.map(st=>nt(o.ErrorCode.PRODUCT_NOT_AVAILABLE,"N/A"))})}loadReceipts(){return __awaiter(this,void 0,void 0,function*(){return this.context.listener.receiptsReady(o.Platform.BRAINTREE),[]})}order(rt){return __awaiter(this,void 0,void 0,function*(){return nt(o.ErrorCode.UNKNOWN,"N/A: Not implemented with Braintree")})}finish(rt){return __awaiter(this,void 0,void 0,function*(){rt.state=o.TransactionState.FINISHED,this.context.listener.receiptsUpdated(o.Platform.TEST,[rt.parentReceipt])})}manageSubscriptions(){return __awaiter(this,void 0,void 0,function*(){this.log.info("N/A: manageSubscriptions() is not available with Braintree")})}manageBilling(){return __awaiter(this,void 0,void 0,function*(){this.log.info("N/A: manageBilling() is not available with Braintree")})}launchDropIn(rt,st){return __awaiter(this,void 0,void 0,function*(){return this.androidBridge?this.androidBridge.launchDropIn(st):this.iosBridge?this.iosBridge.launchDropIn(rt,st):nt(o.ErrorCode.PURCHASE,"Braintree is not available")})}requestPayment(rt,st){var ot,at,lt,ct,ht,dt,ut,pt,ft;return __awaiter(this,void 0,void 0,function*(){this.log.info("requestPayment()"+JSON.stringify(rt));const mt=((ot=st==null?void 0:st.braintree)===null||ot===void 0?void 0:ot.dropInRequest)||{};if((yield s.IosBridge.ApplePayPlugin.isSupported(this.log))||(this.log.info("Apple Pay is not supported."),mt.applePayDisabled=!0),this.options.googlePay||mt.googlePayRequest){const Nt=Object.assign(Object.assign({},(at=this.options.googlePay)!==null&&at!==void 0?at:{}),(lt=mt.googlePayRequest)!==null&&lt!==void 0?lt:{});Nt.transactionInfo||(Nt.transactionInfo={currencyCode:(ct=rt.currency)!==null&&ct!==void 0?ct:"",totalPrice:((ht=rt.amountMicros)!==null&&ht!==void 0?ht:0)/1e6,totalPriceStatus:s.GooglePay.TotalPriceStatus.FINAL}),mt.googlePayRequest=Nt}if(this.options.threeDSecure||mt.threeDSecureRequest){const Nt=Object.assign(Object.assign({},(dt=this.options.threeDSecure)!==null&&dt!==void 0?dt:{}),(ut=mt.threeDSecureRequest)!==null&&ut!==void 0?ut:{});Nt.amount||(Nt.amount=j((pt=rt.amountMicros)!==null&&pt!==void 0?pt:0)),!Nt.billingAddress&&rt.billingAddress&&(Nt.billingAddress={givenName:rt.billingAddress.givenName,surname:rt.billingAddress.surname,countryCodeAlpha2:rt.billingAddress.countryCode,postalCode:rt.billingAddress.postalCode,locality:rt.billingAddress.locality,streetAddress:rt.billingAddress.streetAddress1,extendedAddress:rt.billingAddress.streetAddress2,line3:rt.billingAddress.streetAddress3,phoneNumber:rt.billingAddress.phoneNumber,region:rt.billingAddress.region}),Nt.email||(Nt.email=rt.email),mt.threeDSecureRequest=Nt}const gt=yield this.launchDropIn(rt,mt);if(!et(gt))return tt(this.log,gt);const bt=gt;if(this.log.info("launchDropIn success: "+JSON.stringify({paymentRequest:rt,dropInResult:bt})),!(!((ft=bt.paymentMethodNonce)===null||ft===void 0)&&ft.nonce))return nt(o.ErrorCode.BAD_RESPONSE,"launchDropIn returned no paymentMethodNonce");let St=this._receipts.find(Nt=>{var Rt,Ft;return((Rt=Nt.dropInResult.paymentMethodNonce)===null||Rt===void 0?void 0:Rt.nonce)===((Ft=bt.paymentMethodNonce)===null||Ft===void 0?void 0:Ft.nonce)});return St?St.refresh(rt,bt,this.context.apiDecorators):(St=new a(rt,bt,this.context.apiDecorators),this.receipts.push(St)),this.context.listener.receiptsUpdated(o.Platform.BRAINTREE,[St]),St.transactions[0]})}receiptValidationBody(rt){var st,ot,at,lt,ct;return __awaiter(this,void 0,void 0,function*(){if(!_e(rt)){this.log.error("Unexpected error, expecting a BraintreeReceipt: "+JSON.stringify(rt));return}return this.log.info("create receiptValidationBody for: "+JSON.stringify(rt)),{id:(at=(ot=(st=rt.paymentRequest.items)===null||st===void 0?void 0:st[0])===null||ot===void 0?void 0:ot.id)!==null&&at!==void 0?at:"unknown",type:o.ProductType.CONSUMABLE,priceMicros:rt.paymentRequest.amountMicros,currency:rt.paymentRequest.currency,products:[],transaction:{type:o.Platform.BRAINTREE,deviceData:rt.dropInResult.deviceData,id:"nonce",paymentMethodNonce:(ct=(lt=rt.dropInResult.paymentMethodNonce)===null||lt===void 0?void 0:lt.nonce)!==null&&ct!==void 0?ct:"",paymentDescription:rt.dropInResult.paymentDescription,paymentMethodType:rt.dropInResult.paymentMethodType}}})}handleReceiptValidationResponse(rt,st){var ot;return __awaiter(this,void 0,void 0,function*(){if(this.log.info("receipt validation response: "+JSON.stringify(st)),st!=null&&st.data&&"transaction"in st.data&&st.data.transaction.type==="braintree"){const at=(ot=st.data.transaction.data.transaction)===null||ot===void 0?void 0:ot.customer.id;at&&!s.customerId&&(this.log.info("customerId updated: "+at),s.customerId=at)}})}checkSupport(rt){return rt==="requestPayment"}restorePurchases(){return __awaiter(this,void 0,void 0,function*(){})}}s.Adapter=$;function j(it){const rt=""+it/1e4;return(rt.slice(0,-2)||"0")+"."+(rt.slice(-2,-1)||"0")+(rt.slice(-1)||"0")}function _e(it){return it.platform===o.Platform.BRAINTREE}const et=it=>!!it&&!("code"in it&&"message"in it),tt=(it,rt)=>{if(rt){if(rt.code===o.ErrorCode.PAYMENT_CANCELLED){it.info("User cancelled the payment request");return}return it.warn("launchDropIn failed: "+JSON.stringify(rt)),rt}else return it.warn("launchDropIn failed: no response"),nt(o.ErrorCode.BAD_RESPONSE,"Braintree failed to launch drop in")};function nt(it,rt){return o.storeError(it,rt,o.Platform.BRAINTREE,null)}s.braintreeError=nt})(o.Braintree||(o.Braintree={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){const a="BraintreePlugin";(function($){class j{constructor(et){this.log=et.child("AndroidBridge")}listener(et){this.log.debug("listener: "+JSON.stringify(et)),!(!et||!et.type)&&(et.type==="getClientToken"?this.getClientToken():et.type)}initialize(et,tt){try{if(typeof et=="string"){const it=et;this.clientTokenProvider=rt=>{rt(it)}}else this.clientTokenProvider=et;this.log.info("exec.setListener()");const nt=this.listener.bind(this);window.cordova.exec(nt,null,a,"setListener",[]),tt(void 0)}catch(nt){this.log.warn("initialization failed: "+(nt==null?void 0:nt.message)),tt(s.braintreeError(o.ErrorCode.SETUP,"Failed to initialize Braintree Android Bridge: "+(nt==null?void 0:nt.message)))}}getClientToken(){this.log.info("getClientToken()"),this.clientTokenProvider?(this.log.debug("clientTokenProvider set, calling."),this.clientTokenProvider(et=>{typeof et=="string"?window.cordova.exec(null,null,a,"onClientTokenSuccess",[et]):window.cordova.exec(null,null,a,"onClientTokenFailure",[et.code,et.message])})):(this.log.debug("clientTokenProvider not set, retrying later..."),setTimeout(()=>this.getClientToken(),1e3))}static isSupported(){return o.Utils.platformId()==="android"}isApplePaySupported(){return __awaiter(this,void 0,void 0,function*(){return!1})}launchDropIn(et){return new Promise(tt=>{window.cordova.exec(nt=>{this.log.info("dropInSuccess: "+JSON.stringify(nt)),tt(nt)},nt=>{this.log.info("dropInFailure: "+nt);const it=nt.split("|")[0],rt=nt.split("|").slice(1).join("");tt(it==="UserCanceledException"?s.braintreeError(o.ErrorCode.PAYMENT_CANCELLED,rt):it==="AuthorizationException"?s.braintreeError(o.ErrorCode.UNAUTHORIZED_REQUEST_DATA,rt):s.braintreeError(o.ErrorCode.UNKNOWN,nt))},a,"launchDropIn",[et])})}}$.Bridge=j})(s.AndroidBridge||(s.AndroidBridge={}))})(o.Braintree||(o.Braintree={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){(function(a){const $="BraintreeApplePayPlugin";class j{static get(){return window.CdvPurchaseBraintreeApplePay}static requestPayment(et){return new Promise(tt=>{var nt;if(!((nt=j.get())===null||nt===void 0)&&nt.installed){const it=st=>{tt(st)},rt=st=>{const ot=st??"payment request failed";tt(s.braintreeError(o.ErrorCode.PURCHASE,"Braintree+ApplePay ERROR: "+ot))};window.cordova.exec(it,rt,$,"presentDropInPaymentUI",[et])}else return tt(s.braintreeError(o.ErrorCode.SETUP,"cordova-plugin-purchase-braintree-applepay does not appear to be installed."))})}static isSupported(et){return new Promise(tt=>{var nt;if(o.Utils.platformId()!=="ios")return et.info("BraintreeApplePayPlugin is only available for ios."),tt(!1);if(!(!((nt=j.get())===null||nt===void 0)&&nt.installed))return et.info("BraintreeApplePayPlugin does not appear to be installed."),tt(!1);try{window.cordova.exec(it=>{tt(it)},()=>{et.info("BraintreeApplePayPlugin is not available."),tt(!1)},$,"isApplePaySupported",[])}catch{et.info("BraintreeApplePayPlugin is not installed."),tt(!1)}})}}a.ApplePayPlugin=j})(s.IosBridge||(s.IosBridge={}))})(o.Braintree||(o.Braintree={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){(function(a){class ${constructor(_e,et,tt){this.log=_e.child("IosBridge"),this.clientTokenProvider=et,this.applePayOptions=tt}initialize(_e,et){window.cordova.exec(null,null,"BraintreePlugin","setVerbosity",[_e.verbosity]),window.cordova.exec(tt=>this.log.debug("(Native) "+tt),null,"BraintreePlugin","setLogger",[]),setTimeout(()=>et(void 0),0)}continueDropInForApplePay(_e,et,tt){var nt,it,rt,st,ot,at,lt,ct,ht;return __awaiter(this,void 0,void 0,function*(){const dt=((it=(nt=this.applePayOptions)===null||nt===void 0?void 0:nt.preparePaymentRequest)===null||it===void 0?void 0:it.call(nt,_e))||{merchantCapabilities:[o.ApplePay.MerchantCapability.ThreeDS]};if(!dt.paymentSummaryItems){const pt=_e.items.filter(mt=>mt).map((mt,gt)=>{var bt,St,Nt;return{type:"final",label:(mt==null?void 0:mt.title)||(mt==null?void 0:mt.id)||`Item #${gt+1}`,amount:`${Math.round(((Nt=(St=(bt=mt==null?void 0:mt.pricing)===null||bt===void 0?void 0:bt.priceMicros)!==null&&St!==void 0?St:_e.amountMicros)!==null&&Nt!==void 0?Nt:0)/1e4)/100}`}}),ft={type:"final",label:(st=(rt=this.applePayOptions)===null||rt===void 0?void 0:rt.companyName)!==null&&st!==void 0?st:"Total",amount:`${Math.round(((ot=_e.amountMicros)!==null&&ot!==void 0?ot:0)/1e4)/100}`};dt.paymentSummaryItems=[...pt,ft]}const ut=yield a.ApplePayPlugin.requestPayment(dt);return this.log.info("Result from Apple Pay: "+JSON.stringify(ut)),"isError"in ut?ut:ut.userCancelled?s.braintreeError(o.ErrorCode.PAYMENT_CANCELLED,"User cancelled the payment request"):{paymentMethodNonce:{isDefault:!1,nonce:(lt=(at=ut.applePayCardNonce)===null||at===void 0?void 0:at.nonce)!==null&&lt!==void 0?lt:"",type:(ht=(ct=ut.applePayCardNonce)===null||ct===void 0?void 0:ct.type)!==null&&ht!==void 0?ht:""},paymentMethodType:tt.paymentMethodType,deviceData:tt.deviceData,paymentDescription:tt.paymentDescription}})}launchDropIn(_e,et){return new Promise(tt=>__awaiter(this,void 0,void 0,function*(){const nt=rt=>{this.log.info("dropInSuccess: "+JSON.stringify(rt)),rt.paymentMethodType===s.DropIn.PaymentMethod.APPLE_PAY?(this.log.info("it's an ApplePay request, we have to process it."),this.continueDropInForApplePay(_e,et,rt).then(tt)):tt(rt)},it=rt=>{this.log.info("dropInFailure: "+rt);const[st,ot]=rt.split("|");tt(st==="UserCanceledException"?s.braintreeError(o.ErrorCode.PAYMENT_CANCELLED,ot):s.braintreeError(o.ErrorCode.UNKNOWN,"ERROR "+st+": "+ot))};this.clientTokenProvider(rt=>{typeof rt=="string"?window.cordova.exec(nt,it,"BraintreePlugin","launchDropIn",[rt,et]):tt(rt)})}))}braintreePlugin(){return window.CdvPurchaseBraintree}static isSupported(){return o.Utils.platformId()==="ios"}}a.Bridge=$})(s.IosBridge||(s.IosBridge={}))})(o.Braintree||(o.Braintree={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){(function(a){(function($){$[$.DISABLED=0]="DISABLED",$[$.OPTIONAL=1]="OPTIONAL",$[$.REQUIRED=2]="REQUIRED"})(a.CardFormFieldStatus||(a.CardFormFieldStatus={}))})(s.DropIn||(s.DropIn={}))})(o.Braintree||(o.Braintree={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){(function(a){(function($){$.GOOGLE_PAY="GOOGLE_PAY",$.LASER="LASER",$.UK_MAESTRO="UK_MAESTRO",$.SWITCH="SWITCH",$.SOLOR="SOLO",$.APPLE_PAY="APPLE_PAY",$.AMEX="AMEX",$.DINERS_CLUB="DINERS_CLUB",$.DISCOVER="DISCOVER",$.JCB="JCB",$.MAESTRO="MAESTRO",$.MASTERCARD="MASTERCARD",$.PAYPAL="PAYPAL",$.VISA="VISA",$.VENMO="VENMO",$.UNIONPAY="UNIONPAY",$.HIPER="HIPER",$.HIPERCARD="HIPERCARD",$.UNKNOWN="UNKNOWN"})(a.PaymentMethod||(a.PaymentMethod={}))})(s.DropIn||(s.DropIn={}))})(o.Braintree||(o.Braintree={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){(function(a){(function($){$[$.MIN=0]="MIN",$[$.FULL=1]="FULL"})(a.BillingAddressFormat||(a.BillingAddressFormat={})),function($){$[$.NOT_CURRENTLY_KNOWN=1]="NOT_CURRENTLY_KNOWN",$[$.ESTIMATED=2]="ESTIMATED",$[$.FINAL=3]="FINAL"}(a.TotalPriceStatus||(a.TotalPriceStatus={}))})(s.GooglePay||(s.GooglePay={}))})(o.Braintree||(o.Braintree={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){(function(a){(function($){$.UNSPECIFIED="00",$.CREDIT="01",$.DEBIT="02"})(a.AccountType||(a.AccountType={})),function($){$[$.UNSPECIFIED=0]="UNSPECIFIED",$[$.SAME_DAY=1]="SAME_DAY",$[$.EXPEDITED=2]="EXPEDITED",$[$.PRIORITY=3]="PRIORITY",$[$.GROUND=4]="GROUND",$[$.ELECTRONIC_DELIVERY=5]="ELECTRONIC_DELIVERY",$[$.SHIP_TO_STORE=6]="SHIP_TO_STORE"}(a.ShippingMethod||(a.ShippingMethod={})),function($){$[$.V1=0]="V1",$[$.V2=1]="V2"}(a.Version||(a.Version={}))})(s.ThreeDSecure||(s.ThreeDSecure={}))})(o.Braintree||(o.Braintree={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){class a extends o.Transaction{constructor(tt,nt,it){super(o.Platform.GOOGLE_PLAY,nt,it),this.nativePurchase=tt,this.refresh(tt,!0)}static toState(tt,nt,it,rt){switch(nt){case s.Bridge.PurchaseState.PENDING:return o.TransactionState.INITIATED;case s.Bridge.PurchaseState.PURCHASED:return rt?o.TransactionState.FINISHED:it?o.TransactionState.APPROVED:tt?o.TransactionState.INITIATED:o.TransactionState.APPROVED;case s.Bridge.PurchaseState.UNSPECIFIED_STATE:return o.TransactionState.UNKNOWN_STATE}}refresh(tt,nt){var it,rt;this.nativePurchase=tt,this.transactionId=`${tt.orderId||tt.purchaseToken}`,this.purchaseId=`${tt.purchaseToken}`,this.products=tt.productIds.map(st=>({id:st})),tt.purchaseTime&&(this.purchaseDate=new Date(tt.purchaseTime)),this.isPending=tt.getPurchaseState===s.Bridge.PurchaseState.PENDING,typeof tt.acknowledged<"u"&&(this.isAcknowledged=tt.acknowledged),typeof tt.consumed<"u"&&(this.isConsumed=tt.consumed),typeof tt.autoRenewing<"u"&&(this.renewalIntent=tt.autoRenewing?o.RenewalIntent.RENEW:o.RenewalIntent.LAPSE),this.state=a.toState(nt??!1,tt.getPurchaseState,(it=this.isAcknowledged)!==null&&it!==void 0?it:!1,(rt=this.isConsumed)!==null&&rt!==void 0?rt:!1)}}s.Transaction=a;class $ extends o.Receipt{constructor(tt,nt){super(o.Platform.GOOGLE_PLAY,nt),this.transactions=[new a(tt,this,nt)],this.purchaseToken=tt.purchaseToken,this.orderId=tt.orderId}refreshPurchase(tt){var nt;(nt=this.transactions[0])===null||nt===void 0||nt.refresh(tt),this.orderId=tt.orderId}}s.Receipt=$;class j{constructor(tt,nt=1e3*3600*24){if(this.id=o.Platform.GOOGLE_PLAY,this.name="GooglePlay",this.ready=!1,this.supportsParallelLoading=!1,this._receipts=[],this.bridge=new s.Bridge.Bridge,this.initialized=!1,this.retry=new o.Internal.Retry,this.autoRefreshIntervalMillis=0,j._instance)throw new Error("GooglePlay adapter already initialized");this._products=new s.Products(tt.apiDecorators),this.autoRefreshIntervalMillis=nt,this.context=tt,this.log=tt.log.child("GooglePlay"),j._instance=this}get products(){return this._products.products}get receipts(){return this._receipts}get isSupported(){return o.Utils.platformId()==="android"}initialize(){return __awaiter(this,void 0,void 0,function*(){return this.log.info("Initialize"),this.initializationPromise?this.initializationPromise:this.initializationPromise=new Promise(tt=>{const nt=this.log.child("Bridge"),it={onSetPurchases:this.onSetPurchases.bind(this),onPurchasesUpdated:this.onPurchasesUpdated.bind(this),onPurchaseConsumed:this.onPurchaseConsumed.bind(this),showLog:this.context.verbosity>=o.LogLevel.DEBUG,log:ot=>nt.info(ot)},rt=()=>{this.log.debug("Ready"),this.autoRefreshIntervalMillis>0&&window.setInterval(()=>this.getPurchases(),this.autoRefreshIntervalMillis),tt(void 0)},st=ot=>{this.initialized=!1,this.context.error(_e(o.ErrorCode.SETUP,"Init failed - "+ot,null)),this.retry.retry(()=>this.initialize())};this.bridge.init(rt,st,it)})})}getSkusOf(tt){const nt=[],it=[];for(const rt of tt)rt.type===o.ProductType.PAID_SUBSCRIPTION?it.push(rt.id):nt.push(rt.id);return{inAppSkus:nt,subsSkus:it}}loadReceipts(){return new Promise(tt=>{this.getPurchases().then(nt=>{tt(this._receipts)})})}loadProducts(tt){return new Promise(nt=>{this.log.debug("Load: "+JSON.stringify(tt));const it=st=>{this.log.debug("Loaded: "+JSON.stringify(st));const ot=tt.map(at=>{const lt=st.find(ct=>ct.productId===at.id);return lt&&lt.productId?this._products.addProduct(at,lt):_e(o.ErrorCode.INVALID_PRODUCT_ID,`Product with id ${at.id} not found.`,at.id)});nt(ot)},rt=()=>{const{inAppSkus:st,subsSkus:ot}=this.getSkusOf(tt);this.log.debug("getAvailableProducts: "+JSON.stringify(st)+" | "+JSON.stringify(ot)),this.bridge.getAvailableProducts(st,ot,it,at=>{this.retry.retry(rt),this.context.error(_e(o.ErrorCode.LOAD,"Loading product info failed - "+at+" - retrying later...",null))})};rt()})}finish(tt){return new Promise(nt=>{const it=()=>{tt.state!==o.TransactionState.FINISHED&&(tt.state=o.TransactionState.FINISHED,this.context.listener.receiptsUpdated(o.Platform.GOOGLE_PLAY,[tt.parentReceipt])),nt(void 0)},rt=tt.products[0];if(!rt)return nt(_e(o.ErrorCode.FINISH,"Cannot finish a transaction with no product",null));const st=this._products.getProduct(rt.id);if(!st)return nt(_e(o.ErrorCode.FINISH,"Cannot finish transaction, unknown product "+rt.id,rt.id));const ot=this._receipts.find(lt=>lt.hasTransaction(tt));if(!ot)return nt(_e(o.ErrorCode.FINISH,"Cannot finish transaction, linked receipt not found.",st.id));if(!ot.purchaseToken)return nt(_e(o.ErrorCode.FINISH,"Cannot finish transaction, linked receipt contains no purchaseToken.",st.id));const at=(lt,ct)=>nt(_e(ct||o.ErrorCode.UNKNOWN,lt,st.id));if(st.type===o.ProductType.NON_RENEWING_SUBSCRIPTION||st.type===o.ProductType.CONSUMABLE){if(!tt.isConsumed)return this.bridge.consumePurchase(it,at,ot.purchaseToken)}else if(!tt.isAcknowledged)return this.bridge.acknowledgePurchase(it,at,ot.purchaseToken);nt(void 0)})}onPurchaseConsumed(tt){this.log.debug("onPurchaseConsumed: "+tt.orderId),tt.acknowledged=!0,tt.consumed=!0,this.onPurchasesUpdated([tt])}onPurchasesUpdated(tt){this.log.debug("onPurchaseUpdated: "+tt.map(nt=>nt.orderId).join(", ")),tt.forEach(nt=>{const it=this.receipts.find(rt=>rt.purchaseToken===nt.purchaseToken);if(it)it.refreshPurchase(nt),this.context.listener.receiptsUpdated(o.Platform.GOOGLE_PLAY,[it]);else{const rt=new $(nt,this.context.apiDecorators);this.receipts.push(rt),this.context.listener.receiptsUpdated(o.Platform.GOOGLE_PLAY,[rt]),rt.transactions[0].state===o.TransactionState.INITIATED&&!rt.transactions[0].isPending&&(rt.refreshPurchase(nt),this.context.listener.receiptsUpdated(o.Platform.GOOGLE_PLAY,[rt]))}})}onSetPurchases(tt){this.log.debug("onSetPurchases: "+JSON.stringify(tt)),this.onPurchasesUpdated(tt),this.context.listener.receiptsReady(o.Platform.GOOGLE_PLAY)}onPriceChangeConfirmationResult(tt){}getPurchases(){return new Promise(tt=>{this.log.debug("getPurchases");const nt=()=>{this.log.debug("getPurchases success"),setTimeout(()=>tt(void 0),0)},it=(rt,st)=>{this.log.warn("getPurchases failed: "+rt+" ("+st+")"),setTimeout(()=>tt(_e(st||o.ErrorCode.UNKNOWN,rt,null)),0)};this.bridge.getPurchases(nt,it)})}order(tt,nt){return __awaiter(this,void 0,void 0,function*(){return new Promise(it=>{this.log.info("Order - "+JSON.stringify(tt));const rt=()=>it(void 0),st=(ot,at)=>{this.log.warn("Order failed: "+JSON.stringify({message:ot,code:at})),it(_e(at??o.ErrorCode.UNKNOWN,ot,tt.productId))};if(tt.productType===o.ProductType.PAID_SUBSCRIPTION){const ot="token"in tt?tt.productId+"@"+tt.token:tt.productId,at=this.findOldPurchaseToken(tt.productId,tt.productGroup);at&&(nt.googlePlay?nt.googlePlay.oldPurchaseToken||(nt.googlePlay.oldPurchaseToken=at):nt.googlePlay={oldPurchaseToken:at}),this.bridge.subscribe(rt,st,ot,nt)}else this.bridge.buy(rt,st,tt.productId,nt)})})}findOldPurchaseToken(tt,nt){if(!nt)return;const it=this._receipts.find(rt=>!!rt.transactions.find(st=>!!st.products.find(ot=>{const at=this._products.getProduct(ot.id);return!at||!o.Internal.LocalReceipts.isOwned([rt],at)?!1:ot.id===tt||nt&&at.group===nt})));return it==null?void 0:it.purchaseToken}receiptValidationBody(tt){var nt;return __awaiter(this,void 0,void 0,function*(){const it=tt.transactions[0];if(!it)return;const rt=(nt=it.products[0])===null||nt===void 0?void 0:nt.id;if(!rt)return;const st=this._products.getProduct(rt);if(!st)return;const ot=it.nativePurchase;return{id:rt,type:st.type,offers:st.offers,products:this._products.products,transaction:{type:o.Platform.GOOGLE_PLAY,id:tt.transactions[0].transactionId,purchaseToken:ot.purchaseToken,signature:ot.signature,receipt:ot.receipt}}})}handleReceiptValidationResponse(tt,nt){var it;return __awaiter(this,void 0,void 0,function*(){if(nt!=null&&nt.ok){const rt=(it=nt==null?void 0:nt.data)===null||it===void 0?void 0:it.transaction;if((rt==null?void 0:rt.type)!==o.Platform.GOOGLE_PLAY)return;switch(rt.kind){}}})}requestPayment(tt,nt){return __awaiter(this,void 0,void 0,function*(){return _e(o.ErrorCode.UNKNOWN,"requestPayment not supported",null)})}manageSubscriptions(){return __awaiter(this,void 0,void 0,function*(){this.bridge.manageSubscriptions()})}manageBilling(){return __awaiter(this,void 0,void 0,function*(){this.bridge.manageBilling()})}checkSupport(tt){return["order","manageBilling","manageSubscriptions"].indexOf(tt)>=0}restorePurchases(){return new Promise(tt=>{this.bridge.getPurchases(()=>tt(void 0),(nt,it)=>{this.log.warn("getPurchases() failed: "+(it??"ERROR")+": "+nt),tt(_e(it??o.ErrorCode.UNKNOWN,nt,null))})})}}j.trimProductTitles=!0,s.Adapter=j;function _e(et,tt,nt){return o.storeError(et,tt,o.Platform.GOOGLE_PLAY,nt)}})(o.GooglePlay||(o.GooglePlay={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){(function(a){(function($){$.FINITE_RECURRING="FINITE_RECURRING",$.INFINITE_RECURRING="INFINITE_RECURRING",$.NON_RECURRING="NON_RECURRING"})(a.RecurrenceMode||(a.RecurrenceMode={}))})(s.Bridge||(s.Bridge={}))})(o.GooglePlay||(o.GooglePlay={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){(function(a){a.IMMEDIATE_WITH_TIME_PRORATION="IMMEDIATE_WITH_TIME_PRORATION",a.IMMEDIATE_AND_CHARGE_PRORATED_PRICE="IMMEDIATE_AND_CHARGE_PRORATED_PRICE",a.IMMEDIATE_WITHOUT_PRORATION="IMMEDIATE_WITHOUT_PRORATION",a.DEFERRED="DEFERRED",a.IMMEDIATE_AND_CHARGE_FULL_PRICE="IMMEDIATE_AND_CHARGE_FULL_PRICE"})(s.ProrationMode||(s.ProrationMode={})),function(a){a.WITH_TIME_PRORATION="IMMEDIATE_WITH_TIME_PRORATION",a.CHARGE_PRORATED_PRICE="IMMEDIATE_AND_CHARGE_PRORATED_PRICE",a.WITHOUT_PRORATION="IMMEDIATE_WITHOUT_PRORATION",a.DEFERRED="DEFERRED",a.CHARGE_FULL_PRICE="IMMEDIATE_AND_CHARGE_FULL_PRICE"}(s.ReplacementMode||(s.ReplacementMode={})),function(a){let $=function(it){console.log("InAppBilling[js]: "+it)};(function(nt){nt[nt.UNSPECIFIED_STATE=0]="UNSPECIFIED_STATE",nt[nt.PURCHASED=1]="PURCHASED",nt[nt.PENDING=2]="PENDING"})(a.PurchaseState||(a.PurchaseState={}));class j{constructor(){this.options={}}init(it,rt,st){st||(st={}),st.log&&($=st.log),this.options={showLog:st.showLog!==!1,onPurchaseConsumed:st.onPurchaseConsumed,onPurchasesUpdated:st.onPurchasesUpdated,onSetPurchases:st.onSetPurchases},this.options.showLog&&$("setup ok");const ot=this.listener.bind(this);window.cordova.exec(ot,function(at){},"InAppBillingPlugin","setListener",[]),window.cordova.exec(it,_e(rt),"InAppBillingPlugin","init",[])}load(it,rt,st,ot,at){if(typeof st<"u"&&(typeof st=="string"&&(st=[st]),st.length>0)){if(typeof st[0]!="string"){var lt="invalid productIds: "+JSON.stringify(st);this.options.showLog&&$(lt),rt(lt,o.ErrorCode.INVALID_PRODUCT_ID);return}this.options.showLog&&$("load "+JSON.stringify(st))}window.cordova.exec(it,_e(rt),"InAppBillingPlugin","load",[st,ot,at])}listener(it){this.options.showLog&&$("listener: "+JSON.stringify(it)),!(!it||!it.type)&&(it.type==="setPurchases"&&this.options.onSetPurchases&&this.options.onSetPurchases(it.data.purchases),it.type==="purchasesUpdated"&&this.options.onPurchasesUpdated&&this.options.onPurchasesUpdated(it.data.purchases),it.type==="purchaseConsumed"&&this.options.onPurchaseConsumed&&this.options.onPurchaseConsumed(it.data.purchase),it.type==="onPriceChangeConfirmationResultOK"&&this.options.onPriceChangeConfirmationResult&&this.options.onPriceChangeConfirmationResult("OK"),it.type==="onPriceChangeConfirmationResultUserCanceled"&&this.options.onPriceChangeConfirmationResult&&this.options.onPriceChangeConfirmationResult("UserCanceled"),it.type==="onPriceChangeConfirmationResultUnknownSku"&&this.options.onPriceChangeConfirmationResult&&this.options.onPriceChangeConfirmationResult("UnknownProduct"))}getPurchases(it,rt){return this.options.showLog&&$("getPurchases()"),window.cordova.exec(it,_e(rt),"InAppBillingPlugin","getPurchases",["null"])}buy(it,rt,st,ot){return this.options.showLog&&$("buy()"),window.cordova.exec(it,_e(rt),"InAppBillingPlugin","buy",[st,tt(ot)])}subscribe(it,rt,st,ot){var at;return this.options.showLog&&$("subscribe()"),!((at=ot.googlePlay)===null||at===void 0)&&at.oldPurchaseToken&&this.options.showLog&&$("subscribe() -> upgrading from an old purchase"),window.cordova.exec(it,_e(rt),"InAppBillingPlugin","subscribe",[st,tt(ot)])}consumePurchase(it,rt,st){return this.options.showLog&&$("consumePurchase()"),window.cordova.exec(it,_e(rt),"InAppBillingPlugin","consumePurchase",[st])}acknowledgePurchase(it,rt,st){return this.options.showLog&&$("acknowledgePurchase()"),window.cordova.exec(it,_e(rt),"InAppBillingPlugin","acknowledgePurchase",[st])}getAvailableProducts(it,rt,st,ot){return this.options.showLog&&$("getAvailableProducts()"),window.cordova.exec(st,_e(ot),"InAppBillingPlugin","getAvailableProducts",[it,rt])}manageSubscriptions(){return window.cordova.exec(function(){},function(){},"InAppBillingPlugin","manageSubscriptions",[])}manageBilling(){return window.cordova.exec(function(){},function(){},"InAppBillingPlugin","manageBilling",[])}launchPriceChangeConfirmationFlow(it){return window.cordova.exec(function(){},function(){},"InAppBillingPlugin","launchPriceChangeConfirmationFlow",[it])}}a.Bridge=j;function _e(nt){return function(it){if(!nt)return;const rt=typeof it=="string"?it.split("|"):[];if(rt.length>1&&/^[-+]?(\d+)$/.test(rt[0])){var st=rt[0],ot=rt[1];nt(ot,+st)}else nt(it)}}function et(nt){return nt&&nt.constructor===Object?nt:{}}function tt(nt){const it=et(nt==null?void 0:nt.googlePlay);return!it.accountId&&(nt!=null&&nt.applicationUsername)&&(it.accountId=o.Utils.md5(nt.applicationUsername)),it}}(s.Bridge||(s.Bridge={}))})(o.GooglePlay||(o.GooglePlay={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){class a extends o.Product{}s.GProduct=a;class $ extends o.Offer{constructor(){super(...arguments),this.type="inapp"}}s.InAppOffer=$;class j extends o.Offer{constructor(tt,nt){super(tt,nt),this.type="subs",this.tags=tt.tags,this.token=tt.token}}s.SubscriptionOffer=j;class _e{constructor(tt){this.products=[],this.offers=[],this.decorator=tt}getProduct(tt){return this.products.find(nt=>nt.id===tt)}getOffer(tt){return this.offers.find(nt=>nt.id===tt)}addProduct(tt,nt){const it=this.getProduct(tt.id),rt=it??new a(tt,this.decorator);return rt.title=nt.title||nt.name||rt.title,s.Adapter.trimProductTitles&&(rt.title=rt.title.replace(/ \(.*\)$/,"")),rt.description=nt.description||rt.description,"product_format"in nt&&nt.product_format==="v12.0"?nt.product_type==="subs"?this.onSubsV12Loaded(rt,nt):this.onInAppLoaded(rt,nt):this.onInAppLoaded(rt,nt),it||this.products.push(rt),rt}onSubsV12Loaded(tt,nt){nt.offers.forEach(rt=>{const st=rt.pricing_phases.slice(-1)[0];if((st==null?void 0:st.recurrence_mode)===o.RecurrenceMode.FINITE_RECURRING){const at=it(rt.base_plan_id);at&&at!==rt&&rt.pricing_phases.push(...at.pricing_phases)}const ot=this.iabSubsOfferV12Loaded(tt,nt,rt);tt.addOffer(ot)});function it(rt){if(!rt)return null;for(const st of nt.offers)if(st.base_plan_id===rt&&!st.offer_id)return st;return null}return tt}makeOfferId(tt,nt){return nt.base_plan_id?nt.offer_id?tt+"@"+nt.base_plan_id+"@"+nt.offer_id:tt+"@"+nt.base_plan_id:tt+"@"+nt.token}iabSubsOfferV12Loaded(tt,nt,it){const rt=this.makeOfferId(nt.productId,it),st=this.getOffer(rt),ot=it.pricing_phases.map(at=>this.toPricingPhase(at));if(st)return st.pricingPhases=ot,st;{const at=new j({id:rt,product:tt,pricingPhases:ot,token:it.token,tags:it.tags},this.decorator);return this.offers.push(at),at}}onInAppLoaded(tt,nt){var it,rt,st,ot;const at=this.getOffer(nt.productId),lt=[{price:(rt=(it=nt.formatted_price)!==null&&it!==void 0?it:nt.price)!==null&&rt!==void 0?rt:`${((st=nt.price_amount_micros)!==null&&st!==void 0?st:0)/1e6} ${nt.price_currency_code}`,priceMicros:(ot=nt.price_amount_micros)!==null&&ot!==void 0?ot:0,currency:nt.price_currency_code,recurrenceMode:o.RecurrenceMode.NON_RECURRING}];if(at)at.pricingPhases=lt,tt.offers=[at];else{const ct=new $({id:nt.productId,product:tt,pricingPhases:lt},this.decorator);this.offers.push(ct),tt.offers=[ct]}return tt}toPaymentMode(tt){return tt.price_amount_micros===0?o.PaymentMode.FREE_TRIAL:tt.recurrence_mode===s.Bridge.RecurrenceMode.NON_RECURRING?o.PaymentMode.UP_FRONT:o.PaymentMode.PAY_AS_YOU_GO}toRecurrenceMode(tt){switch(tt){case s.Bridge.RecurrenceMode.FINITE_RECURRING:return o.RecurrenceMode.FINITE_RECURRING;case s.Bridge.RecurrenceMode.INFINITE_RECURRING:return o.RecurrenceMode.INFINITE_RECURRING;case s.Bridge.RecurrenceMode.NON_RECURRING:return o.RecurrenceMode.NON_RECURRING}}toPricingPhase(tt){return{price:tt.formatted_price,priceMicros:tt.price_amount_micros,currency:tt.price_currency_code,billingPeriod:tt.billing_period,billingCycles:tt.billing_cycle_count,recurrenceMode:this.toRecurrenceMode(tt.recurrence_mode),paymentMode:this.toPaymentMode(tt)}}}s.Products=_e})(o.GooglePlay||(o.GooglePlay={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){(function(a){(function($){$.SUBSCRIPTION_NO_LONGER_AVAILABLE="subscriptionPurchaseNoLongerAvailable",$.PURCHASE_TOKEN_NO_LONGER_VALID="purchaseTokenNoLongerValid"})(a.GoogleErrorReason||(a.GoogleErrorReason={})),function($){$[$.GONE=410]="GONE"}(a.ErrorCode||(a.ErrorCode={}))})(s.PublisherAPI||(s.PublisherAPI={}))})(o.GooglePlay||(o.GooglePlay={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){const a=o.Platform.TEST;let $=[];function j(tt){tt.products.forEach(nt=>{var it,rt,st,ot;const at=$.find(ct=>nt.id===ct.id),lt={id:nt.id,purchaseDate:(it=tt.purchaseDate)===null||it===void 0?void 0:it.getTime(),expiryDate:(rt=tt.expirationDate)===null||rt===void 0?void 0:rt.getTime(),lastRenewalDate:(st=tt.lastRenewalDate)===null||st===void 0?void 0:st.getTime(),renewalIntent:tt.renewalIntent,renewalIntentChangeDate:(ot=tt.renewalIntentChangeDate)===null||ot===void 0?void 0:ot.getTime()};at?Object.assign(at,lt):$.push(lt)})}class _e{constructor(nt){this.id=o.Platform.TEST,this.name="Test",this.ready=!1,this.products=[],this.receipts=[],this.supportsParallelLoading=!0,this.context=nt,this.log=nt.log.child("Test")}get isSupported(){return!0}initialize(){return __awaiter(this,void 0,void 0,function*(){})}loadReceipts(){return __awaiter(this,void 0,void 0,function*(){return new Promise(nt=>{setTimeout(()=>{this.context.listener.receiptsReady(o.Platform.TEST),nt(this.receipts)},600)})})}loadProducts(nt){return __awaiter(this,void 0,void 0,function*(){return nt.map(it=>{if(!s.testProductsArray.find(ot=>ot.id===it.id&&ot.type===it.type))return et(o.ErrorCode.PRODUCT_NOT_AVAILABLE,"This product is not available",it.id);const rt=this.products.find(ot=>ot.id===it.id);if(rt)return rt;it.id===s.testProducts.PAID_SUBSCRIPTION_ACTIVE.id&&setTimeout(()=>{this.reportActiveSubscription()},500);const st=s.initTestProduct(it.id,this.context.apiDecorators);return st?(this.products.push(st),this.context.listener.productsUpdated(o.Platform.TEST,[st]),st):et(o.ErrorCode.PRODUCT_NOT_AVAILABLE,"Could not load this product",it.id)})})}order(nt){return __awaiter(this,void 0,void 0,function*(){if(nt.id.indexOf("-fail-")>0)return et(o.ErrorCode.PURCHASE,"Purchase failed.",nt.productId);const it=this.products.find(at=>at.id===nt.productId);if(!o.Internal.LocalReceipts.canPurchase(this.receipts,it))return et(o.ErrorCode.PURCHASE,"Product already owned",nt.productId);const rt=prompt(`Do you want to purchase ${nt.productId} for ${nt.pricingPhases[0].price}?
Enter "Y" to confirm.
Enter "E" to fail with an error.Anything else to cancel.`);if((rt==null?void 0:rt.toUpperCase())==="E")return et(o.ErrorCode.PURCHASE,"Purchase failed",nt.productId);if((rt==null?void 0:rt.toUpperCase())!=="Y")return et(o.ErrorCode.PAYMENT_CANCELLED,"Purchase flow has been cancelled by the user",nt.productId);const st=new o.Receipt(a,this.context.apiDecorators),ot=new o.Transaction(a,st,this.context.apiDecorators);st.transactions=[ot],ot.products=[{id:nt.productId,offerId:nt.id}],ot.state=o.TransactionState.APPROVED,ot.purchaseDate=new Date,ot.transactionId=nt.productId+"-"+new Date().getTime(),ot.isAcknowledged=!1,nt.productType===o.ProductType.PAID_SUBSCRIPTION&&(ot.expirationDate=new Date(+new Date+6048e5),ot.renewalIntent=o.RenewalIntent.RENEW),j(ot),this.receipts.push(st),this.context.listener.receiptsUpdated(o.Platform.TEST,[st])})}finish(nt){return new Promise(it=>{setTimeout(()=>{nt.state=o.TransactionState.FINISHED,nt.isAcknowledged=!0,j(nt);const rt=this.products.find(ot=>nt.products[0].id===ot.id);(rt==null?void 0:rt.type)===o.ProductType.CONSUMABLE&&(nt.isConsumed=!0);const st=this.receipts.filter(ot=>ot.hasTransaction(nt));this.context.listener.receiptsUpdated(a,st),it(void 0)},500)})}receiptValidationBody(nt){return __awaiter(this,void 0,void 0,function*(){})}handleReceiptValidationResponse(nt,it){return __awaiter(this,void 0,void 0,function*(){})}requestPayment(nt,it){var rt;return __awaiter(this,void 0,void 0,function*(){yield o.Utils.asyncDelay(100);const st=prompt(`Mock payment of ${((rt=nt.amountMicros)!==null&&rt!==void 0?rt:0)/1e6} ${nt.currency}. Enter "Y" to confirm. Enter "E" to trigger an error.`);if((st==null?void 0:st.toUpperCase())==="E")return et(o.ErrorCode.PAYMENT_NOT_ALLOWED,"Payment not allowed",null);if((st==null?void 0:st.toUpperCase())!=="Y")return;const ot=new o.Receipt(a,this.context.apiDecorators),at=new o.Transaction(o.Platform.TEST,ot,this.context.apiDecorators);return at.purchaseDate=new Date,at.products=nt.items.filter(lt=>lt).map(lt=>({id:(lt==null?void 0:lt.id)||""})),at.state=o.TransactionState.APPROVED,at.transactionId="payment-"+new Date().getTime(),at.amountMicros=nt.amountMicros,at.currency=nt.currency,ot.transactions=[at],this.receipts.push(ot),setTimeout(()=>{this.context.listener.receiptsUpdated(a,[ot])},400),at})}manageSubscriptions(){return __awaiter(this,void 0,void 0,function*(){alert("Pseudo subscription management interface. Close it when you are done.")})}manageBilling(){return __awaiter(this,void 0,void 0,function*(){alert("Pseudo billing management interface. Close it when you are done.")})}reportActiveSubscription(){if(this.receipts.find(at=>at.transactions[0].transactionId===st(1)))return;const nt=2*6e4,it=new o.Receipt(a,this.context.apiDecorators),rt=at=>{var lt,ct;const ht=new o.Transaction(a,it,this.context.apiDecorators);ht.products=[{id:s.testProducts.PAID_SUBSCRIPTION_ACTIVE.id,offerId:s.testProducts.PAID_SUBSCRIPTION_ACTIVE.extra.offerId}],ht.state=o.TransactionState.APPROVED,ht.transactionId=st(at),ht.isAcknowledged=at==1,ht.renewalIntent=o.RenewalIntent.RENEW;const dt=+(((ct=(lt=it==null?void 0:it.transactions)===null||lt===void 0?void 0:lt[0])===null||ct===void 0?void 0:ct.purchaseDate)||new Date);return ht.purchaseDate=new Date(dt),ht.lastRenewalDate=new Date(dt+nt*(at-1)),ht.expirationDate=new Date(dt+nt*at),j(ht),ht};it.transactions.push(rt(1)),this.receipts.push(it),this.context.listener.receiptsUpdated(o.Platform.TEST,[it]);function st(at){return"test-active-subscription-transaction-"+at}let ot=1;setInterval(()=>{this.log.info("auto-renewing the mock subscription"),ot+=1,it.transactions.push(rt(ot)),this.context.listener.receiptsUpdated(o.Platform.TEST,[it])},nt)}static verify(nt,it){setTimeout(()=>{var rt,st;it({receipt:nt,payload:{ok:!0,data:{id:(st=(rt=nt.transactions[0])===null||rt===void 0?void 0:rt.products[0])===null||st===void 0?void 0:st.id,latest_receipt:!0,transaction:{type:"test"},collection:$}}})},500)}checkSupport(nt){return!0}restorePurchases(){return __awaiter(this,void 0,void 0,function*(){})}}s.Adapter=_e;function et(tt,nt,it){return o.storeError(tt,nt,o.Platform.TEST,it)}})(o.Test||(o.Test={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){const a=o.Platform.TEST;s.testProducts={CONSUMABLE:{platform:a,id:"test-consumable",type:o.ProductType.CONSUMABLE},CONSUMABLE_FAILING:{platform:a,id:"test-consumable-fail",type:o.ProductType.CONSUMABLE},NON_CONSUMABLE:{platform:a,id:"test-non-consumable",type:o.ProductType.NON_CONSUMABLE},PAID_SUBSCRIPTION:{platform:a,id:"test-subscription",type:o.ProductType.PAID_SUBSCRIPTION},PAID_SUBSCRIPTION_ACTIVE:{platform:a,id:"test-subscription-active",type:o.ProductType.PAID_SUBSCRIPTION,extra:{offerId:"test-paid-subscription-active-offer1"}}},s.testProductsArray=o.Utils.objectValues(s.testProducts);function $(j,_e){const et=Object.keys(s.testProducts).find(nt=>s.testProducts[nt]&&s.testProducts[nt].id===j);if(!et)return;const tt=new o.Product(s.testProducts[et],_e);switch(et){case"CONSUMABLE":tt.title="Test Consumable",tt.description="A consumable product that you can purchase",tt.addOffer(new o.Offer({id:"test-consumable-offer1",pricingPhases:[{price:"$4.99",currency:"USD",priceMicros:499e4,paymentMode:o.PaymentMode.UP_FRONT,recurrenceMode:o.RecurrenceMode.NON_RECURRING}],product:tt},_e));break;case"CONSUMABLE_FAILING":tt.title="Failing Consumable",tt.description="A consumable product that cannot be purchased",tt.addOffer(new o.Offer({id:"test-consumable-fail-offer1",pricingPhases:[{price:"$1.99",currency:"USD",priceMicros:199e4,paymentMode:o.PaymentMode.UP_FRONT,recurrenceMode:o.RecurrenceMode.NON_RECURRING}],product:tt},_e));break;case"NON_CONSUMABLE":tt.title="Non Consumable",tt.description="A non consumable product",tt.addOffer(new o.Offer({id:"test-non-consumable-offer1",pricingPhases:[{price:"$9.99",currency:"USD",priceMicros:999e4,paymentMode:o.PaymentMode.UP_FRONT,recurrenceMode:o.RecurrenceMode.NON_RECURRING}],product:tt},_e));break;case"PAID_SUBSCRIPTION":tt.title="A subscription product",tt.description="An auto-renewing paid subscription with a trial period",tt.addOffer(new o.Offer({id:"test-paid-subscription-offer1",product:tt,pricingPhases:[{price:"$0.00",currency:"USD",priceMicros:0,paymentMode:o.PaymentMode.FREE_TRIAL,recurrenceMode:o.RecurrenceMode.FINITE_RECURRING,billingCycles:3,billingPeriod:"P1W"},{price:"$4.99",currency:"USD",priceMicros:499e4,paymentMode:o.PaymentMode.PAY_AS_YOU_GO,recurrenceMode:o.RecurrenceMode.INFINITE_RECURRING,billingPeriod:"P1M"}]},_e));break;case"PAID_SUBSCRIPTION_ACTIVE":tt.title="An owned subscription product",tt.description="An active paid subscription",tt.addOffer(new o.Offer({id:s.testProducts.PAID_SUBSCRIPTION_ACTIVE.extra.offerId,product:tt,pricingPhases:[{price:"$19.99",currency:"USD",priceMicros:1999e4,paymentMode:o.PaymentMode.PAY_AS_YOU_GO,recurrenceMode:o.RecurrenceMode.INFINITE_RECURRING,billingPeriod:"P1Y"}]},_e));break;default:const nt=et;throw new Error(`Unhandled enum case: ${nt}`)}return tt}s.initTestProduct=$})(o.Test||(o.Test={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){class a{constructor(){this.id=o.Platform.WINDOWS_STORE,this.name="WindowsStore",this.ready=!1,this.supportsParallelLoading=!1,this.products=[],this.receipts=[]}initialize(){return __awaiter(this,void 0,void 0,function*(){})}get isSupported(){return!1}loadProducts(_e){return __awaiter(this,void 0,void 0,function*(){return _e.map(et=>$(o.ErrorCode.PRODUCT_NOT_AVAILABLE,"TODO",et.id))})}loadReceipts(){return __awaiter(this,void 0,void 0,function*(){return[]})}order(_e){return __awaiter(this,void 0,void 0,function*(){return $(o.ErrorCode.UNKNOWN,"TODO: Not implemented",_e.productId)})}finish(_e){return __awaiter(this,void 0,void 0,function*(){return $(o.ErrorCode.UNKNOWN,"TODO: Not implemented",null)})}handleReceiptValidationResponse(_e,et){return __awaiter(this,void 0,void 0,function*(){})}receiptValidationBody(_e){return __awaiter(this,void 0,void 0,function*(){})}requestPayment(_e,et){return __awaiter(this,void 0,void 0,function*(){return $(o.ErrorCode.UNKNOWN,"requestPayment not supported",null)})}manageSubscriptions(){return __awaiter(this,void 0,void 0,function*(){return $(o.ErrorCode.UNKNOWN,"manageSubscriptions not supported",null)})}manageBilling(){return __awaiter(this,void 0,void 0,function*(){return $(o.ErrorCode.UNKNOWN,"manageBilling not supported",null)})}checkSupport(_e){return!1}restorePurchases(){return __awaiter(this,void 0,void 0,function*(){})}}s.Adapter=a;function $(j,_e,et){return o.storeError(j,_e,o.Platform.WINDOWS_STORE,et)}})(o.WindowsStore||(o.WindowsStore={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){let a;(function(_e){_e.HTTP_REQUEST_TIMEOUT=408})(a=s.Ajax||(s.Ajax={}));function $(_e,et){if(typeof window<"u"&&window.cordova&&window.cordova.plugin&&window.cordova.plugin.http)return j(_e,et);var tt=function(){},nt=new XMLHttpRequest;et.timeout&&(nt.timeout=et.timeout,nt.ontimeout=function(){_e.warn("ajax -> request to "+et.url+" timeout"),s.callExternal(_e,"ajax.error",et.error,a.HTTP_REQUEST_TIMEOUT,"Timeout")}),nt.open(et.method||"POST",et.url,!0),nt.onreadystatechange=function(){try{nt.readyState===4&&(nt.status===200?s.callExternal(_e,"ajax.success",et.success,JSON.parse(nt.responseText)):(_e.warn("ajax -> request to "+et.url+" failed with status "+nt.status+" ("+nt.statusText+")"),s.callExternal(_e,"ajax.error",et.error,nt.status,nt.statusText)))}catch(rt){_e.warn("ajax -> request to "+et.url+" failed with an exception: "+rt.message),et.error&&et.error(417,rt.message,null)}nt.readyState===4&&s.callExternal(_e,"ajax.done",tt)};const it=et.customHeaders;return it&&Object.keys(it).forEach(function(rt){_e.debug("ajax -> adding custom header: "+rt),nt.setRequestHeader(rt,it[rt])}),nt.setRequestHeader("Accept","application/json"),_e.debug("ajax -> send request to "+et.url),et.data?(nt.setRequestHeader("Content-Type","application/json;charset=UTF-8"),nt.send(JSON.stringify(et.data))):nt.send(),{done:function(rt){return tt=rt,this}}}s.ajax=$;function j(_e,et){let tt=function(){};const nt={method:(et.method||"get").toLowerCase(),data:et.data,serializer:"json"};et.customHeaders&&(_e.debug("ajax[http] -> adding custom headers: "+JSON.stringify(et.customHeaders)),nt.headers=et.customHeaders),_e.debug("ajax[http] -> send request to "+et.url);const it=rt=>{try{rt.status==200?s.callExternal(_e,"ajax.success",et.success,JSON.parse(rt.data)):(_e.warn("ajax[http] -> request to "+et.url+" failed with status "+rt.status+" ("+rt.error+")"),s.callExternal(_e,"ajax.error",et.error,rt.status,rt.error))}catch(st){_e.warn("ajax[http] -> request to "+et.url+" failed with an exception: "+st.message),et.error&&s.callExternal(_e,"ajax.error",et.error,417,st.message)}s.callExternal(_e,"ajax.done",tt)};return window.cordova.plugin.http.sendRequest(et.url,nt,it,it),{done:function(rt){return tt=rt,this}}}})(o.Utils||(o.Utils={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){function a($,j,_e,...et){try{const tt=Array.prototype.slice.call(arguments,3);_e&&_e.apply(o.store,tt)}catch(tt){$.logCallbackException(j,tt)}}s.callExternal=a})(o.Utils||(o.Utils={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){function a(_e,et){return setTimeout(_e,et)}s.delay=a;function $(_e,et){let tt=null;const nt=function(rt,st){tt=null,_e()};return function(){tt&&window.clearTimeout(tt),tt=setTimeout(nt,et)}}s.debounce=$;function j(_e){return new Promise(et=>setTimeout(et,_e))}s.asyncDelay=j})(o.Utils||(o.Utils={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){function a(j){switch($(j)){case o.RecurrenceMode.FINITE_RECURRING:return`${j.billingCycles}x ${s.formatDurationEN(j.billingPeriod)}`;case o.RecurrenceMode.NON_RECURRING:return"for "+s.formatDurationEN(j.billingPeriod);default:return"every "+s.formatDurationEN(j.billingPeriod,{omitOne:!0})}}s.formatBillingCycleEN=a;function $(j){var _e;const et=(_e=j.billingCycles)!==null&&_e!==void 0?_e:0;if(j.recurrenceMode===o.RecurrenceMode.FINITE_RECURRING){if(et==1)return o.RecurrenceMode.NON_RECURRING;if(et<=0)return o.RecurrenceMode.INFINITE_RECURRING}return j.recurrenceMode}})(o.Utils||(o.Utils={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){function a($,j){if(!$)return"";const _e=$.length,et=$.slice(1,_e-1);if(et==="1")return j!=null&&j.omitOne?{D:"day",W:"week",M:"month",Y:"year"}[$[_e-1]]||$[_e-1]:{D:"1 day",W:"1 week",M:"1 month",Y:"1 year"}[$[_e-1]]||$[_e-1];{const tt={D:"days",W:"weeks",M:"months",Y:"years"}[$[_e-1]]||$[_e-1];return`${et} ${tt}`}}s.formatDurationEN=a})(o.Utils||(o.Utils={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){const a="0123456789abcdef".split("");function $(ct){for(var ht="",dt=0;dt<4;dt++)ht+=a[ct>>8*dt+4&15]+a[ct>>8*dt&15];return ht}function j(ct){const ht=[];for(var dt=ct.length,ut=0;ut<dt;ut++)ht.push($(ct[ut]));return ht.join("")}function _e(ct,ht){return ct+ht&4294967295}function et(ct,ht,dt,ut,pt,ft,mt){function gt(St,Nt,Rt){return _e(St<<Nt|St>>>32-Nt,Rt)}function bt(St,Nt,Rt,Ft){return _e(_e(Nt,St),_e(Rt,Ft))}return gt(bt(ct,ht,ut,ft),pt,dt)}var tt=function(ct,ht,dt,ut,pt,ft,mt,gt){return et(dt&ut|~dt&pt,ht,dt,ft,mt,gt)},nt=function(ct,ht,dt,ut,pt,ft,mt,gt){return et(dt&pt|ut&~pt,ht,dt,ft,mt,gt)},it=function(ct,ht,dt,ut,pt,ft,mt,gt){return et(dt^ut^pt,ht,dt,ft,mt,gt)},rt=function(ct,ht,dt,ut,pt,ft,mt,gt){return et(ut^(dt|~pt),ht,dt,ft,mt,gt)};function st(ct,ht,dt){dt||(dt=_e);let ut=ct[0],pt=ct[1],ft=ct[2],mt=ct[3];var gt=tt.bind(null,dt);ut=gt(ut,pt,ft,mt,ht[0],7,-680876936),mt=gt(mt,ut,pt,ft,ht[1],12,-389564586),ft=gt(ft,mt,ut,pt,ht[2],17,606105819),pt=gt(pt,ft,mt,ut,ht[3],22,-1044525330),ut=gt(ut,pt,ft,mt,ht[4],7,-176418897),mt=gt(mt,ut,pt,ft,ht[5],12,1200080426),ft=gt(ft,mt,ut,pt,ht[6],17,-1473231341),pt=gt(pt,ft,mt,ut,ht[7],22,-45705983),ut=gt(ut,pt,ft,mt,ht[8],7,1770035416),mt=gt(mt,ut,pt,ft,ht[9],12,-1958414417),ft=gt(ft,mt,ut,pt,ht[10],17,-42063),pt=gt(pt,ft,mt,ut,ht[11],22,-1990404162),ut=gt(ut,pt,ft,mt,ht[12],7,1804603682),mt=gt(mt,ut,pt,ft,ht[13],12,-40341101),ft=gt(ft,mt,ut,pt,ht[14],17,-1502002290),pt=gt(pt,ft,mt,ut,ht[15],22,1236535329);var bt=nt.bind(null,dt);ut=bt(ut,pt,ft,mt,ht[1],5,-165796510),mt=bt(mt,ut,pt,ft,ht[6],9,-1069501632),ft=bt(ft,mt,ut,pt,ht[11],14,643717713),pt=bt(pt,ft,mt,ut,ht[0],20,-373897302),ut=bt(ut,pt,ft,mt,ht[5],5,-701558691),mt=bt(mt,ut,pt,ft,ht[10],9,38016083),ft=bt(ft,mt,ut,pt,ht[15],14,-660478335),pt=bt(pt,ft,mt,ut,ht[4],20,-405537848),ut=bt(ut,pt,ft,mt,ht[9],5,568446438),mt=bt(mt,ut,pt,ft,ht[14],9,-1019803690),ft=bt(ft,mt,ut,pt,ht[3],14,-187363961),pt=bt(pt,ft,mt,ut,ht[8],20,1163531501),ut=bt(ut,pt,ft,mt,ht[13],5,-1444681467),mt=bt(mt,ut,pt,ft,ht[2],9,-51403784),ft=bt(ft,mt,ut,pt,ht[7],14,1735328473),pt=bt(pt,ft,mt,ut,ht[12],20,-1926607734);var St=it.bind(null,dt);ut=St(ut,pt,ft,mt,ht[5],4,-378558),mt=St(mt,ut,pt,ft,ht[8],11,-2022574463),ft=St(ft,mt,ut,pt,ht[11],16,1839030562),pt=St(pt,ft,mt,ut,ht[14],23,-35309556),ut=St(ut,pt,ft,mt,ht[1],4,-1530992060),mt=St(mt,ut,pt,ft,ht[4],11,1272893353),ft=St(ft,mt,ut,pt,ht[7],16,-155497632),pt=St(pt,ft,mt,ut,ht[10],23,-1094730640),ut=St(ut,pt,ft,mt,ht[13],4,681279174),mt=St(mt,ut,pt,ft,ht[0],11,-358537222),ft=St(ft,mt,ut,pt,ht[3],16,-722521979),pt=St(pt,ft,mt,ut,ht[6],23,76029189),ut=St(ut,pt,ft,mt,ht[9],4,-640364487),mt=St(mt,ut,pt,ft,ht[12],11,-421815835),ft=St(ft,mt,ut,pt,ht[15],16,530742520),pt=St(pt,ft,mt,ut,ht[2],23,-995338651);var Nt=rt.bind(null,dt);ut=Nt(ut,pt,ft,mt,ht[0],6,-198630844),mt=Nt(mt,ut,pt,ft,ht[7],10,1126891415),ft=Nt(ft,mt,ut,pt,ht[14],15,-1416354905),pt=Nt(pt,ft,mt,ut,ht[5],21,-57434055),ut=Nt(ut,pt,ft,mt,ht[12],6,1700485571),mt=Nt(mt,ut,pt,ft,ht[3],10,-1894986606),ft=Nt(ft,mt,ut,pt,ht[10],15,-1051523),pt=Nt(pt,ft,mt,ut,ht[1],21,-2054922799),ut=Nt(ut,pt,ft,mt,ht[8],6,1873313359),mt=Nt(mt,ut,pt,ft,ht[15],10,-30611744),ft=Nt(ft,mt,ut,pt,ht[6],15,-1560198380),pt=Nt(pt,ft,mt,ut,ht[13],21,1309151649),ut=Nt(ut,pt,ft,mt,ht[4],6,-145523070),mt=Nt(mt,ut,pt,ft,ht[11],10,-1120210379),ft=Nt(ft,mt,ut,pt,ht[2],15,718787259),pt=Nt(pt,ft,mt,ut,ht[9],21,-343485551),ct[0]=dt(ut,ct[0]),ct[1]=dt(pt,ct[1]),ct[2]=dt(ft,ct[2]),ct[3]=dt(mt,ct[3])}function ot(ct){for(var ht=[],dt=0;dt<64;dt+=4)ht[dt>>2]=ct.charCodeAt(dt)+(ct.charCodeAt(dt+1)<<8)+(ct.charCodeAt(dt+2)<<16)+(ct.charCodeAt(dt+3)<<24);return ht}function at(ct,ht){let dt;const ut=ct.length,pt=[1732584193,-271733879,-1732584194,271733878];for(dt=64;dt<=ut;dt+=64)st(pt,ot(ct.substring(dt-64,dt)),ht);const ft=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],mt=(ct=ct.substring(dt-64)).length;let gt;for(gt=0;gt<mt;gt++)ft[gt>>2]|=ct.charCodeAt(gt)<<(gt%4<<3);if(ft[gt>>2]|=128<<(gt%4<<3),gt>55)for(st(pt,ft,ht),gt=16;gt--;)ft[gt]=0;return ft[14]=8*ut,st(pt,ft,ht),pt}function lt(ct){if(!ct)return"";let ht;return j(at("hello"))!=="5d41402abc4b2a76b9719d911017c592"&&(ht=function(dt,ut){const pt=(65535&dt)+(65535&ut);return(dt>>16)+(ut>>16)+(pt>>16)<<16|65535&pt}),j(at(ct,ht))}s.md5=lt})(o.Utils||(o.Utils={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){function a(){var $,j,_e;return!(($=window.cordova)===null||$===void 0)&&$.platformId?(j=window.cordova)===null||j===void 0?void 0:j.platformId:!((_e=window.Capacitor)===null||_e===void 0)&&_e.getPlatform?window.Capacitor.getPlatform():"web"}s.platformId=a})(o.Utils||(o.Utils={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){function a(j,_e,et,tt,nt){return function(it){$(j,_e,et,it,tt,nt)}}s.safeCallback=a;function $(j,_e,et,tt,nt,it){et&&(nt||(nt=et.name||"#"+s.md5(et.toString())),setTimeout(()=>{try{j.debug(`Calling callback: type=${_e} name=${nt} reason=${it}`),et(tt)}catch(rt){j.error(`Error in callback: type=${_e} name=${nt} reason=${it}`),j.debug(et.toString());const st=rt;"message"in st&&j.error(st.message),"fileName"in rt&&j.error("in "+rt.fileName+":"+rt.lineNumber),"stack"in st&&j.error(st.stack)}},0))}s.safeCall=$})(o.Utils||(o.Utils={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){function a(){return window.crypto||window.msCrypto}function $(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,function(j){return(j^a().getRandomValues(new Uint8Array(1))[0]&15>>j/4).toString(16)})}s.uuidv4=$})(o.Utils||(o.Utils={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){(function(a){function $(tt){return Object.prototype.toString.call(tt)==="[object Array]"}function j(tt){return Object.prototype.toString.call(tt)==="[object Object]"}function _e(tt){return typeof tt.validator_privacy_policy=="string"?tt.validator_privacy_policy.split(","):$(tt.validator_privacy_policy)?tt.validator_privacy_policy:["analytics","support","fraud"]}function et(tt){const nt=_e(tt);function it(lt){return nt.indexOf(lt)>=0}const rt={plugin:"cordova-plugin-purchase/"+o.PLUGIN_VERSION},st=window,ot=j(st.device)?st.device:{};if(it("analytics")||it("support")){const lt=st.Ionic||st.ionic;lt&&lt.version&&(rt.ionic=lt.version),ot.cordova&&(rt.cordova=ot.cordova),ot.model&&(rt.model=ot.model),ot.platform&&(rt.platform=ot.platform),ot.version&&(rt.version=ot.version),ot.manufacturer&&(rt.manufacturer=ot.manufacturer)}if(it("tracking")&&(ot.serial&&(rt.serial=ot.serial),ot.uuid&&(rt.uuid=ot.uuid)),ot.isVirtual&&(rt.isVirtual=ot.isVirtual),it("fraud")){var at="";ot.serial?at="serial:"+ot.serial:ot.uuid?at="uuid:"+ot.uuid:(ot.model&&(at+="/"+ot.model),ot.manufacturer&&(at="/"+ot.manufacturer)),at&&(rt.fingerprint=o.Utils.md5(at))}return rt}a.getDeviceInfo=et})(s.Internal||(s.Internal={}))})(o.Validator||(o.Validator={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){(function(s){s.Request||(s.Request={})})(o.Validator||(o.Validator={}))})(CdvPurchase$1||(CdvPurchase$1={}));var CdvPurchase$1;(function(o){class s{constructor($,j,_e){var et;this.className="VerifiedReceipt",this.id=j.id,this.sourceReceipt=$,this.collection=(et=j.collection)!==null&&et!==void 0?et:[],this.latestReceipt=j.latest_receipt,this.nativeTransactions=[j.transaction],this.warning=j.warning,this.validationDate=j.date?new Date(j.date):new Date,Object.defineProperty(this,"raw",{enumerable:!1,get(){return j}}),Object.defineProperty(this,"finish",{enumerable:!1,get(){return()=>_e.finish(this)}})}get platform(){return this.sourceReceipt.platform}get raw(){return{}}set($,j){var _e;this.id=j.id,this.sourceReceipt=$,this.collection=(_e=j.collection)!==null&&_e!==void 0?_e:[],this.latestReceipt=j.latest_receipt,this.nativeTransactions=[j.transaction],this.warning=j.warning}finish(){return __awaiter(this,void 0,void 0,function*(){})}}o.VerifiedReceipt=s})(CdvPurchase$1||(CdvPurchase$1={}));const AlertModalController=()=>{var j;const{onDismiss:o=()=>{},...s}=useSelector(_e=>_e.alertModal),a=useDispatch();function $(){a(closeAlertModal()),o()}return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AlertModal,{...s,onDismiss:$}),(j=s.extraAlertModals)==null?void 0:j.map(_e=>{function et(){a(closeExtraAlertModal(_e.extraAlertIndex))}return reactExports.createElement(AlertModal,{..._e,key:_e.extraAlertIndex,onDismiss:et})})]})},Backdrop=({contentRef:o,onClick:s,show:a,contained:$=!1,invisible:j})=>{function _e(et){const tt=et.target;o.current&&!o.current.contains(tt)&&(s==null||s())}return jsxRuntimeExports.jsx("div",{className:clsx(!$&&clsx("fixed","w-screen","h-screen","top-0","left-0"),$&&"absolute inset-0",!a&&"pointer-events-none",!j&&"bg-primary-100",a?"opacity-30":"opacity-0","transition-all duration-220 ease-in-out"),onClick:_e})};function useDragHandle({enabled:o,onReleaseAtHalfHeight:s}){const a=reactExports.useRef(null),[$,j]=reactExports.useState(0),[_e,et]=reactExports.useState(!1),[tt,nt]=reactExports.useState(0),[it,rt]=reactExports.useState(0),[st,ot]=reactExports.useState(0);reactExports.useEffect(()=>{const ut=mt=>j(mt.clientY),pt=mt=>j(mt.touches[0].clientY);if(_e)return document.addEventListener("mousemove",ut),document.addEventListener("touchmove",pt),document.addEventListener("mouseup",()=>et(!1)),document.addEventListener("touchup",()=>et(!1)),()=>{document.removeEventListener("mousemove",ut),document.removeEventListener("touchmove",pt),document.removeEventListener("mouseup",()=>et(!1)),document.removeEventListener("touchup",()=>et(!1))};$>st+it/2&&s(),j(0)},[_e]);function at(ut){var ft,mt,gt;const pt=ut-(((ft=a.current)==null?void 0:ft.offsetTop)??0);nt(pt),et(!0),rt(((mt=a.current)==null?void 0:mt.clientHeight)??0),ot(((gt=a.current)==null?void 0:gt.offsetTop)??0)}function lt(ut){at(ut.clientY)}function ct(ut){at(ut.touches[0].clientY)}function ht(){et(!1)}const dt=reactExports.useCallback(()=>{j(0),et(!1)},[]);return reactExports.useEffect(()=>{o||(dt(),nt(0),rt(0),ot(0))},[o,dt]),{dragging:_e,mouseY:$,reset:dt,onGrabHandle:at,ref:a,dragOffset:tt,handleProps:{onMouseDown:lt,onMouseUp:ht,onTouchStart:ct,onTouchEnd:ht}}}const MAX_HEIGHT="90vh",MAX_WIDTH=600,BOTTOM_SHEET_ID="bottom-sheet",BottomSheet=({"data-test":o,backdrop:s=!0,show:a=!1,aboveNav:$=!1,parentId:j,onClose:_e,content:et,backdropClickOverride:tt,isInContainer:nt=!1,hasHandle:it=!0,backdropDismiss:rt=!0,zIndex:st=40})=>{const[ot,at]=reactExports.useState(a);function lt(){at(!1),_e==null||_e()}const{mouseY:ct,dragging:ht,handleProps:dt,ref:ut,dragOffset:pt}=useDragHandle({enabled:ot,onReleaseAtHalfHeight:lt});reactExports.useEffect(()=>at(a),[a]);const ft=()=>{if(rt){if(tt)return tt();lt()}};return jsxRuntimeExports.jsx(TransitionComponent,{show:ot,children:({isClosing:mt})=>jsxRuntimeExports.jsxs("div",{className:clsx(nt?["absolute","h-full"]:[j?"sticky":"fixed","h-screen"],$?"bottom-[90px]":"bottom-0",s||"pointer-events-none",j?"inset-0":"w-screen","max-w-screen","max-h-screen"),style:{zIndex:st},children:[jsxRuntimeExports.jsx(Backdrop,{contentRef:ut,onClick:ft,show:s&&!mt,contained:!0}),jsxRuntimeExports.jsx("div",{ref:ut,id:BOTTOM_SHEET_ID,"data-test":o||APP_TEST_IDS.BOTTOM_SHEET.NEW_SHEET,className:clsx("z-10","absolute","bottom-0","left-1/2","transform -translate-x-1/2",!ht&&"transition-all duration-220 ease-in-out","pointer-events-auto","w-full"),style:{maxWidth:MAX_WIDTH,maxHeight:mt?0:`min(calc(100vh - ${ct-pt}px), ${MAX_HEIGHT})`},children:jsxRuntimeExports.jsxs("div",{className:clsx("bg-white","h-full","w-full","flex flex-col","rounded-t-2xl","items-center","py-2","relative","transform","z-0"),style:{maxHeight:MAX_HEIGHT,boxShadow:"1.79604px -63.9748px 48px rgba(0, 15, 49, 0.04), 0.909243px -32.3872px 20.925px rgba(0, 15, 49, 0.027), 0.359207px -12.795px 7.8px rgba(0, 15, 49, 0.02), 0.0785766px -2.7989px 2.775px rgba(0, 15, 49, 0.013)"},children:[it&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{...dt,className:clsx("absolute","left-0 right-0 top-0","h-10","z-10",ht?"cursor-grabbing":"cursor-grab")}),jsxRuntimeExports.jsx("div",{className:clsx("w-12","py-0.5","my-2","bg-gray-900","rounded-full")})]}),jsxRuntimeExports.jsx("div",{className:clsx("flex flex-col","h-full","w-full","overflow-hidden","relative"),children:et})]})})]})})},BottomSheetPortaled=({children:o,container:s=document.body,...a})=>reactDomExports.createPortal(jsxRuntimeExports.jsx(BottomSheet,{...a,content:o}),s),BottomSheetController=()=>{const[o,s]=reactExports.useState(null),{onClose:a,...$}=useSelector(nt=>nt.newBottomSheet),{parentId:j,show:_e}=$,et=useDispatch(),tt=reactExports.useCallback(()=>{et(closeNewBottomSheet()),a==null||a()},[et,a]);return reactExports.useEffect(()=>{if(!j)return s(null);s(document.getElementById(j))},[j,_e]),reactExports.useEffect(()=>{if(!o||!_e)return;const nt=document.body,it=new MutationObserver(rt=>{rt.filter(st=>st.type==="childList").forEach(st=>{const ot=Array.from(st.removedNodes);(ot.includes(o)||ot.some(lt=>lt.contains(o)))&&tt()})});return nt&&it.observe(nt,{attributes:!1,childList:!0,subtree:!0}),()=>{it.disconnect()}},[tt,o,_e]),o?jsxRuntimeExports.jsx(BottomSheetPortaled,{...$,onClose:tt,container:o,children:$.content}):jsxRuntimeExports.jsx(BottomSheet,{...$,onClose:tt})};function showIonBottomSheet(o){return{type:SHOW_ION_BOTTOM_SHEET,payload:o}}const closeIonBottomSheet=()=>({type:CLOSE_ION_BOTTOM_SHEET}),IonBottomSheet=()=>{const{isOpen:o,haveFixedHeight:s=!1,disablePadding:a=!1,sheetType:$=null,componentProps:j={},swipeToClose:_e=!0,canDismiss:et=!0,backdropDismiss:tt=!0,onBackdropDismiss:nt=()=>{}}=useSelector(ut=>ut.ionBottomSheet),it=useDispatch(),rt=reactExports.useRef(null),st=$,ot=useSelector(ut=>{var pt;return(pt=ut.previewPage)==null?void 0:pt.step}),[at,lt]=reactExports.useState(!1);reactExports.useEffect(function(){const ft=new URLSearchParams(window.location.search).get("viewingAs");lt(ft==="1")},[]),reactExports.useEffect(()=>{var ut,pt;o&&((ut=rt.current)==null||ut.present()),o||(pt=rt.current)==null||pt.dismiss()},[it,o]);const ct=reactExports.useCallback(()=>{o&&nt()},[o,nt]);function ht(){it(closeIonBottomSheet())}const dt=at&&ot===2;return jsxRuntimeExports.jsx(IonModal,{ref:rt,backdropDismiss:tt&&!dt,canDismiss:et&&!dt,swipeToClose:_e,breakpoints:[0,1],initialBreakpoint:1,onWillDismiss:ut=>{ht(),ct()},"data-test":APP_TEST_IDS.BOTTOM_SHEET.SHEET,style:{"--height":`${s?"91.25vh":"fit-content-max"}`,"--border-radius":"20px 20px 0 0"},children:s?jsxRuntimeExports.jsx(st,{...j,closeSheet:ht}):jsxRuntimeExports.jsx("div",{className:clsx(!a&&"px-4 py-9"),children:jsxRuntimeExports.jsx(st,{...j,closeSheet:ht})})})},Modal=()=>{const{isOpen:o,modalType:s=null,componentProps:a,onBackdropDismiss:$,className:j,onWillDismiss:_e,backdropDismiss:et}=useSelector(ot=>ot.globalModal),tt=useDispatch(),nt=reactExports.useRef(null),it=reactExports.useMemo(()=>s,[s]);reactExports.useEffect(()=>{var ot,at;if(o)return void((ot=nt.current)==null?void 0:ot.present());(at=nt.current)==null||at.dismiss()},[o]);const rt=reactExports.useCallback(()=>{o&&$()},[o,$]);function st(){tt(closeModal())}return jsxRuntimeExports.jsx(IonModal,{ref:nt,onWillDismiss:ot=>{st(),rt(),_e()},className:j,"data-test":APP_TEST_IDS.MODAL,backdropDismiss:et,children:it&&jsxRuntimeExports.jsx(it,{...a,closeModal:st})})},PopoverPromptContent=o=>{const{label:s,confirmButtonLabel:a,cancelButtonLabel:$,dismissPopover:j,onConfirm:_e=()=>{},onCancel:et=()=>{},backgroundColor:tt}=o,nt=()=>{et(),j()},it=()=>{_e(),j()};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:clsx("text-center p-1 text-white",tt,"rounded-lg"),children:s}),jsxRuntimeExports.jsx("div",{className:clsx("flex divide-x divide-gray-400","border-t border-gray-400","rounded-lg"),children:[{label:a,onClick:it,"data-test":APP_TEST_IDS.POPOVER_PROMPT.CONFIRM_BUTTON,labelClassName:"text-secondary-700"},{label:$,onClick:nt,"data-test":APP_TEST_IDS.POPOVER_PROMPT.CANCEL_BUTTON,labelClassName:"text-nonary-600"}].map(({label:rt,onClick:st,"data-test":ot,labelClassName:at})=>jsxRuntimeExports.jsx(ClearButton,{onClick:st,className:"flex-1 text-center m-0",style:{"--border-radius":"0px !important"},"data-test":ot,size:"small",color:"gray-900",children:jsxRuntimeExports.jsx("span",{className:at,children:rt})},rt))})]})},min=Math.min,max=Math.max,round$1=Math.round,floor=Math.floor,createCoords=o=>({x:o,y:o}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp(o,s,a){return max(o,min(s,a))}function evaluate(o,s){return typeof o=="function"?o(s):o}function getSide(o){return o.split("-")[0]}function getAlignment(o){return o.split("-")[1]}function getOppositeAxis(o){return o==="x"?"y":"x"}function getAxisLength(o){return o==="y"?"height":"width"}function getSideAxis(o){return["top","bottom"].includes(getSide(o))?"y":"x"}function getAlignmentAxis(o){return getOppositeAxis(getSideAxis(o))}function getAlignmentSides(o,s,a){a===void 0&&(a=!1);const $=getAlignment(o),j=getAlignmentAxis(o),_e=getAxisLength(j);let et=j==="x"?$===(a?"end":"start")?"right":"left":$==="start"?"bottom":"top";return s.reference[_e]>s.floating[_e]&&(et=getOppositePlacement(et)),[et,getOppositePlacement(et)]}function getExpandedPlacements(o){const s=getOppositePlacement(o);return[getOppositeAlignmentPlacement(o),s,getOppositeAlignmentPlacement(s)]}function getOppositeAlignmentPlacement(o){return o.replace(/start|end/g,s=>oppositeAlignmentMap[s])}function getSideList(o,s,a){const $=["left","right"],j=["right","left"],_e=["top","bottom"],et=["bottom","top"];switch(o){case"top":case"bottom":return a?s?j:$:s?$:j;case"left":case"right":return s?_e:et;default:return[]}}function getOppositeAxisPlacements(o,s,a,$){const j=getAlignment(o);let _e=getSideList(getSide(o),a==="start",$);return j&&(_e=_e.map(et=>et+"-"+j),s&&(_e=_e.concat(_e.map(getOppositeAlignmentPlacement)))),_e}function getOppositePlacement(o){return o.replace(/left|right|bottom|top/g,s=>oppositeSideMap[s])}function expandPaddingObject(o){return{top:0,right:0,bottom:0,left:0,...o}}function getPaddingObject(o){return typeof o!="number"?expandPaddingObject(o):{top:o,right:o,bottom:o,left:o}}function rectToClientRect(o){const{x:s,y:a,width:$,height:j}=o;return{width:$,height:j,top:a,left:s,right:s+$,bottom:a+j,x:s,y:a}}function computeCoordsFromPlacement(o,s,a){let{reference:$,floating:j}=o;const _e=getSideAxis(s),et=getAlignmentAxis(s),tt=getAxisLength(et),nt=getSide(s),it=_e==="y",rt=$.x+$.width/2-j.width/2,st=$.y+$.height/2-j.height/2,ot=$[tt]/2-j[tt]/2;let at;switch(nt){case"top":at={x:rt,y:$.y-j.height};break;case"bottom":at={x:rt,y:$.y+$.height};break;case"right":at={x:$.x+$.width,y:st};break;case"left":at={x:$.x-j.width,y:st};break;default:at={x:$.x,y:$.y}}switch(getAlignment(s)){case"start":at[et]-=ot*(a&&it?-1:1);break;case"end":at[et]+=ot*(a&&it?-1:1);break}return at}const computePosition$1=async(o,s,a)=>{const{placement:$="bottom",strategy:j="absolute",middleware:_e=[],platform:et}=a,tt=_e.filter(Boolean),nt=await(et.isRTL==null?void 0:et.isRTL(s));let it=await et.getElementRects({reference:o,floating:s,strategy:j}),{x:rt,y:st}=computeCoordsFromPlacement(it,$,nt),ot=$,at={},lt=0;for(let ct=0;ct<tt.length;ct++){const{name:ht,fn:dt}=tt[ct],{x:ut,y:pt,data:ft,reset:mt}=await dt({x:rt,y:st,initialPlacement:$,placement:ot,strategy:j,middlewareData:at,rects:it,platform:et,elements:{reference:o,floating:s}});rt=ut??rt,st=pt??st,at={...at,[ht]:{...at[ht],...ft}},mt&&lt<=50&&(lt++,typeof mt=="object"&&(mt.placement&&(ot=mt.placement),mt.rects&&(it=mt.rects===!0?await et.getElementRects({reference:o,floating:s,strategy:j}):mt.rects),{x:rt,y:st}=computeCoordsFromPlacement(it,ot,nt)),ct=-1)}return{x:rt,y:st,placement:ot,strategy:j,middlewareData:at}};async function detectOverflow(o,s){var a;s===void 0&&(s={});const{x:$,y:j,platform:_e,rects:et,elements:tt,strategy:nt}=o,{boundary:it="clippingAncestors",rootBoundary:rt="viewport",elementContext:st="floating",altBoundary:ot=!1,padding:at=0}=evaluate(s,o),lt=getPaddingObject(at),ht=tt[ot?st==="floating"?"reference":"floating":st],dt=rectToClientRect(await _e.getClippingRect({element:(a=await(_e.isElement==null?void 0:_e.isElement(ht)))==null||a?ht:ht.contextElement||await(_e.getDocumentElement==null?void 0:_e.getDocumentElement(tt.floating)),boundary:it,rootBoundary:rt,strategy:nt})),ut=st==="floating"?{x:$,y:j,width:et.floating.width,height:et.floating.height}:et.reference,pt=await(_e.getOffsetParent==null?void 0:_e.getOffsetParent(tt.floating)),ft=await(_e.isElement==null?void 0:_e.isElement(pt))?await(_e.getScale==null?void 0:_e.getScale(pt))||{x:1,y:1}:{x:1,y:1},mt=rectToClientRect(_e.convertOffsetParentRelativeRectToViewportRelativeRect?await _e.convertOffsetParentRelativeRectToViewportRelativeRect({elements:tt,rect:ut,offsetParent:pt,strategy:nt}):ut);return{top:(dt.top-mt.top+lt.top)/ft.y,bottom:(mt.bottom-dt.bottom+lt.bottom)/ft.y,left:(dt.left-mt.left+lt.left)/ft.x,right:(mt.right-dt.right+lt.right)/ft.x}}const arrow$1=o=>({name:"arrow",options:o,async fn(s){const{x:a,y:$,placement:j,rects:_e,platform:et,elements:tt,middlewareData:nt}=s,{element:it,padding:rt=0}=evaluate(o,s)||{};if(it==null)return{};const st=getPaddingObject(rt),ot={x:a,y:$},at=getAlignmentAxis(j),lt=getAxisLength(at),ct=await et.getDimensions(it),ht=at==="y",dt=ht?"top":"left",ut=ht?"bottom":"right",pt=ht?"clientHeight":"clientWidth",ft=_e.reference[lt]+_e.reference[at]-ot[at]-_e.floating[lt],mt=ot[at]-_e.reference[at],gt=await(et.getOffsetParent==null?void 0:et.getOffsetParent(it));let bt=gt?gt[pt]:0;(!bt||!await(et.isElement==null?void 0:et.isElement(gt)))&&(bt=tt.floating[pt]||_e.floating[lt]);const St=ft/2-mt/2,Nt=bt/2-ct[lt]/2-1,Rt=min(st[dt],Nt),Ft=min(st[ut],Nt),Ot=Rt,Ct=bt-ct[lt]-Ft,yt=bt/2-ct[lt]/2+St,Pt=clamp(Ot,yt,Ct),wt=!nt.arrow&&getAlignment(j)!=null&&yt!==Pt&&_e.reference[lt]/2-(yt<Ot?Rt:Ft)-ct[lt]/2<0,Lt=wt?yt<Ot?yt-Ot:yt-Ct:0;return{[at]:ot[at]+Lt,data:{[at]:Pt,centerOffset:yt-Pt-Lt,...wt&&{alignmentOffset:Lt}},reset:wt}}}),flip$1=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(s){var a,$;const{placement:j,middlewareData:_e,rects:et,initialPlacement:tt,platform:nt,elements:it}=s,{mainAxis:rt=!0,crossAxis:st=!0,fallbackPlacements:ot,fallbackStrategy:at="bestFit",fallbackAxisSideDirection:lt="none",flipAlignment:ct=!0,...ht}=evaluate(o,s);if((a=_e.arrow)!=null&&a.alignmentOffset)return{};const dt=getSide(j),ut=getSideAxis(tt),pt=getSide(tt)===tt,ft=await(nt.isRTL==null?void 0:nt.isRTL(it.floating)),mt=ot||(pt||!ct?[getOppositePlacement(tt)]:getExpandedPlacements(tt)),gt=lt!=="none";!ot&&gt&&mt.push(...getOppositeAxisPlacements(tt,ct,lt,ft));const bt=[tt,...mt],St=await detectOverflow(s,ht),Nt=[];let Rt=(($=_e.flip)==null?void 0:$.overflows)||[];if(rt&&Nt.push(St[dt]),st){const yt=getAlignmentSides(j,et,ft);Nt.push(St[yt[0]],St[yt[1]])}if(Rt=[...Rt,{placement:j,overflows:Nt}],!Nt.every(yt=>yt<=0)){var Ft,Ot;const yt=(((Ft=_e.flip)==null?void 0:Ft.index)||0)+1,Pt=bt[yt];if(Pt)return{data:{index:yt,overflows:Rt},reset:{placement:Pt}};let wt=(Ot=Rt.filter(Lt=>Lt.overflows[0]<=0).sort((Lt,vt)=>Lt.overflows[1]-vt.overflows[1])[0])==null?void 0:Ot.placement;if(!wt)switch(at){case"bestFit":{var Ct;const Lt=(Ct=Rt.filter(vt=>{if(gt){const xt=getSideAxis(vt.placement);return xt===ut||xt==="y"}return!0}).map(vt=>[vt.placement,vt.overflows.filter(xt=>xt>0).reduce((xt,Ut)=>xt+Ut,0)]).sort((vt,xt)=>vt[1]-xt[1])[0])==null?void 0:Ct[0];Lt&&(wt=Lt);break}case"initialPlacement":wt=tt;break}if(j!==wt)return{reset:{placement:wt}}}return{}}}};async function convertValueToCoords(o,s){const{placement:a,platform:$,elements:j}=o,_e=await($.isRTL==null?void 0:$.isRTL(j.floating)),et=getSide(a),tt=getAlignment(a),nt=getSideAxis(a)==="y",it=["left","top"].includes(et)?-1:1,rt=_e&&nt?-1:1,st=evaluate(s,o);let{mainAxis:ot,crossAxis:at,alignmentAxis:lt}=typeof st=="number"?{mainAxis:st,crossAxis:0,alignmentAxis:null}:{mainAxis:st.mainAxis||0,crossAxis:st.crossAxis||0,alignmentAxis:st.alignmentAxis};return tt&&typeof lt=="number"&&(at=tt==="end"?lt*-1:lt),nt?{x:at*rt,y:ot*it}:{x:ot*it,y:at*rt}}const offset$1=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(s){var a,$;const{x:j,y:_e,placement:et,middlewareData:tt}=s,nt=await convertValueToCoords(s,o);return et===((a=tt.offset)==null?void 0:a.placement)&&($=tt.arrow)!=null&&$.alignmentOffset?{}:{x:j+nt.x,y:_e+nt.y,data:{...nt,placement:et}}}}},shift$1=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(s){const{x:a,y:$,placement:j}=s,{mainAxis:_e=!0,crossAxis:et=!1,limiter:tt={fn:ht=>{let{x:dt,y:ut}=ht;return{x:dt,y:ut}}},...nt}=evaluate(o,s),it={x:a,y:$},rt=await detectOverflow(s,nt),st=getSideAxis(getSide(j)),ot=getOppositeAxis(st);let at=it[ot],lt=it[st];if(_e){const ht=ot==="y"?"top":"left",dt=ot==="y"?"bottom":"right",ut=at+rt[ht],pt=at-rt[dt];at=clamp(ut,at,pt)}if(et){const ht=st==="y"?"top":"left",dt=st==="y"?"bottom":"right",ut=lt+rt[ht],pt=lt-rt[dt];lt=clamp(ut,lt,pt)}const ct=tt.fn({...s,[ot]:at,[st]:lt});return{...ct,data:{x:ct.x-a,y:ct.y-$,enabled:{[ot]:_e,[st]:et}}}}}};function hasWindow(){return typeof window<"u"}function getNodeName(o){return isNode(o)?(o.nodeName||"").toLowerCase():"#document"}function getWindow(o){var s;return(o==null||(s=o.ownerDocument)==null?void 0:s.defaultView)||window}function getDocumentElement(o){var s;return(s=(isNode(o)?o.ownerDocument:o.document)||window.document)==null?void 0:s.documentElement}function isNode(o){return hasWindow()?o instanceof Node||o instanceof getWindow(o).Node:!1}function isElement(o){return hasWindow()?o instanceof Element||o instanceof getWindow(o).Element:!1}function isHTMLElement(o){return hasWindow()?o instanceof HTMLElement||o instanceof getWindow(o).HTMLElement:!1}function isShadowRoot(o){return!hasWindow()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof getWindow(o).ShadowRoot}function isOverflowElement(o){const{overflow:s,overflowX:a,overflowY:$,display:j}=getComputedStyle(o);return/auto|scroll|overlay|hidden|clip/.test(s+$+a)&&!["inline","contents"].includes(j)}function isTableElement(o){return["table","td","th"].includes(getNodeName(o))}function isTopLayer(o){return[":popover-open",":modal"].some(s=>{try{return o.matches(s)}catch{return!1}})}function isContainingBlock(o){const s=isWebKit(),a=isElement(o)?getComputedStyle(o):o;return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!s&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!s&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some($=>(a.willChange||"").includes($))||["paint","layout","strict","content"].some($=>(a.contain||"").includes($))}function getContainingBlock(o){let s=getParentNode$1(o);for(;isHTMLElement(s)&&!isLastTraversableNode(s);){if(isContainingBlock(s))return s;if(isTopLayer(s))return null;s=getParentNode$1(s)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(o){return["html","body","#document"].includes(getNodeName(o))}function getComputedStyle(o){return getWindow(o).getComputedStyle(o)}function getNodeScroll(o){return isElement(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function getParentNode$1(o){if(getNodeName(o)==="html")return o;const s=o.assignedSlot||o.parentNode||isShadowRoot(o)&&o.host||getDocumentElement(o);return isShadowRoot(s)?s.host:s}function getNearestOverflowAncestor(o){const s=getParentNode$1(o);return isLastTraversableNode(s)?o.ownerDocument?o.ownerDocument.body:o.body:isHTMLElement(s)&&isOverflowElement(s)?s:getNearestOverflowAncestor(s)}function getOverflowAncestors(o,s,a){var $;s===void 0&&(s=[]),a===void 0&&(a=!0);const j=getNearestOverflowAncestor(o),_e=j===(($=o.ownerDocument)==null?void 0:$.body),et=getWindow(j);if(_e){const tt=getFrameElement(et);return s.concat(et,et.visualViewport||[],isOverflowElement(j)?j:[],tt&&a?getOverflowAncestors(tt):[])}return s.concat(j,getOverflowAncestors(j,[],a))}function getFrameElement(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function getCssDimensions(o){const s=getComputedStyle(o);let a=parseFloat(s.width)||0,$=parseFloat(s.height)||0;const j=isHTMLElement(o),_e=j?o.offsetWidth:a,et=j?o.offsetHeight:$,tt=round$1(a)!==_e||round$1($)!==et;return tt&&(a=_e,$=et),{width:a,height:$,$:tt}}function unwrapElement(o){return isElement(o)?o:o.contextElement}function getScale(o){const s=unwrapElement(o);if(!isHTMLElement(s))return createCoords(1);const a=s.getBoundingClientRect(),{width:$,height:j,$:_e}=getCssDimensions(s);let et=(_e?round$1(a.width):a.width)/$,tt=(_e?round$1(a.height):a.height)/j;return(!et||!Number.isFinite(et))&&(et=1),(!tt||!Number.isFinite(tt))&&(tt=1),{x:et,y:tt}}const noOffsets=createCoords(0);function getVisualOffsets(o){const s=getWindow(o);return!isWebKit()||!s.visualViewport?noOffsets:{x:s.visualViewport.offsetLeft,y:s.visualViewport.offsetTop}}function shouldAddVisualOffsets(o,s,a){return s===void 0&&(s=!1),!a||s&&a!==getWindow(o)?!1:s}function getBoundingClientRect(o,s,a,$){s===void 0&&(s=!1),a===void 0&&(a=!1);const j=o.getBoundingClientRect(),_e=unwrapElement(o);let et=createCoords(1);s&&($?isElement($)&&(et=getScale($)):et=getScale(o));const tt=shouldAddVisualOffsets(_e,a,$)?getVisualOffsets(_e):createCoords(0);let nt=(j.left+tt.x)/et.x,it=(j.top+tt.y)/et.y,rt=j.width/et.x,st=j.height/et.y;if(_e){const ot=getWindow(_e),at=$&&isElement($)?getWindow($):$;let lt=ot,ct=getFrameElement(lt);for(;ct&&$&&at!==lt;){const ht=getScale(ct),dt=ct.getBoundingClientRect(),ut=getComputedStyle(ct),pt=dt.left+(ct.clientLeft+parseFloat(ut.paddingLeft))*ht.x,ft=dt.top+(ct.clientTop+parseFloat(ut.paddingTop))*ht.y;nt*=ht.x,it*=ht.y,rt*=ht.x,st*=ht.y,nt+=pt,it+=ft,lt=getWindow(ct),ct=getFrameElement(lt)}}return rectToClientRect({width:rt,height:st,x:nt,y:it})}function getWindowScrollBarX(o,s){const a=getNodeScroll(o).scrollLeft;return s?s.left+a:getBoundingClientRect(getDocumentElement(o)).left+a}function getHTMLOffset(o,s,a){a===void 0&&(a=!1);const $=o.getBoundingClientRect(),j=$.left+s.scrollLeft-(a?0:getWindowScrollBarX(o,$)),_e=$.top+s.scrollTop;return{x:j,y:_e}}function convertOffsetParentRelativeRectToViewportRelativeRect(o){let{elements:s,rect:a,offsetParent:$,strategy:j}=o;const _e=j==="fixed",et=getDocumentElement($),tt=s?isTopLayer(s.floating):!1;if($===et||tt&&_e)return a;let nt={scrollLeft:0,scrollTop:0},it=createCoords(1);const rt=createCoords(0),st=isHTMLElement($);if((st||!st&&!_e)&&((getNodeName($)!=="body"||isOverflowElement(et))&&(nt=getNodeScroll($)),isHTMLElement($))){const at=getBoundingClientRect($);it=getScale($),rt.x=at.x+$.clientLeft,rt.y=at.y+$.clientTop}const ot=et&&!st&&!_e?getHTMLOffset(et,nt,!0):createCoords(0);return{width:a.width*it.x,height:a.height*it.y,x:a.x*it.x-nt.scrollLeft*it.x+rt.x+ot.x,y:a.y*it.y-nt.scrollTop*it.y+rt.y+ot.y}}function getClientRects(o){return Array.from(o.getClientRects())}function getDocumentRect(o){const s=getDocumentElement(o),a=getNodeScroll(o),$=o.ownerDocument.body,j=max(s.scrollWidth,s.clientWidth,$.scrollWidth,$.clientWidth),_e=max(s.scrollHeight,s.clientHeight,$.scrollHeight,$.clientHeight);let et=-a.scrollLeft+getWindowScrollBarX(o);const tt=-a.scrollTop;return getComputedStyle($).direction==="rtl"&&(et+=max(s.clientWidth,$.clientWidth)-j),{width:j,height:_e,x:et,y:tt}}function getViewportRect(o,s){const a=getWindow(o),$=getDocumentElement(o),j=a.visualViewport;let _e=$.clientWidth,et=$.clientHeight,tt=0,nt=0;if(j){_e=j.width,et=j.height;const it=isWebKit();(!it||it&&s==="fixed")&&(tt=j.offsetLeft,nt=j.offsetTop)}return{width:_e,height:et,x:tt,y:nt}}function getInnerBoundingClientRect(o,s){const a=getBoundingClientRect(o,!0,s==="fixed"),$=a.top+o.clientTop,j=a.left+o.clientLeft,_e=isHTMLElement(o)?getScale(o):createCoords(1),et=o.clientWidth*_e.x,tt=o.clientHeight*_e.y,nt=j*_e.x,it=$*_e.y;return{width:et,height:tt,x:nt,y:it}}function getClientRectFromClippingAncestor(o,s,a){let $;if(s==="viewport")$=getViewportRect(o,a);else if(s==="document")$=getDocumentRect(getDocumentElement(o));else if(isElement(s))$=getInnerBoundingClientRect(s,a);else{const j=getVisualOffsets(o);$={x:s.x-j.x,y:s.y-j.y,width:s.width,height:s.height}}return rectToClientRect($)}function hasFixedPositionAncestor(o,s){const a=getParentNode$1(o);return a===s||!isElement(a)||isLastTraversableNode(a)?!1:getComputedStyle(a).position==="fixed"||hasFixedPositionAncestor(a,s)}function getClippingElementAncestors(o,s){const a=s.get(o);if(a)return a;let $=getOverflowAncestors(o,[],!1).filter(tt=>isElement(tt)&&getNodeName(tt)!=="body"),j=null;const _e=getComputedStyle(o).position==="fixed";let et=_e?getParentNode$1(o):o;for(;isElement(et)&&!isLastTraversableNode(et);){const tt=getComputedStyle(et),nt=isContainingBlock(et);!nt&&tt.position==="fixed"&&(j=null),(_e?!nt&&!j:!nt&&tt.position==="static"&&!!j&&["absolute","fixed"].includes(j.position)||isOverflowElement(et)&&!nt&&hasFixedPositionAncestor(o,et))?$=$.filter(rt=>rt!==et):j=tt,et=getParentNode$1(et)}return s.set(o,$),$}function getClippingRect(o){let{element:s,boundary:a,rootBoundary:$,strategy:j}=o;const et=[...a==="clippingAncestors"?isTopLayer(s)?[]:getClippingElementAncestors(s,this._c):[].concat(a),$],tt=et[0],nt=et.reduce((it,rt)=>{const st=getClientRectFromClippingAncestor(s,rt,j);return it.top=max(st.top,it.top),it.right=min(st.right,it.right),it.bottom=min(st.bottom,it.bottom),it.left=max(st.left,it.left),it},getClientRectFromClippingAncestor(s,tt,j));return{width:nt.right-nt.left,height:nt.bottom-nt.top,x:nt.left,y:nt.top}}function getDimensions(o){const{width:s,height:a}=getCssDimensions(o);return{width:s,height:a}}function getRectRelativeToOffsetParent(o,s,a){const $=isHTMLElement(s),j=getDocumentElement(s),_e=a==="fixed",et=getBoundingClientRect(o,!0,_e,s);let tt={scrollLeft:0,scrollTop:0};const nt=createCoords(0);if($||!$&&!_e)if((getNodeName(s)!=="body"||isOverflowElement(j))&&(tt=getNodeScroll(s)),$){const ot=getBoundingClientRect(s,!0,_e,s);nt.x=ot.x+s.clientLeft,nt.y=ot.y+s.clientTop}else j&&(nt.x=getWindowScrollBarX(j));const it=j&&!$&&!_e?getHTMLOffset(j,tt):createCoords(0),rt=et.left+tt.scrollLeft-nt.x-it.x,st=et.top+tt.scrollTop-nt.y-it.y;return{x:rt,y:st,width:et.width,height:et.height}}function isStaticPositioned(o){return getComputedStyle(o).position==="static"}function getTrueOffsetParent(o,s){if(!isHTMLElement(o)||getComputedStyle(o).position==="fixed")return null;if(s)return s(o);let a=o.offsetParent;return getDocumentElement(o)===a&&(a=a.ownerDocument.body),a}function getOffsetParent(o,s){const a=getWindow(o);if(isTopLayer(o))return a;if(!isHTMLElement(o)){let j=getParentNode$1(o);for(;j&&!isLastTraversableNode(j);){if(isElement(j)&&!isStaticPositioned(j))return j;j=getParentNode$1(j)}return a}let $=getTrueOffsetParent(o,s);for(;$&&isTableElement($)&&isStaticPositioned($);)$=getTrueOffsetParent($,s);return $&&isLastTraversableNode($)&&isStaticPositioned($)&&!isContainingBlock($)?a:$||getContainingBlock(o)||a}const getElementRects=async function(o){const s=this.getOffsetParent||getOffsetParent,a=this.getDimensions,$=await a(o.floating);return{reference:getRectRelativeToOffsetParent(o.reference,await s(o.floating),o.strategy),floating:{x:0,y:0,width:$.width,height:$.height}}};function isRTL(o){return getComputedStyle(o).direction==="rtl"}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function observeMove(o,s){let a=null,$;const j=getDocumentElement(o);function _e(){var tt;clearTimeout($),(tt=a)==null||tt.disconnect(),a=null}function et(tt,nt){tt===void 0&&(tt=!1),nt===void 0&&(nt=1),_e();const{left:it,top:rt,width:st,height:ot}=o.getBoundingClientRect();if(tt||s(),!st||!ot)return;const at=floor(rt),lt=floor(j.clientWidth-(it+st)),ct=floor(j.clientHeight-(rt+ot)),ht=floor(it),ut={rootMargin:-at+"px "+-lt+"px "+-ct+"px "+-ht+"px",threshold:max(0,min(1,nt))||1};let pt=!0;function ft(mt){const gt=mt[0].intersectionRatio;if(gt!==nt){if(!pt)return et();gt?et(!1,gt):$=setTimeout(()=>{et(!1,1e-7)},1e3)}pt=!1}try{a=new IntersectionObserver(ft,{...ut,root:j.ownerDocument})}catch{a=new IntersectionObserver(ft,ut)}a.observe(o)}return et(!0),_e}function autoUpdate(o,s,a,$){$===void 0&&($={});const{ancestorScroll:j=!0,ancestorResize:_e=!0,elementResize:et=typeof ResizeObserver=="function",layoutShift:tt=typeof IntersectionObserver=="function",animationFrame:nt=!1}=$,it=unwrapElement(o),rt=j||_e?[...it?getOverflowAncestors(it):[],...getOverflowAncestors(s)]:[];rt.forEach(dt=>{j&&dt.addEventListener("scroll",a,{passive:!0}),_e&&dt.addEventListener("resize",a)});const st=it&&tt?observeMove(it,a):null;let ot=-1,at=null;et&&(at=new ResizeObserver(dt=>{let[ut]=dt;ut&&ut.target===it&&at&&(at.unobserve(s),cancelAnimationFrame(ot),ot=requestAnimationFrame(()=>{var pt;(pt=at)==null||pt.observe(s)})),a()}),it&&!nt&&at.observe(it),at.observe(s));let lt,ct=nt?getBoundingClientRect(o):null;nt&&ht();function ht(){const dt=getBoundingClientRect(o);ct&&(dt.x!==ct.x||dt.y!==ct.y||dt.width!==ct.width||dt.height!==ct.height)&&a(),ct=dt,lt=requestAnimationFrame(ht)}return a(),()=>{var dt;rt.forEach(ut=>{j&&ut.removeEventListener("scroll",a),_e&&ut.removeEventListener("resize",a)}),st==null||st(),(dt=at)==null||dt.disconnect(),at=null,nt&&cancelAnimationFrame(lt)}}const offset=offset$1,shift=shift$1,flip=flip$1,arrow=arrow$1,computePosition=(o,s,a)=>{const $=new Map,j={platform,...a},_e={...j.platform,_c:$};return computePosition$1(o,s,{...j,platform:_e})},useTooltipStyles=({show:o,targetElement:s,tooltip:a,arrowElement:$,offsetValue:j,delay:_e,delayBuffer:et,position:tt})=>{const[nt,it]=reactExports.useState(!1),[rt,st]=reactExports.useState(),[ot,at]=reactExports.useState(),[lt,ct]=reactExports.useState(),[ht,dt]=reactExports.useState(!1),[ut,pt]=reactExports.useState();reactExports.useEffect(()=>{async function gt(){if(!s||!a)return;const{x:Rt,y:Ft,middlewareData:Ot,placement:Ct}=await computePosition(s,a,{placement:tt,middleware:[flip({padding:8}),shift({padding:8}),offset(j),...$?[arrow({element:$,padding:4})]:[]]});if(at({left:`${Rt}px`,top:`${Ft}px`}),!$)return;const{x:yt,y:Pt}=Ot.arrow||{},wt={top:"bottom",right:"left",bottom:"top",left:"right"}[Ct.split("-")[0]];ct({left:yt!=null?`${yt}px`:"",top:Pt!=null?`${Pt}px`:"",right:"",bottom:"",[wt]:"-6px",borderTopWidth:wt==="top"||wt==="right"?"1px":"0px",borderBottomWidth:wt==="bottom"||wt==="left"?"1px":"0px",borderRightWidth:wt==="bottom"||wt==="right"?"1px":"0px",borderLeftWidth:wt==="top"||wt==="left"?"1px":"0px"})}gt();const St=!!s&&!!a?autoUpdate(s,a,gt):void 0;if(!s)return;const Nt=new ResizeObserver(gt);return Nt.observe(document.body),()=>{Nt.disconnect(),St==null||St()}},[$,j,tt,s,a]);const ft=reactExports.useCallback(()=>{if(!(ut||ht))if(_e&&!nt){const gt=setTimeout(()=>{dt(!0),pt(void 0)},_e||0);pt(gt)}else dt(!0),rt&&(st(void 0),clearTimeout(rt)),it(!1)},[_e,nt,rt,ht,ut]),mt=reactExports.useCallback(()=>{ut&&(clearTimeout(ut),pt(void 0)),ht&&et&&(it(!0),st(setTimeout(()=>{it(!1),st(void 0)},et))),dt(!1)},[et,ht,ut]);return reactExports.useEffect(()=>{o?ft():mt()},[mt,o,ft]),{styles:ot,arrowStyles:lt,isTooltipShowing:ht}},PopoverPrompt=o=>{const{show:s=!1,onDismiss:a=()=>{},"data-test":$=APP_TEST_IDS.POPOVER_PROMPT.BASE,event:j=void 0,offset:_e=8,content:et,backgroundColor:tt,backgroundColorSecondary:nt,borderColor:it,hideArrow:rt=!1,onConfirm:st=()=>{},onCancel:ot=()=>{},label:at="Are you sure?",confirmButtonLabel:lt="Yes",cancelButtonLabel:ct="No",position:ht="bottom",size:{width:dt,height:ut}={width:200,height:"auto"},targetElement:pt,disableFadeOutAnimation:ft=!1}=o,mt=()=>{a()},gt=reactExports.useRef(null),bt=reactExports.useRef(null),St=pt||(j==null?void 0:j.currentTarget)||(j==null?void 0:j.target),{styles:Nt,arrowStyles:Rt}=useTooltipStyles({show:s,targetElement:St,arrowElement:bt.current,tooltip:gt.current,offsetValue:_e,position:ht});return jsxRuntimeExports.jsx(TransitionComponent,{show:s,children:({isClosing:Ft})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!Ft&&jsxRuntimeExports.jsx("div",{className:clsx("fixed","h-screen","w-screen","cursor-pointer"),onClick:mt,style:{zIndex:100}}),jsxRuntimeExports.jsxs("div",{ref:gt,className:clsx("absolute",nt,!ft&&"transition-opacity duration-220 ease-in-out",Ft?"opacity-0":"opacity-100","overflow-visible",it&&"border",it,"rounded-xl","shadow-tooltip",Ft&&"pointer-events-none"),style:{...Nt,width:dt,maxHeight:ut,zIndex:Math.pow(10,5)+1},"data-test":$,children:[et||jsxRuntimeExports.jsx(PopoverPromptContent,{onDismiss:a,onConfirm:st,onCancel:ot,dismissPopover:mt,label:at,confirmButtonLabel:lt,cancelButtonLabel:ct,backgroundColor:tt}),!rt&&jsxRuntimeExports.jsx("div",{ref:bt,className:clsx("absolute","w-3","h-3","bg-gray-50","transform","rotate-45","border",it),style:Rt})]})]})})},base="productsPage",listItem=`${base}:listItem`,PRODUCTS_PAGE_TEST_IDS={ACTIVATED_PRODUCT:`${base}:activatedProduct`,LIST_ITEM:{CARD_CODE:`${listItem}:cardCode`},ADMIN_TABLE:{FILTER_POPOVER:{BASE:`${base}:adminTable:filterPopover`,SORT_ASCENDING_BUTTON:`${base}:adminTable:filterPopover:sortAscendingButton`,SORT_DESCENDING_BUTTON:`${base}:adminTable:filterPopover:sortDescendingButton`,SELECT_ALL_BUTTON:`${base}:adminTable:filterPopover:selectAllButton`,CLEAR_SELECTION_BUTTON:`${base}:adminTable:filterPopover:clearSelectionButton`,CONFIRM_BUTTON:`${base}:adminTable:filterPopover:confirmButton`,CANCEL_BUTTON:`${base}:adminTable:filterPopover:cancelButton`},COLUMN_FILTER_BUTTON:`${base}:adminTable:columnFilterButton`}},TableFilterPopoverSelectionHeader=({onSelectAll:o,onClearSelection:s})=>jsxRuntimeExports.jsxs("div",{className:clsx("flex flex-row","items-center","w-full","pt-2","text-caption-small"),children:[jsxRuntimeExports.jsx(ClearButton,{size:"small",color:"secondary",className:clsx("underline"),onClick:o,"data-test":PRODUCTS_PAGE_TEST_IDS.ADMIN_TABLE.FILTER_POPOVER.SELECT_ALL_BUTTON,children:"Select All"}),jsxRuntimeExports.jsx("span",{children:"·"}),jsxRuntimeExports.jsx(ClearButton,{className:clsx("underline"),size:"small",color:"gray-400",onClick:s,"data-test":PRODUCTS_PAGE_TEST_IDS.ADMIN_TABLE.FILTER_POPOVER.CLEAR_SELECTION_BUTTON,children:"Clear"})]});function useElementSize({shouldCalculateAvailableWidth:o=!1}={}){const s=reactExports.useRef(null),[a,$]=reactExports.useState(0),[j,_e]=reactExports.useState(0),[et,tt]=reactExports.useState(0),nt=reactExports.useCallback(()=>{var st;if(!((st=s.current)!=null&&st.parentElement))return;const it=window.getComputedStyle(s.current.parentElement);if(!it)return;const rt=parseInt(it.paddingLeft)+parseInt(it.paddingRight);tt(s.current.parentElement.clientWidth-rt||0)},[]);return reactExports.useEffect(()=>{if(!s.current)return;const it=new ResizeObserver(()=>{var rt,st;$(((rt=s.current)==null?void 0:rt.clientHeight)||0),_e(((st=s.current)==null?void 0:st.clientWidth)||0),o&&nt()});return it.observe(s.current),()=>it.disconnect()},[nt,o]),[s,{height:a,width:j,availableWidth:et}]}const SELECTION_POPOVER_SIZE={width:330,height:436},SelectionPopoverLayout=({"data-test":o,width:s=SELECTION_POPOVER_SIZE.width,height:a=SELECTION_POPOVER_SIZE.height,children:$,onSelectAll:j,onClearSelection:_e,onCancel:et,onConfirm:tt,header:nt})=>{const[it,{height:rt}]=useElementSize(),st=j||_e;return jsxRuntimeExports.jsx("div",{"data-test":o,className:clsx("p-2","bg-primary","rounded-xl","w-full","h-full"),style:{background:"rgba(255, 255, 255, 0.84)",backdropFilter:"blur(2px)",width:s,height:a},children:jsxRuntimeExports.jsxs("div",{className:clsx("h-full","w-full","bg-white","flex","flex-col","divide-y","divide-gray-900","rounded-lg"),style:{boxShadow:"0px 64px 64px rgba(0, 15, 49, 0.08), 0px 41.4815px 37.4815px rgba(0, 15, 49, 0.0607407), 0px 24.6519px 20.3852px rgba(0, 15, 49, 0.0485926), 0px 12.8px 10.4px rgba(0, 15, 49, 0.04), 0px 5.21481px 5.21481px rgba(0, 15, 49, 0.0314074), 0px 1.18519px 2.51852px rgba(0, 15, 49, 0.0192593)"},children:[nt,jsxRuntimeExports.jsxs("div",{className:clsx("flex","flex-col","items-end","w-full","overflow-hidden","px-2","relative","rounded-b-lg"),children:[st&&jsxRuntimeExports.jsx(TableFilterPopoverSelectionHeader,{onSelectAll:j,onClearSelection:_e}),jsxRuntimeExports.jsx("div",{className:clsx("overflow-y-auto","w-full","px-2","table-filter-popover-scroll-container"),style:{paddingBottom:rt+8},children:$}),jsxRuntimeExports.jsxs("div",{className:clsx("absolute","bottom-0","w-full","flex flex-row","justify-end","py-2"),style:{background:"rgba(255, 255, 255, 0.92)",backdropFilter:"blur(2px)"},ref:it,children:[jsxRuntimeExports.jsx(ClearButton,{color:"gray-500",size:"small",onClick:et,"data-test":PRODUCTS_PAGE_TEST_IDS.ADMIN_TABLE.FILTER_POPOVER.CANCEL_BUTTON,children:"Cancel"}),jsxRuntimeExports.jsx(SuccessButton,{size:"small",onClick:tt,"data-test":PRODUCTS_PAGE_TEST_IDS.ADMIN_TABLE.FILTER_POPOVER.CONFIRM_BUTTON,className:clsx("w-30"),children:"Ok"})]})]})]})})},showPopoverPrompt=o=>({type:POPOVER_PROMPT_ACTIONS.SHOW_POPOVER_PROMPT,payload:{backgroundColor:"bg-gray-50",backgroundColorSecondary:"bg-gray-200",borderColor:"border-gray-700",...o}}),showPopover=o=>({type:POPOVER_PROMPT_ACTIONS.SHOW_POPOVER_PROMPT,payload:o}),showSelectionPopover=o=>({type:POPOVER_PROMPT_ACTIONS.SHOW_POPOVER_PROMPT,payload:{hideArrow:!0,offset:0,position:"bottom-end",size:SELECTION_POPOVER_SIZE,...o}}),closePopoverPrompt=()=>({type:POPOVER_PROMPT_ACTIONS.CLOSE_POPOVER_PROMPT}),PopoverPromptController=()=>{const{onDismiss:o=()=>{},...s}=useSelector(j=>j.popoverPrompt),a=useDispatch();function $(){a(closePopoverPrompt()),o()}return jsxRuntimeExports.jsx(PopoverPrompt,{...s,onDismiss:$})},DEFAULT_PANEL_WIDTH=380,STACKED_SPACING=128;var SLIDING_DRAWER_IDS=(o=>(o.BASE="sliding-drawer",o.STACKED="stacked-sliding-drawer",o.EXPANDED="expanded-sliding-drawer",o))(SLIDING_DRAWER_IDS||{});const SlidingDrawerFooter=({content:o,onChangeHeight:s,offset:a=0})=>{const $=reactExports.useRef(null);return reactExports.useEffect(()=>{if(!$.current)return;const j=new ResizeObserver(()=>{var _e;s==null||s(((_e=$.current)==null?void 0:_e.clientHeight)||0)});return j.observe($.current),()=>{j.disconnect()}},[s]),jsxRuntimeExports.jsx("div",{className:clsx("sticky","top-0","w-full","h-full","pointer-events-none"),children:jsxRuntimeExports.jsx("div",{className:clsx("absolute","bottom-0","p-4","left-0","pointer-events-auto"),style:{right:a,boxShadow:"0px -4px 8px rgba(0, 15, 49, 0.08)",backdropFilter:"blur(4px)",background:"rgba(255, 255, 255, 0.92)",WebkitBackdropFilter:"blur(4px)"},ref:$,children:o})})},Panel=({"data-test":o,width:s=DEFAULT_PANEL_WIDTH,footer:a,onDismiss:$,content:j,wrappedContent:_e,backdrop:et=!1,show:tt=!1,bordered:nt=!1,offset:it=0,id:rt})=>{const[st,ot]=reactExports.useState(0),at=reactExports.useRef(null);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Backdrop,{contentRef:at,onClick:$,show:et&&tt}),_e&&jsxRuntimeExports.jsx("div",{id:rt,children:_e}),j&&jsxRuntimeExports.jsxs("div",{className:clsx("absolute","top-0 bottom-0","overflow-y-auto","overflow-x-hidden","transition-all duration-220 ease-in-out","z-0","bg-white","border-gray-800"),style:{width:s},"data-test":o,ref:at,id:rt,children:[jsxRuntimeExports.jsx("div",{className:clsx("absolute","top-0","w-full","h-full","z-0"),children:jsxRuntimeExports.jsx("div",{style:{paddingBottom:st},children:j})}),!!a&&jsxRuntimeExports.jsx(SlidingDrawerFooter,{content:a,onChangeHeight:ot,width:s})]})]})},showSlidingDrawer=o=>({type:SLIDING_DRAWER_ACTIONS.SHOW_SLIDING_DRAWER,payload:{id:SLIDING_DRAWER_IDS.BASE,...o}}),expandSlidingDrawer=o=>({type:SLIDING_DRAWER_ACTIONS.SET_SLIDING_DRAWER,payload:{secondaryPanel:{id:SLIDING_DRAWER_IDS.EXPANDED,...o,show:!0}}}),addSlidingDrawerToStack=o=>({type:SLIDING_DRAWER_ACTIONS.ADD_SLIDING_DRAWER_TO_STACK,payload:{id:SLIDING_DRAWER_IDS.STACKED,backdrop:!0,...o,show:!0}}),removeSlidingDrawerFromStack=(o={})=>({type:SLIDING_DRAWER_ACTIONS.REMOVE_SLIDING_DRAWER_FROM_STACK,payload:o}),collapseSlidingDrawer=()=>({type:SLIDING_DRAWER_ACTIONS.SET_SLIDING_DRAWER,payload:{secondaryPanel:{show:!1}}}),closeSlidingDrawer=(o={})=>({type:SLIDING_DRAWER_ACTIONS.CLOSE_SLIDING_DRAWER,payload:o}),resetSlidingDrawer=()=>({type:SLIDING_DRAWER_ACTIONS.RESET_SLIDING_DRAWER}),setSlidingDrawerWarnOnClose=o=>({type:SLIDING_DRAWER_ACTIONS.SET_SLIDING_DRAWER_WARN_ON_CLOSE,payload:o}),dismissSlidingDrawerWarnOnClose=()=>({type:SLIDING_DRAWER_ACTIONS.DISMISS_SLIDING_DRAWER_WARN_ON_CLOSE}),dismissStackedSlidingDrawerWarnOnClose=()=>({type:SLIDING_DRAWER_ACTIONS.DISMISS_STACKED_SLIDING_DRAWER_WARN_ON_CLOSE}),SlidingDrawer=({"data-test":o=APP_TEST_IDS.SLIDING_DRAWER.BASE,show:s=!1,onDismiss:a,content:$="",width:j=DEFAULT_PANEL_WIDTH,secondaryPanel:_e,showDismissButton:et=!0,backdrop:tt,header:nt,footer:it,stackedPanels:rt=[],id:st,wrappedContent:ot})=>{const[at,lt]=reactExports.useState(s);reactExports.useEffect(()=>lt(s),[s]);const ct=useDispatch(),ht={show:!1,width:DEFAULT_PANEL_WIDTH,backdrop:!1,showDismissButton:!1,stacked:!1,..._e},dt=Math.max.apply(null,[j,...rt.map(mt=>mt.width||0)]),ut=(ht.width||0)+dt,pt=ht.show?ut:dt+rt.length*STACKED_SPACING,ft=pt-dt;return jsxRuntimeExports.jsx(Transition,{in:at,timeout:TRANSITION_TIMEOUT,mountOnEnter:!0,unmountOnExit:!0,appear:!0,children:mt=>jsxRuntimeExports.jsxs("div",{"data-test":o,className:clsx("absolute","top-0","bottom-0","right-0","transition-all duration-220 ease-in-out","overflow-hidden","z-10","bg-white"),style:{width:TRANSITION_HIDE_STATES.includes(mt)?0:pt,boxShadow:"-127.997px 0.872347px 256px rgba(0, 15, 49, 0.04), -93.0978px 0.634496px 172.55px rgba(0, 15, 49, 0.032375), -64.7985px 0.441625px 111.6px rgba(0, 15, 49, 0.027), -42.499px 0.289646px 69.25px rgba(0, 15, 49, 0.023125), -25.5994px 0.174469px 41.6px rgba(0, 15, 49, 0.02), -13.4997px 0.0920053px 24.75px rgba(0, 15, 49, 0.016875), -5.59987px 0.0381652px 14.8px rgba(0, 15, 49, 0.013), -1.29997px 0.00885977px 7.85px rgba(0, 15, 49, 0.007625)"},children:[jsxRuntimeExports.jsx(Panel,{content:$,onDismiss:a,header:nt,footer:it,showDismissButton:et,show:at,backdrop:tt,width:dt,bordered:ht.show,isPrimary:!0,stacked:ht.stacked,offset:ft,id:st,wrappedContent:ot}),jsxRuntimeExports.jsx(Transition,{in:ht.show,timeout:TRANSITION_TIMEOUT,mountOnEnter:!0,unmountOnExit:!0,appear:!0,children:gt=>jsxRuntimeExports.jsx("div",{className:clsx("absolute","top-0 bottom-0","right-0","transition-all duration-220 ease-in-out","overflow-hidden"),style:{width:TRANSITION_HIDE_STATES.includes(gt)?0:ht.width},children:jsxRuntimeExports.jsx(Panel,{...ht})})}),jsxRuntimeExports.jsx(TransitionGroup,{component:null,children:rt.map(gt=>jsxRuntimeExports.jsx(Transition,{timeout:TRANSITION_TIMEOUT,mountOnEnter:!0,unmountOnExit:!0,appear:!0,children:bt=>jsxRuntimeExports.jsx("div",{className:clsx("absolute","top-0 bottom-0","right-0","transition-all duration-220 ease-in-out","overflow-hidden"),style:{width:TRANSITION_HIDE_STATES.includes(bt)?0:gt.width||DEFAULT_PANEL_WIDTH},"data-test":APP_TEST_IDS.SLIDING_DRAWER.STACKED_DRAWER,children:jsxRuntimeExports.jsx(Panel,{...gt,onDismiss:()=>ct(removeSlidingDrawerFromStack()),backdrop:TRANSITION_HIDE_STATES.includes(bt)?!1:gt.backdrop})})},gt.id))})]})})},SlidingDrawerController=()=>{const{onDismiss:o=()=>{},warnOnClose:s,showCloseWarning:a,warnOnStackedDrawerClose:$,showStackedDrawerCloseWarning:j,..._e}=useSelector(it=>it.slidingDrawer),et=useDispatch();function tt(){et(closeSlidingDrawer()),o()}function nt(){var it,rt;et(collapseSlidingDrawer()),(rt=(it=_e.secondaryPanel)==null?void 0:it.onDismiss)==null||rt.call(it)}return reactExports.useEffect(()=>{a&&et(showCloseWarningAlertModal({onConfirm:()=>{et(closeSlidingDrawer({disableWarning:!0}))},onDismiss:()=>{et(dismissSlidingDrawerWarnOnClose())}}))},[a,et]),reactExports.useEffect(()=>{j&&et(showCloseWarningAlertModal({onConfirm:()=>{et(removeSlidingDrawerFromStack({disableWarning:!0}))},onDismiss:()=>{et(dismissStackedSlidingDrawerWarnOnClose())}}))},[j,et]),jsxRuntimeExports.jsx(SlidingDrawer,{..._e,onDismiss:tt,secondaryPanel:{..._e.secondaryPanel,onDismiss:nt}})},showTooltip=o=>({type:TOOLTIP_ACTIONS.SHOW_TOOLTIP,payload:o}),closeTooltip=()=>({type:TOOLTIP_ACTIONS.CLOSE_TOOLTIP}),TOOLTIP_ID=uniqueId("tooltip"),Tooltip=()=>{const{hideOnMouseLeave:o,closeOnSecondClick:s,show:a,hideArrow:$,onClickBackground:j,..._e}=useSelector(dt=>dt.tooltip),et=useDispatch(),tt=reactExports.useRef(null),nt=reactExports.useRef(null),it="border-gray-700",rt=_e.target,st=!$&&a,{styles:ot,arrowStyles:at,isTooltipShowing:lt}=useTooltipStyles({show:!!a,targetElement:rt,arrowElement:nt.current,tooltip:tt.current,offsetValue:_e.offset,delay:_e.delay,delayBuffer:_e.delayBuffer,position:_e.position});reactExports.useEffect(()=>{if(!rt||!a||!o)return;function dt(){et(closeTooltip())}return rt==null||rt.addEventListener("mouseleave",dt),()=>rt==null?void 0:rt.removeEventListener("mouseleave",dt)},[o,rt,et,a]);function ct(){s&&et(closeTooltip()),j==null||j()}const ht=!!a&&(!!j||s);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[ht&&jsxRuntimeExports.jsx("div",{className:clsx("fixed","inset-0","z-50"),onClick:ct}),jsxRuntimeExports.jsx(TransitionComponent,{show:a,children:()=>jsxRuntimeExports.jsxs("div",{ref:tt,id:TOOLTIP_ID,className:clsx("p-2","absolute",_e.bgColor??"bg-white",_e.animated&&"transition-all duration-220 ease-in-out",lt?"opacity-100":"opacity-0","overflow-visible","border",it,"rounded-lg","shadow-tooltip","text-caption-small",_e.width&&`w-${_e.width}`,_e.textColor),style:{...ot,zIndex:APP_LEVEL_Z_INDEX.TOOLTIP},"data-test":_e["data-test"],children:[_e.content,st&&jsxRuntimeExports.jsx("div",{ref:nt,className:clsx("absolute","w-3","h-3",_e.bgColor??"bg-white","transform","rotate-45","border",it),style:at})]})})]})},useLocale=()=>{const o=`${BASE_API_URL}/api/v2/locale`;return useQuery(localeKeys.details,()=>fetchLocale(o))},fetchLocale=async o=>{let s=await fetch(o,{method:API_METHODS.GET,headers:apiHeaders(store.getState())});return s=handleErrors(s),(await s.json()).data.locale},usePrefetchLocale=()=>{const o=useQueryClient();return()=>o.prefetchQuery(localeKeys.details,()=>fetchLocale(`${BASE_API_URL}/api/v2/locale`))},requestData$1=o=>({url:`${BASE_API_URL}/api/v1/user/settings/update`,apiMethod:API_METHODS.PUT,data:o}),useUpdateUserSettings=()=>{const o=useDispatch(),s=useQueryClient(),a=useApiRequest(),$=async j=>(await a(requestData$1(j))).user_settings;return useMutation(j=>$(j),{onError:j=>{o(sendErrorLog({errorMessage:"Failed to update user settings.",errorObject:j}))},onSettled:()=>{s.invalidateQueries(userSettingsKeys.details).catch(console.error)}})},requestData=()=>({url:`${BASE_API_URL}/api/v1/user/settings`,apiMethod:API_METHODS.GET}),useUserSettings=o=>{const s=useApiRequest(),a=async()=>(await s(requestData())).user_settings;return useQuery(userSettingsKeys.detail(o),a,{enabled:!!o})},WidgetsBridgePlugin=registerPlugin("WidgetsBridgePlugin"),setCardsForWidgetBridge=async o=>{try{if(await getPlatform()!=="ios")return;const s=o.map(a=>{const $=`${WEB_APP_URL}/${a.viewing_code}/share`,j=`${$}${a.card_share_preference==="Send Text"?"/sms":a.card_share_preference==="Send Email"?"/email":""}`;return{AccountHandle:a.connecting_code,ViewingCode:a.viewing_code,DeepLinkEMAIL:`${WEB_APP_URL}/${a.viewing_code}/share/email`,DeepLinkSMS:`${WEB_APP_URL}/${a.viewing_code}/share/sms`,DeepLinkShare:$,DeepLinkQuickShare:j,QRCodeUrl:`${WEB_APP_URL}/${a.connecting_code}?r=widget_qr`}});await WidgetsBridgePlugin.setItem({key:"UserCards",value:JSON.stringify(s),group:"group.com.linq.app"}),await WidgetsBridgePlugin.reloadTimelines({ofKind:"com.linqapp.widget"})}catch(s){console.error(s)}},PushNotifications=registerPlugin("PushNotifications",{}),useUserLinqProducts=()=>{const o=useApiRequest(),s=useSelector($=>$.auth.apiToken),a=async()=>await o({url:`${BASE_API_URL}/api/v1/user_linq_products`,apiMethod:API_METHODS.GET});return useQuery(userLinqProductsKeys.details,()=>a(),{enabled:!!s})},DeepLinkingHandlerMobile=()=>{const o=useHistory(),{data:s,isLoading:a}=useUserLinqProducts(),$=reactExports.useCallback(_e=>{o.push(_e)},[o]),j=reactExports.useCallback(_e=>{if(["com.googleusercontent.apps.146464955589-76jjbqk86cv2o126pn1buoi9qrqndrn6:/","msauth.com.linq.app"].some(rt=>_e.startsWith(rt))||a)return;const tt=last(_e.split("/")),nt=s==null?void 0:s.find(rt=>rt.alias.code===tt);if(nt)return void $(`/products?activate-code=${nt==null?void 0:nt.alias.code}`);const it=parseDeepLinkPath(_e);it!=="/"&&$(it)},[a,s,$]);return reactExports.useEffect(()=>{async function _e(){return App$1.addListener("appUrlOpen",it=>{const rt=it.url;j(rt)})}const tt=(async()=>{if(await getPlatform()!=="web")return PushNotifications.addListener("pushNotificationActionPerformed",rt=>{var ot;const{link_route:st}=(ot=rt==null?void 0:rt.notification)==null?void 0:ot.data;st&&window.location.assign(st)})})(),nt=_e();return()=>{nt.then(it=>it.remove()).catch(console.error),tt.then(it=>it==null?void 0:it.remove()).catch(console.error)}},[j]),reactExports.useEffect(()=>{App$1.getLaunchUrl().then(_e=>{const et=_e==null?void 0:_e.url;et&&j(et)}).catch(console.error)},[j]),null},AnimatedReveal=({"data-test":o,children:s,show:a,...$})=>jsxRuntimeExports.jsx("div",{"data-test":o,children:jsxRuntimeExports.jsx(TransitionComponent,{show:a,children:({isClosing:j})=>jsxRuntimeExports.jsx(Child,{isClosing:j,...$,children:s})})}),Child=({isClosing:o,children:s,centered:a,revealDirection:$="bottom-up",fullWidth:j})=>{const[_e,{height:et,width:tt}]=useElementSize(),[nt,it]=reactExports.useState(tt||void 0),rt=o&&et!==0&&nt!==0;return reactExports.useEffect(()=>{tt&&it(tt)},[tt]),jsxRuntimeExports.jsx("div",{className:clsx("relative",o&&"overflow-hidden","transition-all duration-220 ease-out",rt?"opacity-20":"opacity-100"),style:{height:rt?0:et,width:j?"100%":nt},children:jsxRuntimeExports.jsx("div",{ref:_e,className:clsx("absolute",$==="bottom-up"&&"bottom-0",$==="top-down"&&"top-0",j?"w-full":"w-max",a&&"flex justify-center items-center"),children:s})})};var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(o,s){module.exports=s()}(commonjsGlobal$1,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(s){_useWebWorker=!!s},getWebWorker=function(){return _useWebWorker},setLocationHref=function(s){locationHref=s},getLocationHref=function(){return locationHref};function createTag(o){return document.createElement(o)}function extendPrototype(o,s){var a,$=o.length,j;for(a=0;a<$;a+=1){j=o[a].prototype;for(var _e in j)Object.prototype.hasOwnProperty.call(j,_e)&&(s.prototype[_e]=j[_e])}}function getDescriptor(o,s){return Object.getOwnPropertyDescriptor(o,s)}function createProxyFunction(o){function s(){}return s.prototype=o,s}var audioControllerFactory=function(){function o(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return o.prototype={addAudio:function(a){this.audios.push(a)},pause:function(){var a,$=this.audios.length;for(a=0;a<$;a+=1)this.audios[a].pause()},resume:function(){var a,$=this.audios.length;for(a=0;a<$;a+=1)this.audios[a].resume()},setRate:function(a){var $,j=this.audios.length;for($=0;$<j;$+=1)this.audios[$].setRate(a)},createAudio:function(a){return this.audioFactory?this.audioFactory(a):window.Howl?new window.Howl({src:[a]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(a){this.audioFactory=a},setVolume:function(a){this._volume=a,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var a,$=this.audios.length;for(a=0;a<$;a+=1)this.audios[a].volume(this._volume*(this._isMuted?0:1))}},function(){return new o}}(),createTypedArray=function(){function o(a,$){var j=0,_e=[],et;switch(a){case"int16":case"uint8c":et=1;break;default:et=1.1;break}for(j=0;j<$;j+=1)_e.push(et);return _e}function s(a,$){return a==="float32"?new Float32Array($):a==="int16"?new Int16Array($):a==="uint8c"?new Uint8ClampedArray($):o(a,$)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:o}();function createSizedArray(o){return Array.apply(null,{length:o})}function _typeof$6(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(a){return typeof a}:_typeof$6=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof$6(o)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var o=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],s,a=o.length;for(s=0;s<a;s+=1)BMMath[o[s]]=Math[o[s]]})(),BMMath.random=Math.random,BMMath.abs=function(o){var s=_typeof$6(o);if(s==="object"&&o.length){var a=createSizedArray(o.length),$,j=o.length;for($=0;$<j;$+=1)a[$]=Math.abs(o[$]);return a}return Math.abs(o)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(o){o.style.position="absolute",o.style.top=0,o.style.left=0,o.style.display="block",o.style.transformOrigin="0 0",o.style.webkitTransformOrigin="0 0",o.style.backfaceVisibility="visible",o.style.webkitBackfaceVisibility="visible",o.style.transformStyle="preserve-3d",o.style.webkitTransformStyle="preserve-3d",o.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(o,s,a,$){this.type=o,this.currentTime=s,this.totalTime=a,this.direction=$<0?-1:1}function BMCompleteEvent(o,s){this.type=o,this.direction=s<0?-1:1}function BMCompleteLoopEvent(o,s,a,$){this.type=o,this.currentLoop=a,this.totalLoops=s,this.direction=$<0?-1:1}function BMSegmentStartEvent(o,s,a){this.type=o,this.firstFrame=s,this.totalFrames=a}function BMDestroyEvent(o,s){this.type=o,this.target=s}function BMRenderFrameErrorEvent(o,s){this.type="renderFrameError",this.nativeError=o,this.currentTime=s}function BMConfigErrorEvent(o){this.type="configError",this.nativeError=o}var createElementID=function(){var o=0;return function(){return o+=1,idPrefix$1+"__lottie_element_"+o}}();function HSVtoRGB(o,s,a){var $,j,_e,et,tt,nt,it,rt;switch(et=Math.floor(o*6),tt=o*6-et,nt=a*(1-s),it=a*(1-tt*s),rt=a*(1-(1-tt)*s),et%6){case 0:$=a,j=rt,_e=nt;break;case 1:$=it,j=a,_e=nt;break;case 2:$=nt,j=a,_e=rt;break;case 3:$=nt,j=it,_e=a;break;case 4:$=rt,j=nt,_e=a;break;case 5:$=a,j=nt,_e=it;break}return[$,j,_e]}function RGBtoHSV(o,s,a){var $=Math.max(o,s,a),j=Math.min(o,s,a),_e=$-j,et,tt=$===0?0:_e/$,nt=$/255;switch($){case j:et=0;break;case o:et=s-a+_e*(s<a?6:0),et/=6*_e;break;case s:et=a-o+_e*2,et/=6*_e;break;case a:et=o-s+_e*4,et/=6*_e;break}return[et,tt,nt]}function addSaturationToRGB(o,s){var a=RGBtoHSV(o[0]*255,o[1]*255,o[2]*255);return a[1]+=s,a[1]>1?a[1]=1:a[1]<=0&&(a[1]=0),HSVtoRGB(a[0],a[1],a[2])}function addBrightnessToRGB(o,s){var a=RGBtoHSV(o[0]*255,o[1]*255,o[2]*255);return a[2]+=s,a[2]>1?a[2]=1:a[2]<0&&(a[2]=0),HSVtoRGB(a[0],a[1],a[2])}function addHueToRGB(o,s){var a=RGBtoHSV(o[0]*255,o[1]*255,o[2]*255);return a[0]+=s/360,a[0]>1?a[0]-=1:a[0]<0&&(a[0]+=1),HSVtoRGB(a[0],a[1],a[2])}var rgbToHex=function(){var o=[],s,a;for(s=0;s<256;s+=1)a=s.toString(16),o[s]=a.length===1?"0"+a:a;return function($,j,_e){return $<0&&($=0),j<0&&(j=0),_e<0&&(_e=0),"#"+o[$]+o[j]+o[_e]}}(),setSubframeEnabled=function(s){subframeEnabled=!!s},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(s){expressionsPlugin=s},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(s){expressionsInterfaces=s},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(s){defaultCurveSegments=s},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(s){idPrefix$1=s};function createNS(o){return document.createElementNS(svgNS,o)}function _typeof$5(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(a){return typeof a}:_typeof$5=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof$5(o)}var dataManager=function(){var o=1,s=[],a,$,j={onmessage:function(){},postMessage:function(at){a({data:at})}},_e={postMessage:function(at){j.onmessage({data:at})}};function et(ot){if(window.Worker&&window.Blob&&getWebWorker()){var at=new Blob(["var _workerSelf = self; self.onmessage = ",ot.toString()],{type:"text/javascript"}),lt=URL.createObjectURL(at);return new Worker(lt)}return a=ot,j}function tt(){$||($=et(function(at){function lt(){function ht(Pt,wt){var Lt,vt,xt=Pt.length,Ut,Et,Dt,Bt;for(vt=0;vt<xt;vt+=1)if(Lt=Pt[vt],"ks"in Lt&&!Lt.completed){if(Lt.completed=!0,Lt.hasMask){var Wt=Lt.masksProperties;for(Et=Wt.length,Ut=0;Ut<Et;Ut+=1)if(Wt[Ut].pt.k.i)mt(Wt[Ut].pt.k);else for(Bt=Wt[Ut].pt.k.length,Dt=0;Dt<Bt;Dt+=1)Wt[Ut].pt.k[Dt].s&&mt(Wt[Ut].pt.k[Dt].s[0]),Wt[Ut].pt.k[Dt].e&&mt(Wt[Ut].pt.k[Dt].e[0])}Lt.ty===0?(Lt.layers=pt(Lt.refId,wt),ht(Lt.layers,wt)):Lt.ty===4?ft(Lt.shapes):Lt.ty===5&&Ct(Lt)}}function dt(Pt,wt){if(Pt){var Lt=0,vt=Pt.length;for(Lt=0;Lt<vt;Lt+=1)Pt[Lt].t===1&&(Pt[Lt].data.layers=pt(Pt[Lt].data.refId,wt),ht(Pt[Lt].data.layers,wt))}}function ut(Pt,wt){for(var Lt=0,vt=wt.length;Lt<vt;){if(wt[Lt].id===Pt)return wt[Lt];Lt+=1}return null}function pt(Pt,wt){var Lt=ut(Pt,wt);return Lt?Lt.layers.__used?JSON.parse(JSON.stringify(Lt.layers)):(Lt.layers.__used=!0,Lt.layers):null}function ft(Pt){var wt,Lt=Pt.length,vt,xt;for(wt=Lt-1;wt>=0;wt-=1)if(Pt[wt].ty==="sh")if(Pt[wt].ks.k.i)mt(Pt[wt].ks.k);else for(xt=Pt[wt].ks.k.length,vt=0;vt<xt;vt+=1)Pt[wt].ks.k[vt].s&&mt(Pt[wt].ks.k[vt].s[0]),Pt[wt].ks.k[vt].e&&mt(Pt[wt].ks.k[vt].e[0]);else Pt[wt].ty==="gr"&&ft(Pt[wt].it)}function mt(Pt){var wt,Lt=Pt.i.length;for(wt=0;wt<Lt;wt+=1)Pt.i[wt][0]+=Pt.v[wt][0],Pt.i[wt][1]+=Pt.v[wt][1],Pt.o[wt][0]+=Pt.v[wt][0],Pt.o[wt][1]+=Pt.v[wt][1]}function gt(Pt,wt){var Lt=wt?wt.split("."):[100,100,100];return Pt[0]>Lt[0]?!0:Lt[0]>Pt[0]?!1:Pt[1]>Lt[1]?!0:Lt[1]>Pt[1]?!1:Pt[2]>Lt[2]?!0:Lt[2]>Pt[2]?!1:null}var bt=function(){var Pt=[4,4,14];function wt(vt){var xt=vt.t.d;vt.t.d={k:[{s:xt,t:0}]}}function Lt(vt){var xt,Ut=vt.length;for(xt=0;xt<Ut;xt+=1)vt[xt].ty===5&&wt(vt[xt])}return function(vt){if(gt(Pt,vt.v)&&(Lt(vt.layers),vt.assets)){var xt,Ut=vt.assets.length;for(xt=0;xt<Ut;xt+=1)vt.assets[xt].layers&&Lt(vt.assets[xt].layers)}}}(),St=function(){var Pt=[4,7,99];return function(wt){if(wt.chars&&!gt(Pt,wt.v)){var Lt,vt=wt.chars.length;for(Lt=0;Lt<vt;Lt+=1){var xt=wt.chars[Lt];xt.data&&xt.data.shapes&&(ft(xt.data.shapes),xt.data.ip=0,xt.data.op=99999,xt.data.st=0,xt.data.sr=1,xt.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},wt.chars[Lt].t||(xt.data.shapes.push({ty:"no"}),xt.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),Nt=function(){var Pt=[5,7,15];function wt(vt){var xt=vt.t.p;typeof xt.a=="number"&&(xt.a={a:0,k:xt.a}),typeof xt.p=="number"&&(xt.p={a:0,k:xt.p}),typeof xt.r=="number"&&(xt.r={a:0,k:xt.r})}function Lt(vt){var xt,Ut=vt.length;for(xt=0;xt<Ut;xt+=1)vt[xt].ty===5&&wt(vt[xt])}return function(vt){if(gt(Pt,vt.v)&&(Lt(vt.layers),vt.assets)){var xt,Ut=vt.assets.length;for(xt=0;xt<Ut;xt+=1)vt.assets[xt].layers&&Lt(vt.assets[xt].layers)}}}(),Rt=function(){var Pt=[4,1,9];function wt(vt){var xt,Ut=vt.length,Et,Dt;for(xt=0;xt<Ut;xt+=1)if(vt[xt].ty==="gr")wt(vt[xt].it);else if(vt[xt].ty==="fl"||vt[xt].ty==="st")if(vt[xt].c.k&&vt[xt].c.k[0].i)for(Dt=vt[xt].c.k.length,Et=0;Et<Dt;Et+=1)vt[xt].c.k[Et].s&&(vt[xt].c.k[Et].s[0]/=255,vt[xt].c.k[Et].s[1]/=255,vt[xt].c.k[Et].s[2]/=255,vt[xt].c.k[Et].s[3]/=255),vt[xt].c.k[Et].e&&(vt[xt].c.k[Et].e[0]/=255,vt[xt].c.k[Et].e[1]/=255,vt[xt].c.k[Et].e[2]/=255,vt[xt].c.k[Et].e[3]/=255);else vt[xt].c.k[0]/=255,vt[xt].c.k[1]/=255,vt[xt].c.k[2]/=255,vt[xt].c.k[3]/=255}function Lt(vt){var xt,Ut=vt.length;for(xt=0;xt<Ut;xt+=1)vt[xt].ty===4&&wt(vt[xt].shapes)}return function(vt){if(gt(Pt,vt.v)&&(Lt(vt.layers),vt.assets)){var xt,Ut=vt.assets.length;for(xt=0;xt<Ut;xt+=1)vt.assets[xt].layers&&Lt(vt.assets[xt].layers)}}}(),Ft=function(){var Pt=[4,4,18];function wt(vt){var xt,Ut=vt.length,Et,Dt;for(xt=Ut-1;xt>=0;xt-=1)if(vt[xt].ty==="sh")if(vt[xt].ks.k.i)vt[xt].ks.k.c=vt[xt].closed;else for(Dt=vt[xt].ks.k.length,Et=0;Et<Dt;Et+=1)vt[xt].ks.k[Et].s&&(vt[xt].ks.k[Et].s[0].c=vt[xt].closed),vt[xt].ks.k[Et].e&&(vt[xt].ks.k[Et].e[0].c=vt[xt].closed);else vt[xt].ty==="gr"&&wt(vt[xt].it)}function Lt(vt){var xt,Ut,Et=vt.length,Dt,Bt,Wt,Zt;for(Ut=0;Ut<Et;Ut+=1){if(xt=vt[Ut],xt.hasMask){var sn=xt.masksProperties;for(Bt=sn.length,Dt=0;Dt<Bt;Dt+=1)if(sn[Dt].pt.k.i)sn[Dt].pt.k.c=sn[Dt].cl;else for(Zt=sn[Dt].pt.k.length,Wt=0;Wt<Zt;Wt+=1)sn[Dt].pt.k[Wt].s&&(sn[Dt].pt.k[Wt].s[0].c=sn[Dt].cl),sn[Dt].pt.k[Wt].e&&(sn[Dt].pt.k[Wt].e[0].c=sn[Dt].cl)}xt.ty===4&&wt(xt.shapes)}}return function(vt){if(gt(Pt,vt.v)&&(Lt(vt.layers),vt.assets)){var xt,Ut=vt.assets.length;for(xt=0;xt<Ut;xt+=1)vt.assets[xt].layers&&Lt(vt.assets[xt].layers)}}}();function Ot(Pt){Pt.__complete||(Rt(Pt),bt(Pt),St(Pt),Nt(Pt),Ft(Pt),ht(Pt.layers,Pt.assets),dt(Pt.chars,Pt.assets),Pt.__complete=!0)}function Ct(Pt){Pt.t.a.length===0&&"m"in Pt.t.p}var yt={};return yt.completeData=Ot,yt.checkColors=Rt,yt.checkChars=St,yt.checkPathProperties=Nt,yt.checkShapes=Ft,yt.completeLayers=ht,yt}if(_e.dataManager||(_e.dataManager=lt()),_e.assetLoader||(_e.assetLoader=function(){function ht(ut){var pt=ut.getResponseHeader("content-type");return pt&&ut.responseType==="json"&&pt.indexOf("json")!==-1||ut.response&&_typeof$5(ut.response)==="object"?ut.response:ut.response&&typeof ut.response=="string"?JSON.parse(ut.response):ut.responseText?JSON.parse(ut.responseText):null}function dt(ut,pt,ft,mt){var gt,bt=new XMLHttpRequest;try{bt.responseType="json"}catch{}bt.onreadystatechange=function(){if(bt.readyState===4)if(bt.status===200)gt=ht(bt),ft(gt);else try{gt=ht(bt),ft(gt)}catch(St){mt&&mt(St)}};try{bt.open(["G","E","T"].join(""),ut,!0)}catch{bt.open(["G","E","T"].join(""),pt+"/"+ut,!0)}bt.send()}return{load:dt}}()),at.data.type==="loadAnimation")_e.assetLoader.load(at.data.path,at.data.fullPath,function(ht){_e.dataManager.completeData(ht),_e.postMessage({id:at.data.id,payload:ht,status:"success"})},function(){_e.postMessage({id:at.data.id,status:"error"})});else if(at.data.type==="complete"){var ct=at.data.animation;_e.dataManager.completeData(ct),_e.postMessage({id:at.data.id,payload:ct,status:"success"})}else at.data.type==="loadData"&&_e.assetLoader.load(at.data.path,at.data.fullPath,function(ht){_e.postMessage({id:at.data.id,payload:ht,status:"success"})},function(){_e.postMessage({id:at.data.id,status:"error"})})}),$.onmessage=function(ot){var at=ot.data,lt=at.id,ct=s[lt];s[lt]=null,at.status==="success"?ct.onComplete(at.payload):ct.onError&&ct.onError()})}function nt(ot,at){o+=1;var lt="processId_"+o;return s[lt]={onComplete:ot,onError:at},lt}function it(ot,at,lt){tt();var ct=nt(at,lt);$.postMessage({type:"loadAnimation",path:ot,fullPath:window.location.origin+window.location.pathname,id:ct})}function rt(ot,at,lt){tt();var ct=nt(at,lt);$.postMessage({type:"loadData",path:ot,fullPath:window.location.origin+window.location.pathname,id:ct})}function st(ot,at,lt){tt();var ct=nt(at,lt);$.postMessage({type:"complete",animation:ot,id:ct})}return{loadAnimation:it,loadData:rt,completeAnimation:st}}(),ImagePreloader=function(){var o=function(){var dt=createTag("canvas");dt.width=1,dt.height=1;var ut=dt.getContext("2d");return ut.fillStyle="rgba(0,0,0,0)",ut.fillRect(0,0,1,1),dt}();function s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function $(dt,ut,pt){var ft="";if(dt.e)ft=dt.p;else if(ut){var mt=dt.p;mt.indexOf("images/")!==-1&&(mt=mt.split("/")[1]),ft=ut+mt}else ft=pt,ft+=dt.u?dt.u:"",ft+=dt.p;return ft}function j(dt){var ut=0,pt=setInterval((function(){var ft=dt.getBBox();(ft.width||ut>500)&&(this._imageLoaded(),clearInterval(pt)),ut+=1}).bind(this),50)}function _e(dt){var ut=$(dt,this.assetsPath,this.path),pt=createNS("image");isSafari?this.testImageLoaded(pt):pt.addEventListener("load",this._imageLoaded,!1),pt.addEventListener("error",(function(){ft.img=o,this._imageLoaded()}).bind(this),!1),pt.setAttributeNS("http://www.w3.org/1999/xlink","href",ut),this._elementHelper.append?this._elementHelper.append(pt):this._elementHelper.appendChild(pt);var ft={img:pt,assetData:dt};return ft}function et(dt){var ut=$(dt,this.assetsPath,this.path),pt=createTag("img");pt.crossOrigin="anonymous",pt.addEventListener("load",this._imageLoaded,!1),pt.addEventListener("error",(function(){ft.img=o,this._imageLoaded()}).bind(this),!1),pt.src=ut;var ft={img:pt,assetData:dt};return ft}function tt(dt){var ut={assetData:dt},pt=$(dt,this.assetsPath,this.path);return dataManager.loadData(pt,(function(ft){ut.img=ft,this._footageLoaded()}).bind(this),(function(){ut.img={},this._footageLoaded()}).bind(this)),ut}function nt(dt,ut){this.imagesLoadedCb=ut;var pt,ft=dt.length;for(pt=0;pt<ft;pt+=1)dt[pt].layers||(!dt[pt].t||dt[pt].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(dt[pt]))):dt[pt].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(dt[pt]))))}function it(dt){this.path=dt||""}function rt(dt){this.assetsPath=dt||""}function st(dt){for(var ut=0,pt=this.images.length;ut<pt;){if(this.images[ut].assetData===dt)return this.images[ut].img;ut+=1}return null}function ot(){this.imagesLoadedCb=null,this.images.length=0}function at(){return this.totalImages===this.loadedAssets}function lt(){return this.totalFootages===this.loadedFootagesCount}function ct(dt,ut){dt==="svg"?(this._elementHelper=ut,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function ht(){this._imageLoaded=s.bind(this),this._footageLoaded=a.bind(this),this.testImageLoaded=j.bind(this),this.createFootageData=tt.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return ht.prototype={loadAssets:nt,setAssetsPath:rt,setPath:it,loadedImages:at,loadedFootages:lt,destroy:ot,getAsset:st,createImgData:et,createImageData:_e,imageLoaded:s,footageLoaded:a,setCacheType:ct},ht}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(s,a){if(this._cbs[s])for(var $=this._cbs[s],j=0;j<$.length;j+=1)$[j](a)},addEventListener:function(s,a){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(a),(function(){this.removeEventListener(s,a)}).bind(this)},removeEventListener:function(s,a){if(!a)this._cbs[s]=null;else if(this._cbs[s]){for(var $=0,j=this._cbs[s].length;$<j;)this._cbs[s][$]===a&&(this._cbs[s].splice($,1),$-=1,j-=1),$+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var markerParser=function(){function o(s){for(var a=s.split(`\r
`),$={},j,_e=0,et=0;et<a.length;et+=1)j=a[et].split(":"),j.length===2&&($[j[0]]=j[1].trim(),_e+=1);if(_e===0)throw new Error;return $}return function(s){for(var a=[],$=0;$<s.length;$+=1){var j=s[$],_e={time:j.tm,duration:j.dr};try{_e.payload=JSON.parse(s[$].cm)}catch{try{_e.payload=o(s[$].cm)}catch{_e.payload={name:s[$].cm}}}a.push(_e)}return a}}(),ProjectInterface=function(){function o(s){this.compositions.push(s)}return function(){function s(a){for(var $=0,j=this.compositions.length;$<j;){if(this.compositions[$].data&&this.compositions[$].data.nm===a)return this.compositions[$].prepareFrame&&this.compositions[$].data.xt&&this.compositions[$].prepareFrame(this.currentFrame),this.compositions[$].compInterface;$+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=o,s}}(),renderers={},registerRenderer=function(s,a){renderers[s]=a};function getRenderer(o){return renderers[o]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var o in renderers)if(renderers[o])return o;return""}function _typeof$4(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(a){return typeof a}:_typeof$4=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof$4(o)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(o){(o.wrapper||o.container)&&(this.wrapper=o.wrapper||o.container);var s="svg";o.animType?s=o.animType:o.renderer&&(s=o.renderer);var a=getRenderer(s);this.renderer=new a(this,o.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,o.loop===""||o.loop===null||o.loop===void 0||o.loop===!0?this.loop=!0:o.loop===!1?this.loop=!1:this.loop=parseInt(o.loop,10),this.autoplay="autoplay"in o?o.autoplay:!0,this.name=o.name?o.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(o,"autoloadSegments")?o.autoloadSegments:!0,this.assetsPath=o.assetsPath,this.initialSegment=o.initialSegment,o.audioFactory&&this.audioController.setAudioFactory(o.audioFactory),o.animationData?this.setupAnimation(o.animationData):o.path&&(o.path.lastIndexOf("\\")!==-1?this.path=o.path.substr(0,o.path.lastIndexOf("\\")+1):this.path=o.path.substr(0,o.path.lastIndexOf("/")+1),this.fileName=o.path.substr(o.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(o.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(o){dataManager.completeAnimation(o,this.configAnimation)},AnimationItem.prototype.setData=function(o,s){s&&_typeof$4(s)!=="object"&&(s=JSON.parse(s));var a={wrapper:o,animationData:s},$=o.attributes;a.path=$.getNamedItem("data-animation-path")?$.getNamedItem("data-animation-path").value:$.getNamedItem("data-bm-path")?$.getNamedItem("data-bm-path").value:$.getNamedItem("bm-path")?$.getNamedItem("bm-path").value:"",a.animType=$.getNamedItem("data-anim-type")?$.getNamedItem("data-anim-type").value:$.getNamedItem("data-bm-type")?$.getNamedItem("data-bm-type").value:$.getNamedItem("bm-type")?$.getNamedItem("bm-type").value:$.getNamedItem("data-bm-renderer")?$.getNamedItem("data-bm-renderer").value:$.getNamedItem("bm-renderer")?$.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var j=$.getNamedItem("data-anim-loop")?$.getNamedItem("data-anim-loop").value:$.getNamedItem("data-bm-loop")?$.getNamedItem("data-bm-loop").value:$.getNamedItem("bm-loop")?$.getNamedItem("bm-loop").value:"";j==="false"?a.loop=!1:j==="true"?a.loop=!0:j!==""&&(a.loop=parseInt(j,10));var _e=$.getNamedItem("data-anim-autoplay")?$.getNamedItem("data-anim-autoplay").value:$.getNamedItem("data-bm-autoplay")?$.getNamedItem("data-bm-autoplay").value:$.getNamedItem("bm-autoplay")?$.getNamedItem("bm-autoplay").value:!0;a.autoplay=_e!=="false",a.name=$.getNamedItem("data-name")?$.getNamedItem("data-name").value:$.getNamedItem("data-bm-name")?$.getNamedItem("data-bm-name").value:$.getNamedItem("bm-name")?$.getNamedItem("bm-name").value:"";var et=$.getNamedItem("data-anim-prerender")?$.getNamedItem("data-anim-prerender").value:$.getNamedItem("data-bm-prerender")?$.getNamedItem("data-bm-prerender").value:$.getNamedItem("bm-prerender")?$.getNamedItem("bm-prerender").value:"";et==="false"&&(a.prerender=!1),a.path?this.setParams(a):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(o){o.op>this.animationData.op&&(this.animationData.op=o.op,this.totalFrames=Math.floor(o.op-this.animationData.ip));var s=this.animationData.layers,a,$=s.length,j=o.layers,_e,et=j.length;for(_e=0;_e<et;_e+=1)for(a=0;a<$;){if(s[a].id===j[_e].id){s[a]=j[_e];break}a+=1}if((o.chars||o.fonts)&&(this.renderer.globalData.fontManager.addChars(o.chars),this.renderer.globalData.fontManager.addFonts(o.fonts,this.renderer.globalData.defs)),o.assets)for($=o.assets.length,a=0;a<$;a+=1)this.animationData.assets.push(o.assets[a]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(o){this.animationData=o;var s=getExpressionsPlugin();s&&s.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var o=this.animationData.segments;if(!o||o.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=o.shift();this.timeCompleted=s.time*this.frameRate;var a=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(a,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var o=this.animationData.segments;o||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(o){if(this.renderer)try{this.animationData=o,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(o),o.assets||(o.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(o.assets),this.markers=markerParser(o.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(s){this.triggerConfigError(s)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var o=getExpressionsPlugin();o&&o.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(o,s){var a=typeof o=="number"?o:void 0,$=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(a,$)},AnimationItem.prototype.setSubframe=function(o){this.isSubframeEnabled=!!o},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(o){this.triggerRenderFrameError(o)}},AnimationItem.prototype.play=function(o){o&&this.name!==o||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(o){o&&this.name!==o||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(o){o&&this.name!==o||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(o){o&&this.name!==o||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(o){for(var s,a=0;a<this.markers.length;a+=1)if(s=this.markers[a],s.payload&&s.payload.name===o)return s;return null},AnimationItem.prototype.goToAndStop=function(o,s,a){if(!(a&&this.name!==a)){var $=Number(o);if(isNaN($)){var j=this.getMarkerData(o);j&&this.goToAndStop(j.time,!0)}else s?this.setCurrentRawFrameValue(o):this.setCurrentRawFrameValue(o*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(o,s,a){if(!(a&&this.name!==a)){var $=Number(o);if(isNaN($)){var j=this.getMarkerData(o);j&&(j.duration?this.playSegments([j.time,j.time+j.duration],!0):this.goToAndStop(j.time,!0))}else this.goToAndStop($,s,a);this.play()}},AnimationItem.prototype.advanceTime=function(o){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+o*this.frameModifier,a=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(a=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(a=!0,s=0)):this.setCurrentRawFrameValue(s),a&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(o,s){this.playCount=0,o[1]<o[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=o[0]-o[1],this.timeCompleted=this.totalFrames,this.firstFrame=o[1],this.setCurrentRawFrameValue(this.totalFrames-.001-s)):o[1]>o[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=o[1]-o[0],this.timeCompleted=this.totalFrames,this.firstFrame=o[0],this.setCurrentRawFrameValue(.001+s)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(o,s){var a=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<o?a=o:this.currentRawFrame+this.firstFrame>s&&(a=s-o)),this.firstFrame=o,this.totalFrames=s-o,this.timeCompleted=this.totalFrames,a!==-1&&this.goToAndStop(a,!0)},AnimationItem.prototype.playSegments=function(o,s){if(s&&(this.segments.length=0),_typeof$4(o[0])==="object"){var a,$=o.length;for(a=0;a<$;a+=1)this.segments.push(o[a])}else this.segments.push(o);this.segments.length&&s&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(o){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),o&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(o){return this.segments.length?(this.adjustSegment(this.segments.shift(),o),!0):!1},AnimationItem.prototype.destroy=function(o){o&&this.name!==o||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(o){this.currentRawFrame=o,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(o){this.playSpeed=o,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(o){this.playDirection=o<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(o){this.loop=o},AnimationItem.prototype.setVolume=function(o,s){s&&this.name!==s||this.audioController.setVolume(o)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(o){o&&this.name!==o||this.audioController.mute()},AnimationItem.prototype.unmute=function(o){o&&this.name!==o||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(o){var s="";if(o.e)s=o.p;else if(this.assetsPath){var a=o.p;a.indexOf("images/")!==-1&&(a=a.split("/")[1]),s=this.assetsPath+a}else s=this.path,s+=o.u?o.u:"",s+=o.p;return s},AnimationItem.prototype.getAssetData=function(o){for(var s=0,a=this.assets.length;s<a;){if(o===this.assets[s].id)return this.assets[s];s+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(o){return o?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(o,s,a){try{var $=this.renderer.getElementByPath(o);$.updateDocumentData(s,a)}catch{}},AnimationItem.prototype.trigger=function(o){if(this._cbs&&this._cbs[o])switch(o){case"enterFrame":this.triggerEvent(o,new BMEnterFrameEvent(o,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(o,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(o,new BMCompleteLoopEvent(o,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(o,new BMCompleteEvent(o,this.frameMult));break;case"segmentStart":this.triggerEvent(o,new BMSegmentStartEvent(o,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(o,new BMDestroyEvent(o,this));break;default:this.triggerEvent(o)}o==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(o,this.currentFrame,this.totalFrames,this.frameMult)),o==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(o,this.loop,this.playCount,this.frameMult)),o==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(o,this.frameMult)),o==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(o,this.firstFrame,this.totalFrames)),o==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(o,this))},AnimationItem.prototype.triggerRenderFrameError=function(o){var s=new BMRenderFrameErrorEvent(o,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},AnimationItem.prototype.triggerConfigError=function(o){var s=new BMConfigErrorEvent(o,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var animationManager=function(){var o={},s=[],a=0,$=0,j=0,_e=!0,et=!1;function tt(wt){for(var Lt=0,vt=wt.target;Lt<$;)s[Lt].animation===vt&&(s.splice(Lt,1),Lt-=1,$-=1,vt.isPaused||st()),Lt+=1}function nt(wt,Lt){if(!wt)return null;for(var vt=0;vt<$;){if(s[vt].elem===wt&&s[vt].elem!==null)return s[vt].animation;vt+=1}var xt=new AnimationItem;return ot(xt,wt),xt.setData(wt,Lt),xt}function it(){var wt,Lt=s.length,vt=[];for(wt=0;wt<Lt;wt+=1)vt.push(s[wt].animation);return vt}function rt(){j+=1,Rt()}function st(){j-=1}function ot(wt,Lt){wt.addEventListener("destroy",tt),wt.addEventListener("_active",rt),wt.addEventListener("_idle",st),s.push({elem:Lt,animation:wt}),$+=1}function at(wt){var Lt=new AnimationItem;return ot(Lt,null),Lt.setParams(wt),Lt}function lt(wt,Lt){var vt;for(vt=0;vt<$;vt+=1)s[vt].animation.setSpeed(wt,Lt)}function ct(wt,Lt){var vt;for(vt=0;vt<$;vt+=1)s[vt].animation.setDirection(wt,Lt)}function ht(wt){var Lt;for(Lt=0;Lt<$;Lt+=1)s[Lt].animation.play(wt)}function dt(wt){var Lt=wt-a,vt;for(vt=0;vt<$;vt+=1)s[vt].animation.advanceTime(Lt);a=wt,j&&!et?window.requestAnimationFrame(dt):_e=!0}function ut(wt){a=wt,window.requestAnimationFrame(dt)}function pt(wt){var Lt;for(Lt=0;Lt<$;Lt+=1)s[Lt].animation.pause(wt)}function ft(wt,Lt,vt){var xt;for(xt=0;xt<$;xt+=1)s[xt].animation.goToAndStop(wt,Lt,vt)}function mt(wt){var Lt;for(Lt=0;Lt<$;Lt+=1)s[Lt].animation.stop(wt)}function gt(wt){var Lt;for(Lt=0;Lt<$;Lt+=1)s[Lt].animation.togglePause(wt)}function bt(wt){var Lt;for(Lt=$-1;Lt>=0;Lt-=1)s[Lt].animation.destroy(wt)}function St(wt,Lt,vt){var xt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Ut,Et=xt.length;for(Ut=0;Ut<Et;Ut+=1)vt&&xt[Ut].setAttribute("data-bm-type",vt),nt(xt[Ut],wt);if(Lt&&Et===0){vt||(vt="svg");var Dt=document.getElementsByTagName("body")[0];Dt.innerText="";var Bt=createTag("div");Bt.style.width="100%",Bt.style.height="100%",Bt.setAttribute("data-bm-type",vt),Dt.appendChild(Bt),nt(Bt,wt)}}function Nt(){var wt;for(wt=0;wt<$;wt+=1)s[wt].animation.resize()}function Rt(){!et&&j&&_e&&(window.requestAnimationFrame(ut),_e=!1)}function Ft(){et=!0}function Ot(){et=!1,Rt()}function Ct(wt,Lt){var vt;for(vt=0;vt<$;vt+=1)s[vt].animation.setVolume(wt,Lt)}function yt(wt){var Lt;for(Lt=0;Lt<$;Lt+=1)s[Lt].animation.mute(wt)}function Pt(wt){var Lt;for(Lt=0;Lt<$;Lt+=1)s[Lt].animation.unmute(wt)}return o.registerAnimation=nt,o.loadAnimation=at,o.setSpeed=lt,o.setDirection=ct,o.play=ht,o.pause=pt,o.stop=mt,o.togglePause=gt,o.searchAnimations=St,o.resize=Nt,o.goToAndStop=ft,o.destroy=bt,o.freeze=Ft,o.unfreeze=Ot,o.setVolume=Ct,o.mute=yt,o.unmute=Pt,o.getRegisteredAnimations=it,o}(),BezierFactory=function(){var o={};o.getBezierEasing=a;var s={};function a(ut,pt,ft,mt,gt){var bt=gt||("bez_"+ut+"_"+pt+"_"+ft+"_"+mt).replace(/\./g,"p");if(s[bt])return s[bt];var St=new dt([ut,pt,ft,mt]);return s[bt]=St,St}var $=4,j=.001,_e=1e-7,et=10,tt=11,nt=1/(tt-1),it=typeof Float32Array=="function";function rt(ut,pt){return 1-3*pt+3*ut}function st(ut,pt){return 3*pt-6*ut}function ot(ut){return 3*ut}function at(ut,pt,ft){return((rt(pt,ft)*ut+st(pt,ft))*ut+ot(pt))*ut}function lt(ut,pt,ft){return 3*rt(pt,ft)*ut*ut+2*st(pt,ft)*ut+ot(pt)}function ct(ut,pt,ft,mt,gt){var bt,St,Nt=0;do St=pt+(ft-pt)/2,bt=at(St,mt,gt)-ut,bt>0?ft=St:pt=St;while(Math.abs(bt)>_e&&++Nt<et);return St}function ht(ut,pt,ft,mt){for(var gt=0;gt<$;++gt){var bt=lt(pt,ft,mt);if(bt===0)return pt;var St=at(pt,ft,mt)-ut;pt-=St/bt}return pt}function dt(ut){this._p=ut,this._mSampleValues=it?new Float32Array(tt):new Array(tt),this._precomputed=!1,this.get=this.get.bind(this)}return dt.prototype={get:function(pt){var ft=this._p[0],mt=this._p[1],gt=this._p[2],bt=this._p[3];return this._precomputed||this._precompute(),ft===mt&&gt===bt?pt:pt===0?0:pt===1?1:at(this._getTForX(pt),mt,bt)},_precompute:function(){var pt=this._p[0],ft=this._p[1],mt=this._p[2],gt=this._p[3];this._precomputed=!0,(pt!==ft||mt!==gt)&&this._calcSampleValues()},_calcSampleValues:function(){for(var pt=this._p[0],ft=this._p[2],mt=0;mt<tt;++mt)this._mSampleValues[mt]=at(mt*nt,pt,ft)},_getTForX:function(pt){for(var ft=this._p[0],mt=this._p[2],gt=this._mSampleValues,bt=0,St=1,Nt=tt-1;St!==Nt&&gt[St]<=pt;++St)bt+=nt;--St;var Rt=(pt-gt[St])/(gt[St+1]-gt[St]),Ft=bt+Rt*nt,Ot=lt(Ft,ft,mt);return Ot>=j?ht(pt,Ft,ft,mt):Ot===0?Ft:ct(pt,bt,bt+nt,ft,mt)}},o}(),pooling=function(){function o(s){return s.concat(createSizedArray(s.length))}return{double:o}}(),poolFactory=function(){return function(o,s,a){var $=0,j=o,_e=createSizedArray(j),et={newElement:tt,release:nt};function tt(){var it;return $?($-=1,it=_e[$]):it=s(),it}function nt(it){$===j&&(_e=pooling.double(_e),j*=2),a&&a(it),_e[$]=it,$+=1}return et}}(),bezierLengthPool=function(){function o(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,o)}(),segmentsLengthPool=function(){function o(){return{lengths:[],totalLength:0}}function s(a){var $,j=a.lengths.length;for($=0;$<j;$+=1)bezierLengthPool.release(a.lengths[$]);a.lengths.length=0}return poolFactory(8,o,s)}();function bezFunction(){var o=Math;function s(ot,at,lt,ct,ht,dt){var ut=ot*ct+at*ht+lt*dt-ht*ct-dt*ot-lt*at;return ut>-.001&&ut<.001}function a(ot,at,lt,ct,ht,dt,ut,pt,ft){if(lt===0&&dt===0&&ft===0)return s(ot,at,ct,ht,ut,pt);var mt=o.sqrt(o.pow(ct-ot,2)+o.pow(ht-at,2)+o.pow(dt-lt,2)),gt=o.sqrt(o.pow(ut-ot,2)+o.pow(pt-at,2)+o.pow(ft-lt,2)),bt=o.sqrt(o.pow(ut-ct,2)+o.pow(pt-ht,2)+o.pow(ft-dt,2)),St;return mt>gt?mt>bt?St=mt-gt-bt:St=bt-gt-mt:bt>gt?St=bt-gt-mt:St=gt-mt-bt,St>-1e-4&&St<1e-4}var $=function(){return function(ot,at,lt,ct){var ht=getDefaultCurveSegments(),dt,ut,pt,ft,mt,gt=0,bt,St=[],Nt=[],Rt=bezierLengthPool.newElement();for(pt=lt.length,dt=0;dt<ht;dt+=1){for(mt=dt/(ht-1),bt=0,ut=0;ut<pt;ut+=1)ft=bmPow(1-mt,3)*ot[ut]+3*bmPow(1-mt,2)*mt*lt[ut]+3*(1-mt)*bmPow(mt,2)*ct[ut]+bmPow(mt,3)*at[ut],St[ut]=ft,Nt[ut]!==null&&(bt+=bmPow(St[ut]-Nt[ut],2)),Nt[ut]=St[ut];bt&&(bt=bmSqrt(bt),gt+=bt),Rt.percents[dt]=mt,Rt.lengths[dt]=gt}return Rt.addedLength=gt,Rt}}();function j(ot){var at=segmentsLengthPool.newElement(),lt=ot.c,ct=ot.v,ht=ot.o,dt=ot.i,ut,pt=ot._length,ft=at.lengths,mt=0;for(ut=0;ut<pt-1;ut+=1)ft[ut]=$(ct[ut],ct[ut+1],ht[ut],dt[ut+1]),mt+=ft[ut].addedLength;return lt&&pt&&(ft[ut]=$(ct[ut],ct[0],ht[ut],dt[0]),mt+=ft[ut].addedLength),at.totalLength=mt,at}function _e(ot){this.segmentLength=0,this.points=new Array(ot)}function et(ot,at){this.partialLength=ot,this.point=at}var tt=function(){var ot={};return function(at,lt,ct,ht){var dt=(at[0]+"_"+at[1]+"_"+lt[0]+"_"+lt[1]+"_"+ct[0]+"_"+ct[1]+"_"+ht[0]+"_"+ht[1]).replace(/\./g,"p");if(!ot[dt]){var ut=getDefaultCurveSegments(),pt,ft,mt,gt,bt,St=0,Nt,Rt,Ft=null;at.length===2&&(at[0]!==lt[0]||at[1]!==lt[1])&&s(at[0],at[1],lt[0],lt[1],at[0]+ct[0],at[1]+ct[1])&&s(at[0],at[1],lt[0],lt[1],lt[0]+ht[0],lt[1]+ht[1])&&(ut=2);var Ot=new _e(ut);for(mt=ct.length,pt=0;pt<ut;pt+=1){for(Rt=createSizedArray(mt),bt=pt/(ut-1),Nt=0,ft=0;ft<mt;ft+=1)gt=bmPow(1-bt,3)*at[ft]+3*bmPow(1-bt,2)*bt*(at[ft]+ct[ft])+3*(1-bt)*bmPow(bt,2)*(lt[ft]+ht[ft])+bmPow(bt,3)*lt[ft],Rt[ft]=gt,Ft!==null&&(Nt+=bmPow(Rt[ft]-Ft[ft],2));Nt=bmSqrt(Nt),St+=Nt,Ot.points[pt]=new et(Nt,Rt),Ft=Rt}Ot.segmentLength=St,ot[dt]=Ot}return ot[dt]}}();function nt(ot,at){var lt=at.percents,ct=at.lengths,ht=lt.length,dt=bmFloor((ht-1)*ot),ut=ot*at.addedLength,pt=0;if(dt===ht-1||dt===0||ut===ct[dt])return lt[dt];for(var ft=ct[dt]>ut?-1:1,mt=!0;mt;)if(ct[dt]<=ut&&ct[dt+1]>ut?(pt=(ut-ct[dt])/(ct[dt+1]-ct[dt]),mt=!1):dt+=ft,dt<0||dt>=ht-1){if(dt===ht-1)return lt[dt];mt=!1}return lt[dt]+(lt[dt+1]-lt[dt])*pt}function it(ot,at,lt,ct,ht,dt){var ut=nt(ht,dt),pt=1-ut,ft=o.round((pt*pt*pt*ot[0]+(ut*pt*pt+pt*ut*pt+pt*pt*ut)*lt[0]+(ut*ut*pt+pt*ut*ut+ut*pt*ut)*ct[0]+ut*ut*ut*at[0])*1e3)/1e3,mt=o.round((pt*pt*pt*ot[1]+(ut*pt*pt+pt*ut*pt+pt*pt*ut)*lt[1]+(ut*ut*pt+pt*ut*ut+ut*pt*ut)*ct[1]+ut*ut*ut*at[1])*1e3)/1e3;return[ft,mt]}var rt=createTypedArray("float32",8);function st(ot,at,lt,ct,ht,dt,ut){ht<0?ht=0:ht>1&&(ht=1);var pt=nt(ht,ut);dt=dt>1?1:dt;var ft=nt(dt,ut),mt,gt=ot.length,bt=1-pt,St=1-ft,Nt=bt*bt*bt,Rt=pt*bt*bt*3,Ft=pt*pt*bt*3,Ot=pt*pt*pt,Ct=bt*bt*St,yt=pt*bt*St+bt*pt*St+bt*bt*ft,Pt=pt*pt*St+bt*pt*ft+pt*bt*ft,wt=pt*pt*ft,Lt=bt*St*St,vt=pt*St*St+bt*ft*St+bt*St*ft,xt=pt*ft*St+bt*ft*ft+pt*St*ft,Ut=pt*ft*ft,Et=St*St*St,Dt=ft*St*St+St*ft*St+St*St*ft,Bt=ft*ft*St+St*ft*ft+ft*St*ft,Wt=ft*ft*ft;for(mt=0;mt<gt;mt+=1)rt[mt*4]=o.round((Nt*ot[mt]+Rt*lt[mt]+Ft*ct[mt]+Ot*at[mt])*1e3)/1e3,rt[mt*4+1]=o.round((Ct*ot[mt]+yt*lt[mt]+Pt*ct[mt]+wt*at[mt])*1e3)/1e3,rt[mt*4+2]=o.round((Lt*ot[mt]+vt*lt[mt]+xt*ct[mt]+Ut*at[mt])*1e3)/1e3,rt[mt*4+3]=o.round((Et*ot[mt]+Dt*lt[mt]+Bt*ct[mt]+Wt*at[mt])*1e3)/1e3;return rt}return{getSegmentsLength:j,getNewSegment:st,getPointInSegment:it,buildBezierData:tt,pointOnLine2D:s,pointOnLine3D:a}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(o,s){var a=this.offsetTime,$;this.propType==="multidimensional"&&($=createTypedArray("float32",this.pv.length));for(var j=s.lastIndex,_e=j,et=this.keyframes.length-1,tt=!0,nt,it,rt;tt;){if(nt=this.keyframes[_e],it=this.keyframes[_e+1],_e===et-1&&o>=it.t-a){nt.h&&(nt=it),j=0;break}if(it.t-a>o){j=_e;break}_e<et-1?_e+=1:(j=0,tt=!1)}rt=this.keyframesMetadata[_e]||{};var st,ot,at,lt,ct,ht,dt=it.t-a,ut=nt.t-a,pt;if(nt.to){rt.bezierData||(rt.bezierData=bez.buildBezierData(nt.s,it.s||nt.e,nt.to,nt.ti));var ft=rt.bezierData;if(o>=dt||o<ut){var mt=o>=dt?ft.points.length-1:0;for(ot=ft.points[mt].point.length,st=0;st<ot;st+=1)$[st]=ft.points[mt].point[st]}else{rt.__fnct?ht=rt.__fnct:(ht=BezierFactory.getBezierEasing(nt.o.x,nt.o.y,nt.i.x,nt.i.y,nt.n).get,rt.__fnct=ht),at=ht((o-ut)/(dt-ut));var gt=ft.segmentLength*at,bt,St=s.lastFrame<o&&s._lastKeyframeIndex===_e?s._lastAddedLength:0;for(ct=s.lastFrame<o&&s._lastKeyframeIndex===_e?s._lastPoint:0,tt=!0,lt=ft.points.length;tt;){if(St+=ft.points[ct].partialLength,gt===0||at===0||ct===ft.points.length-1){for(ot=ft.points[ct].point.length,st=0;st<ot;st+=1)$[st]=ft.points[ct].point[st];break}else if(gt>=St&&gt<St+ft.points[ct+1].partialLength){for(bt=(gt-St)/ft.points[ct+1].partialLength,ot=ft.points[ct].point.length,st=0;st<ot;st+=1)$[st]=ft.points[ct].point[st]+(ft.points[ct+1].point[st]-ft.points[ct].point[st])*bt;break}ct<lt-1?ct+=1:tt=!1}s._lastPoint=ct,s._lastAddedLength=St-ft.points[ct].partialLength,s._lastKeyframeIndex=_e}}else{var Nt,Rt,Ft,Ot,Ct;if(et=nt.s.length,pt=it.s||nt.e,this.sh&&nt.h!==1)if(o>=dt)$[0]=pt[0],$[1]=pt[1],$[2]=pt[2];else if(o<=ut)$[0]=nt.s[0],$[1]=nt.s[1],$[2]=nt.s[2];else{var yt=createQuaternion(nt.s),Pt=createQuaternion(pt),wt=(o-ut)/(dt-ut);quaternionToEuler($,slerp(yt,Pt,wt))}else for(_e=0;_e<et;_e+=1)nt.h!==1&&(o>=dt?at=1:o<ut?at=0:(nt.o.x.constructor===Array?(rt.__fnct||(rt.__fnct=[]),rt.__fnct[_e]?ht=rt.__fnct[_e]:(Nt=nt.o.x[_e]===void 0?nt.o.x[0]:nt.o.x[_e],Rt=nt.o.y[_e]===void 0?nt.o.y[0]:nt.o.y[_e],Ft=nt.i.x[_e]===void 0?nt.i.x[0]:nt.i.x[_e],Ot=nt.i.y[_e]===void 0?nt.i.y[0]:nt.i.y[_e],ht=BezierFactory.getBezierEasing(Nt,Rt,Ft,Ot).get,rt.__fnct[_e]=ht)):rt.__fnct?ht=rt.__fnct:(Nt=nt.o.x,Rt=nt.o.y,Ft=nt.i.x,Ot=nt.i.y,ht=BezierFactory.getBezierEasing(Nt,Rt,Ft,Ot).get,nt.keyframeMetadata=ht),at=ht((o-ut)/(dt-ut)))),pt=it.s||nt.e,Ct=nt.h===1?nt.s[_e]:nt.s[_e]+(pt[_e]-nt.s[_e])*at,this.propType==="multidimensional"?$[_e]=Ct:$=Ct}return s.lastIndex=j,$}function slerp(o,s,a){var $=[],j=o[0],_e=o[1],et=o[2],tt=o[3],nt=s[0],it=s[1],rt=s[2],st=s[3],ot,at,lt,ct,ht;return at=j*nt+_e*it+et*rt+tt*st,at<0&&(at=-at,nt=-nt,it=-it,rt=-rt,st=-st),1-at>1e-6?(ot=Math.acos(at),lt=Math.sin(ot),ct=Math.sin((1-a)*ot)/lt,ht=Math.sin(a*ot)/lt):(ct=1-a,ht=a),$[0]=ct*j+ht*nt,$[1]=ct*_e+ht*it,$[2]=ct*et+ht*rt,$[3]=ct*tt+ht*st,$}function quaternionToEuler(o,s){var a=s[0],$=s[1],j=s[2],_e=s[3],et=Math.atan2(2*$*_e-2*a*j,1-2*$*$-2*j*j),tt=Math.asin(2*a*$+2*j*_e),nt=Math.atan2(2*a*_e-2*$*j,1-2*a*a-2*j*j);o[0]=et/degToRads,o[1]=tt/degToRads,o[2]=nt/degToRads}function createQuaternion(o){var s=o[0]*degToRads,a=o[1]*degToRads,$=o[2]*degToRads,j=Math.cos(s/2),_e=Math.cos(a/2),et=Math.cos($/2),tt=Math.sin(s/2),nt=Math.sin(a/2),it=Math.sin($/2),rt=j*_e*et-tt*nt*it,st=tt*nt*et+j*_e*it,ot=tt*_e*et+j*nt*it,at=j*nt*et-tt*_e*it;return[st,ot,at,rt]}function getValueAtCurrentTime(){var o=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(o===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=a&&o>=a||this._caching.lastFrame<s&&o<s))){this._caching.lastFrame>=o&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var $=this.interpolateValue(o,this._caching);this.pv=$}return this._caching.lastFrame=o,this.pv}function setVValue(o){var s;if(this.propType==="unidimensional")s=o*this.mult,mathAbs(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var a=0,$=this.v.length;a<$;)s=o[a]*this.mult,mathAbs(this.v[a]-s)>1e-5&&(this.v[a]=s,this._mdf=!0),a+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var o,s=this.effectsSequence.length,a=this.kf?this.pv:this.data.k;for(o=0;o<s;o+=1)a=this.effectsSequence[o](a);this.setVValue(a),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(o){this.effectsSequence.push(o),this.container.addDynamicProperty(this)}function ValueProperty(o,s,a,$){this.propType="unidimensional",this.mult=a||1,this.data=s,this.v=a?s.k*a:s.k,this.pv=s.k,this._mdf=!1,this.elem=o,this.container=$,this.comp=o.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(o,s,a,$){this.propType="multidimensional",this.mult=a||1,this.data=s,this._mdf=!1,this.elem=o,this.container=$,this.comp=o.comp,this.k=!1,this.kf=!1,this.frameId=-1;var j,_e=s.k.length;for(this.v=createTypedArray("float32",_e),this.pv=createTypedArray("float32",_e),this.vel=createTypedArray("float32",_e),j=0;j<_e;j+=1)this.v[j]=s.k[j]*this.mult,this.pv[j]=s.k[j];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(o,s,a,$){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=o.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=a||1,this.elem=o,this.container=$,this.comp=o.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(o,s,a,$){this.propType="multidimensional";var j,_e=s.k.length,et,tt,nt,it;for(j=0;j<_e-1;j+=1)s.k[j].to&&s.k[j].s&&s.k[j+1]&&s.k[j+1].s&&(et=s.k[j].s,tt=s.k[j+1].s,nt=s.k[j].to,it=s.k[j].ti,(et.length===2&&!(et[0]===tt[0]&&et[1]===tt[1])&&bez.pointOnLine2D(et[0],et[1],tt[0],tt[1],et[0]+nt[0],et[1]+nt[1])&&bez.pointOnLine2D(et[0],et[1],tt[0],tt[1],tt[0]+it[0],tt[1]+it[1])||et.length===3&&!(et[0]===tt[0]&&et[1]===tt[1]&&et[2]===tt[2])&&bez.pointOnLine3D(et[0],et[1],et[2],tt[0],tt[1],tt[2],et[0]+nt[0],et[1]+nt[1],et[2]+nt[2])&&bez.pointOnLine3D(et[0],et[1],et[2],tt[0],tt[1],tt[2],tt[0]+it[0],tt[1]+it[1],tt[2]+it[2]))&&(s.k[j].to=null,s.k[j].ti=null),et[0]===tt[0]&&et[1]===tt[1]&&nt[0]===0&&nt[1]===0&&it[0]===0&&it[1]===0&&(et.length===2||et[2]===tt[2]&&nt[2]===0&&it[2]===0)&&(s.k[j].to=null,s.k[j].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=o.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=a||1,this.elem=o,this.container=$,this.comp=o.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var rt=s.k[0].s.length;for(this.v=createTypedArray("float32",rt),this.pv=createTypedArray("float32",rt),j=0;j<rt;j+=1)this.v[j]=initFrame,this.pv[j]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",rt)},this.addEffect=addEffect}var PropertyFactory=function(){function o(a,$,j,_e,et){$.sid&&($=a.globalData.slotManager.getProp($));var tt;if(!$.k.length)tt=new ValueProperty(a,$,_e,et);else if(typeof $.k[0]=="number")tt=new MultiDimensionalProperty(a,$,_e,et);else switch(j){case 0:tt=new KeyframedValueProperty(a,$,_e,et);break;case 1:tt=new KeyframedMultidimensionalProperty(a,$,_e,et);break}return tt.effectsSequence.length&&et.addDynamicProperty(tt),tt}var s={getProp:o};return s}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,a=this.dynamicProperties.length;for(s=0;s<a;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function o(){return createTypedArray("float32",2)}return poolFactory(8,o)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(o,s){this.c=o,this.setLength(s);for(var a=0;a<s;)this.v[a]=pointPool.newElement(),this.o[a]=pointPool.newElement(),this.i[a]=pointPool.newElement(),a+=1},ShapePath.prototype.setLength=function(o){for(;this._maxLength<o;)this.doubleArrayLength();this._length=o},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(o,s,a,$,j){var _e;switch(this._length=Math.max(this._length,$+1),this._length>=this._maxLength&&this.doubleArrayLength(),a){case"v":_e=this.v;break;case"i":_e=this.i;break;case"o":_e=this.o;break;default:_e=[];break}(!_e[$]||_e[$]&&!j)&&(_e[$]=pointPool.newElement()),_e[$][0]=o,_e[$][1]=s},ShapePath.prototype.setTripleAt=function(o,s,a,$,j,_e,et,tt){this.setXYAt(o,s,"v",et,tt),this.setXYAt(a,$,"o",et,tt),this.setXYAt(j,_e,"i",et,tt)},ShapePath.prototype.reverse=function(){var o=new ShapePath;o.setPathData(this.c,this._length);var s=this.v,a=this.o,$=this.i,j=0;this.c&&(o.setTripleAt(s[0][0],s[0][1],$[0][0],$[0][1],a[0][0],a[0][1],0,!1),j=1);var _e=this._length-1,et=this._length,tt;for(tt=j;tt<et;tt+=1)o.setTripleAt(s[_e][0],s[_e][1],$[_e][0],$[_e][1],a[_e][0],a[_e][1],tt,!1),_e-=1;return o},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function o(){return new ShapePath}function s(j){var _e=j._length,et;for(et=0;et<_e;et+=1)pointPool.release(j.v[et]),pointPool.release(j.i[et]),pointPool.release(j.o[et]),j.v[et]=null,j.i[et]=null,j.o[et]=null;j._length=0,j.c=!1}function a(j){var _e=$.newElement(),et,tt=j._length===void 0?j.v.length:j._length;for(_e.setLength(tt),_e.c=j.c,et=0;et<tt;et+=1)_e.setTripleAt(j.v[et][0],j.v[et][1],j.o[et][0],j.o[et][1],j.i[et][0],j.i[et][1],et);return _e}var $=poolFactory(4,o,s);return $.clone=a,$}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(o){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=o,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var o;for(o=0;o<this._length;o+=1)shapePool.release(this.shapes[o]);this._length=0};var shapeCollectionPool=function(){var o={newShapeCollection:j,release:_e},s=0,a=4,$=createSizedArray(a);function j(){var et;return s?(s-=1,et=$[s]):et=new ShapeCollection,et}function _e(et){var tt,nt=et._length;for(tt=0;tt<nt;tt+=1)shapePool.release(et.shapes[tt]);et._length=0,s===a&&($=pooling.double($),a*=2),$[s]=et,s+=1}return o}(),ShapePropertyFactory=function(){var o=-999999;function s(dt,ut,pt){var ft=pt.lastIndex,mt,gt,bt,St,Nt,Rt,Ft,Ot,Ct,yt=this.keyframes;if(dt<yt[0].t-this.offsetTime)mt=yt[0].s[0],bt=!0,ft=0;else if(dt>=yt[yt.length-1].t-this.offsetTime)mt=yt[yt.length-1].s?yt[yt.length-1].s[0]:yt[yt.length-2].e[0],bt=!0;else{for(var Pt=ft,wt=yt.length-1,Lt=!0,vt,xt,Ut;Lt&&(vt=yt[Pt],xt=yt[Pt+1],!(xt.t-this.offsetTime>dt));)Pt<wt-1?Pt+=1:Lt=!1;if(Ut=this.keyframesMetadata[Pt]||{},bt=vt.h===1,ft=Pt,!bt){if(dt>=xt.t-this.offsetTime)Ot=1;else if(dt<vt.t-this.offsetTime)Ot=0;else{var Et;Ut.__fnct?Et=Ut.__fnct:(Et=BezierFactory.getBezierEasing(vt.o.x,vt.o.y,vt.i.x,vt.i.y).get,Ut.__fnct=Et),Ot=Et((dt-(vt.t-this.offsetTime))/(xt.t-this.offsetTime-(vt.t-this.offsetTime)))}gt=xt.s?xt.s[0]:vt.e[0]}mt=vt.s[0]}for(Rt=ut._length,Ft=mt.i[0].length,pt.lastIndex=ft,St=0;St<Rt;St+=1)for(Nt=0;Nt<Ft;Nt+=1)Ct=bt?mt.i[St][Nt]:mt.i[St][Nt]+(gt.i[St][Nt]-mt.i[St][Nt])*Ot,ut.i[St][Nt]=Ct,Ct=bt?mt.o[St][Nt]:mt.o[St][Nt]+(gt.o[St][Nt]-mt.o[St][Nt])*Ot,ut.o[St][Nt]=Ct,Ct=bt?mt.v[St][Nt]:mt.v[St][Nt]+(gt.v[St][Nt]-mt.v[St][Nt])*Ot,ut.v[St][Nt]=Ct}function a(){var dt=this.comp.renderedFrame-this.offsetTime,ut=this.keyframes[0].t-this.offsetTime,pt=this.keyframes[this.keyframes.length-1].t-this.offsetTime,ft=this._caching.lastFrame;return ft!==o&&(ft<ut&&dt<ut||ft>pt&&dt>pt)||(this._caching.lastIndex=ft<dt?this._caching.lastIndex:0,this.interpolateShape(dt,this.pv,this._caching)),this._caching.lastFrame=dt,this.pv}function $(){this.paths=this.localShapeCollection}function j(dt,ut){if(dt._length!==ut._length||dt.c!==ut.c)return!1;var pt,ft=dt._length;for(pt=0;pt<ft;pt+=1)if(dt.v[pt][0]!==ut.v[pt][0]||dt.v[pt][1]!==ut.v[pt][1]||dt.o[pt][0]!==ut.o[pt][0]||dt.o[pt][1]!==ut.o[pt][1]||dt.i[pt][0]!==ut.i[pt][0]||dt.i[pt][1]!==ut.i[pt][1])return!1;return!0}function _e(dt){j(this.v,dt)||(this.v=shapePool.clone(dt),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function et(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var dt;this.kf?dt=this.pv:this.data.ks?dt=this.data.ks.k:dt=this.data.pt.k;var ut,pt=this.effectsSequence.length;for(ut=0;ut<pt;ut+=1)dt=this.effectsSequence[ut](dt);this.setVValue(dt),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function tt(dt,ut,pt){this.propType="shape",this.comp=dt.comp,this.container=dt,this.elem=dt,this.data=ut,this.k=!1,this.kf=!1,this._mdf=!1;var ft=pt===3?ut.pt.k:ut.ks.k;this.v=shapePool.clone(ft),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=$,this.effectsSequence=[]}function nt(dt){this.effectsSequence.push(dt),this.container.addDynamicProperty(this)}tt.prototype.interpolateShape=s,tt.prototype.getValue=et,tt.prototype.setVValue=_e,tt.prototype.addEffect=nt;function it(dt,ut,pt){this.propType="shape",this.comp=dt.comp,this.elem=dt,this.container=dt,this.offsetTime=dt.data.st,this.keyframes=pt===3?ut.pt.k:ut.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var ft=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,ft),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=o,this.reset=$,this._caching={lastFrame:o,lastIndex:0},this.effectsSequence=[a.bind(this)]}it.prototype.getValue=et,it.prototype.interpolateShape=s,it.prototype.setVValue=_e,it.prototype.addEffect=nt;var rt=function(){var dt=roundCorner;function ut(pt,ft){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=ft.d,this.elem=pt,this.comp=pt.comp,this.frameId=-1,this.initDynamicPropertyContainer(pt),this.p=PropertyFactory.getProp(pt,ft.p,1,0,this),this.s=PropertyFactory.getProp(pt,ft.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return ut.prototype={reset:$,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var ft=this.p.v[0],mt=this.p.v[1],gt=this.s.v[0]/2,bt=this.s.v[1]/2,St=this.d!==3,Nt=this.v;Nt.v[0][0]=ft,Nt.v[0][1]=mt-bt,Nt.v[1][0]=St?ft+gt:ft-gt,Nt.v[1][1]=mt,Nt.v[2][0]=ft,Nt.v[2][1]=mt+bt,Nt.v[3][0]=St?ft-gt:ft+gt,Nt.v[3][1]=mt,Nt.i[0][0]=St?ft-gt*dt:ft+gt*dt,Nt.i[0][1]=mt-bt,Nt.i[1][0]=St?ft+gt:ft-gt,Nt.i[1][1]=mt-bt*dt,Nt.i[2][0]=St?ft+gt*dt:ft-gt*dt,Nt.i[2][1]=mt+bt,Nt.i[3][0]=St?ft-gt:ft+gt,Nt.i[3][1]=mt+bt*dt,Nt.o[0][0]=St?ft+gt*dt:ft-gt*dt,Nt.o[0][1]=mt-bt,Nt.o[1][0]=St?ft+gt:ft-gt,Nt.o[1][1]=mt+bt*dt,Nt.o[2][0]=St?ft-gt*dt:ft+gt*dt,Nt.o[2][1]=mt+bt,Nt.o[3][0]=St?ft-gt:ft+gt,Nt.o[3][1]=mt-bt*dt}},extendPrototype([DynamicPropertyContainer],ut),ut}(),st=function(){function dt(ut,pt){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=ut,this.comp=ut.comp,this.data=pt,this.frameId=-1,this.d=pt.d,this.initDynamicPropertyContainer(ut),pt.sy===1?(this.ir=PropertyFactory.getProp(ut,pt.ir,0,0,this),this.is=PropertyFactory.getProp(ut,pt.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(ut,pt.pt,0,0,this),this.p=PropertyFactory.getProp(ut,pt.p,1,0,this),this.r=PropertyFactory.getProp(ut,pt.r,0,degToRads,this),this.or=PropertyFactory.getProp(ut,pt.or,0,0,this),this.os=PropertyFactory.getProp(ut,pt.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return dt.prototype={reset:$,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var pt=Math.floor(this.pt.v)*2,ft=Math.PI*2/pt,mt=!0,gt=this.or.v,bt=this.ir.v,St=this.os.v,Nt=this.is.v,Rt=2*Math.PI*gt/(pt*2),Ft=2*Math.PI*bt/(pt*2),Ot,Ct,yt,Pt,wt=-Math.PI/2;wt+=this.r.v;var Lt=this.data.d===3?-1:1;for(this.v._length=0,Ot=0;Ot<pt;Ot+=1){Ct=mt?gt:bt,yt=mt?St:Nt,Pt=mt?Rt:Ft;var vt=Ct*Math.cos(wt),xt=Ct*Math.sin(wt),Ut=vt===0&&xt===0?0:xt/Math.sqrt(vt*vt+xt*xt),Et=vt===0&&xt===0?0:-vt/Math.sqrt(vt*vt+xt*xt);vt+=+this.p.v[0],xt+=+this.p.v[1],this.v.setTripleAt(vt,xt,vt-Ut*Pt*yt*Lt,xt-Et*Pt*yt*Lt,vt+Ut*Pt*yt*Lt,xt+Et*Pt*yt*Lt,Ot,!0),mt=!mt,wt+=ft*Lt}},convertPolygonToPath:function(){var pt=Math.floor(this.pt.v),ft=Math.PI*2/pt,mt=this.or.v,gt=this.os.v,bt=2*Math.PI*mt/(pt*4),St,Nt=-Math.PI*.5,Rt=this.data.d===3?-1:1;for(Nt+=this.r.v,this.v._length=0,St=0;St<pt;St+=1){var Ft=mt*Math.cos(Nt),Ot=mt*Math.sin(Nt),Ct=Ft===0&&Ot===0?0:Ot/Math.sqrt(Ft*Ft+Ot*Ot),yt=Ft===0&&Ot===0?0:-Ft/Math.sqrt(Ft*Ft+Ot*Ot);Ft+=+this.p.v[0],Ot+=+this.p.v[1],this.v.setTripleAt(Ft,Ot,Ft-Ct*bt*gt*Rt,Ot-yt*bt*gt*Rt,Ft+Ct*bt*gt*Rt,Ot+yt*bt*gt*Rt,St,!0),Nt+=ft*Rt}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],dt),dt}(),ot=function(){function dt(ut,pt){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=ut,this.comp=ut.comp,this.frameId=-1,this.d=pt.d,this.initDynamicPropertyContainer(ut),this.p=PropertyFactory.getProp(ut,pt.p,1,0,this),this.s=PropertyFactory.getProp(ut,pt.s,1,0,this),this.r=PropertyFactory.getProp(ut,pt.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return dt.prototype={convertRectToPath:function(){var pt=this.p.v[0],ft=this.p.v[1],mt=this.s.v[0]/2,gt=this.s.v[1]/2,bt=bmMin(mt,gt,this.r.v),St=bt*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(pt+mt,ft-gt+bt,pt+mt,ft-gt+bt,pt+mt,ft-gt+St,0,!0),this.v.setTripleAt(pt+mt,ft+gt-bt,pt+mt,ft+gt-St,pt+mt,ft+gt-bt,1,!0),bt!==0?(this.v.setTripleAt(pt+mt-bt,ft+gt,pt+mt-bt,ft+gt,pt+mt-St,ft+gt,2,!0),this.v.setTripleAt(pt-mt+bt,ft+gt,pt-mt+St,ft+gt,pt-mt+bt,ft+gt,3,!0),this.v.setTripleAt(pt-mt,ft+gt-bt,pt-mt,ft+gt-bt,pt-mt,ft+gt-St,4,!0),this.v.setTripleAt(pt-mt,ft-gt+bt,pt-mt,ft-gt+St,pt-mt,ft-gt+bt,5,!0),this.v.setTripleAt(pt-mt+bt,ft-gt,pt-mt+bt,ft-gt,pt-mt+St,ft-gt,6,!0),this.v.setTripleAt(pt+mt-bt,ft-gt,pt+mt-St,ft-gt,pt+mt-bt,ft-gt,7,!0)):(this.v.setTripleAt(pt-mt,ft+gt,pt-mt+St,ft+gt,pt-mt,ft+gt,2),this.v.setTripleAt(pt-mt,ft-gt,pt-mt,ft-gt+St,pt-mt,ft-gt,3))):(this.v.setTripleAt(pt+mt,ft-gt+bt,pt+mt,ft-gt+St,pt+mt,ft-gt+bt,0,!0),bt!==0?(this.v.setTripleAt(pt+mt-bt,ft-gt,pt+mt-bt,ft-gt,pt+mt-St,ft-gt,1,!0),this.v.setTripleAt(pt-mt+bt,ft-gt,pt-mt+St,ft-gt,pt-mt+bt,ft-gt,2,!0),this.v.setTripleAt(pt-mt,ft-gt+bt,pt-mt,ft-gt+bt,pt-mt,ft-gt+St,3,!0),this.v.setTripleAt(pt-mt,ft+gt-bt,pt-mt,ft+gt-St,pt-mt,ft+gt-bt,4,!0),this.v.setTripleAt(pt-mt+bt,ft+gt,pt-mt+bt,ft+gt,pt-mt+St,ft+gt,5,!0),this.v.setTripleAt(pt+mt-bt,ft+gt,pt+mt-St,ft+gt,pt+mt-bt,ft+gt,6,!0),this.v.setTripleAt(pt+mt,ft+gt-bt,pt+mt,ft+gt-bt,pt+mt,ft+gt-St,7,!0)):(this.v.setTripleAt(pt-mt,ft-gt,pt-mt+St,ft-gt,pt-mt,ft-gt,1,!0),this.v.setTripleAt(pt-mt,ft+gt,pt-mt,ft+gt-St,pt-mt,ft+gt,2,!0),this.v.setTripleAt(pt+mt,ft+gt,pt+mt-St,ft+gt,pt+mt,ft+gt,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:$},extendPrototype([DynamicPropertyContainer],dt),dt}();function at(dt,ut,pt){var ft;if(pt===3||pt===4){var mt=pt===3?ut.pt:ut.ks,gt=mt.k;gt.length?ft=new it(dt,ut,pt):ft=new tt(dt,ut,pt)}else pt===5?ft=new ot(dt,ut):pt===6?ft=new rt(dt,ut):pt===7&&(ft=new st(dt,ut));return ft.k&&dt.addDynamicProperty(ft),ft}function lt(){return tt}function ct(){return it}var ht={};return ht.getShapeProp=at,ht.getConstructorFunction=lt,ht.getKeyframedConstructorFunction=ct,ht}();/*!
 Transformation Matrix v2.0
 (c) Epistemex 2014-2015
 www.epistemex.com
 By Ken Fyrstenberg
 Contributions by leeoniya.
 License: MIT, header required.
 */var Matrix=function(){var o=Math.cos,s=Math.sin,a=Math.tan,$=Math.round;function j(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function _e(vt){if(vt===0)return this;var xt=o(vt),Ut=s(vt);return this._t(xt,-Ut,0,0,Ut,xt,0,0,0,0,1,0,0,0,0,1)}function et(vt){if(vt===0)return this;var xt=o(vt),Ut=s(vt);return this._t(1,0,0,0,0,xt,-Ut,0,0,Ut,xt,0,0,0,0,1)}function tt(vt){if(vt===0)return this;var xt=o(vt),Ut=s(vt);return this._t(xt,0,Ut,0,0,1,0,0,-Ut,0,xt,0,0,0,0,1)}function nt(vt){if(vt===0)return this;var xt=o(vt),Ut=s(vt);return this._t(xt,-Ut,0,0,Ut,xt,0,0,0,0,1,0,0,0,0,1)}function it(vt,xt){return this._t(1,xt,vt,1,0,0)}function rt(vt,xt){return this.shear(a(vt),a(xt))}function st(vt,xt){var Ut=o(xt),Et=s(xt);return this._t(Ut,Et,0,0,-Et,Ut,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,a(vt),1,0,0,0,0,1,0,0,0,0,1)._t(Ut,-Et,0,0,Et,Ut,0,0,0,0,1,0,0,0,0,1)}function ot(vt,xt,Ut){return!Ut&&Ut!==0&&(Ut=1),vt===1&&xt===1&&Ut===1?this:this._t(vt,0,0,0,0,xt,0,0,0,0,Ut,0,0,0,0,1)}function at(vt,xt,Ut,Et,Dt,Bt,Wt,Zt,sn,dn,vn,kn,An,$n,On,Cn){return this.props[0]=vt,this.props[1]=xt,this.props[2]=Ut,this.props[3]=Et,this.props[4]=Dt,this.props[5]=Bt,this.props[6]=Wt,this.props[7]=Zt,this.props[8]=sn,this.props[9]=dn,this.props[10]=vn,this.props[11]=kn,this.props[12]=An,this.props[13]=$n,this.props[14]=On,this.props[15]=Cn,this}function lt(vt,xt,Ut){return Ut=Ut||0,vt!==0||xt!==0||Ut!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,vt,xt,Ut,1):this}function ct(vt,xt,Ut,Et,Dt,Bt,Wt,Zt,sn,dn,vn,kn,An,$n,On,Cn){var rn=this.props;if(vt===1&&xt===0&&Ut===0&&Et===0&&Dt===0&&Bt===1&&Wt===0&&Zt===0&&sn===0&&dn===0&&vn===1&&kn===0)return rn[12]=rn[12]*vt+rn[15]*An,rn[13]=rn[13]*Bt+rn[15]*$n,rn[14]=rn[14]*vn+rn[15]*On,rn[15]*=Cn,this._identityCalculated=!1,this;var Fn=rn[0],Ln=rn[1],Rn=rn[2],Gn=rn[3],Vn=rn[4],qn=rn[5],Zn=rn[6],jn=rn[7],Xn=rn[8],dr=rn[9],mn=rn[10],Mn=rn[11],Mt=rn[12],_t=rn[13],kt=rn[14],Vt=rn[15];return rn[0]=Fn*vt+Ln*Dt+Rn*sn+Gn*An,rn[1]=Fn*xt+Ln*Bt+Rn*dn+Gn*$n,rn[2]=Fn*Ut+Ln*Wt+Rn*vn+Gn*On,rn[3]=Fn*Et+Ln*Zt+Rn*kn+Gn*Cn,rn[4]=Vn*vt+qn*Dt+Zn*sn+jn*An,rn[5]=Vn*xt+qn*Bt+Zn*dn+jn*$n,rn[6]=Vn*Ut+qn*Wt+Zn*vn+jn*On,rn[7]=Vn*Et+qn*Zt+Zn*kn+jn*Cn,rn[8]=Xn*vt+dr*Dt+mn*sn+Mn*An,rn[9]=Xn*xt+dr*Bt+mn*dn+Mn*$n,rn[10]=Xn*Ut+dr*Wt+mn*vn+Mn*On,rn[11]=Xn*Et+dr*Zt+mn*kn+Mn*Cn,rn[12]=Mt*vt+_t*Dt+kt*sn+Vt*An,rn[13]=Mt*xt+_t*Bt+kt*dn+Vt*$n,rn[14]=Mt*Ut+_t*Wt+kt*vn+Vt*On,rn[15]=Mt*Et+_t*Zt+kt*kn+Vt*Cn,this._identityCalculated=!1,this}function ht(vt){var xt=vt.props;return this.transform(xt[0],xt[1],xt[2],xt[3],xt[4],xt[5],xt[6],xt[7],xt[8],xt[9],xt[10],xt[11],xt[12],xt[13],xt[14],xt[15])}function dt(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function ut(vt){for(var xt=0;xt<16;){if(vt.props[xt]!==this.props[xt])return!1;xt+=1}return!0}function pt(vt){var xt;for(xt=0;xt<16;xt+=1)vt.props[xt]=this.props[xt];return vt}function ft(vt){var xt;for(xt=0;xt<16;xt+=1)this.props[xt]=vt[xt]}function mt(vt,xt,Ut){return{x:vt*this.props[0]+xt*this.props[4]+Ut*this.props[8]+this.props[12],y:vt*this.props[1]+xt*this.props[5]+Ut*this.props[9]+this.props[13],z:vt*this.props[2]+xt*this.props[6]+Ut*this.props[10]+this.props[14]}}function gt(vt,xt,Ut){return vt*this.props[0]+xt*this.props[4]+Ut*this.props[8]+this.props[12]}function bt(vt,xt,Ut){return vt*this.props[1]+xt*this.props[5]+Ut*this.props[9]+this.props[13]}function St(vt,xt,Ut){return vt*this.props[2]+xt*this.props[6]+Ut*this.props[10]+this.props[14]}function Nt(){var vt=this.props[0]*this.props[5]-this.props[1]*this.props[4],xt=this.props[5]/vt,Ut=-this.props[1]/vt,Et=-this.props[4]/vt,Dt=this.props[0]/vt,Bt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/vt,Wt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/vt,Zt=new Matrix;return Zt.props[0]=xt,Zt.props[1]=Ut,Zt.props[4]=Et,Zt.props[5]=Dt,Zt.props[12]=Bt,Zt.props[13]=Wt,Zt}function Rt(vt){var xt=this.getInverseMatrix();return xt.applyToPointArray(vt[0],vt[1],vt[2]||0)}function Ft(vt){var xt,Ut=vt.length,Et=[];for(xt=0;xt<Ut;xt+=1)Et[xt]=Rt(vt[xt]);return Et}function Ot(vt,xt,Ut){var Et=createTypedArray("float32",6);if(this.isIdentity())Et[0]=vt[0],Et[1]=vt[1],Et[2]=xt[0],Et[3]=xt[1],Et[4]=Ut[0],Et[5]=Ut[1];else{var Dt=this.props[0],Bt=this.props[1],Wt=this.props[4],Zt=this.props[5],sn=this.props[12],dn=this.props[13];Et[0]=vt[0]*Dt+vt[1]*Wt+sn,Et[1]=vt[0]*Bt+vt[1]*Zt+dn,Et[2]=xt[0]*Dt+xt[1]*Wt+sn,Et[3]=xt[0]*Bt+xt[1]*Zt+dn,Et[4]=Ut[0]*Dt+Ut[1]*Wt+sn,Et[5]=Ut[0]*Bt+Ut[1]*Zt+dn}return Et}function Ct(vt,xt,Ut){var Et;return this.isIdentity()?Et=[vt,xt,Ut]:Et=[vt*this.props[0]+xt*this.props[4]+Ut*this.props[8]+this.props[12],vt*this.props[1]+xt*this.props[5]+Ut*this.props[9]+this.props[13],vt*this.props[2]+xt*this.props[6]+Ut*this.props[10]+this.props[14]],Et}function yt(vt,xt){if(this.isIdentity())return vt+","+xt;var Ut=this.props;return Math.round((vt*Ut[0]+xt*Ut[4]+Ut[12])*100)/100+","+Math.round((vt*Ut[1]+xt*Ut[5]+Ut[13])*100)/100}function Pt(){for(var vt=0,xt=this.props,Ut="matrix3d(",Et=1e4;vt<16;)Ut+=$(xt[vt]*Et)/Et,Ut+=vt===15?")":",",vt+=1;return Ut}function wt(vt){var xt=1e4;return vt<1e-6&&vt>0||vt>-1e-6&&vt<0?$(vt*xt)/xt:vt}function Lt(){var vt=this.props,xt=wt(vt[0]),Ut=wt(vt[1]),Et=wt(vt[4]),Dt=wt(vt[5]),Bt=wt(vt[12]),Wt=wt(vt[13]);return"matrix("+xt+","+Ut+","+Et+","+Dt+","+Bt+","+Wt+")"}return function(){this.reset=j,this.rotate=_e,this.rotateX=et,this.rotateY=tt,this.rotateZ=nt,this.skew=rt,this.skewFromAxis=st,this.shear=it,this.scale=ot,this.setTransform=at,this.translate=lt,this.transform=ct,this.multiply=ht,this.applyToPoint=mt,this.applyToX=gt,this.applyToY=bt,this.applyToZ=St,this.applyToPointArray=Ct,this.applyToTriplePoints=Ot,this.applyToPointStringified=yt,this.toCSS=Pt,this.to2dCSS=Lt,this.clone=pt,this.cloneFromProps=ft,this.equals=ut,this.inversePoints=Ft,this.inversePoint=Rt,this.getInverseMatrix=Nt,this._t=this.transform,this.isIdentity=dt,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(a){return typeof a}:_typeof$3=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof$3(o)}var lottie={};function setLocation(o){setLocationHref(o)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(o){setSubframeEnabled(o)}function setPrefix(o){setIdPrefix(o)}function loadAnimation(o){return animationManager.loadAnimation(o)}function setQuality(o){if(typeof o=="string")switch(o){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(o)&&o>1&&setDefaultCurveSegments(o)}function inBrowser(){return typeof navigator<"u"}function installPlugin(o,s){o==="expressions"&&setExpressionsPlugin(s)}function getFactory(o){switch(o){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(o){for(var s=queryString.split("&"),a=0;a<s.length;a+=1){var $=s[a].split("=");if(decodeURIComponent($[0])==o)return decodeURIComponent($[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(o){}var ShapeModifiers=function(){var o={},s={};o.registerModifier=a,o.getModifier=$;function a(j,_e){s[j]||(s[j]=_e)}function $(j,_e,et){return new s[j](_e,et)}return o}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(o){if(!this.closed){o.sh.container.addDynamicProperty(o.sh);var s={shape:o.sh,data:o,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&o.setAsAnimated()}},ShapeModifier.prototype.init=function(o,s){this.shapes=[],this.elem=o,this.initDynamicPropertyContainer(o),this.initModifierProperties(o,s),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(o,s){this.s=PropertyFactory.getProp(o,s.s,0,.01,this),this.e=PropertyFactory.getProp(o,s.e,0,.01,this),this.o=PropertyFactory.getProp(o,s.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=s.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(o){o.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(o,s,a,$,j){var _e=[];s<=1?_e.push({s:o,e:s}):o>=1?_e.push({s:o-1,e:s-1}):(_e.push({s:o,e:1}),_e.push({s:0,e:s-1}));var et=[],tt,nt=_e.length,it;for(tt=0;tt<nt;tt+=1)if(it=_e[tt],!(it.e*j<$||it.s*j>$+a)){var rt,st;it.s*j<=$?rt=0:rt=(it.s*j-$)/a,it.e*j>=$+a?st=1:st=(it.e*j-$)/a,et.push([rt,st])}return et.length||et.push([0,0]),et},TrimModifier.prototype.releasePathsData=function(o){var s,a=o.length;for(s=0;s<a;s+=1)segmentsLengthPool.release(o[s]);return o.length=0,o},TrimModifier.prototype.processShapes=function(o){var s,a;if(this._mdf||o){var $=this.o.v%360/360;if($<0&&($+=1),this.s.v>1?s=1+$:this.s.v<0?s=0+$:s=this.s.v+$,this.e.v>1?a=1+$:this.e.v<0?a=0+$:a=this.e.v+$,s>a){var j=s;s=a,a=j}s=Math.round(s*1e4)*1e-4,a=Math.round(a*1e4)*1e-4,this.sValue=s,this.eValue=a}else s=this.sValue,a=this.eValue;var _e,et,tt=this.shapes.length,nt,it,rt,st,ot,at=0;if(a===s)for(et=0;et<tt;et+=1)this.shapes[et].localShapeCollection.releaseShapes(),this.shapes[et].shape._mdf=!0,this.shapes[et].shape.paths=this.shapes[et].localShapeCollection,this._mdf&&(this.shapes[et].pathsData.length=0);else if(a===1&&s===0||a===0&&s===1){if(this._mdf)for(et=0;et<tt;et+=1)this.shapes[et].pathsData.length=0,this.shapes[et].shape._mdf=!0}else{var lt=[],ct,ht;for(et=0;et<tt;et+=1)if(ct=this.shapes[et],!ct.shape._mdf&&!this._mdf&&!o&&this.m!==2)ct.shape.paths=ct.localShapeCollection;else{if(_e=ct.shape.paths,it=_e._length,ot=0,!ct.shape._mdf&&ct.pathsData.length)ot=ct.totalShapeLength;else{for(rt=this.releasePathsData(ct.pathsData),nt=0;nt<it;nt+=1)st=bez.getSegmentsLength(_e.shapes[nt]),rt.push(st),ot+=st.totalLength;ct.totalShapeLength=ot,ct.pathsData=rt}at+=ot,ct.shape._mdf=!0}var dt=s,ut=a,pt=0,ft;for(et=tt-1;et>=0;et-=1)if(ct=this.shapes[et],ct.shape._mdf){for(ht=ct.localShapeCollection,ht.releaseShapes(),this.m===2&&tt>1?(ft=this.calculateShapeEdges(s,a,ct.totalShapeLength,pt,at),pt+=ct.totalShapeLength):ft=[[dt,ut]],it=ft.length,nt=0;nt<it;nt+=1){dt=ft[nt][0],ut=ft[nt][1],lt.length=0,ut<=1?lt.push({s:ct.totalShapeLength*dt,e:ct.totalShapeLength*ut}):dt>=1?lt.push({s:ct.totalShapeLength*(dt-1),e:ct.totalShapeLength*(ut-1)}):(lt.push({s:ct.totalShapeLength*dt,e:ct.totalShapeLength}),lt.push({s:0,e:ct.totalShapeLength*(ut-1)}));var mt=this.addShapes(ct,lt[0]);if(lt[0].s!==lt[0].e){if(lt.length>1){var gt=ct.shape.paths.shapes[ct.shape.paths._length-1];if(gt.c){var bt=mt.pop();this.addPaths(mt,ht),mt=this.addShapes(ct,lt[1],bt)}else this.addPaths(mt,ht),mt=this.addShapes(ct,lt[1])}this.addPaths(mt,ht)}}ct.shape.paths=ht}}},TrimModifier.prototype.addPaths=function(o,s){var a,$=o.length;for(a=0;a<$;a+=1)s.addShape(o[a])},TrimModifier.prototype.addSegment=function(o,s,a,$,j,_e,et){j.setXYAt(s[0],s[1],"o",_e),j.setXYAt(a[0],a[1],"i",_e+1),et&&j.setXYAt(o[0],o[1],"v",_e),j.setXYAt($[0],$[1],"v",_e+1)},TrimModifier.prototype.addSegmentFromArray=function(o,s,a,$){s.setXYAt(o[1],o[5],"o",a),s.setXYAt(o[2],o[6],"i",a+1),$&&s.setXYAt(o[0],o[4],"v",a),s.setXYAt(o[3],o[7],"v",a+1)},TrimModifier.prototype.addShapes=function(o,s,a){var $=o.pathsData,j=o.shape.paths.shapes,_e,et=o.shape.paths._length,tt,nt,it=0,rt,st,ot,at,lt=[],ct,ht=!0;for(a?(st=a._length,ct=a._length):(a=shapePool.newElement(),st=0,ct=0),lt.push(a),_e=0;_e<et;_e+=1){for(ot=$[_e].lengths,a.c=j[_e].c,nt=j[_e].c?ot.length:ot.length+1,tt=1;tt<nt;tt+=1)if(rt=ot[tt-1],it+rt.addedLength<s.s)it+=rt.addedLength,a.c=!1;else if(it>s.e){a.c=!1;break}else s.s<=it&&s.e>=it+rt.addedLength?(this.addSegment(j[_e].v[tt-1],j[_e].o[tt-1],j[_e].i[tt],j[_e].v[tt],a,st,ht),ht=!1):(at=bez.getNewSegment(j[_e].v[tt-1],j[_e].v[tt],j[_e].o[tt-1],j[_e].i[tt],(s.s-it)/rt.addedLength,(s.e-it)/rt.addedLength,ot[tt-1]),this.addSegmentFromArray(at,a,st,ht),ht=!1,a.c=!1),it+=rt.addedLength,st+=1;if(j[_e].c&&ot.length){if(rt=ot[tt-1],it<=s.e){var dt=ot[tt-1].addedLength;s.s<=it&&s.e>=it+dt?(this.addSegment(j[_e].v[tt-1],j[_e].o[tt-1],j[_e].i[0],j[_e].v[0],a,st,ht),ht=!1):(at=bez.getNewSegment(j[_e].v[tt-1],j[_e].v[0],j[_e].o[tt-1],j[_e].i[0],(s.s-it)/dt,(s.e-it)/dt,ot[tt-1]),this.addSegmentFromArray(at,a,st,ht),ht=!1,a.c=!1)}else a.c=!1;it+=rt.addedLength,st+=1}if(a._length&&(a.setXYAt(a.v[ct][0],a.v[ct][1],"i",ct),a.setXYAt(a.v[a._length-1][0],a.v[a._length-1][1],"o",a._length-1)),it>s.e)break;_e<et-1&&(a=shapePool.newElement(),ht=!0,lt.push(a),st=0)}return lt};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(o,s){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(o,s.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(o,s){var a=s/100,$=[0,0],j=o._length,_e=0;for(_e=0;_e<j;_e+=1)$[0]+=o.v[_e][0],$[1]+=o.v[_e][1];$[0]/=j,$[1]/=j;var et=shapePool.newElement();et.c=o.c;var tt,nt,it,rt,st,ot;for(_e=0;_e<j;_e+=1)tt=o.v[_e][0]+($[0]-o.v[_e][0])*a,nt=o.v[_e][1]+($[1]-o.v[_e][1])*a,it=o.o[_e][0]+($[0]-o.o[_e][0])*-a,rt=o.o[_e][1]+($[1]-o.o[_e][1])*-a,st=o.i[_e][0]+($[0]-o.i[_e][0])*-a,ot=o.i[_e][1]+($[1]-o.i[_e][1])*-a,et.setTripleAt(tt,nt,it,rt,st,ot,_e);return et},PuckerAndBloatModifier.prototype.processShapes=function(o){var s,a,$=this.shapes.length,j,_e,et=this.amount.v;if(et!==0){var tt,nt;for(a=0;a<$;a+=1){if(tt=this.shapes[a],nt=tt.localShapeCollection,!(!tt.shape._mdf&&!this._mdf&&!o))for(nt.releaseShapes(),tt.shape._mdf=!0,s=tt.shape.paths.shapes,_e=tt.shape.paths._length,j=0;j<_e;j+=1)nt.addShape(this.processPath(s[j],et));tt.shape.paths=tt.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var o=[0,0];function s(nt){var it=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||it,this.a&&nt.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&nt.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&nt.skewFromAxis(-this.sk.v,this.sa.v),this.r?nt.rotate(-this.r.v):nt.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?nt.translate(this.px.v,this.py.v,-this.pz.v):nt.translate(this.px.v,this.py.v,0):nt.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function a(nt){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||nt){var it;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var rt,st;if(it=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(rt=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/it,0),st=this.p.getValueAtTime(this.p.keyframes[0].t/it,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(rt=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/it,0),st=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/it,0)):(rt=this.p.pv,st=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/it,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){rt=[],st=[];var ot=this.px,at=this.py;ot._caching.lastFrame+ot.offsetTime<=ot.keyframes[0].t?(rt[0]=ot.getValueAtTime((ot.keyframes[0].t+.01)/it,0),rt[1]=at.getValueAtTime((at.keyframes[0].t+.01)/it,0),st[0]=ot.getValueAtTime(ot.keyframes[0].t/it,0),st[1]=at.getValueAtTime(at.keyframes[0].t/it,0)):ot._caching.lastFrame+ot.offsetTime>=ot.keyframes[ot.keyframes.length-1].t?(rt[0]=ot.getValueAtTime(ot.keyframes[ot.keyframes.length-1].t/it,0),rt[1]=at.getValueAtTime(at.keyframes[at.keyframes.length-1].t/it,0),st[0]=ot.getValueAtTime((ot.keyframes[ot.keyframes.length-1].t-.01)/it,0),st[1]=at.getValueAtTime((at.keyframes[at.keyframes.length-1].t-.01)/it,0)):(rt=[ot.pv,at.pv],st[0]=ot.getValueAtTime((ot._caching.lastFrame+ot.offsetTime-.01)/it,ot.offsetTime),st[1]=at.getValueAtTime((at._caching.lastFrame+at.offsetTime-.01)/it,at.offsetTime))}else st=o,rt=st;this.v.rotate(-Math.atan2(rt[1]-st[1],rt[0]-st[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function $(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function j(){}function _e(nt){this._addDynamicProperty(nt),this.elem.addDynamicProperty(nt),this._isDirty=!0}function et(nt,it,rt){if(this.elem=nt,this.frameId=-1,this.propType="transform",this.data=it,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(rt||nt),it.p&&it.p.s?(this.px=PropertyFactory.getProp(nt,it.p.x,0,0,this),this.py=PropertyFactory.getProp(nt,it.p.y,0,0,this),it.p.z&&(this.pz=PropertyFactory.getProp(nt,it.p.z,0,0,this))):this.p=PropertyFactory.getProp(nt,it.p||{k:[0,0,0]},1,0,this),it.rx){if(this.rx=PropertyFactory.getProp(nt,it.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(nt,it.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(nt,it.rz,0,degToRads,this),it.or.k[0].ti){var st,ot=it.or.k.length;for(st=0;st<ot;st+=1)it.or.k[st].to=null,it.or.k[st].ti=null}this.or=PropertyFactory.getProp(nt,it.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(nt,it.r||{k:0},0,degToRads,this);it.sk&&(this.sk=PropertyFactory.getProp(nt,it.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(nt,it.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(nt,it.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(nt,it.s||{k:[100,100,100]},1,.01,this),it.o?this.o=PropertyFactory.getProp(nt,it.o,0,.01,nt):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}et.prototype={applyToMatrix:s,getValue:a,precalculateMatrix:$,autoOrient:j},extendPrototype([DynamicPropertyContainer],et),et.prototype.addDynamicProperty=_e,et.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function tt(nt,it,rt){return new et(nt,it,rt)}return{getTransformProperty:tt}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(o,s){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(o,s.c,0,null,this),this.o=PropertyFactory.getProp(o,s.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(o,s.tr,this),this.so=PropertyFactory.getProp(o,s.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(o,s.tr.eo,0,.01,this),this.data=s,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(o,s,a,$,j,_e){var et=_e?-1:1,tt=$.s.v[0]+(1-$.s.v[0])*(1-j),nt=$.s.v[1]+(1-$.s.v[1])*(1-j);o.translate($.p.v[0]*et*j,$.p.v[1]*et*j,$.p.v[2]),s.translate(-$.a.v[0],-$.a.v[1],$.a.v[2]),s.rotate(-$.r.v*et*j),s.translate($.a.v[0],$.a.v[1],$.a.v[2]),a.translate(-$.a.v[0],-$.a.v[1],$.a.v[2]),a.scale(_e?1/tt:tt,_e?1/nt:nt),a.translate($.a.v[0],$.a.v[1],$.a.v[2])},RepeaterModifier.prototype.init=function(o,s,a,$){for(this.elem=o,this.arr=s,this.pos=a,this.elemsData=$,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(o),this.initModifierProperties(o,s[a]);a>0;)a-=1,this._elements.unshift(s[a]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(o){var s,a=o.length;for(s=0;s<a;s+=1)o[s]._processed=!1,o[s].ty==="gr"&&this.resetElements(o[s].it)},RepeaterModifier.prototype.cloneElements=function(o){var s=JSON.parse(JSON.stringify(o));return this.resetElements(s),s},RepeaterModifier.prototype.changeGroupRender=function(o,s){var a,$=o.length;for(a=0;a<$;a+=1)o[a]._render=s,o[a].ty==="gr"&&this.changeGroupRender(o[a].it,s)},RepeaterModifier.prototype.processShapes=function(o){var s,a,$,j,_e,et=!1;if(this._mdf||o){var tt=Math.ceil(this.c.v);if(this._groups.length<tt){for(;this._groups.length<tt;){var nt={it:this.cloneElements(this._elements),ty:"gr"};nt.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,nt),this._groups.splice(0,0,nt),this._currentCopies+=1}this.elem.reloadShapes(),et=!0}_e=0;var it;for($=0;$<=this._groups.length-1;$+=1){if(it=_e<tt,this._groups[$]._render=it,this.changeGroupRender(this._groups[$].it,it),!it){var rt=this.elemsData[$].it,st=rt[rt.length-1];st.transform.op.v!==0?(st.transform.op._mdf=!0,st.transform.op.v=0):st.transform.op._mdf=!1}_e+=1}this._currentCopies=tt;var ot=this.o.v,at=ot%1,lt=ot>0?Math.floor(ot):Math.ceil(ot),ct=this.pMatrix.props,ht=this.rMatrix.props,dt=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var ut=0;if(ot>0){for(;ut<lt;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),ut+=1;at&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,at,!1),ut+=at)}else if(ot<0){for(;ut>lt;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),ut-=1;at&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-at,!0),ut-=at)}$=this.data.m===1?0:this._currentCopies-1,j=this.data.m===1?1:-1,_e=this._currentCopies;for(var pt,ft;_e;){if(s=this.elemsData[$].it,a=s[s.length-1].transform.mProps.v.props,ft=a.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*($/(this._currentCopies-1)),ut!==0){for(($!==0&&j===1||$!==this._currentCopies-1&&j===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(ht[0],ht[1],ht[2],ht[3],ht[4],ht[5],ht[6],ht[7],ht[8],ht[9],ht[10],ht[11],ht[12],ht[13],ht[14],ht[15]),this.matrix.transform(dt[0],dt[1],dt[2],dt[3],dt[4],dt[5],dt[6],dt[7],dt[8],dt[9],dt[10],dt[11],dt[12],dt[13],dt[14],dt[15]),this.matrix.transform(ct[0],ct[1],ct[2],ct[3],ct[4],ct[5],ct[6],ct[7],ct[8],ct[9],ct[10],ct[11],ct[12],ct[13],ct[14],ct[15]),pt=0;pt<ft;pt+=1)a[pt]=this.matrix.props[pt];this.matrix.reset()}else for(this.matrix.reset(),pt=0;pt<ft;pt+=1)a[pt]=this.matrix.props[pt];ut+=1,_e-=1,$+=j}}else for(_e=this._currentCopies,$=0,j=1;_e;)s=this.elemsData[$].it,a=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,_e-=1,$+=j;return et},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(o,s){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(o,s.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(o,s){var a=shapePool.newElement();a.c=o.c;var $,j=o._length,_e,et,tt,nt,it,rt,st=0,ot,at,lt,ct,ht,dt;for($=0;$<j;$+=1)_e=o.v[$],tt=o.o[$],et=o.i[$],_e[0]===tt[0]&&_e[1]===tt[1]&&_e[0]===et[0]&&_e[1]===et[1]?($===0||$===j-1)&&!o.c?(a.setTripleAt(_e[0],_e[1],tt[0],tt[1],et[0],et[1],st),st+=1):($===0?nt=o.v[j-1]:nt=o.v[$-1],it=Math.sqrt(Math.pow(_e[0]-nt[0],2)+Math.pow(_e[1]-nt[1],2)),rt=it?Math.min(it/2,s)/it:0,ht=_e[0]+(nt[0]-_e[0])*rt,ot=ht,dt=_e[1]-(_e[1]-nt[1])*rt,at=dt,lt=ot-(ot-_e[0])*roundCorner,ct=at-(at-_e[1])*roundCorner,a.setTripleAt(ot,at,lt,ct,ht,dt,st),st+=1,$===j-1?nt=o.v[0]:nt=o.v[$+1],it=Math.sqrt(Math.pow(_e[0]-nt[0],2)+Math.pow(_e[1]-nt[1],2)),rt=it?Math.min(it/2,s)/it:0,lt=_e[0]+(nt[0]-_e[0])*rt,ot=lt,ct=_e[1]+(nt[1]-_e[1])*rt,at=ct,ht=ot-(ot-_e[0])*roundCorner,dt=at-(at-_e[1])*roundCorner,a.setTripleAt(ot,at,lt,ct,ht,dt,st),st+=1):(a.setTripleAt(o.v[$][0],o.v[$][1],o.o[$][0],o.o[$][1],o.i[$][0],o.i[$][1],st),st+=1);return a},RoundCornersModifier.prototype.processShapes=function(o){var s,a,$=this.shapes.length,j,_e,et=this.rd.v;if(et!==0){var tt,nt;for(a=0;a<$;a+=1){if(tt=this.shapes[a],nt=tt.localShapeCollection,!(!tt.shape._mdf&&!this._mdf&&!o))for(nt.releaseShapes(),tt.shape._mdf=!0,s=tt.shape.paths.shapes,_e=tt.shape.paths._length,j=0;j<_e;j+=1)nt.addShape(this.processPath(s[j],et));tt.shape.paths=tt.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(o,s){return Math.abs(o-s)*1e5<=Math.min(Math.abs(o),Math.abs(s))}function floatZero(o){return Math.abs(o)<=1e-5}function lerp(o,s,a){return o*(1-a)+s*a}function lerpPoint(o,s,a){return[lerp(o[0],s[0],a),lerp(o[1],s[1],a)]}function quadRoots(o,s,a){if(o===0)return[];var $=s*s-4*o*a;if($<0)return[];var j=-s/(2*o);if($===0)return[j];var _e=Math.sqrt($)/(2*o);return[j-_e,j+_e]}function polynomialCoefficients(o,s,a,$){return[-o+3*s-3*a+$,3*o-6*s+3*a,-3*o+3*s,o]}function singlePoint(o){return new PolynomialBezier(o,o,o,o,!1)}function PolynomialBezier(o,s,a,$,j){j&&pointEqual(o,s)&&(s=lerpPoint(o,$,1/3)),j&&pointEqual(a,$)&&(a=lerpPoint(o,$,2/3));var _e=polynomialCoefficients(o[0],s[0],a[0],$[0]),et=polynomialCoefficients(o[1],s[1],a[1],$[1]);this.a=[_e[0],et[0]],this.b=[_e[1],et[1]],this.c=[_e[2],et[2]],this.d=[_e[3],et[3]],this.points=[o,s,a,$]}PolynomialBezier.prototype.point=function(o){return[((this.a[0]*o+this.b[0])*o+this.c[0])*o+this.d[0],((this.a[1]*o+this.b[1])*o+this.c[1])*o+this.d[1]]},PolynomialBezier.prototype.derivative=function(o){return[(3*o*this.a[0]+2*this.b[0])*o+this.c[0],(3*o*this.a[1]+2*this.b[1])*o+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(o){var s=this.derivative(o);return Math.atan2(s[1],s[0])},PolynomialBezier.prototype.normalAngle=function(o){var s=this.derivative(o);return Math.atan2(s[0],s[1])},PolynomialBezier.prototype.inflectionPoints=function(){var o=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(o))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/o,a=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/o;if(a<0)return[];var $=Math.sqrt(a);return floatZero($)?$>0&&$<1?[s]:[]:[s-$,s+$].filter(function(j){return j>0&&j<1})},PolynomialBezier.prototype.split=function(o){if(o<=0)return[singlePoint(this.points[0]),this];if(o>=1)return[this,singlePoint(this.points[this.points.length-1])];var s=lerpPoint(this.points[0],this.points[1],o),a=lerpPoint(this.points[1],this.points[2],o),$=lerpPoint(this.points[2],this.points[3],o),j=lerpPoint(s,a,o),_e=lerpPoint(a,$,o),et=lerpPoint(j,_e,o);return[new PolynomialBezier(this.points[0],s,j,et,!0),new PolynomialBezier(et,_e,$,this.points[3],!0)]};function extrema(o,s){var a=o.points[0][s],$=o.points[o.points.length-1][s];if(a>$){var j=$;$=a,a=j}for(var _e=quadRoots(3*o.a[s],2*o.b[s],o.c[s]),et=0;et<_e.length;et+=1)if(_e[et]>0&&_e[et]<1){var tt=o.point(_e[et])[s];tt<a?a=tt:tt>$&&($=tt)}return{min:a,max:$}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var o=this.bounds();return{left:o.x.min,right:o.x.max,top:o.y.min,bottom:o.y.max,width:o.x.max-o.x.min,height:o.y.max-o.y.min,cx:(o.x.max+o.x.min)/2,cy:(o.y.max+o.y.min)/2}};function intersectData(o,s,a){var $=o.boundingBox();return{cx:$.cx,cy:$.cy,width:$.width,height:$.height,bez:o,t:(s+a)/2,t1:s,t2:a}}function splitData(o){var s=o.bez.split(.5);return[intersectData(s[0],o.t1,o.t),intersectData(s[1],o.t,o.t2)]}function boxIntersect(o,s){return Math.abs(o.cx-s.cx)*2<o.width+s.width&&Math.abs(o.cy-s.cy)*2<o.height+s.height}function intersectsImpl(o,s,a,$,j,_e){if(boxIntersect(o,s)){if(a>=_e||o.width<=$&&o.height<=$&&s.width<=$&&s.height<=$){j.push([o.t,s.t]);return}var et=splitData(o),tt=splitData(s);intersectsImpl(et[0],tt[0],a+1,$,j,_e),intersectsImpl(et[0],tt[1],a+1,$,j,_e),intersectsImpl(et[1],tt[0],a+1,$,j,_e),intersectsImpl(et[1],tt[1],a+1,$,j,_e)}}PolynomialBezier.prototype.intersections=function(o,s,a){s===void 0&&(s=2),a===void 0&&(a=7);var $=[];return intersectsImpl(intersectData(this,0,1),intersectData(o,0,1),0,s,$,a),$},PolynomialBezier.shapeSegment=function(o,s){var a=(s+1)%o.length();return new PolynomialBezier(o.v[s],o.o[s],o.i[a],o.v[a],!0)},PolynomialBezier.shapeSegmentInverted=function(o,s){var a=(s+1)%o.length();return new PolynomialBezier(o.v[a],o.i[a],o.o[s],o.v[s],!0)};function crossProduct(o,s){return[o[1]*s[2]-o[2]*s[1],o[2]*s[0]-o[0]*s[2],o[0]*s[1]-o[1]*s[0]]}function lineIntersection(o,s,a,$){var j=[o[0],o[1],1],_e=[s[0],s[1],1],et=[a[0],a[1],1],tt=[$[0],$[1],1],nt=crossProduct(crossProduct(j,_e),crossProduct(et,tt));return floatZero(nt[2])?null:[nt[0]/nt[2],nt[1]/nt[2]]}function polarOffset(o,s,a){return[o[0]+Math.cos(s)*a,o[1]-Math.sin(s)*a]}function pointDistance(o,s){return Math.hypot(o[0]-s[0],o[1]-s[1])}function pointEqual(o,s){return floatEqual(o[0],s[0])&&floatEqual(o[1],s[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(o,s){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(o,s.s,0,null,this),this.frequency=PropertyFactory.getProp(o,s.r,0,null,this),this.pointsType=PropertyFactory.getProp(o,s.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(o,s,a,$,j,_e,et){var tt=a-Math.PI/2,nt=a+Math.PI/2,it=s[0]+Math.cos(a)*$*j,rt=s[1]-Math.sin(a)*$*j;o.setTripleAt(it,rt,it+Math.cos(tt)*_e,rt-Math.sin(tt)*_e,it+Math.cos(nt)*et,rt-Math.sin(nt)*et,o.length())}function getPerpendicularVector(o,s){var a=[s[0]-o[0],s[1]-o[1]],$=-Math.PI*.5,j=[Math.cos($)*a[0]-Math.sin($)*a[1],Math.sin($)*a[0]+Math.cos($)*a[1]];return j}function getProjectingAngle(o,s){var a=s===0?o.length()-1:s-1,$=(s+1)%o.length(),j=o.v[a],_e=o.v[$],et=getPerpendicularVector(j,_e);return Math.atan2(0,1)-Math.atan2(et[1],et[0])}function zigZagCorner(o,s,a,$,j,_e,et){var tt=getProjectingAngle(s,a),nt=s.v[a%s._length],it=s.v[a===0?s._length-1:a-1],rt=s.v[(a+1)%s._length],st=_e===2?Math.sqrt(Math.pow(nt[0]-it[0],2)+Math.pow(nt[1]-it[1],2)):0,ot=_e===2?Math.sqrt(Math.pow(nt[0]-rt[0],2)+Math.pow(nt[1]-rt[1],2)):0;setPoint(o,s.v[a%s._length],tt,et,$,ot/((j+1)*2),st/((j+1)*2))}function zigZagSegment(o,s,a,$,j,_e){for(var et=0;et<$;et+=1){var tt=(et+1)/($+1),nt=j===2?Math.sqrt(Math.pow(s.points[3][0]-s.points[0][0],2)+Math.pow(s.points[3][1]-s.points[0][1],2)):0,it=s.normalAngle(tt),rt=s.point(tt);setPoint(o,rt,it,_e,a,nt/(($+1)*2),nt/(($+1)*2)),_e=-_e}return _e}ZigZagModifier.prototype.processPath=function(o,s,a,$){var j=o._length,_e=shapePool.newElement();if(_e.c=o.c,o.c||(j-=1),j===0)return _e;var et=-1,tt=PolynomialBezier.shapeSegment(o,0);zigZagCorner(_e,o,0,s,a,$,et);for(var nt=0;nt<j;nt+=1)et=zigZagSegment(_e,tt,s,a,$,-et),nt===j-1&&!o.c?tt=null:tt=PolynomialBezier.shapeSegment(o,(nt+1)%j),zigZagCorner(_e,o,nt+1,s,a,$,et);return _e},ZigZagModifier.prototype.processShapes=function(o){var s,a,$=this.shapes.length,j,_e,et=this.amplitude.v,tt=Math.max(0,Math.round(this.frequency.v)),nt=this.pointsType.v;if(et!==0){var it,rt;for(a=0;a<$;a+=1){if(it=this.shapes[a],rt=it.localShapeCollection,!(!it.shape._mdf&&!this._mdf&&!o))for(rt.releaseShapes(),it.shape._mdf=!0,s=it.shape.paths.shapes,_e=it.shape.paths._length,j=0;j<_e;j+=1)rt.addShape(this.processPath(s[j],et,tt,nt));it.shape.paths=it.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(o,s,a){var $=Math.atan2(s[0]-o[0],s[1]-o[1]);return[polarOffset(o,$,a),polarOffset(s,$,a)]}function offsetSegment(o,s){var a,$,j,_e,et,tt,nt;nt=linearOffset(o.points[0],o.points[1],s),a=nt[0],$=nt[1],nt=linearOffset(o.points[1],o.points[2],s),j=nt[0],_e=nt[1],nt=linearOffset(o.points[2],o.points[3],s),et=nt[0],tt=nt[1];var it=lineIntersection(a,$,j,_e);it===null&&(it=$);var rt=lineIntersection(et,tt,j,_e);return rt===null&&(rt=et),new PolynomialBezier(a,it,rt,tt)}function joinLines(o,s,a,$,j){var _e=s.points[3],et=a.points[0];if($===3||pointEqual(_e,et))return _e;if($===2){var tt=-s.tangentAngle(1),nt=-a.tangentAngle(0)+Math.PI,it=lineIntersection(_e,polarOffset(_e,tt+Math.PI/2,100),et,polarOffset(et,tt+Math.PI/2,100)),rt=it?pointDistance(it,_e):pointDistance(_e,et)/2,st=polarOffset(_e,tt,2*rt*roundCorner);return o.setXYAt(st[0],st[1],"o",o.length()-1),st=polarOffset(et,nt,2*rt*roundCorner),o.setTripleAt(et[0],et[1],et[0],et[1],st[0],st[1],o.length()),et}var ot=pointEqual(_e,s.points[2])?s.points[0]:s.points[2],at=pointEqual(et,a.points[1])?a.points[3]:a.points[1],lt=lineIntersection(ot,_e,et,at);return lt&&pointDistance(lt,_e)<j?(o.setTripleAt(lt[0],lt[1],lt[0],lt[1],lt[0],lt[1],o.length()),lt):_e}function getIntersection(o,s){var a=o.intersections(s);return a.length&&floatEqual(a[0][0],1)&&a.shift(),a.length?a[0]:null}function pruneSegmentIntersection(o,s){var a=o.slice(),$=s.slice(),j=getIntersection(o[o.length-1],s[0]);return j&&(a[o.length-1]=o[o.length-1].split(j[0])[0],$[0]=s[0].split(j[1])[1]),o.length>1&&s.length>1&&(j=getIntersection(o[0],s[s.length-1]),j)?[[o[0].split(j[0])[0]],[s[s.length-1].split(j[1])[1]]]:[a,$]}function pruneIntersections(o){for(var s,a=1;a<o.length;a+=1)s=pruneSegmentIntersection(o[a-1],o[a]),o[a-1]=s[0],o[a]=s[1];return o.length>1&&(s=pruneSegmentIntersection(o[o.length-1],o[0]),o[o.length-1]=s[0],o[0]=s[1]),o}function offsetSegmentSplit(o,s){var a=o.inflectionPoints(),$,j,_e,et;if(a.length===0)return[offsetSegment(o,s)];if(a.length===1||floatEqual(a[1],1))return _e=o.split(a[0]),$=_e[0],j=_e[1],[offsetSegment($,s),offsetSegment(j,s)];_e=o.split(a[0]),$=_e[0];var tt=(a[1]-a[0])/(1-a[0]);return _e=_e[1].split(tt),et=_e[0],j=_e[1],[offsetSegment($,s),offsetSegment(et,s),offsetSegment(j,s)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(o,s){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(o,s.a,0,null,this),this.miterLimit=PropertyFactory.getProp(o,s.ml,0,null,this),this.lineJoin=s.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(o,s,a,$){var j=shapePool.newElement();j.c=o.c;var _e=o.length();o.c||(_e-=1);var et,tt,nt,it=[];for(et=0;et<_e;et+=1)nt=PolynomialBezier.shapeSegment(o,et),it.push(offsetSegmentSplit(nt,s));if(!o.c)for(et=_e-1;et>=0;et-=1)nt=PolynomialBezier.shapeSegmentInverted(o,et),it.push(offsetSegmentSplit(nt,s));it=pruneIntersections(it);var rt=null,st=null;for(et=0;et<it.length;et+=1){var ot=it[et];for(st&&(rt=joinLines(j,st,ot[0],a,$)),st=ot[ot.length-1],tt=0;tt<ot.length;tt+=1)nt=ot[tt],rt&&pointEqual(nt.points[0],rt)?j.setXYAt(nt.points[1][0],nt.points[1][1],"o",j.length()-1):j.setTripleAt(nt.points[0][0],nt.points[0][1],nt.points[1][0],nt.points[1][1],nt.points[0][0],nt.points[0][1],j.length()),j.setTripleAt(nt.points[3][0],nt.points[3][1],nt.points[3][0],nt.points[3][1],nt.points[2][0],nt.points[2][1],j.length()),rt=nt.points[3]}return it.length&&joinLines(j,st,it[0][0],a,$),j},OffsetPathModifier.prototype.processShapes=function(o){var s,a,$=this.shapes.length,j,_e,et=this.amount.v,tt=this.miterLimit.v,nt=this.lineJoin;if(et!==0){var it,rt;for(a=0;a<$;a+=1){if(it=this.shapes[a],rt=it.localShapeCollection,!(!it.shape._mdf&&!this._mdf&&!o))for(rt.releaseShapes(),it.shape._mdf=!0,s=it.shape.paths.shapes,_e=it.shape.paths._length,j=0;j<_e;j+=1)rt.addShape(this.processPath(s[j],et,nt,tt));it.shape.paths=it.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(o){for(var s=o.fStyle?o.fStyle.split(" "):[],a="normal",$="normal",j=s.length,_e,et=0;et<j;et+=1)switch(_e=s[et].toLowerCase(),_e){case"italic":$="italic";break;case"bold":a="700";break;case"black":a="900";break;case"medium":a="500";break;case"regular":case"normal":a="400";break;case"light":case"thin":a="200";break}return{style:$,weight:o.fWeight||a}}var FontManager=function(){var o=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},a=[];a=a.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var $=127988,j=917631,_e=917601,et=917626,tt=65039,nt=8205,it=127462,rt=127487,st=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function ot(wt){var Lt=wt.split(","),vt,xt=Lt.length,Ut=[];for(vt=0;vt<xt;vt+=1)Lt[vt]!=="sans-serif"&&Lt[vt]!=="monospace"&&Ut.push(Lt[vt]);return Ut.join(",")}function at(wt,Lt){var vt=createTag("span");vt.setAttribute("aria-hidden",!0),vt.style.fontFamily=Lt;var xt=createTag("span");xt.innerText="giItT1WQy@!-/#",vt.style.position="absolute",vt.style.left="-10000px",vt.style.top="-10000px",vt.style.fontSize="300px",vt.style.fontVariant="normal",vt.style.fontStyle="normal",vt.style.fontWeight="normal",vt.style.letterSpacing="0",vt.appendChild(xt),document.body.appendChild(vt);var Ut=xt.offsetWidth;return xt.style.fontFamily=ot(wt)+", "+Lt,{node:xt,w:Ut,parent:vt}}function lt(){var wt,Lt=this.fonts.length,vt,xt,Ut=Lt;for(wt=0;wt<Lt;wt+=1)this.fonts[wt].loaded?Ut-=1:this.fonts[wt].fOrigin==="n"||this.fonts[wt].origin===0?this.fonts[wt].loaded=!0:(vt=this.fonts[wt].monoCase.node,xt=this.fonts[wt].monoCase.w,vt.offsetWidth!==xt?(Ut-=1,this.fonts[wt].loaded=!0):(vt=this.fonts[wt].sansCase.node,xt=this.fonts[wt].sansCase.w,vt.offsetWidth!==xt&&(Ut-=1,this.fonts[wt].loaded=!0)),this.fonts[wt].loaded&&(this.fonts[wt].sansCase.parent.parentNode.removeChild(this.fonts[wt].sansCase.parent),this.fonts[wt].monoCase.parent.parentNode.removeChild(this.fonts[wt].monoCase.parent)));Ut!==0&&Date.now()-this.initTime<o?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function ct(wt,Lt){var vt=document.body&&Lt?"svg":"canvas",xt,Ut=getFontProperties(wt);if(vt==="svg"){var Et=createNS("text");Et.style.fontSize="100px",Et.setAttribute("font-family",wt.fFamily),Et.setAttribute("font-style",Ut.style),Et.setAttribute("font-weight",Ut.weight),Et.textContent="1",wt.fClass?(Et.style.fontFamily="inherit",Et.setAttribute("class",wt.fClass)):Et.style.fontFamily=wt.fFamily,Lt.appendChild(Et),xt=Et}else{var Dt=new OffscreenCanvas(500,500).getContext("2d");Dt.font=Ut.style+" "+Ut.weight+" 100px "+wt.fFamily,xt=Dt}function Bt(Wt){return vt==="svg"?(xt.textContent=Wt,xt.getComputedTextLength()):xt.measureText(Wt).width}return{measureText:Bt}}function ht(wt,Lt){if(!wt){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=wt.list;return}if(!document.body){this.isLoaded=!0,wt.list.forEach(function(vn){vn.helper=ct(vn),vn.cache={}}),this.fonts=wt.list;return}var vt=wt.list,xt,Ut=vt.length,Et=Ut;for(xt=0;xt<Ut;xt+=1){var Dt=!0,Bt,Wt;if(vt[xt].loaded=!1,vt[xt].monoCase=at(vt[xt].fFamily,"monospace"),vt[xt].sansCase=at(vt[xt].fFamily,"sans-serif"),!vt[xt].fPath)vt[xt].loaded=!0,Et-=1;else if(vt[xt].fOrigin==="p"||vt[xt].origin===3){if(Bt=document.querySelectorAll('style[f-forigin="p"][f-family="'+vt[xt].fFamily+'"], style[f-origin="3"][f-family="'+vt[xt].fFamily+'"]'),Bt.length>0&&(Dt=!1),Dt){var Zt=createTag("style");Zt.setAttribute("f-forigin",vt[xt].fOrigin),Zt.setAttribute("f-origin",vt[xt].origin),Zt.setAttribute("f-family",vt[xt].fFamily),Zt.type="text/css",Zt.innerText="@font-face {font-family: "+vt[xt].fFamily+"; font-style: normal; src: url('"+vt[xt].fPath+"');}",Lt.appendChild(Zt)}}else if(vt[xt].fOrigin==="g"||vt[xt].origin===1){for(Bt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Wt=0;Wt<Bt.length;Wt+=1)Bt[Wt].href.indexOf(vt[xt].fPath)!==-1&&(Dt=!1);if(Dt){var sn=createTag("link");sn.setAttribute("f-forigin",vt[xt].fOrigin),sn.setAttribute("f-origin",vt[xt].origin),sn.type="text/css",sn.rel="stylesheet",sn.href=vt[xt].fPath,document.body.appendChild(sn)}}else if(vt[xt].fOrigin==="t"||vt[xt].origin===2){for(Bt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Wt=0;Wt<Bt.length;Wt+=1)vt[xt].fPath===Bt[Wt].src&&(Dt=!1);if(Dt){var dn=createTag("link");dn.setAttribute("f-forigin",vt[xt].fOrigin),dn.setAttribute("f-origin",vt[xt].origin),dn.setAttribute("rel","stylesheet"),dn.setAttribute("href",vt[xt].fPath),Lt.appendChild(dn)}}vt[xt].helper=ct(vt[xt],Lt),vt[xt].cache={},this.fonts.push(vt[xt])}Et===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function dt(wt){if(wt){this.chars||(this.chars=[]);var Lt,vt=wt.length,xt,Ut=this.chars.length,Et;for(Lt=0;Lt<vt;Lt+=1){for(xt=0,Et=!1;xt<Ut;)this.chars[xt].style===wt[Lt].style&&this.chars[xt].fFamily===wt[Lt].fFamily&&this.chars[xt].ch===wt[Lt].ch&&(Et=!0),xt+=1;Et||(this.chars.push(wt[Lt]),Ut+=1)}}}function ut(wt,Lt,vt){for(var xt=0,Ut=this.chars.length;xt<Ut;){if(this.chars[xt].ch===wt&&this.chars[xt].style===Lt&&this.chars[xt].fFamily===vt)return this.chars[xt];xt+=1}return(typeof wt=="string"&&wt.charCodeAt(0)!==13||!wt)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",wt,Lt,vt)),s}function pt(wt,Lt,vt){var xt=this.getFontByName(Lt),Ut=wt;if(!xt.cache[Ut]){var Et=xt.helper;if(wt===" "){var Dt=Et.measureText("|"+wt+"|"),Bt=Et.measureText("||");xt.cache[Ut]=(Dt-Bt)/100}else xt.cache[Ut]=Et.measureText(wt)/100}return xt.cache[Ut]*vt}function ft(wt){for(var Lt=0,vt=this.fonts.length;Lt<vt;){if(this.fonts[Lt].fName===wt)return this.fonts[Lt];Lt+=1}return this.fonts[0]}function mt(wt){var Lt=0,vt=wt.charCodeAt(0);if(vt>=55296&&vt<=56319){var xt=wt.charCodeAt(1);xt>=56320&&xt<=57343&&(Lt=(vt-55296)*1024+xt-56320+65536)}return Lt}function gt(wt,Lt){var vt=wt.toString(16)+Lt.toString(16);return st.indexOf(vt)!==-1}function bt(wt){return wt===nt}function St(wt){return wt===tt}function Nt(wt){var Lt=mt(wt);return Lt>=it&&Lt<=rt}function Rt(wt){return Nt(wt.substr(0,2))&&Nt(wt.substr(2,2))}function Ft(wt){return a.indexOf(wt)!==-1}function Ot(wt,Lt){var vt=mt(wt.substr(Lt,2));if(vt!==$)return!1;var xt=0;for(Lt+=2;xt<5;){if(vt=mt(wt.substr(Lt,2)),vt<_e||vt>et)return!1;xt+=1,Lt+=2}return mt(wt.substr(Lt,2))===j}function Ct(){this.isLoaded=!0}var yt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};yt.isModifier=gt,yt.isZeroWidthJoiner=bt,yt.isFlagEmoji=Rt,yt.isRegionalCode=Nt,yt.isCombinedCharacter=Ft,yt.isRegionalFlag=Ot,yt.isVariationSelector=St,yt.BLACK_FLAG_CODE_POINT=$;var Pt={addChars:dt,addFonts:ht,getCharData:ut,getFontByName:ft,measureText:pt,checkLoadedFonts:lt,setIsLoaded:Ct};return yt.prototype=Pt,yt}();function SlotManager(o){this.animationData=o}SlotManager.prototype.getProp=function(o){return this.animationData.slots&&this.animationData.slots[o.sid]?Object.assign(o,this.animationData.slots[o.sid].p):o};function slotFactory(o){return new SlotManager(o)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var s,a=this.renderableComponents.length;for(s=0;s<a;s+=1)this.renderableComponents[s].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var o={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(s){return o[s]||""}}();function SliderEffect(o,s,a){this.p=PropertyFactory.getProp(s,o.v,0,0,a)}function AngleEffect(o,s,a){this.p=PropertyFactory.getProp(s,o.v,0,0,a)}function ColorEffect(o,s,a){this.p=PropertyFactory.getProp(s,o.v,1,0,a)}function PointEffect(o,s,a){this.p=PropertyFactory.getProp(s,o.v,1,0,a)}function LayerIndexEffect(o,s,a){this.p=PropertyFactory.getProp(s,o.v,0,0,a)}function MaskIndexEffect(o,s,a){this.p=PropertyFactory.getProp(s,o.v,0,0,a)}function CheckboxEffect(o,s,a){this.p=PropertyFactory.getProp(s,o.v,0,0,a)}function NoValueEffect(){this.p={}}function EffectsManager(o,s){var a=o.ef||[];this.effectElements=[];var $,j=a.length,_e;for($=0;$<j;$+=1)_e=new GroupEffect(a[$],s),this.effectElements.push(_e)}function GroupEffect(o,s){this.init(o,s)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(o,s){this.data=o,this.effectElements=[],this.initDynamicPropertyContainer(s);var a,$=this.data.ef.length,j,_e=this.data.ef;for(a=0;a<$;a+=1){switch(j=null,_e[a].ty){case 0:j=new SliderEffect(_e[a],s,this);break;case 1:j=new AngleEffect(_e[a],s,this);break;case 2:j=new ColorEffect(_e[a],s,this);break;case 3:j=new PointEffect(_e[a],s,this);break;case 4:case 7:j=new CheckboxEffect(_e[a],s,this);break;case 10:j=new LayerIndexEffect(_e[a],s,this);break;case 11:j=new MaskIndexEffect(_e[a],s,this);break;case 5:j=new EffectsManager(_e[a],s);break;default:j=new NoValueEffect(_e[a]);break}j&&this.effectElements.push(j)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,a=this.data.masksProperties.length;s<a;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=getExpressionInterfaces();if(s){var a=s("layer"),$=s("effects"),j=s("shape"),_e=s("text"),et=s("comp");this.layerInterface=a(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var tt=$.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(tt),this.data.ty===0||this.data.xt?this.compInterface=et(this):this.data.ty===4?(this.layerInterface.shapeInterface=j(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=_e(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var s=getBlendMode(this.data.bm),a=this.baseElement||this.layerElement;a.style["mix-blend-mode"]=s},initBaseData:function(s,a,$){this.globalData=a,this.comp=$,this.data=s,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,a){var $,j=this.dynamicProperties.length;for($=0;$<j;$+=1)(a||this._isParent&&this.dynamicProperties[$].propType==="transform")&&(this.dynamicProperties[$].getValue(),this.dynamicProperties[$]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function FootageElement(o,s,a){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(o.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(o,s,a)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var o=getExpressionInterfaces();if(o){var s=o("footage");this.layerInterface=s(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(o,s,a){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(o.refId),this.initBaseData(o,s,a),this._isPlaying=!1,this._canPlay=!1;var $=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio($),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,s.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,o.au&&o.au.lv?o.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(o){if(this.prepareRenderableFrame(o,!0),this.prepareProperties(o,!0),this.tm._placeholder)this._currentTime=o/this.data.sr;else{var s=this.tm.v;this._currentTime=s}this._volume=this.lv.v[0];var a=this._volume*this._volumeMultiplier;this._previousVolume!==a&&(this._previousVolume=a,this.audio.volume(a))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(o){this.audio.rate(o)},AudioElement.prototype.volume=function(o){this._volumeMultiplier=o,this._previousVolume=o*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(o){var s,a=this.layers.length,$;for(this.completeLayers=!0,s=a-1;s>=0;s-=1)this.elements[s]||($=this.layers[s],$.ip-$.st<=o-this.layers[s].st&&$.op-$.st>o-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(o){switch(o.ty){case 2:return this.createImage(o);case 0:return this.createComp(o);case 1:return this.createSolid(o);case 3:return this.createNull(o);case 4:return this.createShape(o);case 5:return this.createText(o);case 6:return this.createAudio(o);case 13:return this.createCamera(o);case 15:return this.createFootage(o);default:return this.createNull(o)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(o){return new AudioElement(o,this.globalData,this)},BaseRenderer.prototype.createFootage=function(o){return new FootageElement(o,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var o,s=this.layers.length;for(o=0;o<s;o+=1)this.buildItem(o);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(o){this.completeLayers=!1;var s,a=o.length,$,j=this.layers.length;for(s=0;s<a;s+=1)for($=0;$<j;){if(this.layers[$].id===o[s].id){this.layers[$]=o[s];break}$+=1}},BaseRenderer.prototype.setProjectInterface=function(o){this.globalData.projectInterface=o},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(o,s,a){for(var $=this.elements,j=this.layers,_e=0,et=j.length;_e<et;)j[_e].ind==s&&(!$[_e]||$[_e]===!0?(this.buildItem(_e),this.addPendingElement(o)):(a.push($[_e]),$[_e].setAsParent(),j[_e].parent!==void 0?this.buildElementParenting(o,j[_e].parent,a):o.setHierarchy(a))),_e+=1},BaseRenderer.prototype.addPendingElement=function(o){this.pendingElements.push(o)},BaseRenderer.prototype.searchExtraCompositions=function(o){var s,a=o.length;for(s=0;s<a;s+=1)if(o[s].xt){var $=this.createComp(o[s]);$.initExpressions(),this.globalData.projectInterface.registerComposition($)}},BaseRenderer.prototype.getElementById=function(o){var s,a=this.elements.length;for(s=0;s<a;s+=1)if(this.elements[s].data.ind===o)return this.elements[s];return null},BaseRenderer.prototype.getElementByPath=function(o){var s=o.shift(),a;if(typeof s=="number")a=this.elements[s];else{var $,j=this.elements.length;for($=0;$<j;$+=1)if(this.elements[$].data.nm===s){a=this.elements[$];break}}return o.length===0?a:a.getElementByPath(o)},BaseRenderer.prototype.setupGlobalData=function(o,s){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(o),this.globalData.fontManager.addChars(o.chars),this.globalData.fontManager.addFonts(o.fonts,s),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=o.fr,this.globalData.nm=o.nm,this.globalData.compSize={w:o.w,h:o.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var s=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:s,localMat:s,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var s,a=this.finalTransform.mat,$=0,j=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;$<j;){if(this.hierarchy[$].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}$+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,a.cloneFromProps(s),$=0;$<j;$+=1)a.multiply(this.hierarchy[$].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var s=0,a=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<a;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var $=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone($),s=1;s<a;s+=1){var j=this.localTransforms[s].matrix;$.multiply(j)}$.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var _e=this.finalTransform.localOpacity;for(s=0;s<a;s+=1)_e*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=_e}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var a=0,$=s.length;for(a=0;a<$;a+=1)this.localTransforms.push(s[a])}}},globalToLocal:function(s){var a=[];a.push(this.finalTransform);for(var $=!0,j=this.comp;$;)j.finalTransform?(j.data.hasMask&&a.splice(0,0,j.finalTransform),j=j.comp):$=!1;var _e,et=a.length,tt;for(_e=0;_e<et;_e+=1)tt=a[_e].mat.applyToPointArray(0,0,0),s=[s[0]-tt[0],s[1]-tt[1],0];return s},mHelper:new Matrix};function MaskElement(o,s,a){this.data=o,this.element=s,this.globalData=a,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var $=this.globalData.defs,j,_e=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(_e),this.solidPath="";var et,tt=this.masksProperties,nt=0,it=[],rt,st,ot=createElementID(),at,lt,ct,ht,dt="clipPath",ut="clip-path";for(j=0;j<_e;j+=1)if((tt[j].mode!=="a"&&tt[j].mode!=="n"||tt[j].inv||tt[j].o.k!==100||tt[j].o.x)&&(dt="mask",ut="mask"),(tt[j].mode==="s"||tt[j].mode==="i")&&nt===0?(at=createNS("rect"),at.setAttribute("fill","#ffffff"),at.setAttribute("width",this.element.comp.data.w||0),at.setAttribute("height",this.element.comp.data.h||0),it.push(at)):at=null,et=createNS("path"),tt[j].mode==="n")this.viewData[j]={op:PropertyFactory.getProp(this.element,tt[j].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,tt[j],3),elem:et,lastPath:""},$.appendChild(et);else{nt+=1,et.setAttribute("fill",tt[j].mode==="s"?"#000000":"#ffffff"),et.setAttribute("clip-rule","nonzero");var pt;if(tt[j].x.k!==0?(dt="mask",ut="mask",ht=PropertyFactory.getProp(this.element,tt[j].x,0,null,this.element),pt=createElementID(),lt=createNS("filter"),lt.setAttribute("id",pt),ct=createNS("feMorphology"),ct.setAttribute("operator","erode"),ct.setAttribute("in","SourceGraphic"),ct.setAttribute("radius","0"),lt.appendChild(ct),$.appendChild(lt),et.setAttribute("stroke",tt[j].mode==="s"?"#000000":"#ffffff")):(ct=null,ht=null),this.storedData[j]={elem:et,x:ht,expan:ct,lastPath:"",lastOperator:"",filterId:pt,lastRadius:0},tt[j].mode==="i"){st=it.length;var ft=createNS("g");for(rt=0;rt<st;rt+=1)ft.appendChild(it[rt]);var mt=createNS("mask");mt.setAttribute("mask-type","alpha"),mt.setAttribute("id",ot+"_"+nt),mt.appendChild(et),$.appendChild(mt),ft.setAttribute("mask","url("+getLocationHref()+"#"+ot+"_"+nt+")"),it.length=0,it.push(ft)}else it.push(et);tt[j].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[j]={elem:et,lastPath:"",op:PropertyFactory.getProp(this.element,tt[j].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,tt[j],3),invRect:at},this.viewData[j].prop.k||this.drawPath(tt[j],this.viewData[j].prop.v,this.viewData[j])}for(this.maskElement=createNS(dt),_e=it.length,j=0;j<_e;j+=1)this.maskElement.appendChild(it[j]);nt>0&&(this.maskElement.setAttribute("id",ot),this.element.maskedElement.setAttribute(ut,"url("+getLocationHref()+"#"+ot+")"),$.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(o){return this.viewData[o].prop},MaskElement.prototype.renderFrame=function(o){var s=this.element.finalTransform.mat,a,$=this.masksProperties.length;for(a=0;a<$;a+=1)if((this.viewData[a].prop._mdf||o)&&this.drawPath(this.masksProperties[a],this.viewData[a].prop.v,this.viewData[a]),(this.viewData[a].op._mdf||o)&&this.viewData[a].elem.setAttribute("fill-opacity",this.viewData[a].op.v),this.masksProperties[a].mode!=="n"&&(this.viewData[a].invRect&&(this.element.finalTransform.mProp._mdf||o)&&this.viewData[a].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[a].x&&(this.storedData[a].x._mdf||o))){var j=this.storedData[a].expan;this.storedData[a].x.v<0?(this.storedData[a].lastOperator!=="erode"&&(this.storedData[a].lastOperator="erode",this.storedData[a].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[a].filterId+")")),j.setAttribute("radius",-this.storedData[a].x.v)):(this.storedData[a].lastOperator!=="dilate"&&(this.storedData[a].lastOperator="dilate",this.storedData[a].elem.setAttribute("filter",null)),this.storedData[a].elem.setAttribute("stroke-width",this.storedData[a].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var o="M0,0 ";return o+=" h"+this.globalData.compSize.w,o+=" v"+this.globalData.compSize.h,o+=" h-"+this.globalData.compSize.w,o+=" v-"+this.globalData.compSize.h+" ",o},MaskElement.prototype.drawPath=function(o,s,a){var $=" M"+s.v[0][0]+","+s.v[0][1],j,_e;for(_e=s._length,j=1;j<_e;j+=1)$+=" C"+s.o[j-1][0]+","+s.o[j-1][1]+" "+s.i[j][0]+","+s.i[j][1]+" "+s.v[j][0]+","+s.v[j][1];if(s.c&&_e>1&&($+=" C"+s.o[j-1][0]+","+s.o[j-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),a.lastPath!==$){var et="";a.elem&&(s.c&&(et=o.inv?this.solidPath+$:$),a.elem.setAttribute("d",et)),a.lastPath=$}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var o={};o.createFilter=s,o.createAlphaToLuminanceFilter=a;function s($,j){var _e=createNS("filter");return _e.setAttribute("id",$),j!==!0&&(_e.setAttribute("filterUnits","objectBoundingBox"),_e.setAttribute("x","0%"),_e.setAttribute("y","0%"),_e.setAttribute("width","100%"),_e.setAttribute("height","100%")),_e}function a(){var $=createNS("feColorMatrix");return $.setAttribute("type","matrix"),$.setAttribute("color-interpolation-filters","sRGB"),$.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),$}return o}(),featureSupport=function(){var o={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(o.maskType=!1),/firefox/i.test(navigator.userAgent)&&(o.svgLumaHidden=!1),o}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(o){var s,a="SourceGraphic",$=o.data.ef?o.data.ef.length:0,j=createElementID(),_e=filtersFactory.createFilter(j,!0),et=0;this.filters=[];var tt;for(s=0;s<$;s+=1){tt=null;var nt=o.data.ef[s].ty;if(registeredEffects$1[nt]){var it=registeredEffects$1[nt].effect;tt=new it(_e,o.effectsManager.effectElements[s],o,idPrefix+et,a),a=idPrefix+et,registeredEffects$1[nt].countsAsEffect&&(et+=1)}tt&&this.filters.push(tt)}et&&(o.globalData.defs.appendChild(_e),o.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+j+")")),this.filters.length&&o.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(o){var s,a=this.filters.length;for(s=0;s<a;s+=1)this.filters[s].renderFrame(o)},SVGEffects.prototype.getEffects=function(o){var s,a=this.filters.length,$=[];for(s=0;s<a;s+=1)this.filters[s].type===o&&$.push(this.filters[s]);return $};function registerEffect$1(o,s,a){registeredEffects$1[o]={effect:s,countsAsEffect:a}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var a=createNS("g");a.setAttribute("id",this.layerId),a.appendChild(this.layerElement),s=a,this.globalData.defs.appendChild(a)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var $=createNS("clipPath"),j=createNS("path");j.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var _e=createElementID();if($.setAttribute("id",_e),$.appendChild(j),this.globalData.defs.appendChild($),this.checkMasks()){var et=createNS("g");et.setAttribute("clip-path","url("+getLocationHref()+"#"+_e+")"),et.appendChild(this.layerElement),this.transformedElement=et,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+_e+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var a=this.layerId+"_"+s,$,j,_e,et;if(s===1||s===3){var tt=createNS("mask");tt.setAttribute("id",a),tt.setAttribute("mask-type",s===3?"luminance":"alpha"),_e=createNS("use"),_e.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),tt.appendChild(_e),this.globalData.defs.appendChild(tt),!featureSupport.maskType&&s===1&&(tt.setAttribute("mask-type","luminance"),$=createElementID(),j=filtersFactory.createFilter($),this.globalData.defs.appendChild(j),j.appendChild(filtersFactory.createAlphaToLuminanceFilter()),et=createNS("g"),et.appendChild(_e),tt.appendChild(et),et.setAttribute("filter","url("+getLocationHref()+"#"+$+")"))}else if(s===2){var nt=createNS("mask");nt.setAttribute("id",a),nt.setAttribute("mask-type","alpha");var it=createNS("g");nt.appendChild(it),$=createElementID(),j=filtersFactory.createFilter($);var rt=createNS("feComponentTransfer");rt.setAttribute("in","SourceGraphic"),j.appendChild(rt);var st=createNS("feFuncA");st.setAttribute("type","table"),st.setAttribute("tableValues","1.0 0.0"),rt.appendChild(st),this.globalData.defs.appendChild(j);var ot=createNS("rect");ot.setAttribute("width",this.comp.data.w),ot.setAttribute("height",this.comp.data.h),ot.setAttribute("x","0"),ot.setAttribute("y","0"),ot.setAttribute("fill","#ffffff"),ot.setAttribute("opacity","0"),it.setAttribute("filter","url("+getLocationHref()+"#"+$+")"),it.appendChild(ot),_e=createNS("use"),_e.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),it.appendChild(_e),featureSupport.maskType||(nt.setAttribute("mask-type","luminance"),j.appendChild(filtersFactory.createAlphaToLuminanceFilter()),et=createNS("g"),it.appendChild(ot),et.appendChild(this.layerElement),it.appendChild(et)),this.globalData.defs.appendChild(nt)}this.matteMasks[s]=a}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+s+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(s){this.hierarchy=s},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var o={initElement:function(a,$,j){this.initFrame(),this.initBaseData(a,$,j),this.initTransform(a,$,j),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var a=this.baseElement||this.layerElement;a.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var a=this.baseElement||this.layerElement;a.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(a){this._mdf=!1,this.prepareRenderableFrame(a),this.prepareProperties(a,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(o)],RenderableDOMElement)})();function IImageElement(o,s,a){this.assetData=s.getAssetData(o.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(o,s,a),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var o=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",o),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(o,s){this.elem=o,this.pos=s}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(s){var a,$=this.shapeModifiers.length;for(a=0;a<$;a+=1)this.shapeModifiers[a].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var a=0,$=this.shapeModifiers.length;a<$;)if(this.shapeModifiers[a].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,a=this.shapes.length;for(s=0;s<a;s+=1)this.shapes[s].sh.reset();a=this.shapeModifiers.length;var $;for(s=a-1;s>=0&&($=this.shapeModifiers[s].processShapes(this._isFirstFrame),!$);s-=1);}},searchProcessedElement:function(s){for(var a=this.processedElements,$=0,j=a.length;$<j;){if(a[$].elem===s)return a[$].pos;$+=1}return 0},addProcessedElement:function(s,a){for(var $=this.processedElements,j=$.length;j;)if(j-=1,$[j].elem===s){$[j].pos=a;return}$.push(new ProcessedElement(s,a))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(o,s,a){this.caches=[],this.styles=[],this.transformers=o,this.lStr="",this.sh=a,this.lvl=s,this._isAnimated=!!a.k;for(var $=0,j=o.length;$<j;){if(o[$].mProps.dynamicProperties.length){this._isAnimated=!0;break}$+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(o,s){this.data=o,this.type=o.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=o.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(o,s,a,$){this.elem=o,this.frameId=-1,this.dataProps=createSizedArray(s.length),this.renderer=a,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",s.length?s.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer($);var j,_e=s.length||0,et;for(j=0;j<_e;j+=1)et=PropertyFactory.getProp(o,s[j].v,0,0,this),this.k=et.k||this.k,this.dataProps[j]={n:s[j].n,p:et};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(o){if(!(this.elem.globalData.frameId===this.frameId&&!o)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||o,this._mdf)){var s=0,a=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<a;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(o,s,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(o,s.o,0,.01,this),this.w=PropertyFactory.getProp(o,s.w,0,null,this),this.d=new DashProperty(o,s.d||{},"svg",this),this.c=PropertyFactory.getProp(o,s.c,1,255,this),this.style=a,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(o,s,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(o,s.o,0,.01,this),this.c=PropertyFactory.getProp(o,s.c,1,255,this),this.style=a}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(o,s,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.style=a}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(o,s,a){this.data=s,this.c=createTypedArray("uint8c",s.p*4);var $=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=createTypedArray("float32",$),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=$,this.initDynamicPropertyContainer(a),this.prop=PropertyFactory.getProp(o,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(o,s){for(var a=0,$=this.o.length/2,j;a<$;){if(j=Math.abs(o[a*4]-o[s*4+a*2]),j>.01)return!1;a+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var o=0,s=this.data.k.k.length;o<s;){if(!this.comparePoints(this.data.k.k[o].s,this.data.p))return!1;o+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(o){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||o){var s,a=this.data.p*4,$,j;for(s=0;s<a;s+=1)$=s%4===0?100:255,j=Math.round(this.prop.v[s]*$),this.c[s]!==j&&(this.c[s]=j,this._cmdf=!o);if(this.o.length)for(a=this.prop.v.length,s=this.data.p*4;s<a;s+=1)$=s%2===0?100:1,j=s%2===0?Math.round(this.prop.v[s]*100):this.prop.v[s],this.o[s-this.data.p*4]!==j&&(this.o[s-this.data.p*4]=j,this._omdf=!o);this._mdf=!o}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(o,s,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.initGradientData(o,s,a)}SVGGradientFillStyleData.prototype.initGradientData=function(o,s,a){this.o=PropertyFactory.getProp(o,s.o,0,.01,this),this.s=PropertyFactory.getProp(o,s.s,1,null,this),this.e=PropertyFactory.getProp(o,s.e,1,null,this),this.h=PropertyFactory.getProp(o,s.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(o,s.a||{k:0},0,degToRads,this),this.g=new GradientProperty(o,s.g,this),this.style=a,this.stops=[],this.setGradientData(a.pElem,s),this.setGradientOpacity(s,a),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(o,s){var a=createElementID(),$=createNS(s.t===1?"linearGradient":"radialGradient");$.setAttribute("id",a),$.setAttribute("spreadMethod","pad"),$.setAttribute("gradientUnits","userSpaceOnUse");var j=[],_e,et,tt;for(tt=s.g.p*4,et=0;et<tt;et+=4)_e=createNS("stop"),$.appendChild(_e),j.push(_e);o.setAttribute(s.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+a+")"),this.gf=$,this.cst=j},SVGGradientFillStyleData.prototype.setGradientOpacity=function(o,s){if(this.g._hasOpacity&&!this.g._collapsable){var a,$,j,_e=createNS("mask"),et=createNS("path");_e.appendChild(et);var tt=createElementID(),nt=createElementID();_e.setAttribute("id",nt);var it=createNS(o.t===1?"linearGradient":"radialGradient");it.setAttribute("id",tt),it.setAttribute("spreadMethod","pad"),it.setAttribute("gradientUnits","userSpaceOnUse"),j=o.g.k.k[0].s?o.g.k.k[0].s.length:o.g.k.k.length;var rt=this.stops;for($=o.g.p*4;$<j;$+=2)a=createNS("stop"),a.setAttribute("stop-color","rgb(255,255,255)"),it.appendChild(a),rt.push(a);et.setAttribute(o.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+tt+")"),o.ty==="gs"&&(et.setAttribute("stroke-linecap",lineCapEnum[o.lc||2]),et.setAttribute("stroke-linejoin",lineJoinEnum[o.lj||2]),o.lj===1&&et.setAttribute("stroke-miterlimit",o.ml)),this.of=it,this.ms=_e,this.ost=rt,this.maskId=nt,s.msElem=et}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(o,s,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(o,s.w,0,null,this),this.d=new DashProperty(o,s.d||{},"svg",this),this.initGradientData(o,s,a),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(o,s,a){this.transform={mProps:o,op:s,container:a},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(s,a,$,j){if(a===0)return"";var _e=s.o,et=s.i,tt=s.v,nt,it=" M"+j.applyToPointStringified(tt[0][0],tt[0][1]);for(nt=1;nt<a;nt+=1)it+=" C"+j.applyToPointStringified(_e[nt-1][0],_e[nt-1][1])+" "+j.applyToPointStringified(et[nt][0],et[nt][1])+" "+j.applyToPointStringified(tt[nt][0],tt[nt][1]);return $&&a&&(it+=" C"+j.applyToPointStringified(_e[nt-1][0],_e[nt-1][1])+" "+j.applyToPointStringified(et[0][0],et[0][1])+" "+j.applyToPointStringified(tt[0][0],tt[0][1]),it+="z"),it},SVGElementsRenderer=function(){var o=new Matrix,s=new Matrix,a={createRenderFunction:$};function $(st){switch(st.ty){case"fl":return tt;case"gf":return it;case"gs":return nt;case"st":return rt;case"sh":case"el":case"rc":case"sr":return et;case"tr":return j;case"no":return _e;default:return null}}function j(st,ot,at){(at||ot.transform.op._mdf)&&ot.transform.container.setAttribute("opacity",ot.transform.op.v),(at||ot.transform.mProps._mdf)&&ot.transform.container.setAttribute("transform",ot.transform.mProps.v.to2dCSS())}function _e(){}function et(st,ot,at){var lt,ct,ht,dt,ut,pt,ft=ot.styles.length,mt=ot.lvl,gt,bt,St,Nt;for(pt=0;pt<ft;pt+=1){if(dt=ot.sh._mdf||at,ot.styles[pt].lvl<mt){for(bt=s.reset(),St=mt-ot.styles[pt].lvl,Nt=ot.transformers.length-1;!dt&&St>0;)dt=ot.transformers[Nt].mProps._mdf||dt,St-=1,Nt-=1;if(dt)for(St=mt-ot.styles[pt].lvl,Nt=ot.transformers.length-1;St>0;)bt.multiply(ot.transformers[Nt].mProps.v),St-=1,Nt-=1}else bt=o;if(gt=ot.sh.paths,ct=gt._length,dt){for(ht="",lt=0;lt<ct;lt+=1)ut=gt.shapes[lt],ut&&ut._length&&(ht+=buildShapeString(ut,ut._length,ut.c,bt));ot.caches[pt]=ht}else ht=ot.caches[pt];ot.styles[pt].d+=st.hd===!0?"":ht,ot.styles[pt]._mdf=dt||ot.styles[pt]._mdf}}function tt(st,ot,at){var lt=ot.style;(ot.c._mdf||at)&&lt.pElem.setAttribute("fill","rgb("+bmFloor(ot.c.v[0])+","+bmFloor(ot.c.v[1])+","+bmFloor(ot.c.v[2])+")"),(ot.o._mdf||at)&&lt.pElem.setAttribute("fill-opacity",ot.o.v)}function nt(st,ot,at){it(st,ot,at),rt(st,ot,at)}function it(st,ot,at){var lt=ot.gf,ct=ot.g._hasOpacity,ht=ot.s.v,dt=ot.e.v;if(ot.o._mdf||at){var ut=st.ty==="gf"?"fill-opacity":"stroke-opacity";ot.style.pElem.setAttribute(ut,ot.o.v)}if(ot.s._mdf||at){var pt=st.t===1?"x1":"cx",ft=pt==="x1"?"y1":"cy";lt.setAttribute(pt,ht[0]),lt.setAttribute(ft,ht[1]),ct&&!ot.g._collapsable&&(ot.of.setAttribute(pt,ht[0]),ot.of.setAttribute(ft,ht[1]))}var mt,gt,bt,St;if(ot.g._cmdf||at){mt=ot.cst;var Nt=ot.g.c;for(bt=mt.length,gt=0;gt<bt;gt+=1)St=mt[gt],St.setAttribute("offset",Nt[gt*4]+"%"),St.setAttribute("stop-color","rgb("+Nt[gt*4+1]+","+Nt[gt*4+2]+","+Nt[gt*4+3]+")")}if(ct&&(ot.g._omdf||at)){var Rt=ot.g.o;for(ot.g._collapsable?mt=ot.cst:mt=ot.ost,bt=mt.length,gt=0;gt<bt;gt+=1)St=mt[gt],ot.g._collapsable||St.setAttribute("offset",Rt[gt*2]+"%"),St.setAttribute("stop-opacity",Rt[gt*2+1])}if(st.t===1)(ot.e._mdf||at)&&(lt.setAttribute("x2",dt[0]),lt.setAttribute("y2",dt[1]),ct&&!ot.g._collapsable&&(ot.of.setAttribute("x2",dt[0]),ot.of.setAttribute("y2",dt[1])));else{var Ft;if((ot.s._mdf||ot.e._mdf||at)&&(Ft=Math.sqrt(Math.pow(ht[0]-dt[0],2)+Math.pow(ht[1]-dt[1],2)),lt.setAttribute("r",Ft),ct&&!ot.g._collapsable&&ot.of.setAttribute("r",Ft)),ot.e._mdf||ot.h._mdf||ot.a._mdf||at){Ft||(Ft=Math.sqrt(Math.pow(ht[0]-dt[0],2)+Math.pow(ht[1]-dt[1],2)));var Ot=Math.atan2(dt[1]-ht[1],dt[0]-ht[0]),Ct=ot.h.v;Ct>=1?Ct=.99:Ct<=-1&&(Ct=-.99);var yt=Ft*Ct,Pt=Math.cos(Ot+ot.a.v)*yt+ht[0],wt=Math.sin(Ot+ot.a.v)*yt+ht[1];lt.setAttribute("fx",Pt),lt.setAttribute("fy",wt),ct&&!ot.g._collapsable&&(ot.of.setAttribute("fx",Pt),ot.of.setAttribute("fy",wt))}}}function rt(st,ot,at){var lt=ot.style,ct=ot.d;ct&&(ct._mdf||at)&&ct.dashStr&&(lt.pElem.setAttribute("stroke-dasharray",ct.dashStr),lt.pElem.setAttribute("stroke-dashoffset",ct.dashoffset[0])),ot.c&&(ot.c._mdf||at)&&lt.pElem.setAttribute("stroke","rgb("+bmFloor(ot.c.v[0])+","+bmFloor(ot.c.v[1])+","+bmFloor(ot.c.v[2])+")"),(ot.o._mdf||at)&&lt.pElem.setAttribute("stroke-opacity",ot.o.v),(ot.w._mdf||at)&&(lt.pElem.setAttribute("stroke-width",ot.w.v),lt.msElem&&lt.msElem.setAttribute("stroke-width",ot.w.v))}return a}();function SVGShapeElement(o,s,a){this.shapes=[],this.shapesData=o.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(o,s,a),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var o,s=this.shapes.length,a,$,j=this.stylesList.length,_e,et=[],tt=!1;for($=0;$<j;$+=1){for(_e=this.stylesList[$],tt=!1,et.length=0,o=0;o<s;o+=1)a=this.shapes[o],a.styles.indexOf(_e)!==-1&&(et.push(a),tt=a._isAnimated||tt);et.length>1&&tt&&this.setShapesAsAnimated(et)}},SVGShapeElement.prototype.setShapesAsAnimated=function(o){var s,a=o.length;for(s=0;s<a;s+=1)o[s].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(o,s){var a,$=new SVGStyleData(o,s),j=$.pElem;if(o.ty==="st")a=new SVGStrokeStyleData(this,o,$);else if(o.ty==="fl")a=new SVGFillStyleData(this,o,$);else if(o.ty==="gf"||o.ty==="gs"){var _e=o.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;a=new _e(this,o,$),this.globalData.defs.appendChild(a.gf),a.maskId&&(this.globalData.defs.appendChild(a.ms),this.globalData.defs.appendChild(a.of),j.setAttribute("mask","url("+getLocationHref()+"#"+a.maskId+")"))}else o.ty==="no"&&(a=new SVGNoStyleData(this,o,$));return(o.ty==="st"||o.ty==="gs")&&(j.setAttribute("stroke-linecap",lineCapEnum[o.lc||2]),j.setAttribute("stroke-linejoin",lineJoinEnum[o.lj||2]),j.setAttribute("fill-opacity","0"),o.lj===1&&j.setAttribute("stroke-miterlimit",o.ml)),o.r===2&&j.setAttribute("fill-rule","evenodd"),o.ln&&j.setAttribute("id",o.ln),o.cl&&j.setAttribute("class",o.cl),o.bm&&(j.style["mix-blend-mode"]=getBlendMode(o.bm)),this.stylesList.push($),this.addToAnimatedContents(o,a),a},SVGShapeElement.prototype.createGroupElement=function(o){var s=new ShapeGroupData;return o.ln&&s.gr.setAttribute("id",o.ln),o.cl&&s.gr.setAttribute("class",o.cl),o.bm&&(s.gr.style["mix-blend-mode"]=getBlendMode(o.bm)),s},SVGShapeElement.prototype.createTransformElement=function(o,s){var a=TransformPropertyFactory.getTransformProperty(this,o,this),$=new SVGTransformData(a,a.o,s);return this.addToAnimatedContents(o,$),$},SVGShapeElement.prototype.createShapeElement=function(o,s,a){var $=4;o.ty==="rc"?$=5:o.ty==="el"?$=6:o.ty==="sr"&&($=7);var j=ShapePropertyFactory.getShapeProp(this,o,$,this),_e=new SVGShapeData(s,a,j);return this.shapes.push(_e),this.addShapeToModifiers(_e),this.addToAnimatedContents(o,_e),_e},SVGShapeElement.prototype.addToAnimatedContents=function(o,s){for(var a=0,$=this.animatedContents.length;a<$;){if(this.animatedContents[a].element===s)return;a+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(o),element:s,data:o})},SVGShapeElement.prototype.setElementStyles=function(o){var s=o.styles,a,$=this.stylesList.length;for(a=0;a<$;a+=1)this.stylesList[a].closed||s.push(this.stylesList[a])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var o,s=this.itemsData.length;for(o=0;o<s;o+=1)this.prevViewData[o]=this.itemsData[o];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),s=this.dynamicProperties.length,o=0;o<s;o+=1)this.dynamicProperties[o].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(o,s,a,$,j,_e,et){var tt=[].concat(_e),nt,it=o.length-1,rt,st,ot=[],at=[],lt,ct,ht;for(nt=it;nt>=0;nt-=1){if(ht=this.searchProcessedElement(o[nt]),ht?s[nt]=a[ht-1]:o[nt]._render=et,o[nt].ty==="fl"||o[nt].ty==="st"||o[nt].ty==="gf"||o[nt].ty==="gs"||o[nt].ty==="no")ht?s[nt].style.closed=!1:s[nt]=this.createStyleElement(o[nt],j),o[nt]._render&&s[nt].style.pElem.parentNode!==$&&$.appendChild(s[nt].style.pElem),ot.push(s[nt].style);else if(o[nt].ty==="gr"){if(!ht)s[nt]=this.createGroupElement(o[nt]);else for(st=s[nt].it.length,rt=0;rt<st;rt+=1)s[nt].prevViewData[rt]=s[nt].it[rt];this.searchShapes(o[nt].it,s[nt].it,s[nt].prevViewData,s[nt].gr,j+1,tt,et),o[nt]._render&&s[nt].gr.parentNode!==$&&$.appendChild(s[nt].gr)}else o[nt].ty==="tr"?(ht||(s[nt]=this.createTransformElement(o[nt],$)),lt=s[nt].transform,tt.push(lt)):o[nt].ty==="sh"||o[nt].ty==="rc"||o[nt].ty==="el"||o[nt].ty==="sr"?(ht||(s[nt]=this.createShapeElement(o[nt],tt,j)),this.setElementStyles(s[nt])):o[nt].ty==="tm"||o[nt].ty==="rd"||o[nt].ty==="ms"||o[nt].ty==="pb"||o[nt].ty==="zz"||o[nt].ty==="op"?(ht?(ct=s[nt],ct.closed=!1):(ct=ShapeModifiers.getModifier(o[nt].ty),ct.init(this,o[nt]),s[nt]=ct,this.shapeModifiers.push(ct)),at.push(ct)):o[nt].ty==="rp"&&(ht?(ct=s[nt],ct.closed=!0):(ct=ShapeModifiers.getModifier(o[nt].ty),s[nt]=ct,ct.init(this,o,nt,s),this.shapeModifiers.push(ct),et=!1),at.push(ct));this.addProcessedElement(o[nt],nt+1)}for(it=ot.length,nt=0;nt<it;nt+=1)ot[nt].closed=!0;for(it=at.length,nt=0;nt<it;nt+=1)at[nt].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var o,s=this.stylesList.length;for(o=0;o<s;o+=1)this.stylesList[o].reset();for(this.renderShape(),o=0;o<s;o+=1)(this.stylesList[o]._mdf||this._isFirstFrame)&&(this.stylesList[o].msElem&&(this.stylesList[o].msElem.setAttribute("d",this.stylesList[o].d),this.stylesList[o].d="M0 0"+this.stylesList[o].d),this.stylesList[o].pElem.setAttribute("d",this.stylesList[o].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var o,s=this.animatedContents.length,a;for(o=0;o<s;o+=1)a=this.animatedContents[o],(this._isFirstFrame||a.element._isAnimated)&&a.data!==!0&&a.fn(a.data,a.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(o,s,a,$,j,_e){this.o=o,this.sw=s,this.sc=a,this.fc=$,this.m=j,this.p=_e,this._mdf={o:!0,sw:!!s,sc:!!a,fc:!!$,m:!0,p:!0}}LetterProps.prototype.update=function(o,s,a,$,j,_e){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var et=!1;return this.o!==o&&(this.o=o,this._mdf.o=!0,et=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,et=!0),this.sc!==a&&(this.sc=a,this._mdf.sc=!0,et=!0),this.fc!==$&&(this.fc=$,this._mdf.fc=!0,et=!0),this.m!==j&&(this.m=j,this._mdf.m=!0,et=!0),_e.length&&(this.p[0]!==_e[0]||this.p[1]!==_e[1]||this.p[4]!==_e[4]||this.p[5]!==_e[5]||this.p[12]!==_e[12]||this.p[13]!==_e[13])&&(this.p=_e,this._mdf.p=!0,et=!0),et};function TextProperty(o,s){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,s.d&&s.d.sid&&(s.d=o.globalData.slotManager.getProp(s.d)),this.data=s,this.elem=o,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(o,s){for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(o[a]=s[a]);return o},TextProperty.prototype.setCurrentData=function(o){o.__complete||this.completeTextData(o),this.currentData=o,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(o){this.effectsSequence.push(o),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(o){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!o)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var s=this.currentData,a=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var $,j=this.effectsSequence.length,_e=o||this.data.d.k[this.keysIndex].s;for($=0;$<j;$+=1)a!==this.keysIndex?_e=this.effectsSequence[$](_e,_e.t):_e=this.effectsSequence[$](this.currentData,_e.t);s!==_e&&this.setCurrentData(_e),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var o=this.data.d.k,s=this.elem.comp.renderedFrame,a=0,$=o.length;a<=$-1&&!(a===$-1||o[a+1].t>s);)a+=1;return this.keysIndex!==a&&(this.keysIndex=a),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(o){for(var s=[],a=0,$=o.length,j,_e,et=!1,tt=!1,nt="";a<$;)et=tt,tt=!1,j=o.charCodeAt(a),nt=o.charAt(a),FontManager.isCombinedCharacter(j)?et=!0:j>=55296&&j<=56319?FontManager.isRegionalFlag(o,a)?nt=o.substr(a,14):(_e=o.charCodeAt(a+1),_e>=56320&&_e<=57343&&(FontManager.isModifier(j,_e)?(nt=o.substr(a,2),et=!0):FontManager.isFlagEmoji(o.substr(a,4))?nt=o.substr(a,4):nt=o.substr(a,2))):j>56319?(_e=o.charCodeAt(a+1),FontManager.isVariationSelector(j)&&(et=!0)):FontManager.isZeroWidthJoiner(j)&&(et=!0,tt=!0),et?(s[s.length-1]+=nt,et=!1):s.push(nt),a+=nt.length;return s},TextProperty.prototype.completeTextData=function(o){o.__complete=!0;var s=this.elem.globalData.fontManager,a=this.data,$=[],j,_e,et,tt=0,nt,it=a.m.g,rt=0,st=0,ot=0,at=[],lt=0,ct=0,ht,dt,ut=s.getFontByName(o.f),pt,ft=0,mt=getFontProperties(ut);o.fWeight=mt.weight,o.fStyle=mt.style,o.finalSize=o.s,o.finalText=this.buildFinalText(o.t),_e=o.finalText.length,o.finalLineHeight=o.lh;var gt=o.tr/1e3*o.finalSize,bt;if(o.sz)for(var St=!0,Nt=o.sz[0],Rt=o.sz[1],Ft,Ot;St;){Ot=this.buildFinalText(o.t),Ft=0,lt=0,_e=Ot.length,gt=o.tr/1e3*o.finalSize;var Ct=-1;for(j=0;j<_e;j+=1)bt=Ot[j].charCodeAt(0),et=!1,Ot[j]===" "?Ct=j:(bt===13||bt===3)&&(lt=0,et=!0,Ft+=o.finalLineHeight||o.finalSize*1.2),s.chars?(pt=s.getCharData(Ot[j],ut.fStyle,ut.fFamily),ft=et?0:pt.w*o.finalSize/100):ft=s.measureText(Ot[j],o.f,o.finalSize),lt+ft>Nt&&Ot[j]!==" "?(Ct===-1?_e+=1:j=Ct,Ft+=o.finalLineHeight||o.finalSize*1.2,Ot.splice(j,Ct===j?1:0,"\r"),Ct=-1,lt=0):(lt+=ft,lt+=gt);Ft+=ut.ascent*o.finalSize/100,this.canResize&&o.finalSize>this.minimumFontSize&&Rt<Ft?(o.finalSize-=1,o.finalLineHeight=o.finalSize*o.lh/o.s):(o.finalText=Ot,_e=o.finalText.length,St=!1)}lt=-gt,ft=0;var yt=0,Pt;for(j=0;j<_e;j+=1)if(et=!1,Pt=o.finalText[j],bt=Pt.charCodeAt(0),bt===13||bt===3?(yt=0,at.push(lt),ct=lt>ct?lt:ct,lt=-2*gt,nt="",et=!0,ot+=1):nt=Pt,s.chars?(pt=s.getCharData(Pt,ut.fStyle,s.getFontByName(o.f).fFamily),ft=et?0:pt.w*o.finalSize/100):ft=s.measureText(nt,o.f,o.finalSize),Pt===" "?yt+=ft+gt:(lt+=ft+gt+yt,yt=0),$.push({l:ft,an:ft,add:rt,n:et,anIndexes:[],val:nt,line:ot,animatorJustifyOffset:0}),it==2){if(rt+=ft,nt===""||nt===" "||j===_e-1){for((nt===""||nt===" ")&&(rt-=ft);st<=j;)$[st].an=rt,$[st].ind=tt,$[st].extra=ft,st+=1;tt+=1,rt=0}}else if(it==3){if(rt+=ft,nt===""||j===_e-1){for(nt===""&&(rt-=ft);st<=j;)$[st].an=rt,$[st].ind=tt,$[st].extra=ft,st+=1;rt=0,tt+=1}}else $[tt].ind=tt,$[tt].extra=0,tt+=1;if(o.l=$,ct=lt>ct?lt:ct,at.push(lt),o.sz)o.boxWidth=o.sz[0],o.justifyOffset=0;else switch(o.boxWidth=ct,o.j){case 1:o.justifyOffset=-o.boxWidth;break;case 2:o.justifyOffset=-o.boxWidth/2;break;default:o.justifyOffset=0}o.lineWidths=at;var wt=a.a,Lt,vt;dt=wt.length;var xt,Ut,Et=[];for(ht=0;ht<dt;ht+=1){for(Lt=wt[ht],Lt.a.sc&&(o.strokeColorAnim=!0),Lt.a.sw&&(o.strokeWidthAnim=!0),(Lt.a.fc||Lt.a.fh||Lt.a.fs||Lt.a.fb)&&(o.fillColorAnim=!0),Ut=0,xt=Lt.s.b,j=0;j<_e;j+=1)vt=$[j],vt.anIndexes[ht]=Ut,(xt==1&&vt.val!==""||xt==2&&vt.val!==""&&vt.val!==" "||xt==3&&(vt.n||vt.val==" "||j==_e-1)||xt==4&&(vt.n||j==_e-1))&&(Lt.s.rn===1&&Et.push(Ut),Ut+=1);a.a[ht].s.totalChars=Ut;var Dt=-1,Bt;if(Lt.s.rn===1)for(j=0;j<_e;j+=1)vt=$[j],Dt!=vt.anIndexes[ht]&&(Dt=vt.anIndexes[ht],Bt=Et.splice(Math.floor(Math.random()*Et.length),1)[0]),vt.anIndexes[ht]=Bt}o.yOffset=o.finalLineHeight||o.finalSize*1.2,o.ls=o.ls||0,o.ascent=ut.ascent*o.finalSize/100},TextProperty.prototype.updateDocumentData=function(o,s){s=s===void 0?this.keysIndex:s;var a=this.copyData({},this.data.d.k[s].s);a=this.copyData(a,o),this.data.d.k[s].s=a,this.recalculate(s),this.setCurrentData(a),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(o){var s=this.data.d.k[o].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},TextProperty.prototype.canResizeFont=function(o){this.canResize=o,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(o){this.minimumFontSize=Math.floor(o)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var o=Math.max,s=Math.min,a=Math.floor;function $(_e,et){this._currentTextLength=-1,this.k=!1,this.data=et,this.elem=_e,this.comp=_e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(_e),this.s=PropertyFactory.getProp(_e,et.s||{k:0},0,0,this),"e"in et?this.e=PropertyFactory.getProp(_e,et.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(_e,et.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(_e,et.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(_e,et.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(_e,et.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(_e,et.a,0,.01,this),this.dynamicProperties.length||this.getValue()}$.prototype={getMult:function(et){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var tt=0,nt=0,it=1,rt=1;this.ne.v>0?tt=this.ne.v/100:nt=-this.ne.v/100,this.xe.v>0?it=1-this.xe.v/100:rt=1+this.xe.v/100;var st=BezierFactory.getBezierEasing(tt,nt,it,rt).get,ot=0,at=this.finalS,lt=this.finalE,ct=this.data.sh;if(ct===2)lt===at?ot=et>=lt?1:0:ot=o(0,s(.5/(lt-at)+(et-at)/(lt-at),1)),ot=st(ot);else if(ct===3)lt===at?ot=et>=lt?0:1:ot=1-o(0,s(.5/(lt-at)+(et-at)/(lt-at),1)),ot=st(ot);else if(ct===4)lt===at?ot=0:(ot=o(0,s(.5/(lt-at)+(et-at)/(lt-at),1)),ot<.5?ot*=2:ot=1-2*(ot-.5)),ot=st(ot);else if(ct===5){if(lt===at)ot=0;else{var ht=lt-at;et=s(o(0,et+.5-at),lt-at);var dt=-ht/2+et,ut=ht/2;ot=Math.sqrt(1-dt*dt/(ut*ut))}ot=st(ot)}else ct===6?(lt===at?ot=0:(et=s(o(0,et+.5-at),lt-at),ot=(1+Math.cos(Math.PI+Math.PI*2*et/(lt-at)))/2),ot=st(ot)):(et>=a(at)&&(et-at<0?ot=o(0,s(s(lt,1)-(at-et),1)):ot=o(0,s(lt-et,1))),ot=st(ot));if(this.sm.v!==100){var pt=this.sm.v*.01;pt===0&&(pt=1e-8);var ft=.5-pt*.5;ot<ft?ot=0:(ot=(ot-ft)/pt,ot>1&&(ot=1))}return ot*this.a.v},getValue:function(et){this.iterateDynamicProperties(),this._mdf=et||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,et&&this.data.r===2&&(this.e.v=this._currentTextLength);var tt=this.data.r===2?1:100/this.data.totalChars,nt=this.o.v/tt,it=this.s.v/tt+nt,rt=this.e.v/tt+nt;if(it>rt){var st=it;it=rt,rt=st}this.finalS=it,this.finalE=rt}},extendPrototype([DynamicPropertyContainer],$);function j(_e,et,tt){return new $(_e,et)}return{getTextSelectorProp:j}}();function TextAnimatorDataProperty(o,s,a){var $={propType:!1},j=PropertyFactory.getProp,_e=s.a;this.a={r:_e.r?j(o,_e.r,0,degToRads,a):$,rx:_e.rx?j(o,_e.rx,0,degToRads,a):$,ry:_e.ry?j(o,_e.ry,0,degToRads,a):$,sk:_e.sk?j(o,_e.sk,0,degToRads,a):$,sa:_e.sa?j(o,_e.sa,0,degToRads,a):$,s:_e.s?j(o,_e.s,1,.01,a):$,a:_e.a?j(o,_e.a,1,0,a):$,o:_e.o?j(o,_e.o,0,.01,a):$,p:_e.p?j(o,_e.p,1,0,a):$,sw:_e.sw?j(o,_e.sw,0,0,a):$,sc:_e.sc?j(o,_e.sc,1,0,a):$,fc:_e.fc?j(o,_e.fc,1,0,a):$,fh:_e.fh?j(o,_e.fh,0,0,a):$,fs:_e.fs?j(o,_e.fs,0,.01,a):$,fb:_e.fb?j(o,_e.fb,0,.01,a):$,t:_e.t?j(o,_e.t,0,0,a):$},this.s=TextSelectorProp.getTextSelectorProp(o,s.s,a),this.s.t=s.s.t}function TextAnimatorProperty(o,s,a){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=o,this._renderType=s,this._elem=a,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(a)}TextAnimatorProperty.prototype.searchProperties=function(){var o,s=this._textData.a.length,a,$=PropertyFactory.getProp;for(o=0;o<s;o+=1)a=this._textData.a[o],this._animatorsData[o]=new TextAnimatorDataProperty(this._elem,a,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:$(this._elem,this._textData.p.a,0,0,this),f:$(this._elem,this._textData.p.f,0,0,this),l:$(this._elem,this._textData.p.l,0,0,this),r:$(this._elem,this._textData.p.r,0,0,this),p:$(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=$(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(o,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var a=this._moreOptions.alignment.v,$=this._animatorsData,j=this._textData,_e=this.mHelper,et=this._renderType,tt=this.renderedLetters.length,nt,it,rt,st,ot=o.l,at,lt,ct,ht,dt,ut,pt,ft,mt,gt,bt,St,Nt,Rt,Ft;if(this._hasMaskedPath){if(Ft=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Ot=Ft.v;this._pathData.r.v&&(Ot=Ot.reverse()),at={tLength:0,segments:[]},st=Ot._length-1;var Ct;for(St=0,rt=0;rt<st;rt+=1)Ct=bez.buildBezierData(Ot.v[rt],Ot.v[rt+1],[Ot.o[rt][0]-Ot.v[rt][0],Ot.o[rt][1]-Ot.v[rt][1]],[Ot.i[rt+1][0]-Ot.v[rt+1][0],Ot.i[rt+1][1]-Ot.v[rt+1][1]]),at.tLength+=Ct.segmentLength,at.segments.push(Ct),St+=Ct.segmentLength;rt=st,Ft.v.c&&(Ct=bez.buildBezierData(Ot.v[rt],Ot.v[0],[Ot.o[rt][0]-Ot.v[rt][0],Ot.o[rt][1]-Ot.v[rt][1]],[Ot.i[0][0]-Ot.v[0][0],Ot.i[0][1]-Ot.v[0][1]]),at.tLength+=Ct.segmentLength,at.segments.push(Ct),St+=Ct.segmentLength),this._pathData.pi=at}if(at=this._pathData.pi,lt=this._pathData.f.v,pt=0,ut=1,ht=0,dt=!0,gt=at.segments,lt<0&&Ft.v.c)for(at.tLength<Math.abs(lt)&&(lt=-Math.abs(lt)%at.tLength),pt=gt.length-1,mt=gt[pt].points,ut=mt.length-1;lt<0;)lt+=mt[ut].partialLength,ut-=1,ut<0&&(pt-=1,mt=gt[pt].points,ut=mt.length-1);mt=gt[pt].points,ft=mt[ut-1],ct=mt[ut],bt=ct.partialLength}st=ot.length,nt=0,it=0;var yt=o.finalSize*1.2*.714,Pt=!0,wt,Lt,vt,xt,Ut;xt=$.length;var Et,Dt=-1,Bt,Wt,Zt,sn=lt,dn=pt,vn=ut,kn=-1,An,$n,On,Cn,rn,Fn,Ln,Rn,Gn="",Vn=this.defaultPropsArray,qn;if(o.j===2||o.j===1){var Zn=0,jn=0,Xn=o.j===2?-.5:-1,dr=0,mn=!0;for(rt=0;rt<st;rt+=1)if(ot[rt].n){for(Zn&&(Zn+=jn);dr<rt;)ot[dr].animatorJustifyOffset=Zn,dr+=1;Zn=0,mn=!0}else{for(vt=0;vt<xt;vt+=1)wt=$[vt].a,wt.t.propType&&(mn&&o.j===2&&(jn+=wt.t.v*Xn),Lt=$[vt].s,Et=Lt.getMult(ot[rt].anIndexes[vt],j.a[vt].s.totalChars),Et.length?Zn+=wt.t.v*Et[0]*Xn:Zn+=wt.t.v*Et*Xn);mn=!1}for(Zn&&(Zn+=jn);dr<rt;)ot[dr].animatorJustifyOffset=Zn,dr+=1}for(rt=0;rt<st;rt+=1){if(_e.reset(),An=1,ot[rt].n)nt=0,it+=o.yOffset,it+=Pt?1:0,lt=sn,Pt=!1,this._hasMaskedPath&&(pt=dn,ut=vn,mt=gt[pt].points,ft=mt[ut-1],ct=mt[ut],bt=ct.partialLength,ht=0),Gn="",Rn="",Fn="",qn="",Vn=this.defaultPropsArray;else{if(this._hasMaskedPath){if(kn!==ot[rt].line){switch(o.j){case 1:lt+=St-o.lineWidths[ot[rt].line];break;case 2:lt+=(St-o.lineWidths[ot[rt].line])/2;break}kn=ot[rt].line}Dt!==ot[rt].ind&&(ot[Dt]&&(lt+=ot[Dt].extra),lt+=ot[rt].an/2,Dt=ot[rt].ind),lt+=a[0]*ot[rt].an*.005;var Mn=0;for(vt=0;vt<xt;vt+=1)wt=$[vt].a,wt.p.propType&&(Lt=$[vt].s,Et=Lt.getMult(ot[rt].anIndexes[vt],j.a[vt].s.totalChars),Et.length?Mn+=wt.p.v[0]*Et[0]:Mn+=wt.p.v[0]*Et),wt.a.propType&&(Lt=$[vt].s,Et=Lt.getMult(ot[rt].anIndexes[vt],j.a[vt].s.totalChars),Et.length?Mn+=wt.a.v[0]*Et[0]:Mn+=wt.a.v[0]*Et);for(dt=!0,this._pathData.a.v&&(lt=ot[0].an*.5+(St-this._pathData.f.v-ot[0].an*.5-ot[ot.length-1].an*.5)*Dt/(st-1),lt+=this._pathData.f.v);dt;)ht+bt>=lt+Mn||!mt?(Nt=(lt+Mn-ht)/ct.partialLength,Wt=ft.point[0]+(ct.point[0]-ft.point[0])*Nt,Zt=ft.point[1]+(ct.point[1]-ft.point[1])*Nt,_e.translate(-a[0]*ot[rt].an*.005,-(a[1]*yt)*.01),dt=!1):mt&&(ht+=ct.partialLength,ut+=1,ut>=mt.length&&(ut=0,pt+=1,gt[pt]?mt=gt[pt].points:Ft.v.c?(ut=0,pt=0,mt=gt[pt].points):(ht-=ct.partialLength,mt=null)),mt&&(ft=ct,ct=mt[ut],bt=ct.partialLength));Bt=ot[rt].an/2-ot[rt].add,_e.translate(-Bt,0,0)}else Bt=ot[rt].an/2-ot[rt].add,_e.translate(-Bt,0,0),_e.translate(-a[0]*ot[rt].an*.005,-a[1]*yt*.01,0);for(vt=0;vt<xt;vt+=1)wt=$[vt].a,wt.t.propType&&(Lt=$[vt].s,Et=Lt.getMult(ot[rt].anIndexes[vt],j.a[vt].s.totalChars),(nt!==0||o.j!==0)&&(this._hasMaskedPath?Et.length?lt+=wt.t.v*Et[0]:lt+=wt.t.v*Et:Et.length?nt+=wt.t.v*Et[0]:nt+=wt.t.v*Et));for(o.strokeWidthAnim&&(On=o.sw||0),o.strokeColorAnim&&(o.sc?$n=[o.sc[0],o.sc[1],o.sc[2]]:$n=[0,0,0]),o.fillColorAnim&&o.fc&&(Cn=[o.fc[0],o.fc[1],o.fc[2]]),vt=0;vt<xt;vt+=1)wt=$[vt].a,wt.a.propType&&(Lt=$[vt].s,Et=Lt.getMult(ot[rt].anIndexes[vt],j.a[vt].s.totalChars),Et.length?_e.translate(-wt.a.v[0]*Et[0],-wt.a.v[1]*Et[1],wt.a.v[2]*Et[2]):_e.translate(-wt.a.v[0]*Et,-wt.a.v[1]*Et,wt.a.v[2]*Et));for(vt=0;vt<xt;vt+=1)wt=$[vt].a,wt.s.propType&&(Lt=$[vt].s,Et=Lt.getMult(ot[rt].anIndexes[vt],j.a[vt].s.totalChars),Et.length?_e.scale(1+(wt.s.v[0]-1)*Et[0],1+(wt.s.v[1]-1)*Et[1],1):_e.scale(1+(wt.s.v[0]-1)*Et,1+(wt.s.v[1]-1)*Et,1));for(vt=0;vt<xt;vt+=1){if(wt=$[vt].a,Lt=$[vt].s,Et=Lt.getMult(ot[rt].anIndexes[vt],j.a[vt].s.totalChars),wt.sk.propType&&(Et.length?_e.skewFromAxis(-wt.sk.v*Et[0],wt.sa.v*Et[1]):_e.skewFromAxis(-wt.sk.v*Et,wt.sa.v*Et)),wt.r.propType&&(Et.length?_e.rotateZ(-wt.r.v*Et[2]):_e.rotateZ(-wt.r.v*Et)),wt.ry.propType&&(Et.length?_e.rotateY(wt.ry.v*Et[1]):_e.rotateY(wt.ry.v*Et)),wt.rx.propType&&(Et.length?_e.rotateX(wt.rx.v*Et[0]):_e.rotateX(wt.rx.v*Et)),wt.o.propType&&(Et.length?An+=(wt.o.v*Et[0]-An)*Et[0]:An+=(wt.o.v*Et-An)*Et),o.strokeWidthAnim&&wt.sw.propType&&(Et.length?On+=wt.sw.v*Et[0]:On+=wt.sw.v*Et),o.strokeColorAnim&&wt.sc.propType)for(rn=0;rn<3;rn+=1)Et.length?$n[rn]+=(wt.sc.v[rn]-$n[rn])*Et[0]:$n[rn]+=(wt.sc.v[rn]-$n[rn])*Et;if(o.fillColorAnim&&o.fc){if(wt.fc.propType)for(rn=0;rn<3;rn+=1)Et.length?Cn[rn]+=(wt.fc.v[rn]-Cn[rn])*Et[0]:Cn[rn]+=(wt.fc.v[rn]-Cn[rn])*Et;wt.fh.propType&&(Et.length?Cn=addHueToRGB(Cn,wt.fh.v*Et[0]):Cn=addHueToRGB(Cn,wt.fh.v*Et)),wt.fs.propType&&(Et.length?Cn=addSaturationToRGB(Cn,wt.fs.v*Et[0]):Cn=addSaturationToRGB(Cn,wt.fs.v*Et)),wt.fb.propType&&(Et.length?Cn=addBrightnessToRGB(Cn,wt.fb.v*Et[0]):Cn=addBrightnessToRGB(Cn,wt.fb.v*Et))}}for(vt=0;vt<xt;vt+=1)wt=$[vt].a,wt.p.propType&&(Lt=$[vt].s,Et=Lt.getMult(ot[rt].anIndexes[vt],j.a[vt].s.totalChars),this._hasMaskedPath?Et.length?_e.translate(0,wt.p.v[1]*Et[0],-wt.p.v[2]*Et[1]):_e.translate(0,wt.p.v[1]*Et,-wt.p.v[2]*Et):Et.length?_e.translate(wt.p.v[0]*Et[0],wt.p.v[1]*Et[1],-wt.p.v[2]*Et[2]):_e.translate(wt.p.v[0]*Et,wt.p.v[1]*Et,-wt.p.v[2]*Et));if(o.strokeWidthAnim&&(Fn=On<0?0:On),o.strokeColorAnim&&(Ln="rgb("+Math.round($n[0]*255)+","+Math.round($n[1]*255)+","+Math.round($n[2]*255)+")"),o.fillColorAnim&&o.fc&&(Rn="rgb("+Math.round(Cn[0]*255)+","+Math.round(Cn[1]*255)+","+Math.round(Cn[2]*255)+")"),this._hasMaskedPath){if(_e.translate(0,-o.ls),_e.translate(0,a[1]*yt*.01+it,0),this._pathData.p.v){Rt=(ct.point[1]-ft.point[1])/(ct.point[0]-ft.point[0]);var Mt=Math.atan(Rt)*180/Math.PI;ct.point[0]<ft.point[0]&&(Mt+=180),_e.rotate(-Mt*Math.PI/180)}_e.translate(Wt,Zt,0),lt-=a[0]*ot[rt].an*.005,ot[rt+1]&&Dt!==ot[rt+1].ind&&(lt+=ot[rt].an/2,lt+=o.tr*.001*o.finalSize)}else{switch(_e.translate(nt,it,0),o.ps&&_e.translate(o.ps[0],o.ps[1]+o.ascent,0),o.j){case 1:_e.translate(ot[rt].animatorJustifyOffset+o.justifyOffset+(o.boxWidth-o.lineWidths[ot[rt].line]),0,0);break;case 2:_e.translate(ot[rt].animatorJustifyOffset+o.justifyOffset+(o.boxWidth-o.lineWidths[ot[rt].line])/2,0,0);break}_e.translate(0,-o.ls),_e.translate(Bt,0,0),_e.translate(a[0]*ot[rt].an*.005,a[1]*yt*.01,0),nt+=ot[rt].l+o.tr*.001*o.finalSize}et==="html"?Gn=_e.toCSS():et==="svg"?Gn=_e.to2dCSS():Vn=[_e.props[0],_e.props[1],_e.props[2],_e.props[3],_e.props[4],_e.props[5],_e.props[6],_e.props[7],_e.props[8],_e.props[9],_e.props[10],_e.props[11],_e.props[12],_e.props[13],_e.props[14],_e.props[15]],qn=An}tt<=rt?(Ut=new LetterProps(qn,Fn,Ln,Rn,Gn,Vn),this.renderedLetters.push(Ut),tt+=1,this.lettersChangedFlag=!0):(Ut=this.renderedLetters[rt],this.lettersChangedFlag=Ut.update(qn,Fn,Ln,Rn,Gn,Vn)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(o,s,a){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(o,s,a),this.textProperty=new TextProperty(this,o.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(o.t,this.renderType,this),this.initTransform(o,s,a),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(o){this._mdf=!1,this.prepareRenderableFrame(o),this.prepareProperties(o,this.isInRange)},ITextElement.prototype.createPathShape=function(o,s){var a,$=s.length,j,_e="";for(a=0;a<$;a+=1)s[a].ty==="sh"&&(j=s[a].ks.k,_e+=buildShapeString(j,j.i.length,!0,o));return _e},ITextElement.prototype.updateDocumentData=function(o,s){this.textProperty.updateDocumentData(o,s)},ITextElement.prototype.canResizeFont=function(o){this.textProperty.canResizeFont(o)},ITextElement.prototype.setMinimumFontSize=function(o){this.textProperty.setMinimumFontSize(o)},ITextElement.prototype.applyTextPropertiesToMatrix=function(o,s,a,$,j){switch(o.ps&&s.translate(o.ps[0],o.ps[1]+o.ascent,0),s.translate(0,-o.ls,0),o.j){case 1:s.translate(o.justifyOffset+(o.boxWidth-o.lineWidths[a]),0,0);break;case 2:s.translate(o.justifyOffset+(o.boxWidth-o.lineWidths[a])/2,0,0);break}s.translate($,j,0)},ITextElement.prototype.buildColor=function(o){return"rgb("+Math.round(o[0]*255)+","+Math.round(o[1]*255)+","+Math.round(o[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(o,s,a){this.textSpans=[],this.renderType="svg",this.initElement(o,s,a)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(o){for(var s=0,a=o.length,$=[],j="";s<a;)o[s]==="\r"||o[s]===""?($.push(j),j=""):j+=o[s],s+=1;return $.push(j),$},SVGTextLottieElement.prototype.buildShapeData=function(o,s){if(o.shapes&&o.shapes.length){var a=o.shapes[0];if(a.it){var $=a.it[a.it.length-1];$.s&&($.s.k[0]=s,$.s.k[1]=s)}}return o},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var o,s,a=this.textProperty.currentData;this.renderedLetters=createSizedArray(a?a.l.length:0),a.fc?this.layerElement.setAttribute("fill",this.buildColor(a.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),a.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(a.sc)),this.layerElement.setAttribute("stroke-width",a.sw)),this.layerElement.setAttribute("font-size",a.finalSize);var $=this.globalData.fontManager.getFontByName(a.f);if($.fClass)this.layerElement.setAttribute("class",$.fClass);else{this.layerElement.setAttribute("font-family",$.fFamily);var j=a.fWeight,_e=a.fStyle;this.layerElement.setAttribute("font-style",_e),this.layerElement.setAttribute("font-weight",j)}this.layerElement.setAttribute("aria-label",a.t);var et=a.l||[],tt=!!this.globalData.fontManager.chars;s=et.length;var nt,it=this.mHelper,rt="",st=this.data.singleShape,ot=0,at=0,lt=!0,ct=a.tr*.001*a.finalSize;if(st&&!tt&&!a.sz){var ht=this.textContainer,dt="start";switch(a.j){case 1:dt="end";break;case 2:dt="middle";break;default:dt="start";break}ht.setAttribute("text-anchor",dt),ht.setAttribute("letter-spacing",ct);var ut=this.buildTextContents(a.finalText);for(s=ut.length,at=a.ps?a.ps[1]+a.ascent:0,o=0;o<s;o+=1)nt=this.textSpans[o].span||createNS("tspan"),nt.textContent=ut[o],nt.setAttribute("x",0),nt.setAttribute("y",at),nt.style.display="inherit",ht.appendChild(nt),this.textSpans[o]||(this.textSpans[o]={span:null,glyph:null}),this.textSpans[o].span=nt,at+=a.finalLineHeight;this.layerElement.appendChild(ht)}else{var pt=this.textSpans.length,ft;for(o=0;o<s;o+=1){if(this.textSpans[o]||(this.textSpans[o]={span:null,childSpan:null,glyph:null}),!tt||!st||o===0){if(nt=pt>o?this.textSpans[o].span:createNS(tt?"g":"text"),pt<=o){if(nt.setAttribute("stroke-linecap","butt"),nt.setAttribute("stroke-linejoin","round"),nt.setAttribute("stroke-miterlimit","4"),this.textSpans[o].span=nt,tt){var mt=createNS("g");nt.appendChild(mt),this.textSpans[o].childSpan=mt}this.textSpans[o].span=nt,this.layerElement.appendChild(nt)}nt.style.display="inherit"}if(it.reset(),st&&(et[o].n&&(ot=-ct,at+=a.yOffset,at+=lt?1:0,lt=!1),this.applyTextPropertiesToMatrix(a,it,et[o].line,ot,at),ot+=et[o].l||0,ot+=ct),tt){ft=this.globalData.fontManager.getCharData(a.finalText[o],$.fStyle,this.globalData.fontManager.getFontByName(a.f).fFamily);var gt;if(ft.t===1)gt=new SVGCompElement(ft.data,this.globalData,this);else{var bt=emptyShapeData;ft.data&&ft.data.shapes&&(bt=this.buildShapeData(ft.data,a.finalSize)),gt=new SVGShapeElement(bt,this.globalData,this)}if(this.textSpans[o].glyph){var St=this.textSpans[o].glyph;this.textSpans[o].childSpan.removeChild(St.layerElement),St.destroy()}this.textSpans[o].glyph=gt,gt._debug=!0,gt.prepareFrame(0),gt.renderFrame(),this.textSpans[o].childSpan.appendChild(gt.layerElement),ft.t===1&&this.textSpans[o].childSpan.setAttribute("transform","scale("+a.finalSize/100+","+a.finalSize/100+")")}else st&&nt.setAttribute("transform","translate("+it.props[12]+","+it.props[13]+")"),nt.textContent=et[o].val,nt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}st&&nt&&nt.setAttribute("d",rt)}for(;o<this.textSpans.length;)this.textSpans[o].span.style.display="none",o+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var o=this.layerElement.getBBox();this.bbox={top:o.y,left:o.x,width:o.width,height:o.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var o,s=this.textSpans.length,a;for(this.renderedFrame=this.comp.renderedFrame,o=0;o<s;o+=1)a=this.textSpans[o].glyph,a&&(a.prepareFrame(this.comp.renderedFrame-this.data.st),a._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var o,s,a=this.textAnimator.renderedLetters,$=this.textProperty.currentData.l;s=$.length;var j,_e,et;for(o=0;o<s;o+=1)$[o].n||(j=a[o],_e=this.textSpans[o].span,et=this.textSpans[o].glyph,et&&et.renderFrame(),j._mdf.m&&_e.setAttribute("transform",j.m),j._mdf.o&&_e.setAttribute("opacity",j.o),j._mdf.sw&&_e.setAttribute("stroke-width",j.sw),j._mdf.sc&&_e.setAttribute("stroke",j.sc),j._mdf.fc&&_e.setAttribute("fill",j.fc))}};function ISolidElement(o,s,a){this.initElement(o,s,a)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var o=createNS("rect");o.setAttribute("width",this.data.sw),o.setAttribute("height",this.data.sh),o.setAttribute("fill",this.data.sc),this.layerElement.appendChild(o)};function NullElement(o,s,a){this.initFrame(),this.initBaseData(o,s,a),this.initFrame(),this.initTransform(o,s,a),this.initHierarchy()}NullElement.prototype.prepareFrame=function(o){this.prepareProperties(o,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(o){return new NullElement(o,this.globalData,this)},SVGRendererBase.prototype.createShape=function(o){return new SVGShapeElement(o,this.globalData,this)},SVGRendererBase.prototype.createText=function(o){return new SVGTextLottieElement(o,this.globalData,this)},SVGRendererBase.prototype.createImage=function(o){return new IImageElement(o,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(o){return new ISolidElement(o,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(o){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+o.w+" "+o.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",o.w),this.svgElement.setAttribute("height",o.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var s=this.globalData.defs;this.setupGlobalData(o,s),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=o;var a=createNS("clipPath"),$=createNS("rect");$.setAttribute("width",o.w),$.setAttribute("height",o.h),$.setAttribute("x",0),$.setAttribute("y",0);var j=createElementID();a.setAttribute("id",j),a.appendChild($),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+j+")"),s.appendChild(a),this.layers=o.layers,this.elements=createSizedArray(o.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var o,s=this.layers?this.layers.length:0;for(o=0;o<s;o+=1)this.elements[o]&&this.elements[o].destroy&&this.elements[o].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(o){var s=0,a=this.layers.length;for(s=0;s<a;s+=1)if(this.layers[s].ind===o)return s;return-1},SVGRendererBase.prototype.buildItem=function(o){var s=this.elements;if(!(s[o]||this.layers[o].ty===99)){s[o]=!0;var a=this.createItem(this.layers[o]);if(s[o]=a,getExpressionsPlugin()&&(this.layers[o].ty===0&&this.globalData.projectInterface.registerComposition(a),a.initExpressions()),this.appendElementInPos(a,o),this.layers[o].tt){var $="tp"in this.layers[o]?this.findIndexByInd(this.layers[o].tp):o-1;if($===-1)return;if(!this.elements[$]||this.elements[$]===!0)this.buildItem($),this.addPendingElement(a);else{var j=s[$],_e=j.getMatte(this.layers[o].tt);a.setMatte(_e)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var o=this.pendingElements.pop();if(o.checkParenting(),o.data.tt)for(var s=0,a=this.elements.length;s<a;){if(this.elements[s]===o){var $="tp"in o.data?this.findIndexByInd(o.data.tp):s-1,j=this.elements[$],_e=j.getMatte(this.layers[s].tt);o.setMatte(_e);break}s+=1}}},SVGRendererBase.prototype.renderFrame=function(o){if(!(this.renderedFrame===o||this.destroyed)){o===null?o=this.renderedFrame:this.renderedFrame=o,this.globalData.frameNum=o,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=o,this.globalData._mdf=!1;var s,a=this.layers.length;for(this.completeLayers||this.checkLayers(o),s=a-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(o-this.layers[s].st);if(this.globalData._mdf)for(s=0;s<a;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(o,s){var a=o.getBaseElement();if(a){for(var $=0,j;$<s;)this.elements[$]&&this.elements[$]!==!0&&this.elements[$].getBaseElement()&&(j=this.elements[$].getBaseElement()),$+=1;j?this.layerElement.insertBefore(a,j):this.layerElement.appendChild(a)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(o,s,a){this.initFrame(),this.initBaseData(o,s,a),this.initTransform(o,s,a),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(o){if(this._mdf=!1,this.prepareRenderableFrame(o),this.prepareProperties(o,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=o/this.data.sr;else{var s=this.tm.v;s===this.data.op&&(s=this.data.op-1),this.renderedFrame=s}var a,$=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),a=$-1;a>=0;a-=1)(this.completeLayers||this.elements[a])&&(this.elements[a].prepareFrame(this.renderedFrame-this.layers[a].st),this.elements[a]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var o,s=this.layers.length;for(o=0;o<s;o+=1)(this.completeLayers||this.elements[o])&&this.elements[o].renderFrame()},ICompElement.prototype.setElements=function(o){this.elements=o},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var o,s=this.layers.length;for(o=0;o<s;o+=1)this.elements[o]&&this.elements[o].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(o,s,a){this.layers=o.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(o,s,a),this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,s.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(o){return new SVGCompElement(o,this.globalData,this)};function SVGRenderer(o,s){this.animationItem=o,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var a="";if(s&&s.title){var $=createNS("title"),j=createElementID();$.setAttribute("id",j),$.textContent=s.title,this.svgElement.appendChild($),a+=j}if(s&&s.description){var _e=createNS("desc"),et=createElementID();_e.setAttribute("id",et),_e.textContent=s.description,this.svgElement.appendChild(_e),a+=" "+et}a&&this.svgElement.setAttribute("aria-labelledby",a);var tt=createNS("defs");this.svgElement.appendChild(tt);var nt=createNS("g");this.svgElement.appendChild(nt),this.layerElement=nt,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:tt,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(o){return new SVGCompElement(o,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(s){var a,$=s.length,j="_";for(a=0;a<$;a+=1)j+=s[a].transform.key+"_";var _e=this.sequences[j];return _e||(_e={transforms:[].concat(s),finalTransform:new Matrix,_mdf:!1},this.sequences[j]=_e,this.sequenceList.push(_e)),_e},processSequence:function(s,a){for(var $=0,j=s.transforms.length,_e=a;$<j&&!a;){if(s.transforms[$].transform.mProps._mdf){_e=!0;break}$+=1}if(_e)for(s.finalTransform.reset(),$=j-1;$>=0;$-=1)s.finalTransform.multiply(s.transforms[$].transform.mProps.v);s._mdf=_e},processSequences:function(s){var a,$=this.sequenceList.length;for(a=0;a<$;a+=1)this.processSequence(this.sequenceList[a],s)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var s="__lottie_element_luma_buffer",a=null,$=null,j=null;function _e(){var nt=createNS("svg"),it=createNS("filter"),rt=createNS("feColorMatrix");return it.setAttribute("id",s),rt.setAttribute("type","matrix"),rt.setAttribute("color-interpolation-filters","sRGB"),rt.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),it.appendChild(rt),nt.appendChild(it),nt.setAttribute("id",s+"_svg"),featureSupport.svgLumaHidden&&(nt.style.display="none"),nt}function et(){a||(j=_e(),document.body.appendChild(j),a=createTag("canvas"),$=a.getContext("2d"),$.filter="url(#"+s+")",$.fillStyle="rgba(0,0,0,0)",$.fillRect(0,0,1,1))}function tt(nt){return a||et(),a.width=nt.width,a.height=nt.height,$.filter="url(#"+s+")",a}return{load:et,get:tt}};function createCanvas(o,s){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(o,s);var a=createTag("canvas");return a.width=o,a.height=s,a}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(o){var s,a=o.data.ef?o.data.ef.length:0;this.filters=[];var $;for(s=0;s<a;s+=1){$=null;var j=o.data.ef[s].ty;if(registeredEffects[j]){var _e=registeredEffects[j].effect;$=new _e(o.effectsManager.effectElements[s],o)}$&&this.filters.push($)}this.filters.length&&o.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(o){var s,a=this.filters.length;for(s=0;s<a;s+=1)this.filters[s].renderFrame(o)},CVEffects.prototype.getEffects=function(o){var s,a=this.filters.length,$=[];for(s=0;s<a;s+=1)this.filters[s].type===o&&$.push(this.filters[s]);return $};function registerEffect(o,s){registeredEffects[o]={effect:s}}function CVMaskElement(o,s){this.data=o,this.element=s,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var a,$=this.masksProperties.length,j=!1;for(a=0;a<$;a+=1)this.masksProperties[a].mode!=="n"&&(j=!0),this.viewData[a]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[a],3);this.hasMasks=j,j&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var o=this.element.finalTransform.mat,s=this.element.canvasContext,a,$=this.masksProperties.length,j,_e,et;for(s.beginPath(),a=0;a<$;a+=1)if(this.masksProperties[a].mode!=="n"){this.masksProperties[a].inv&&(s.moveTo(0,0),s.lineTo(this.element.globalData.compSize.w,0),s.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),s.lineTo(0,this.element.globalData.compSize.h),s.lineTo(0,0)),et=this.viewData[a].v,j=o.applyToPointArray(et.v[0][0],et.v[0][1],0),s.moveTo(j[0],j[1]);var tt,nt=et._length;for(tt=1;tt<nt;tt+=1)_e=o.applyToTriplePoints(et.o[tt-1],et.i[tt],et.v[tt]),s.bezierCurveTo(_e[0],_e[1],_e[2],_e[3],_e[4],_e[5]);_e=o.applyToTriplePoints(et.o[tt-1],et.i[0],et.v[0]),s.bezierCurveTo(_e[0],_e[1],_e[2],_e[3],_e[4],_e[5])}this.element.globalData.renderer.save(!0),s.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var s=this.globalData.canvasContext,a=assetLoader.createCanvas(s.canvas.width,s.canvas.height);this.buffers.push(a);var $=assetLoader.createCanvas(s.canvas.width,s.canvas.height);this.buffers.push($),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var s=this.globalData;if(s.blendMode!==this.data.bm){s.blendMode=this.data.bm;var a=getBlendMode(this.data.bm);s.canvasContext.globalCompositeOperation=a}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(s){s.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var s=this.buffers[0],a=s.getContext("2d");this.clearCanvas(a),a.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var s=this.buffers[1],a=s.getContext("2d");this.clearCanvas(a),a.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var $=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if($.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var j=assetLoader.getLumaCanvas(this.canvasContext.canvas),_e=j.getContext("2d");_e.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(j,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(s,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(s){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!s)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var a=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(a),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(a),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(o,s,a,$){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var j=4;s.ty==="rc"?j=5:s.ty==="el"?j=6:s.ty==="sr"&&(j=7),this.sh=ShapePropertyFactory.getShapeProp(o,s,j,o);var _e,et=a.length,tt;for(_e=0;_e<et;_e+=1)a[_e].closed||(tt={transforms:$.addTransformSequence(a[_e].transforms),trNodes:[]},this.styledShapes.push(tt),a[_e].elements.push(tt))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(o,s,a){this.shapes=[],this.shapesData=o.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(o,s,a)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(o,s){var a={data:o,type:o.ty,preTransforms:this.transformsManager.addTransformSequence(s),transforms:[],elements:[],closed:o.hd===!0},$={};if(o.ty==="fl"||o.ty==="st"?($.c=PropertyFactory.getProp(this,o.c,1,255,this),$.c.k||(a.co="rgb("+bmFloor($.c.v[0])+","+bmFloor($.c.v[1])+","+bmFloor($.c.v[2])+")")):(o.ty==="gf"||o.ty==="gs")&&($.s=PropertyFactory.getProp(this,o.s,1,null,this),$.e=PropertyFactory.getProp(this,o.e,1,null,this),$.h=PropertyFactory.getProp(this,o.h||{k:0},0,.01,this),$.a=PropertyFactory.getProp(this,o.a||{k:0},0,degToRads,this),$.g=new GradientProperty(this,o.g,this)),$.o=PropertyFactory.getProp(this,o.o,0,.01,this),o.ty==="st"||o.ty==="gs"){if(a.lc=lineCapEnum[o.lc||2],a.lj=lineJoinEnum[o.lj||2],o.lj==1&&(a.ml=o.ml),$.w=PropertyFactory.getProp(this,o.w,0,null,this),$.w.k||(a.wi=$.w.v),o.d){var j=new DashProperty(this,o.d,"canvas",this);$.d=j,$.d.k||(a.da=$.d.dashArray,a.do=$.d.dashoffset[0])}}else a.r=o.r===2?"evenodd":"nonzero";return this.stylesList.push(a),$.style=a,$},CVShapeElement.prototype.createGroupElement=function(){var o={it:[],prevViewData:[]};return o},CVShapeElement.prototype.createTransformElement=function(o){var s={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,o.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,o,this)}};return s},CVShapeElement.prototype.createShapeElement=function(o){var s=new CVShapeData(this,o,this.stylesList,this.transformsManager);return this.shapes.push(s),this.addShapeToModifiers(s),s},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var o,s=this.itemsData.length;for(o=0;o<s;o+=1)this.prevViewData[o]=this.itemsData[o];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),s=this.dynamicProperties.length,o=0;o<s;o+=1)this.dynamicProperties[o].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(o){var s,a=this.stylesList.length;for(s=0;s<a;s+=1)this.stylesList[s].closed||this.stylesList[s].transforms.push(o)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var o,s=this.stylesList.length;for(o=0;o<s;o+=1)this.stylesList[o].closed||this.stylesList[o].transforms.pop()},CVShapeElement.prototype.closeStyles=function(o){var s,a=o.length;for(s=0;s<a;s+=1)o[s].closed=!0},CVShapeElement.prototype.searchShapes=function(o,s,a,$,j){var _e,et=o.length-1,tt,nt,it=[],rt=[],st,ot,at,lt=[].concat(j);for(_e=et;_e>=0;_e-=1){if(st=this.searchProcessedElement(o[_e]),st?s[_e]=a[st-1]:o[_e]._shouldRender=$,o[_e].ty==="fl"||o[_e].ty==="st"||o[_e].ty==="gf"||o[_e].ty==="gs")st?s[_e].style.closed=!1:s[_e]=this.createStyleElement(o[_e],lt),it.push(s[_e].style);else if(o[_e].ty==="gr"){if(!st)s[_e]=this.createGroupElement(o[_e]);else for(nt=s[_e].it.length,tt=0;tt<nt;tt+=1)s[_e].prevViewData[tt]=s[_e].it[tt];this.searchShapes(o[_e].it,s[_e].it,s[_e].prevViewData,$,lt)}else o[_e].ty==="tr"?(st||(at=this.createTransformElement(o[_e]),s[_e]=at),lt.push(s[_e]),this.addTransformToStyleList(s[_e])):o[_e].ty==="sh"||o[_e].ty==="rc"||o[_e].ty==="el"||o[_e].ty==="sr"?st||(s[_e]=this.createShapeElement(o[_e])):o[_e].ty==="tm"||o[_e].ty==="rd"||o[_e].ty==="pb"||o[_e].ty==="zz"||o[_e].ty==="op"?(st?(ot=s[_e],ot.closed=!1):(ot=ShapeModifiers.getModifier(o[_e].ty),ot.init(this,o[_e]),s[_e]=ot,this.shapeModifiers.push(ot)),rt.push(ot)):o[_e].ty==="rp"&&(st?(ot=s[_e],ot.closed=!0):(ot=ShapeModifiers.getModifier(o[_e].ty),s[_e]=ot,ot.init(this,o,_e,s),this.shapeModifiers.push(ot),$=!1),rt.push(ot));this.addProcessedElement(o[_e],_e+1)}for(this.removeTransformFromStyleList(),this.closeStyles(it),et=rt.length,_e=0;_e<et;_e+=1)rt[_e].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(o,s){(o._opMdf||s.op._mdf||this._isFirstFrame)&&(s.opacity=o.opacity,s.opacity*=s.op.v,s._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var o,s=this.stylesList.length,a,$,j,_e,et,tt,nt=this.globalData.renderer,it=this.globalData.canvasContext,rt,st;for(o=0;o<s;o+=1)if(st=this.stylesList[o],rt=st.type,!((rt==="st"||rt==="gs")&&st.wi===0||!st.data._shouldRender||st.coOp===0||this.globalData.currentGlobalAlpha===0)){for(nt.save(),et=st.elements,rt==="st"||rt==="gs"?(nt.ctxStrokeStyle(rt==="st"?st.co:st.grd),nt.ctxLineWidth(st.wi),nt.ctxLineCap(st.lc),nt.ctxLineJoin(st.lj),nt.ctxMiterLimit(st.ml||0)):nt.ctxFillStyle(rt==="fl"?st.co:st.grd),nt.ctxOpacity(st.coOp),rt!=="st"&&rt!=="gs"&&it.beginPath(),nt.ctxTransform(st.preTransforms.finalTransform.props),$=et.length,a=0;a<$;a+=1){for((rt==="st"||rt==="gs")&&(it.beginPath(),st.da&&(it.setLineDash(st.da),it.lineDashOffset=st.do)),tt=et[a].trNodes,_e=tt.length,j=0;j<_e;j+=1)tt[j].t==="m"?it.moveTo(tt[j].p[0],tt[j].p[1]):tt[j].t==="c"?it.bezierCurveTo(tt[j].pts[0],tt[j].pts[1],tt[j].pts[2],tt[j].pts[3],tt[j].pts[4],tt[j].pts[5]):it.closePath();(rt==="st"||rt==="gs")&&(nt.ctxStroke(),st.da&&it.setLineDash(this.dashResetter))}rt!=="st"&&rt!=="gs"&&this.globalData.renderer.ctxFill(st.r),nt.restore()}},CVShapeElement.prototype.renderShape=function(o,s,a,$){var j,_e=s.length-1,et;for(et=o,j=_e;j>=0;j-=1)s[j].ty==="tr"?(et=a[j].transform,this.renderShapeTransform(o,et)):s[j].ty==="sh"||s[j].ty==="el"||s[j].ty==="rc"||s[j].ty==="sr"?this.renderPath(s[j],a[j]):s[j].ty==="fl"?this.renderFill(s[j],a[j],et):s[j].ty==="st"?this.renderStroke(s[j],a[j],et):s[j].ty==="gf"||s[j].ty==="gs"?this.renderGradientFill(s[j],a[j],et):s[j].ty==="gr"?this.renderShape(et,s[j].it,a[j].it):s[j].ty;$&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(o,s){if(this._isFirstFrame||s._mdf||o.transforms._mdf){var a=o.trNodes,$=s.paths,j,_e,et,tt=$._length;a.length=0;var nt=o.transforms.finalTransform;for(et=0;et<tt;et+=1){var it=$.shapes[et];if(it&&it.v){for(_e=it._length,j=1;j<_e;j+=1)j===1&&a.push({t:"m",p:nt.applyToPointArray(it.v[0][0],it.v[0][1],0)}),a.push({t:"c",pts:nt.applyToTriplePoints(it.o[j-1],it.i[j],it.v[j])});_e===1&&a.push({t:"m",p:nt.applyToPointArray(it.v[0][0],it.v[0][1],0)}),it.c&&_e&&(a.push({t:"c",pts:nt.applyToTriplePoints(it.o[j-1],it.i[0],it.v[0])}),a.push({t:"z"}))}}o.trNodes=a}},CVShapeElement.prototype.renderPath=function(o,s){if(o.hd!==!0&&o._shouldRender){var a,$=s.styledShapes.length;for(a=0;a<$;a+=1)this.renderStyledShape(s.styledShapes[a],s.sh)}},CVShapeElement.prototype.renderFill=function(o,s,a){var $=s.style;(s.c._mdf||this._isFirstFrame)&&($.co="rgb("+bmFloor(s.c.v[0])+","+bmFloor(s.c.v[1])+","+bmFloor(s.c.v[2])+")"),(s.o._mdf||a._opMdf||this._isFirstFrame)&&($.coOp=s.o.v*a.opacity)},CVShapeElement.prototype.renderGradientFill=function(o,s,a){var $=s.style,j;if(!$.grd||s.g._mdf||s.s._mdf||s.e._mdf||o.t!==1&&(s.h._mdf||s.a._mdf)){var _e=this.globalData.canvasContext,et=s.s.v,tt=s.e.v;if(o.t===1)j=_e.createLinearGradient(et[0],et[1],tt[0],tt[1]);else{var nt=Math.sqrt(Math.pow(et[0]-tt[0],2)+Math.pow(et[1]-tt[1],2)),it=Math.atan2(tt[1]-et[1],tt[0]-et[0]),rt=s.h.v;rt>=1?rt=.99:rt<=-1&&(rt=-.99);var st=nt*rt,ot=Math.cos(it+s.a.v)*st+et[0],at=Math.sin(it+s.a.v)*st+et[1];j=_e.createRadialGradient(ot,at,0,et[0],et[1],nt)}var lt,ct=o.g.p,ht=s.g.c,dt=1;for(lt=0;lt<ct;lt+=1)s.g._hasOpacity&&s.g._collapsable&&(dt=s.g.o[lt*2+1]),j.addColorStop(ht[lt*4]/100,"rgba("+ht[lt*4+1]+","+ht[lt*4+2]+","+ht[lt*4+3]+","+dt+")");$.grd=j}$.coOp=s.o.v*a.opacity},CVShapeElement.prototype.renderStroke=function(o,s,a){var $=s.style,j=s.d;j&&(j._mdf||this._isFirstFrame)&&($.da=j.dashArray,$.do=j.dashoffset[0]),(s.c._mdf||this._isFirstFrame)&&($.co="rgb("+bmFloor(s.c.v[0])+","+bmFloor(s.c.v[1])+","+bmFloor(s.c.v[2])+")"),(s.o._mdf||a._opMdf||this._isFirstFrame)&&($.coOp=s.o.v*a.opacity),(s.w._mdf||this._isFirstFrame)&&($.wi=s.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(o,s,a){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(o,s,a)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var o=this.textProperty.currentData;this.renderedLetters=createSizedArray(o.l?o.l.length:0);var s=!1;o.fc?(s=!0,this.values.fill=this.buildColor(o.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=s;var a=!1;o.sc&&(a=!0,this.values.stroke=this.buildColor(o.sc),this.values.sWidth=o.sw);var $=this.globalData.fontManager.getFontByName(o.f),j,_e,et=o.l,tt=this.mHelper;this.stroke=a,this.values.fValue=o.finalSize+"px "+this.globalData.fontManager.getFontByName(o.f).fFamily,_e=o.finalText.length;var nt,it,rt,st,ot,at,lt,ct,ht,dt,ut=this.data.singleShape,pt=o.tr*.001*o.finalSize,ft=0,mt=0,gt=!0,bt=0;for(j=0;j<_e;j+=1){nt=this.globalData.fontManager.getCharData(o.finalText[j],$.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily),it=nt&&nt.data||{},tt.reset(),ut&&et[j].n&&(ft=-pt,mt+=o.yOffset,mt+=gt?1:0,gt=!1),ot=it.shapes?it.shapes[0].it:[],lt=ot.length,tt.scale(o.finalSize/100,o.finalSize/100),ut&&this.applyTextPropertiesToMatrix(o,tt,et[j].line,ft,mt),ht=createSizedArray(lt-1);var St=0;for(at=0;at<lt;at+=1)if(ot[at].ty==="sh"){for(st=ot[at].ks.k.i.length,ct=ot[at].ks.k,dt=[],rt=1;rt<st;rt+=1)rt===1&&dt.push(tt.applyToX(ct.v[0][0],ct.v[0][1],0),tt.applyToY(ct.v[0][0],ct.v[0][1],0)),dt.push(tt.applyToX(ct.o[rt-1][0],ct.o[rt-1][1],0),tt.applyToY(ct.o[rt-1][0],ct.o[rt-1][1],0),tt.applyToX(ct.i[rt][0],ct.i[rt][1],0),tt.applyToY(ct.i[rt][0],ct.i[rt][1],0),tt.applyToX(ct.v[rt][0],ct.v[rt][1],0),tt.applyToY(ct.v[rt][0],ct.v[rt][1],0));dt.push(tt.applyToX(ct.o[rt-1][0],ct.o[rt-1][1],0),tt.applyToY(ct.o[rt-1][0],ct.o[rt-1][1],0),tt.applyToX(ct.i[0][0],ct.i[0][1],0),tt.applyToY(ct.i[0][0],ct.i[0][1],0),tt.applyToX(ct.v[0][0],ct.v[0][1],0),tt.applyToY(ct.v[0][0],ct.v[0][1],0)),ht[St]=dt,St+=1}ut&&(ft+=et[j].l,ft+=pt),this.textSpans[bt]?this.textSpans[bt].elem=ht:this.textSpans[bt]={elem:ht},bt+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var o=this.canvasContext;o.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var s,a,$,j,_e,et,tt=this.textAnimator.renderedLetters,nt=this.textProperty.currentData.l;a=nt.length;var it,rt=null,st=null,ot=null,at,lt,ct=this.globalData.renderer;for(s=0;s<a;s+=1)if(!nt[s].n){if(it=tt[s],it&&(ct.save(),ct.ctxTransform(it.p),ct.ctxOpacity(it.o)),this.fill){for(it&&it.fc?rt!==it.fc&&(ct.ctxFillStyle(it.fc),rt=it.fc):rt!==this.values.fill&&(rt=this.values.fill,ct.ctxFillStyle(this.values.fill)),at=this.textSpans[s].elem,j=at.length,this.globalData.canvasContext.beginPath(),$=0;$<j;$+=1)for(lt=at[$],et=lt.length,this.globalData.canvasContext.moveTo(lt[0],lt[1]),_e=2;_e<et;_e+=6)this.globalData.canvasContext.bezierCurveTo(lt[_e],lt[_e+1],lt[_e+2],lt[_e+3],lt[_e+4],lt[_e+5]);this.globalData.canvasContext.closePath(),ct.ctxFill()}if(this.stroke){for(it&&it.sw?ot!==it.sw&&(ot=it.sw,ct.ctxLineWidth(it.sw)):ot!==this.values.sWidth&&(ot=this.values.sWidth,ct.ctxLineWidth(this.values.sWidth)),it&&it.sc?st!==it.sc&&(st=it.sc,ct.ctxStrokeStyle(it.sc)):st!==this.values.stroke&&(st=this.values.stroke,ct.ctxStrokeStyle(this.values.stroke)),at=this.textSpans[s].elem,j=at.length,this.globalData.canvasContext.beginPath(),$=0;$<j;$+=1)for(lt=at[$],et=lt.length,this.globalData.canvasContext.moveTo(lt[0],lt[1]),_e=2;_e<et;_e+=6)this.globalData.canvasContext.bezierCurveTo(lt[_e],lt[_e+1],lt[_e+2],lt[_e+3],lt[_e+4],lt[_e+5]);this.globalData.canvasContext.closePath(),ct.ctxStroke()}it&&this.globalData.renderer.restore()}};function CVImageElement(o,s,a){this.assetData=s.getAssetData(o.refId),this.img=s.imageLoader.getAsset(this.assetData),this.initElement(o,s,a)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var o=createTag("canvas");o.width=this.assetData.w,o.height=this.assetData.h;var s=o.getContext("2d"),a=this.img.width,$=this.img.height,j=a/$,_e=this.assetData.w/this.assetData.h,et,tt,nt=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;j>_e&&nt==="xMidYMid slice"||j<_e&&nt!=="xMidYMid slice"?(tt=$,et=tt*_e):(et=a,tt=et/_e),s.drawImage(this.img,(a-et)/2,($-tt)/2,et,tt,0,0,this.assetData.w,this.assetData.h),this.img=o}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(o,s,a){this.initElement(o,s,a)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(o){return new CVShapeElement(o,this.globalData,this)},CanvasRendererBase.prototype.createText=function(o){return new CVTextElement(o,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(o){return new CVImageElement(o,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(o){return new CVSolidElement(o,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(o){o[0]===1&&o[1]===0&&o[4]===0&&o[5]===1&&o[12]===0&&o[13]===0||this.canvasContext.transform(o[0],o[1],o[4],o[5],o[12],o[13])},CanvasRendererBase.prototype.ctxOpacity=function(o){this.canvasContext.globalAlpha*=o<0?0:o},CanvasRendererBase.prototype.ctxFillStyle=function(o){this.canvasContext.fillStyle=o},CanvasRendererBase.prototype.ctxStrokeStyle=function(o){this.canvasContext.strokeStyle=o},CanvasRendererBase.prototype.ctxLineWidth=function(o){this.canvasContext.lineWidth=o},CanvasRendererBase.prototype.ctxLineCap=function(o){this.canvasContext.lineCap=o},CanvasRendererBase.prototype.ctxLineJoin=function(o){this.canvasContext.lineJoin=o},CanvasRendererBase.prototype.ctxMiterLimit=function(o){this.canvasContext.miterLimit=o},CanvasRendererBase.prototype.ctxFill=function(o){this.canvasContext.fill(o)},CanvasRendererBase.prototype.ctxFillRect=function(o,s,a,$){this.canvasContext.fillRect(o,s,a,$)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(o){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}o&&(this.globalData.blendMode="source-over"),this.contextData.restore(o)},CanvasRendererBase.prototype.configAnimation=function(o){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var s=this.animationItem.container.style;s.width="100%",s.height="100%";var a="0px 0px 0px";s.transformOrigin=a,s.mozTransformOrigin=a,s.webkitTransformOrigin=a,s["-webkit-transform"]=a,s.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=o,this.layers=o.layers,this.transformCanvas={w:o.w,h:o.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(o,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(o.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(o,s){this.reset();var a,$;o?(a=o,$=s,this.canvasContext.canvas.width=a,this.canvasContext.canvas.height=$):(this.animationItem.wrapper&&this.animationItem.container?(a=this.animationItem.wrapper.offsetWidth,$=this.animationItem.wrapper.offsetHeight):(a=this.canvasContext.canvas.width,$=this.canvasContext.canvas.height),this.canvasContext.canvas.width=a*this.renderConfig.dpr,this.canvasContext.canvas.height=$*this.renderConfig.dpr);var j,_e;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var et=this.renderConfig.preserveAspectRatio.split(" "),tt=et[1]||"meet",nt=et[0]||"xMidYMid",it=nt.substr(0,4),rt=nt.substr(4);j=a/$,_e=this.transformCanvas.w/this.transformCanvas.h,_e>j&&tt==="meet"||_e<j&&tt==="slice"?(this.transformCanvas.sx=a/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=$/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=$/(this.transformCanvas.h/this.renderConfig.dpr)),it==="xMid"&&(_e<j&&tt==="meet"||_e>j&&tt==="slice")?this.transformCanvas.tx=(a-this.transformCanvas.w*($/this.transformCanvas.h))/2*this.renderConfig.dpr:it==="xMax"&&(_e<j&&tt==="meet"||_e>j&&tt==="slice")?this.transformCanvas.tx=(a-this.transformCanvas.w*($/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,rt==="YMid"&&(_e>j&&tt==="meet"||_e<j&&tt==="slice")?this.transformCanvas.ty=($-this.transformCanvas.h*(a/this.transformCanvas.w))/2*this.renderConfig.dpr:rt==="YMax"&&(_e>j&&tt==="meet"||_e<j&&tt==="slice")?this.transformCanvas.ty=($-this.transformCanvas.h*(a/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=a/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=$/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var o,s=this.layers?this.layers.length:0;for(o=s-1;o>=0;o-=1)this.elements[o]&&this.elements[o].destroy&&this.elements[o].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(o,s){if(!(this.renderedFrame===o&&this.renderConfig.clearCanvas===!0&&!s||this.destroyed||o===-1)){this.renderedFrame=o,this.globalData.frameNum=o-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||s,this.globalData.projectInterface.currentFrame=o;var a,$=this.layers.length;for(this.completeLayers||this.checkLayers(o),a=$-1;a>=0;a-=1)(this.completeLayers||this.elements[a])&&this.elements[a].prepareFrame(o-this.layers[a].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),a=$-1;a>=0;a-=1)(this.completeLayers||this.elements[a])&&this.elements[a].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(o){var s=this.elements;if(!(s[o]||this.layers[o].ty===99)){var a=this.createItem(this.layers[o],this,this.globalData);s[o]=a,a.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var o=this.pendingElements.pop();o.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var o,s=15;for(o=0;o<s;o+=1){var a=new CanvasContext;this.stack[o]=a}this._length=s,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var o=this._length*2,s=0;for(s=this._length;s<o;s+=1)this.stack[s]=new CanvasContext;this._length=o},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(o){this.cArrPos-=1;var s=this.stack[this.cArrPos],a=s.transform,$,j=this.cTr.props;for($=0;$<16;$+=1)j[$]=a[$];if(o){this.nativeContext.restore();var _e=this.stack[this.cArrPos+1];this.appliedFillStyle=_e.fillStyle,this.appliedStrokeStyle=_e.strokeStyle,this.appliedLineWidth=_e.lineWidth,this.appliedLineCap=_e.lineCap,this.appliedLineJoin=_e.lineJoin,this.appliedMiterLimit=_e.miterLimit}this.nativeContext.setTransform(a[0],a[1],a[4],a[5],a[12],a[13]),(o||s.opacity!==-1&&this.currentOpacity!==s.opacity)&&(this.nativeContext.globalAlpha=s.opacity,this.currentOpacity=s.opacity),this.currentFillStyle=s.fillStyle,this.currentStrokeStyle=s.strokeStyle,this.currentLineWidth=s.lineWidth,this.currentLineCap=s.lineCap,this.currentLineJoin=s.lineJoin,this.currentMiterLimit=s.miterLimit},CVContextData.prototype.save=function(o){o&&this.nativeContext.save();var s=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var a=this.stack[this.cArrPos],$;for($=0;$<16;$+=1)a.transform[$]=s[$];this.cArrPos+=1;var j=this.stack[this.cArrPos];j.opacity=a.opacity,j.fillStyle=a.fillStyle,j.strokeStyle=a.strokeStyle,j.lineWidth=a.lineWidth,j.lineCap=a.lineCap,j.lineJoin=a.lineJoin,j.miterLimit=a.miterLimit},CVContextData.prototype.setOpacity=function(o){this.stack[this.cArrPos].opacity=o},CVContextData.prototype.setContext=function(o){this.nativeContext=o},CVContextData.prototype.fillStyle=function(o){this.stack[this.cArrPos].fillStyle!==o&&(this.currentFillStyle=o,this.stack[this.cArrPos].fillStyle=o)},CVContextData.prototype.strokeStyle=function(o){this.stack[this.cArrPos].strokeStyle!==o&&(this.currentStrokeStyle=o,this.stack[this.cArrPos].strokeStyle=o)},CVContextData.prototype.lineWidth=function(o){this.stack[this.cArrPos].lineWidth!==o&&(this.currentLineWidth=o,this.stack[this.cArrPos].lineWidth=o)},CVContextData.prototype.lineCap=function(o){this.stack[this.cArrPos].lineCap!==o&&(this.currentLineCap=o,this.stack[this.cArrPos].lineCap=o)},CVContextData.prototype.lineJoin=function(o){this.stack[this.cArrPos].lineJoin!==o&&(this.currentLineJoin=o,this.stack[this.cArrPos].lineJoin=o)},CVContextData.prototype.miterLimit=function(o){this.stack[this.cArrPos].miterLimit!==o&&(this.currentMiterLimit=o,this.stack[this.cArrPos].miterLimit=o)},CVContextData.prototype.transform=function(o){this.transformMat.cloneFromProps(o);var s=this.cTr;this.transformMat.multiply(s),s.cloneFromProps(this.transformMat.props);var a=s.props;this.nativeContext.setTransform(a[0],a[1],a[4],a[5],a[12],a[13])},CVContextData.prototype.opacity=function(o){var s=this.stack[this.cArrPos].opacity;s*=o<0?0:o,this.stack[this.cArrPos].opacity!==s&&(this.currentOpacity!==o&&(this.nativeContext.globalAlpha=o,this.currentOpacity=o),this.stack[this.cArrPos].opacity=s)},CVContextData.prototype.fill=function(o){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(o)},CVContextData.prototype.fillRect=function(o,s,a,$){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(o,s,a,$)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(o,s,a){this.completeLayers=!1,this.layers=o.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(o,s,a),this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,s.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var o=this.canvasContext;o.beginPath(),o.moveTo(0,0),o.lineTo(this.data.w,0),o.lineTo(this.data.w,this.data.h),o.lineTo(0,this.data.h),o.lineTo(0,0),o.clip();var s,a=this.layers.length;for(s=a-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()},CVCompElement.prototype.destroy=function(){var o,s=this.layers.length;for(o=s-1;o>=0;o-=1)this.elements[o]&&this.elements[o].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(o){return new CVCompElement(o,this.globalData,this)};function CanvasRenderer(o,s){this.animationItem=o,this.renderConfig={clearCanvas:s&&s.clearCanvas!==void 0?s.clearCanvas:!0,context:s&&s.context||null,progressiveLoad:s&&s.progressiveLoad||!1,preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",className:s&&s.className||"",id:s&&s.id||"",runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.renderConfig.dpr=s&&s.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=s&&s.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(o){return new CVCompElement(o,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var s=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var a=this.finalTransform.mat.toCSS();s.transform=a,s.webkitTransform=a}this.finalTransform._opMdf&&(s.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(o,s,a){this.initElement(o,s,a)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var o;this.data.hasMask?(o=createNS("rect"),o.setAttribute("width",this.data.sw),o.setAttribute("height",this.data.sh),o.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(o=createTag("div"),o.style.width=this.data.sw+"px",o.style.height=this.data.sh+"px",o.style.backgroundColor=this.data.sc),this.layerElement.appendChild(o)};function HShapeElement(o,s,a){this.shapes=[],this.shapesData=o.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(o,s,a),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var o;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),o=this.svgElement;else{o=createNS("svg");var s=this.comp.data?this.comp.data:this.globalData.compSize;o.setAttribute("width",s.w),o.setAttribute("height",s.h),o.appendChild(this.shapesContainer),this.layerElement.appendChild(o)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=o},HShapeElement.prototype.getTransformedPoint=function(o,s){var a,$=o.length;for(a=0;a<$;a+=1)s=o[a].mProps.v.applyToPointArray(s[0],s[1],0);return s},HShapeElement.prototype.calculateShapeBoundingBox=function(o,s){var a=o.sh.v,$=o.transformers,j,_e=a._length,et,tt,nt,it;if(!(_e<=1)){for(j=0;j<_e-1;j+=1)et=this.getTransformedPoint($,a.v[j]),tt=this.getTransformedPoint($,a.o[j]),nt=this.getTransformedPoint($,a.i[j+1]),it=this.getTransformedPoint($,a.v[j+1]),this.checkBounds(et,tt,nt,it,s);a.c&&(et=this.getTransformedPoint($,a.v[j]),tt=this.getTransformedPoint($,a.o[j]),nt=this.getTransformedPoint($,a.i[0]),it=this.getTransformedPoint($,a.v[0]),this.checkBounds(et,tt,nt,it,s))}},HShapeElement.prototype.checkBounds=function(o,s,a,$,j){this.getBoundsOfCurve(o,s,a,$);var _e=this.shapeBoundingBox;j.x=bmMin(_e.left,j.x),j.xMax=bmMax(_e.right,j.xMax),j.y=bmMin(_e.top,j.y),j.yMax=bmMax(_e.bottom,j.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(o,s,a,$){for(var j=[[o[0],$[0]],[o[1],$[1]]],_e,et,tt,nt,it,rt,st,ot=0;ot<2;++ot)et=6*o[ot]-12*s[ot]+6*a[ot],_e=-3*o[ot]+9*s[ot]-9*a[ot]+3*$[ot],tt=3*s[ot]-3*o[ot],et|=0,_e|=0,tt|=0,_e===0&&et===0||(_e===0?(nt=-tt/et,nt>0&&nt<1&&j[ot].push(this.calculateF(nt,o,s,a,$,ot))):(it=et*et-4*tt*_e,it>=0&&(rt=(-et+bmSqrt(it))/(2*_e),rt>0&&rt<1&&j[ot].push(this.calculateF(rt,o,s,a,$,ot)),st=(-et-bmSqrt(it))/(2*_e),st>0&&st<1&&j[ot].push(this.calculateF(st,o,s,a,$,ot)))));this.shapeBoundingBox.left=bmMin.apply(null,j[0]),this.shapeBoundingBox.top=bmMin.apply(null,j[1]),this.shapeBoundingBox.right=bmMax.apply(null,j[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,j[1])},HShapeElement.prototype.calculateF=function(o,s,a,$,j,_e){return bmPow(1-o,3)*s[_e]+3*bmPow(1-o,2)*o*a[_e]+3*(1-o)*bmPow(o,2)*$[_e]+bmPow(o,3)*j[_e]},HShapeElement.prototype.calculateBoundingBox=function(o,s){var a,$=o.length;for(a=0;a<$;a+=1)o[a]&&o[a].sh?this.calculateShapeBoundingBox(o[a],s):o[a]&&o[a].it?this.calculateBoundingBox(o[a].it,s):o[a]&&o[a].style&&o[a].w&&this.expandStrokeBoundingBox(o[a].w,s)},HShapeElement.prototype.expandStrokeBoundingBox=function(o,s){var a=0;if(o.keyframes){for(var $=0;$<o.keyframes.length;$+=1){var j=o.keyframes[$].s;j>a&&(a=j)}a*=o.mult}else a=o.v*o.mult;s.x-=a,s.xMax+=a,s.y-=a,s.yMax+=a},HShapeElement.prototype.currentBoxContains=function(o){return this.currentBBox.x<=o.x&&this.currentBBox.y<=o.y&&this.currentBBox.width+this.currentBBox.x>=o.x+o.width&&this.currentBBox.height+this.currentBBox.y>=o.y+o.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var o=this.tempBoundingBox,s=999999;if(o.x=s,o.xMax=-s,o.y=s,o.yMax=-s,this.calculateBoundingBox(this.itemsData,o),o.width=o.xMax<o.x?0:o.xMax-o.x,o.height=o.yMax<o.y?0:o.yMax-o.y,this.currentBoxContains(o))return;var a=!1;if(this.currentBBox.w!==o.width&&(this.currentBBox.w=o.width,this.shapeCont.setAttribute("width",o.width),a=!0),this.currentBBox.h!==o.height&&(this.currentBBox.h=o.height,this.shapeCont.setAttribute("height",o.height),a=!0),a||this.currentBBox.x!==o.x||this.currentBBox.y!==o.y){this.currentBBox.w=o.width,this.currentBBox.h=o.height,this.currentBBox.x=o.x,this.currentBBox.y=o.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var $=this.shapeCont.style,j="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";$.transform=j,$.webkitTransform=j}}};function HTextElement(o,s,a){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(o,s,a)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var o=createNS("g");this.maskedElement.appendChild(o),this.innerElem=o}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var o=this.textProperty.currentData;this.renderedLetters=createSizedArray(o.l?o.l.length:0);var s=this.innerElem.style,a=o.fc?this.buildColor(o.fc):"rgba(0,0,0,0)";s.fill=a,s.color=a,o.sc&&(s.stroke=this.buildColor(o.sc),s.strokeWidth=o.sw+"px");var $=this.globalData.fontManager.getFontByName(o.f);if(!this.globalData.fontManager.chars)if(s.fontSize=o.finalSize+"px",s.lineHeight=o.finalSize+"px",$.fClass)this.innerElem.className=$.fClass;else{s.fontFamily=$.fFamily;var j=o.fWeight,_e=o.fStyle;s.fontStyle=_e,s.fontWeight=j}var et,tt,nt=o.l;tt=nt.length;var it,rt,st,ot=this.mHelper,at,lt="",ct=0;for(et=0;et<tt;et+=1){if(this.globalData.fontManager.chars?(this.textPaths[ct]?it=this.textPaths[ct]:(it=createNS("path"),it.setAttribute("stroke-linecap",lineCapEnum[1]),it.setAttribute("stroke-linejoin",lineJoinEnum[2]),it.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[ct]?(rt=this.textSpans[ct],st=rt.children[0]):(rt=createTag("div"),rt.style.lineHeight=0,st=createNS("svg"),st.appendChild(it),styleDiv(rt)))):this.isMasked?it=this.textPaths[ct]?this.textPaths[ct]:createNS("text"):this.textSpans[ct]?(rt=this.textSpans[ct],it=this.textPaths[ct]):(rt=createTag("span"),styleDiv(rt),it=createTag("span"),styleDiv(it),rt.appendChild(it)),this.globalData.fontManager.chars){var ht=this.globalData.fontManager.getCharData(o.finalText[et],$.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily),dt;if(ht?dt=ht.data:dt=null,ot.reset(),dt&&dt.shapes&&dt.shapes.length&&(at=dt.shapes[0].it,ot.scale(o.finalSize/100,o.finalSize/100),lt=this.createPathShape(ot,at),it.setAttribute("d",lt)),this.isMasked)this.innerElem.appendChild(it);else{if(this.innerElem.appendChild(rt),dt&&dt.shapes){document.body.appendChild(st);var ut=st.getBBox();st.setAttribute("width",ut.width+2),st.setAttribute("height",ut.height+2),st.setAttribute("viewBox",ut.x-1+" "+(ut.y-1)+" "+(ut.width+2)+" "+(ut.height+2));var pt=st.style,ft="translate("+(ut.x-1)+"px,"+(ut.y-1)+"px)";pt.transform=ft,pt.webkitTransform=ft,nt[et].yOffset=ut.y-1}else st.setAttribute("width",1),st.setAttribute("height",1);rt.appendChild(st)}}else if(it.textContent=nt[et].val,it.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(it);else{this.innerElem.appendChild(rt);var mt=it.style,gt="translate3d(0,"+-o.finalSize/1.2+"px,0)";mt.transform=gt,mt.webkitTransform=gt}this.isMasked?this.textSpans[ct]=it:this.textSpans[ct]=rt,this.textSpans[ct].style.display="block",this.textPaths[ct]=it,ct+=1}for(;ct<this.textSpans.length;)this.textSpans[ct].style.display="none",ct+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var o;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),o=this.svgElement.style;var s="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";o.transform=s,o.webkitTransform=s}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var a,$,j=0,_e=this.textAnimator.renderedLetters,et=this.textProperty.currentData.l;$=et.length;var tt,nt,it;for(a=0;a<$;a+=1)et[a].n?j+=1:(nt=this.textSpans[a],it=this.textPaths[a],tt=_e[j],j+=1,tt._mdf.m&&(this.isMasked?nt.setAttribute("transform",tt.m):(nt.style.webkitTransform=tt.m,nt.style.transform=tt.m)),nt.style.opacity=tt.o,tt.sw&&tt._mdf.sw&&it.setAttribute("stroke-width",tt.sw),tt.sc&&tt._mdf.sc&&it.setAttribute("stroke",tt.sc),tt.fc&&tt._mdf.fc&&(it.setAttribute("fill",tt.fc),it.style.color=tt.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var rt=this.innerElem.getBBox();this.currentBBox.w!==rt.width&&(this.currentBBox.w=rt.width,this.svgElement.setAttribute("width",rt.width)),this.currentBBox.h!==rt.height&&(this.currentBBox.h=rt.height,this.svgElement.setAttribute("height",rt.height));var st=1;if(this.currentBBox.w!==rt.width+st*2||this.currentBBox.h!==rt.height+st*2||this.currentBBox.x!==rt.x-st||this.currentBBox.y!==rt.y-st){this.currentBBox.w=rt.width+st*2,this.currentBBox.h=rt.height+st*2,this.currentBBox.x=rt.x-st,this.currentBBox.y=rt.y-st,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),o=this.svgElement.style;var ot="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";o.transform=ot,o.webkitTransform=ot}}}};function HCameraElement(o,s,a){this.initFrame(),this.initBaseData(o,s,a),this.initHierarchy();var $=PropertyFactory.getProp;if(this.pe=$(this,o.pe,0,0,this),o.ks.p.s?(this.px=$(this,o.ks.p.x,1,0,this),this.py=$(this,o.ks.p.y,1,0,this),this.pz=$(this,o.ks.p.z,1,0,this)):this.p=$(this,o.ks.p,1,0,this),o.ks.a&&(this.a=$(this,o.ks.a,1,0,this)),o.ks.or.k.length&&o.ks.or.k[0].to){var j,_e=o.ks.or.k.length;for(j=0;j<_e;j+=1)o.ks.or.k[j].to=null,o.ks.or.k[j].ti=null}this.or=$(this,o.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=$(this,o.ks.rx,0,degToRads,this),this.ry=$(this,o.ks.ry,0,degToRads,this),this.rz=$(this,o.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var o,s=this.comp.threeDElements.length,a,$,j;for(o=0;o<s;o+=1)if(a=this.comp.threeDElements[o],a.type==="3d"){$=a.perspectiveElem.style,j=a.container.style;var _e=this.pe.v+"px",et="0px 0px 0px",tt="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";$.perspective=_e,$.webkitPerspective=_e,j.transformOrigin=et,j.mozTransformOrigin=et,j.webkitTransformOrigin=et,$.transform=tt,$.webkitTransform=tt}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var o=this._isFirstFrame,s,a;if(this.hierarchy)for(a=this.hierarchy.length,s=0;s<a;s+=1)o=this.hierarchy[s].finalTransform.mProp._mdf||o;if(o||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(a=this.hierarchy.length-1,s=a;s>=0;s-=1){var $=this.hierarchy[s].finalTransform.mProp;this.mat.translate(-$.p.v[0],-$.p.v[1],$.p.v[2]),this.mat.rotateX(-$.or.v[0]).rotateY(-$.or.v[1]).rotateZ($.or.v[2]),this.mat.rotateX(-$.rx.v).rotateY(-$.ry.v).rotateZ($.rz.v),this.mat.scale(1/$.s.v[0],1/$.s.v[1],1/$.s.v[2]),this.mat.translate($.a.v[0],$.a.v[1],$.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var j;this.p?j=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:j=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var _e=Math.sqrt(Math.pow(j[0],2)+Math.pow(j[1],2)+Math.pow(j[2],2)),et=[j[0]/_e,j[1]/_e,j[2]/_e],tt=Math.sqrt(et[2]*et[2]+et[0]*et[0]),nt=Math.atan2(et[1],tt),it=Math.atan2(et[0],-et[2]);this.mat.rotateY(it).rotateX(-nt)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var rt=!this._prevMat.equals(this.mat);if((rt||this.pe._mdf)&&this.comp.threeDElements){a=this.comp.threeDElements.length;var st,ot,at;for(s=0;s<a;s+=1)if(st=this.comp.threeDElements[s],st.type==="3d"){if(rt){var lt=this.mat.toCSS();at=st.container.style,at.transform=lt,at.webkitTransform=lt}this.pe._mdf&&(ot=st.perspectiveElem.style,ot.perspective=this.pe.v+"px",ot.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(o){this.prepareProperties(o,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(o,s,a){this.assetData=s.getAssetData(o.refId),this.initElement(o,s,a)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var o=this.globalData.getAssetsPath(this.assetData),s=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",o),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(s),s.crossOrigin="anonymous",s.src=o,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(o,s){this.animationItem=o,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:s&&s.className||"",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(s&&s.hideOnTransparent===!1),filterSize:{width:s&&s.filterSize&&s.filterSize.width||"400%",height:s&&s.filterSize&&s.filterSize.height||"400%",x:s&&s.filterSize&&s.filterSize.x||"-100%",y:s&&s.filterSize&&s.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var o=this.pendingElements.pop();o.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(o,s){var a=o.getBaseElement();if(a){var $=this.layers[s];if(!$.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(a,s);else{for(var j=0,_e,et,tt;j<s;)this.elements[j]&&this.elements[j]!==!0&&this.elements[j].getBaseElement&&(et=this.elements[j],tt=this.layers[j].ddd?this.getThreeDContainerByPos(j):et.getBaseElement(),_e=tt||_e),j+=1;_e?(!$.ddd||!this.supports3d)&&this.layerElement.insertBefore(a,_e):(!$.ddd||!this.supports3d)&&this.layerElement.appendChild(a)}else this.addTo3dContainer(a,s)}},HybridRendererBase.prototype.createShape=function(o){return this.supports3d?new HShapeElement(o,this.globalData,this):new SVGShapeElement(o,this.globalData,this)},HybridRendererBase.prototype.createText=function(o){return this.supports3d?new HTextElement(o,this.globalData,this):new SVGTextLottieElement(o,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(o){return this.camera=new HCameraElement(o,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(o){return this.supports3d?new HImageElement(o,this.globalData,this):new IImageElement(o,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(o){return this.supports3d?new HSolidElement(o,this.globalData,this):new ISolidElement(o,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(o){for(var s=0,a=this.threeDElements.length;s<a;){if(this.threeDElements[s].startPos<=o&&this.threeDElements[s].endPos>=o)return this.threeDElements[s].perspectiveElem;s+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(o,s){var a=createTag("div"),$,j;styleDiv(a);var _e=createTag("div");if(styleDiv(_e),s==="3d"){$=a.style,$.width=this.globalData.compSize.w+"px",$.height=this.globalData.compSize.h+"px";var et="50% 50%";$.webkitTransformOrigin=et,$.mozTransformOrigin=et,$.transformOrigin=et,j=_e.style;var tt="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";j.transform=tt,j.webkitTransform=tt}a.appendChild(_e);var nt={container:_e,perspectiveElem:a,startPos:o,endPos:o,type:s};return this.threeDElements.push(nt),nt},HybridRendererBase.prototype.build3dContainers=function(){var o,s=this.layers.length,a,$="";for(o=0;o<s;o+=1)this.layers[o].ddd&&this.layers[o].ty!==3?($!=="3d"&&($="3d",a=this.createThreeDContainer(o,"3d")),a.endPos=Math.max(a.endPos,o)):($!=="2d"&&($="2d",a=this.createThreeDContainer(o,"2d")),a.endPos=Math.max(a.endPos,o));for(s=this.threeDElements.length,o=s-1;o>=0;o-=1)this.resizerElem.appendChild(this.threeDElements[o].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(o,s){for(var a=0,$=this.threeDElements.length;a<$;){if(s<=this.threeDElements[a].endPos){for(var j=this.threeDElements[a].startPos,_e;j<s;)this.elements[j]&&this.elements[j].getBaseElement&&(_e=this.elements[j].getBaseElement()),j+=1;_e?this.threeDElements[a].container.insertBefore(o,_e):this.threeDElements[a].container.appendChild(o);break}a+=1}},HybridRendererBase.prototype.configAnimation=function(o){var s=createTag("div"),a=this.animationItem.wrapper,$=s.style;$.width=o.w+"px",$.height=o.h+"px",this.resizerElem=s,styleDiv(s),$.transformStyle="flat",$.mozTransformStyle="flat",$.webkitTransformStyle="flat",this.renderConfig.className&&s.setAttribute("class",this.renderConfig.className),a.appendChild(s),$.overflow="hidden";var j=createNS("svg");j.setAttribute("width","1"),j.setAttribute("height","1"),styleDiv(j),this.resizerElem.appendChild(j);var _e=createNS("defs");j.appendChild(_e),this.data=o,this.setupGlobalData(o,j),this.globalData.defs=_e,this.layers=o.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var o,s=this.layers?this.layers.length:0;for(o=0;o<s;o+=1)this.elements[o]&&this.elements[o].destroy&&this.elements[o].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var o=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight,a=o/s,$=this.globalData.compSize.w/this.globalData.compSize.h,j,_e,et,tt;$>a?(j=o/this.globalData.compSize.w,_e=o/this.globalData.compSize.w,et=0,tt=(s-this.globalData.compSize.h*(o/this.globalData.compSize.w))/2):(j=s/this.globalData.compSize.h,_e=s/this.globalData.compSize.h,et=(o-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,tt=0);var nt=this.resizerElem.style;nt.webkitTransform="matrix3d("+j+",0,0,0,0,"+_e+",0,0,0,0,1,0,"+et+","+tt+",0,1)",nt.transform=nt.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var o=this.globalData.compSize.w,s=this.globalData.compSize.h,a,$=this.threeDElements.length;for(a=0;a<$;a+=1){var j=this.threeDElements[a].perspectiveElem.style;j.webkitPerspective=Math.sqrt(Math.pow(o,2)+Math.pow(s,2))+"px",j.perspective=j.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(o){var s,a=o.length,$=createTag("div");for(s=0;s<a;s+=1)if(o[s].xt){var j=this.createComp(o[s],$,this.globalData.comp,null);j.initExpressions(),this.globalData.projectInterface.registerComposition(j)}};function HCompElement(o,s,a){this.layers=o.layers,this.supports3d=!o.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(o,s,a),this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,s.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(o,s){for(var a=0,$;a<s;)this.elements[a]&&this.elements[a].getBaseElement&&($=this.elements[a].getBaseElement()),a+=1;$?this.layerElement.insertBefore(o,$):this.layerElement.appendChild(o)},HCompElement.prototype.createComp=function(o){return this.supports3d?new HCompElement(o,this.globalData,this):new SVGCompElement(o,this.globalData,this)};function HybridRenderer(o,s){this.animationItem=o,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:s&&s.className||"",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(s&&s.hideOnTransparent===!1),filterSize:{width:s&&s.filterSize&&s.filterSize.width||"400%",height:s&&s.filterSize&&s.filterSize.height||"400%",x:s&&s.filterSize&&s.filterSize.x||"-100%",y:s&&s.filterSize&&s.filterSize.y||"-100%"},runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(o){return this.supports3d?new HCompElement(o,this.globalData,this):new SVGCompElement(o,this.globalData,this)};var CompExpressionInterface=function(){return function(o){function s(a){for(var $=0,j=o.layers.length;$<j;){if(o.layers[$].nm===a||o.layers[$].ind===a)return o.elements[$].layerInterface;$+=1}return null}return Object.defineProperty(s,"_name",{value:o.data.nm}),s.layer=s,s.pixelAspect=1,s.height=o.data.h||o.globalData.compSize.h,s.width=o.data.w||o.globalData.compSize.w,s.pixelAspect=1,s.frameDuration=1/o.globalData.frameRate,s.displayStartTime=0,s.numLayers=o.layers.length,s}}();function _typeof$2(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(a){return typeof a}:_typeof$2=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof$2(o)}function seedRandom(o,s){var a=this,$=256,j=6,_e=52,et="random",tt=s.pow($,j),nt=s.pow(2,_e),it=nt*2,rt=$-1,st;function ot(pt,ft,mt){var gt=[];ft=ft===!0?{entropy:!0}:ft||{};var bt=ht(ct(ft.entropy?[pt,ut(o)]:pt===null?dt():pt,3),gt),St=new at(gt),Nt=function(){for(var Ft=St.g(j),Ot=tt,Ct=0;Ft<nt;)Ft=(Ft+Ct)*$,Ot*=$,Ct=St.g(1);for(;Ft>=it;)Ft/=2,Ot/=2,Ct>>>=1;return(Ft+Ct)/Ot};return Nt.int32=function(){return St.g(4)|0},Nt.quick=function(){return St.g(4)/4294967296},Nt.double=Nt,ht(ut(St.S),o),(ft.pass||mt||function(Rt,Ft,Ot,Ct){return Ct&&(Ct.S&&lt(Ct,St),Rt.state=function(){return lt(St,{})}),Ot?(s[et]=Rt,Ft):Rt})(Nt,bt,"global"in ft?ft.global:this==s,ft.state)}s["seed"+et]=ot;function at(pt){var ft,mt=pt.length,gt=this,bt=0,St=gt.i=gt.j=0,Nt=gt.S=[];for(mt||(pt=[mt++]);bt<$;)Nt[bt]=bt++;for(bt=0;bt<$;bt++)Nt[bt]=Nt[St=rt&St+pt[bt%mt]+(ft=Nt[bt])],Nt[St]=ft;gt.g=function(Rt){for(var Ft,Ot=0,Ct=gt.i,yt=gt.j,Pt=gt.S;Rt--;)Ft=Pt[Ct=rt&Ct+1],Ot=Ot*$+Pt[rt&(Pt[Ct]=Pt[yt=rt&yt+Ft])+(Pt[yt]=Ft)];return gt.i=Ct,gt.j=yt,Ot}}function lt(pt,ft){return ft.i=pt.i,ft.j=pt.j,ft.S=pt.S.slice(),ft}function ct(pt,ft){var mt=[],gt=_typeof$2(pt),bt;if(ft&&gt=="object")for(bt in pt)try{mt.push(ct(pt[bt],ft-1))}catch{}return mt.length?mt:gt=="string"?pt:pt+"\0"}function ht(pt,ft){for(var mt=pt+"",gt,bt=0;bt<mt.length;)ft[rt&bt]=rt&(gt^=ft[rt&bt]*19)+mt.charCodeAt(bt++);return ut(ft)}function dt(){try{var pt=new Uint8Array($);return(a.crypto||a.msCrypto).getRandomValues(pt),ut(pt)}catch{var ft=a.navigator,mt=ft&&ft.plugins;return[+new Date,a,mt,a.screen,ut(o)]}}function ut(pt){return String.fromCharCode.apply(0,pt)}ht(s.random(),o)}function initialize$2(o){seedRandom([],o)}var propTypes={SHAPE:"shape"};function _typeof$1(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(a){return typeof a}:_typeof$1=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof$1(o)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(o){return o.constructor===Array||o.constructor===Float32Array}function isNumerable(o,s){return o==="number"||s instanceof Number||o==="boolean"||o==="string"}function $bm_neg(o){var s=_typeof$1(o);if(s==="number"||o instanceof Number||s==="boolean")return-o;if($bm_isInstanceOfArray(o)){var a,$=o.length,j=[];for(a=0;a<$;a+=1)j[a]=-o[a];return j}return o.propType?o.v:-o}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(o,s){var a=_typeof$1(o),$=_typeof$1(s);if(isNumerable(a,o)&&isNumerable($,s)||a==="string"||$==="string")return o+s;if($bm_isInstanceOfArray(o)&&isNumerable($,s))return o=o.slice(0),o[0]+=s,o;if(isNumerable(a,o)&&$bm_isInstanceOfArray(s))return s=s.slice(0),s[0]=o+s[0],s;if($bm_isInstanceOfArray(o)&&$bm_isInstanceOfArray(s)){for(var j=0,_e=o.length,et=s.length,tt=[];j<_e||j<et;)(typeof o[j]=="number"||o[j]instanceof Number)&&(typeof s[j]=="number"||s[j]instanceof Number)?tt[j]=o[j]+s[j]:tt[j]=s[j]===void 0?o[j]:o[j]||s[j],j+=1;return tt}return 0}var add=sum;function sub(o,s){var a=_typeof$1(o),$=_typeof$1(s);if(isNumerable(a,o)&&isNumerable($,s))return a==="string"&&(o=parseInt(o,10)),$==="string"&&(s=parseInt(s,10)),o-s;if($bm_isInstanceOfArray(o)&&isNumerable($,s))return o=o.slice(0),o[0]-=s,o;if(isNumerable(a,o)&&$bm_isInstanceOfArray(s))return s=s.slice(0),s[0]=o-s[0],s;if($bm_isInstanceOfArray(o)&&$bm_isInstanceOfArray(s)){for(var j=0,_e=o.length,et=s.length,tt=[];j<_e||j<et;)(typeof o[j]=="number"||o[j]instanceof Number)&&(typeof s[j]=="number"||s[j]instanceof Number)?tt[j]=o[j]-s[j]:tt[j]=s[j]===void 0?o[j]:o[j]||s[j],j+=1;return tt}return 0}function mul(o,s){var a=_typeof$1(o),$=_typeof$1(s),j;if(isNumerable(a,o)&&isNumerable($,s))return o*s;var _e,et;if($bm_isInstanceOfArray(o)&&isNumerable($,s)){for(et=o.length,j=createTypedArray("float32",et),_e=0;_e<et;_e+=1)j[_e]=o[_e]*s;return j}if(isNumerable(a,o)&&$bm_isInstanceOfArray(s)){for(et=s.length,j=createTypedArray("float32",et),_e=0;_e<et;_e+=1)j[_e]=o*s[_e];return j}return 0}function div(o,s){var a=_typeof$1(o),$=_typeof$1(s),j;if(isNumerable(a,o)&&isNumerable($,s))return o/s;var _e,et;if($bm_isInstanceOfArray(o)&&isNumerable($,s)){for(et=o.length,j=createTypedArray("float32",et),_e=0;_e<et;_e+=1)j[_e]=o[_e]/s;return j}if(isNumerable(a,o)&&$bm_isInstanceOfArray(s)){for(et=s.length,j=createTypedArray("float32",et),_e=0;_e<et;_e+=1)j[_e]=o/s[_e];return j}return 0}function mod(o,s){return typeof o=="string"&&(o=parseInt(o,10)),typeof s=="string"&&(s=parseInt(s,10)),o%s}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(o,s,a){if(s>a){var $=a;a=s,s=$}return Math.min(Math.max(o,s),a)}function radiansToDegrees(o){return o/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(o){return o*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(o,s){if(typeof o=="number"||o instanceof Number)return s=s||0,Math.abs(o-s);s||(s=helperLengthArray);var a,$=Math.min(o.length,s.length),j=0;for(a=0;a<$;a+=1)j+=Math.pow(s[a]-o[a],2);return Math.sqrt(j)}function normalize(o){return div(o,length(o))}function rgbToHsl(o){var s=o[0],a=o[1],$=o[2],j=Math.max(s,a,$),_e=Math.min(s,a,$),et,tt,nt=(j+_e)/2;if(j===_e)et=0,tt=0;else{var it=j-_e;switch(tt=nt>.5?it/(2-j-_e):it/(j+_e),j){case s:et=(a-$)/it+(a<$?6:0);break;case a:et=($-s)/it+2;break;case $:et=(s-a)/it+4;break}et/=6}return[et,tt,nt,o[3]]}function hue2rgb(o,s,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?o+(s-o)*6*a:a<1/2?s:a<2/3?o+(s-o)*(2/3-a)*6:o}function hslToRgb(o){var s=o[0],a=o[1],$=o[2],j,_e,et;if(a===0)j=$,et=$,_e=$;else{var tt=$<.5?$*(1+a):$+a-$*a,nt=2*$-tt;j=hue2rgb(nt,tt,s+1/3),_e=hue2rgb(nt,tt,s),et=hue2rgb(nt,tt,s-1/3)}return[j,_e,et,o[3]]}function linear(o,s,a,$,j){if(($===void 0||j===void 0)&&($=s,j=a,s=0,a=1),a<s){var _e=a;a=s,s=_e}if(o<=s)return $;if(o>=a)return j;var et=a===s?0:(o-s)/(a-s);if(!$.length)return $+(j-$)*et;var tt,nt=$.length,it=createTypedArray("float32",nt);for(tt=0;tt<nt;tt+=1)it[tt]=$[tt]+(j[tt]-$[tt])*et;return it}function random(o,s){if(s===void 0&&(o===void 0?(o=0,s=1):(s=o,o=void 0)),s.length){var a,$=s.length;o||(o=createTypedArray("float32",$));var j=createTypedArray("float32",$),_e=BMMath.random();for(a=0;a<$;a+=1)j[a]=o[a]+_e*(s[a]-o[a]);return j}o===void 0&&(o=0);var et=BMMath.random();return o+et*(s-o)}function createPath(o,s,a,$){var j,_e=o.length,et=shapePool.newElement();et.setPathData(!!$,_e);var tt=[0,0],nt,it;for(j=0;j<_e;j+=1)nt=s&&s[j]?s[j]:tt,it=a&&a[j]?a[j]:tt,et.setTripleAt(o[j][0],o[j][1],it[0]+o[j][0],it[1]+o[j][1],nt[0]+o[j][0],nt[1]+o[j][1],j,!0);return et}function initiateExpression(elem,data,property){function noOp(o){return o}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function o(s,a){var $,j,_e=this.pv.length?this.pv.length:1,et=createTypedArray("float32",_e);s=5;var tt=Math.floor(time*s);for($=0,j=0;$<tt;){for(j=0;j<_e;j+=1)et[j]+=-a+a*2*BMMath.random();$+=1}var nt=time*s,it=nt-Math.floor(nt),rt=createTypedArray("float32",_e);if(_e>1){for(j=0;j<_e;j+=1)rt[j]=this.pv[j]+et[j]+(-a+a*2*BMMath.random())*it;return rt}return this.pv+et[0]+(-a+a*2*BMMath.random())*it}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(o,s){return loopIn(o,s,!0)}function loopOutDuration(o,s){return loopOut(o,s,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(o,s){var a=[s[0]-o[0],s[1]-o[1],s[2]-o[2]],$=Math.atan2(a[0],Math.sqrt(a[1]*a[1]+a[2]*a[2]))/degToRads,j=-Math.atan2(a[1],a[2])/degToRads;return[j,$,0]}function easeOut(o,s,a,$,j){return applyEase(easeOutBez,o,s,a,$,j)}function easeIn(o,s,a,$,j){return applyEase(easeInBez,o,s,a,$,j)}function ease(o,s,a,$,j){return applyEase(easeInOutBez,o,s,a,$,j)}function applyEase(o,s,a,$,j,_e){j===void 0?(j=a,_e=$):s=(s-a)/($-a),s>1?s=1:s<0&&(s=0);var et=o(s);if($bm_isInstanceOfArray(j)){var tt,nt=j.length,it=createTypedArray("float32",nt);for(tt=0;tt<nt;tt+=1)it[tt]=(_e[tt]-j[tt])*et+j[tt];return it}return(_e-j)*et+j}function nearestKey(o){var s,a=data.k.length,$,j;if(!data.k.length||typeof data.k[0]=="number")$=0,j=0;else if($=-1,o*=elem.comp.globalData.frameRate,o<data.k[0].t)$=1,j=data.k[0].t;else{for(s=0;s<a-1;s+=1)if(o===data.k[s].t){$=s+1,j=data.k[s].t;break}else if(o>data.k[s].t&&o<data.k[s+1].t){o-data.k[s].t>data.k[s+1].t-o?($=s+2,j=data.k[s+1].t):($=s+1,j=data.k[s].t);break}$===-1&&($=s+1,j=data.k[s].t)}var _e={};return _e.index=$,_e.time=j/elem.comp.globalData.frameRate,_e}function key(o){var s,a,$;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+o);o-=1,s={time:data.k[o].t/elem.comp.globalData.frameRate,value:[]};var j=Object.prototype.hasOwnProperty.call(data.k[o],"s")?data.k[o].s:data.k[o-1].e;for($=j.length,a=0;a<$;a+=1)s[a]=j[a],s.value[a]=j[a];return s}function framesToTime(o,s){return s||(s=elem.comp.globalData.frameRate),o/s}function timeToFrames(o,s){return!o&&o!==0&&(o=time),s||(s=elem.comp.globalData.frameRate),o*s}function seedRandom(o){BMMath.seedrandom(randSeed+o)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(o,s){return typeof value=="string"?s===void 0?value.substring(o):value.substring(o,s):""}function substr(o,s){return typeof value=="string"?s===void 0?value.substr(o):value.substr(o,s):""}function posterizeTime(o){time=o===0?0:Math.floor(time*o)/o,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(o){return value=o,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var o={};o.initExpressions=s,o.resetFrame=ExpressionManager.resetFrame;function s(a){var $=0,j=[];function _e(){$+=1}function et(){$-=1,$===0&&nt()}function tt(it){j.indexOf(it)===-1&&j.push(it)}function nt(){var it,rt=j.length;for(it=0;it<rt;it+=1)j[it].release();j.length=0}a.renderer.compInterface=CompExpressionInterface(a.renderer),a.renderer.globalData.projectInterface.registerComposition(a.renderer),a.renderer.globalData.pushExpression=_e,a.renderer.globalData.popExpression=et,a.renderer.globalData.registerExpressionProperty=tt}return o}(),MaskManagerInterface=function(){function o(a,$){this._mask=a,this._data=$}Object.defineProperty(o.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(o.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var s=function($){var j=createSizedArray($.viewData.length),_e,et=$.viewData.length;for(_e=0;_e<et;_e+=1)j[_e]=new o($.viewData[_e],$.masksProperties[_e]);var tt=function(it){for(_e=0;_e<et;){if($.masksProperties[_e].nm===it)return j[_e];_e+=1}return null};return tt};return s}(),ExpressionPropertyInterface=function(){var o={pv:0,v:0,mult:1},s={pv:[0,0,0],v:[0,0,0],mult:1};function a(et,tt,nt){Object.defineProperty(et,"velocity",{get:function(){return tt.getVelocityAtTime(tt.comp.currentFrame)}}),et.numKeys=tt.keyframes?tt.keyframes.length:0,et.key=function(it){if(!et.numKeys)return 0;var rt="";"s"in tt.keyframes[it-1]?rt=tt.keyframes[it-1].s:"e"in tt.keyframes[it-2]?rt=tt.keyframes[it-2].e:rt=tt.keyframes[it-2].s;var st=nt==="unidimensional"?new Number(rt):Object.assign({},rt);return st.time=tt.keyframes[it-1].t/tt.elem.comp.globalData.frameRate,st.value=nt==="unidimensional"?rt[0]:rt,st},et.valueAtTime=tt.getValueAtTime,et.speedAtTime=tt.getSpeedAtTime,et.velocityAtTime=tt.getVelocityAtTime,et.propertyGroup=tt.propertyGroup}function $(et){(!et||!("pv"in et))&&(et=o);var tt=1/et.mult,nt=et.pv*tt,it=new Number(nt);return it.value=nt,a(it,et,"unidimensional"),function(){return et.k&&et.getValue(),nt=et.v*tt,it.value!==nt&&(it=new Number(nt),it.value=nt,a(it,et,"unidimensional")),it}}function j(et){(!et||!("pv"in et))&&(et=s);var tt=1/et.mult,nt=et.data&&et.data.l||et.pv.length,it=createTypedArray("float32",nt),rt=createTypedArray("float32",nt);return it.value=rt,a(it,et,"multidimensional"),function(){et.k&&et.getValue();for(var st=0;st<nt;st+=1)rt[st]=et.v[st]*tt,it[st]=rt[st];return it}}function _e(){return o}return function(et){return et?et.propType==="unidimensional"?$(et):j(et):_e}}(),TransformExpressionInterface=function(){return function(o){function s(et){switch(et){case"scale":case"Scale":case"ADBE Scale":case 6:return s.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return s.rotation;case"ADBE Rotate X":return s.xRotation;case"ADBE Rotate Y":return s.yRotation;case"position":case"Position":case"ADBE Position":case 2:return s.position;case"ADBE Position_0":return s.xPosition;case"ADBE Position_1":return s.yPosition;case"ADBE Position_2":return s.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return s.anchorPoint;case"opacity":case"Opacity":case 11:return s.opacity;default:return null}}Object.defineProperty(s,"rotation",{get:ExpressionPropertyInterface(o.r||o.rz)}),Object.defineProperty(s,"zRotation",{get:ExpressionPropertyInterface(o.rz||o.r)}),Object.defineProperty(s,"xRotation",{get:ExpressionPropertyInterface(o.rx)}),Object.defineProperty(s,"yRotation",{get:ExpressionPropertyInterface(o.ry)}),Object.defineProperty(s,"scale",{get:ExpressionPropertyInterface(o.s)});var a,$,j,_e;return o.p?_e=ExpressionPropertyInterface(o.p):(a=ExpressionPropertyInterface(o.px),$=ExpressionPropertyInterface(o.py),o.pz&&(j=ExpressionPropertyInterface(o.pz))),Object.defineProperty(s,"position",{get:function(){return o.p?_e():[a(),$(),j?j():0]}}),Object.defineProperty(s,"xPosition",{get:ExpressionPropertyInterface(o.px)}),Object.defineProperty(s,"yPosition",{get:ExpressionPropertyInterface(o.py)}),Object.defineProperty(s,"zPosition",{get:ExpressionPropertyInterface(o.pz)}),Object.defineProperty(s,"anchorPoint",{get:ExpressionPropertyInterface(o.a)}),Object.defineProperty(s,"opacity",{get:ExpressionPropertyInterface(o.o)}),Object.defineProperty(s,"skew",{get:ExpressionPropertyInterface(o.sk)}),Object.defineProperty(s,"skewAxis",{get:ExpressionPropertyInterface(o.sa)}),Object.defineProperty(s,"orientation",{get:ExpressionPropertyInterface(o.or)}),s}}(),LayerExpressionInterface=function(){function o(it){var rt=new Matrix;if(it!==void 0){var st=this._elem.finalTransform.mProp.getValueAtTime(it);st.clone(rt)}else{var ot=this._elem.finalTransform.mProp;ot.applyToMatrix(rt)}return rt}function s(it,rt){var st=this.getMatrix(rt);return st.props[12]=0,st.props[13]=0,st.props[14]=0,this.applyPoint(st,it)}function a(it,rt){var st=this.getMatrix(rt);return this.applyPoint(st,it)}function $(it,rt){var st=this.getMatrix(rt);return st.props[12]=0,st.props[13]=0,st.props[14]=0,this.invertPoint(st,it)}function j(it,rt){var st=this.getMatrix(rt);return this.invertPoint(st,it)}function _e(it,rt){if(this._elem.hierarchy&&this._elem.hierarchy.length){var st,ot=this._elem.hierarchy.length;for(st=0;st<ot;st+=1)this._elem.hierarchy[st].finalTransform.mProp.applyToMatrix(it)}return it.applyToPointArray(rt[0],rt[1],rt[2]||0)}function et(it,rt){if(this._elem.hierarchy&&this._elem.hierarchy.length){var st,ot=this._elem.hierarchy.length;for(st=0;st<ot;st+=1)this._elem.hierarchy[st].finalTransform.mProp.applyToMatrix(it)}return it.inversePoint(rt)}function tt(it){var rt=new Matrix;if(rt.reset(),this._elem.finalTransform.mProp.applyToMatrix(rt),this._elem.hierarchy&&this._elem.hierarchy.length){var st,ot=this._elem.hierarchy.length;for(st=0;st<ot;st+=1)this._elem.hierarchy[st].finalTransform.mProp.applyToMatrix(rt);return rt.inversePoint(it)}return rt.inversePoint(it)}function nt(){return[1,1,1,1]}return function(it){var rt;function st(ct){at.mask=new MaskManagerInterface(ct,it)}function ot(ct){at.effect=ct}function at(ct){switch(ct){case"ADBE Root Vectors Group":case"Contents":case 2:return at.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return rt;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return at.effect;case"ADBE Text Properties":return at.textInterface;default:return null}}at.getMatrix=o,at.invertPoint=et,at.applyPoint=_e,at.toWorld=a,at.toWorldVec=s,at.fromWorld=j,at.fromWorldVec=$,at.toComp=a,at.fromComp=tt,at.sampleImage=nt,at.sourceRectAtTime=it.sourceRectAtTime.bind(it),at._elem=it,rt=TransformExpressionInterface(it.finalTransform.mProp);var lt=getDescriptor(rt,"anchorPoint");return Object.defineProperties(at,{hasParent:{get:function(){return it.hierarchy.length}},parent:{get:function(){return it.hierarchy[0].layerInterface}},rotation:getDescriptor(rt,"rotation"),scale:getDescriptor(rt,"scale"),position:getDescriptor(rt,"position"),opacity:getDescriptor(rt,"opacity"),anchorPoint:lt,anchor_point:lt,transform:{get:function(){return rt}},active:{get:function(){return it.isInRange}}}),at.startTime=it.data.st,at.index=it.data.ind,at.source=it.data.refId,at.height=it.data.ty===0?it.data.h:100,at.width=it.data.ty===0?it.data.w:100,at.inPoint=it.data.ip/it.comp.globalData.frameRate,at.outPoint=it.data.op/it.comp.globalData.frameRate,at._name=it.data.nm,at.registerMaskInterface=st,at.registerEffectsInterface=ot,at}}(),propertyGroupFactory=function(){return function(o,s){return function(a){return a=a===void 0?1:a,a<=0?o:s(a-1)}}}(),PropertyInterface=function(){return function(o,s){var a={_name:o};function $(j){return j=j===void 0?1:j,j<=0?a:s(j-1)}return $}}(),EffectsExpressionInterface=function(){var o={createEffectsInterface:s};function s(j,_e){if(j.effectsManager){var et=[],tt=j.data.ef,nt,it=j.effectsManager.effectElements.length;for(nt=0;nt<it;nt+=1)et.push(a(tt[nt],j.effectsManager.effectElements[nt],_e,j));var rt=j.data.ef||[],st=function(at){for(nt=0,it=rt.length;nt<it;){if(at===rt[nt].nm||at===rt[nt].mn||at===rt[nt].ix)return et[nt];nt+=1}return null};return Object.defineProperty(st,"numProperties",{get:function(){return rt.length}}),st}return null}function a(j,_e,et,tt){function nt(at){for(var lt=j.ef,ct=0,ht=lt.length;ct<ht;){if(at===lt[ct].nm||at===lt[ct].mn||at===lt[ct].ix)return lt[ct].ty===5?rt[ct]:rt[ct]();ct+=1}throw new Error}var it=propertyGroupFactory(nt,et),rt=[],st,ot=j.ef.length;for(st=0;st<ot;st+=1)j.ef[st].ty===5?rt.push(a(j.ef[st],_e.effectElements[st],_e.effectElements[st].propertyGroup,tt)):rt.push($(_e.effectElements[st],j.ef[st].ty,tt,it));return j.mn==="ADBE Color Control"&&Object.defineProperty(nt,"color",{get:function(){return rt[0]()}}),Object.defineProperties(nt,{numProperties:{get:function(){return j.np}},_name:{value:j.nm},propertyGroup:{value:it}}),nt.enabled=j.en!==0,nt.active=nt.enabled,nt}function $(j,_e,et,tt){var nt=ExpressionPropertyInterface(j.p);function it(){return _e===10?et.comp.compInterface(j.p.v):nt()}return j.p.setGroupProperty&&j.p.setGroupProperty(PropertyInterface("",tt)),it}return o}(),ShapePathInterface=function(){return function(s,a,$){var j=a.sh;function _e(tt){return tt==="Shape"||tt==="shape"||tt==="Path"||tt==="path"||tt==="ADBE Vector Shape"||tt===2?_e.path:null}var et=propertyGroupFactory(_e,$);return j.setGroupProperty(PropertyInterface("Path",et)),Object.defineProperties(_e,{path:{get:function(){return j.k&&j.getValue(),j}},shape:{get:function(){return j.k&&j.getValue(),j}},_name:{value:s.nm},ix:{value:s.ix},propertyIndex:{value:s.ix},mn:{value:s.mn},propertyGroup:{value:$}}),_e}}(),ShapeExpressionInterface=function(){function o(lt,ct,ht){var dt=[],ut,pt=lt?lt.length:0;for(ut=0;ut<pt;ut+=1)lt[ut].ty==="gr"?dt.push(a(lt[ut],ct[ut],ht)):lt[ut].ty==="fl"?dt.push($(lt[ut],ct[ut],ht)):lt[ut].ty==="st"?dt.push(et(lt[ut],ct[ut],ht)):lt[ut].ty==="tm"?dt.push(tt(lt[ut],ct[ut],ht)):lt[ut].ty==="tr"||(lt[ut].ty==="el"?dt.push(it(lt[ut],ct[ut],ht)):lt[ut].ty==="sr"?dt.push(rt(lt[ut],ct[ut],ht)):lt[ut].ty==="sh"?dt.push(ShapePathInterface(lt[ut],ct[ut],ht)):lt[ut].ty==="rc"?dt.push(st(lt[ut],ct[ut],ht)):lt[ut].ty==="rd"?dt.push(ot(lt[ut],ct[ut],ht)):lt[ut].ty==="rp"?dt.push(at(lt[ut],ct[ut],ht)):lt[ut].ty==="gf"?dt.push(j(lt[ut],ct[ut],ht)):dt.push(_e(lt[ut],ct[ut])));return dt}function s(lt,ct,ht){var dt,ut=function(mt){for(var gt=0,bt=dt.length;gt<bt;){if(dt[gt]._name===mt||dt[gt].mn===mt||dt[gt].propertyIndex===mt||dt[gt].ix===mt||dt[gt].ind===mt)return dt[gt];gt+=1}return typeof mt=="number"?dt[mt-1]:null};ut.propertyGroup=propertyGroupFactory(ut,ht),dt=o(lt.it,ct.it,ut.propertyGroup),ut.numProperties=dt.length;var pt=nt(lt.it[lt.it.length-1],ct.it[ct.it.length-1],ut.propertyGroup);return ut.transform=pt,ut.propertyIndex=lt.cix,ut._name=lt.nm,ut}function a(lt,ct,ht){var dt=function(mt){switch(mt){case"ADBE Vectors Group":case"Contents":case 2:return dt.content;default:return dt.transform}};dt.propertyGroup=propertyGroupFactory(dt,ht);var ut=s(lt,ct,dt.propertyGroup),pt=nt(lt.it[lt.it.length-1],ct.it[ct.it.length-1],dt.propertyGroup);return dt.content=ut,dt.transform=pt,Object.defineProperty(dt,"_name",{get:function(){return lt.nm}}),dt.numProperties=lt.np,dt.propertyIndex=lt.ix,dt.nm=lt.nm,dt.mn=lt.mn,dt}function $(lt,ct,ht){function dt(ut){return ut==="Color"||ut==="color"?dt.color:ut==="Opacity"||ut==="opacity"?dt.opacity:null}return Object.defineProperties(dt,{color:{get:ExpressionPropertyInterface(ct.c)},opacity:{get:ExpressionPropertyInterface(ct.o)},_name:{value:lt.nm},mn:{value:lt.mn}}),ct.c.setGroupProperty(PropertyInterface("Color",ht)),ct.o.setGroupProperty(PropertyInterface("Opacity",ht)),dt}function j(lt,ct,ht){function dt(ut){return ut==="Start Point"||ut==="start point"?dt.startPoint:ut==="End Point"||ut==="end point"?dt.endPoint:ut==="Opacity"||ut==="opacity"?dt.opacity:null}return Object.defineProperties(dt,{startPoint:{get:ExpressionPropertyInterface(ct.s)},endPoint:{get:ExpressionPropertyInterface(ct.e)},opacity:{get:ExpressionPropertyInterface(ct.o)},type:{get:function(){return"a"}},_name:{value:lt.nm},mn:{value:lt.mn}}),ct.s.setGroupProperty(PropertyInterface("Start Point",ht)),ct.e.setGroupProperty(PropertyInterface("End Point",ht)),ct.o.setGroupProperty(PropertyInterface("Opacity",ht)),dt}function _e(){function lt(){return null}return lt}function et(lt,ct,ht){var dt=propertyGroupFactory(bt,ht),ut=propertyGroupFactory(gt,dt);function pt(St){Object.defineProperty(gt,lt.d[St].nm,{get:ExpressionPropertyInterface(ct.d.dataProps[St].p)})}var ft,mt=lt.d?lt.d.length:0,gt={};for(ft=0;ft<mt;ft+=1)pt(ft),ct.d.dataProps[ft].p.setGroupProperty(ut);function bt(St){return St==="Color"||St==="color"?bt.color:St==="Opacity"||St==="opacity"?bt.opacity:St==="Stroke Width"||St==="stroke width"?bt.strokeWidth:null}return Object.defineProperties(bt,{color:{get:ExpressionPropertyInterface(ct.c)},opacity:{get:ExpressionPropertyInterface(ct.o)},strokeWidth:{get:ExpressionPropertyInterface(ct.w)},dash:{get:function(){return gt}},_name:{value:lt.nm},mn:{value:lt.mn}}),ct.c.setGroupProperty(PropertyInterface("Color",dt)),ct.o.setGroupProperty(PropertyInterface("Opacity",dt)),ct.w.setGroupProperty(PropertyInterface("Stroke Width",dt)),bt}function tt(lt,ct,ht){function dt(pt){return pt===lt.e.ix||pt==="End"||pt==="end"?dt.end:pt===lt.s.ix?dt.start:pt===lt.o.ix?dt.offset:null}var ut=propertyGroupFactory(dt,ht);return dt.propertyIndex=lt.ix,ct.s.setGroupProperty(PropertyInterface("Start",ut)),ct.e.setGroupProperty(PropertyInterface("End",ut)),ct.o.setGroupProperty(PropertyInterface("Offset",ut)),dt.propertyIndex=lt.ix,dt.propertyGroup=ht,Object.defineProperties(dt,{start:{get:ExpressionPropertyInterface(ct.s)},end:{get:ExpressionPropertyInterface(ct.e)},offset:{get:ExpressionPropertyInterface(ct.o)},_name:{value:lt.nm}}),dt.mn=lt.mn,dt}function nt(lt,ct,ht){function dt(pt){return lt.a.ix===pt||pt==="Anchor Point"?dt.anchorPoint:lt.o.ix===pt||pt==="Opacity"?dt.opacity:lt.p.ix===pt||pt==="Position"?dt.position:lt.r.ix===pt||pt==="Rotation"||pt==="ADBE Vector Rotation"?dt.rotation:lt.s.ix===pt||pt==="Scale"?dt.scale:lt.sk&&lt.sk.ix===pt||pt==="Skew"?dt.skew:lt.sa&&lt.sa.ix===pt||pt==="Skew Axis"?dt.skewAxis:null}var ut=propertyGroupFactory(dt,ht);return ct.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",ut)),ct.transform.mProps.p.setGroupProperty(PropertyInterface("Position",ut)),ct.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",ut)),ct.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",ut)),ct.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",ut)),ct.transform.mProps.sk&&(ct.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",ut)),ct.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",ut))),ct.transform.op.setGroupProperty(PropertyInterface("Opacity",ut)),Object.defineProperties(dt,{opacity:{get:ExpressionPropertyInterface(ct.transform.mProps.o)},position:{get:ExpressionPropertyInterface(ct.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(ct.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(ct.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(ct.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(ct.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(ct.transform.mProps.sa)},_name:{value:lt.nm}}),dt.ty="tr",dt.mn=lt.mn,dt.propertyGroup=ht,dt}function it(lt,ct,ht){function dt(ft){return lt.p.ix===ft?dt.position:lt.s.ix===ft?dt.size:null}var ut=propertyGroupFactory(dt,ht);dt.propertyIndex=lt.ix;var pt=ct.sh.ty==="tm"?ct.sh.prop:ct.sh;return pt.s.setGroupProperty(PropertyInterface("Size",ut)),pt.p.setGroupProperty(PropertyInterface("Position",ut)),Object.defineProperties(dt,{size:{get:ExpressionPropertyInterface(pt.s)},position:{get:ExpressionPropertyInterface(pt.p)},_name:{value:lt.nm}}),dt.mn=lt.mn,dt}function rt(lt,ct,ht){function dt(ft){return lt.p.ix===ft?dt.position:lt.r.ix===ft?dt.rotation:lt.pt.ix===ft?dt.points:lt.or.ix===ft||ft==="ADBE Vector Star Outer Radius"?dt.outerRadius:lt.os.ix===ft?dt.outerRoundness:lt.ir&&(lt.ir.ix===ft||ft==="ADBE Vector Star Inner Radius")?dt.innerRadius:lt.is&&lt.is.ix===ft?dt.innerRoundness:null}var ut=propertyGroupFactory(dt,ht),pt=ct.sh.ty==="tm"?ct.sh.prop:ct.sh;return dt.propertyIndex=lt.ix,pt.or.setGroupProperty(PropertyInterface("Outer Radius",ut)),pt.os.setGroupProperty(PropertyInterface("Outer Roundness",ut)),pt.pt.setGroupProperty(PropertyInterface("Points",ut)),pt.p.setGroupProperty(PropertyInterface("Position",ut)),pt.r.setGroupProperty(PropertyInterface("Rotation",ut)),lt.ir&&(pt.ir.setGroupProperty(PropertyInterface("Inner Radius",ut)),pt.is.setGroupProperty(PropertyInterface("Inner Roundness",ut))),Object.defineProperties(dt,{position:{get:ExpressionPropertyInterface(pt.p)},rotation:{get:ExpressionPropertyInterface(pt.r)},points:{get:ExpressionPropertyInterface(pt.pt)},outerRadius:{get:ExpressionPropertyInterface(pt.or)},outerRoundness:{get:ExpressionPropertyInterface(pt.os)},innerRadius:{get:ExpressionPropertyInterface(pt.ir)},innerRoundness:{get:ExpressionPropertyInterface(pt.is)},_name:{value:lt.nm}}),dt.mn=lt.mn,dt}function st(lt,ct,ht){function dt(ft){return lt.p.ix===ft?dt.position:lt.r.ix===ft?dt.roundness:lt.s.ix===ft||ft==="Size"||ft==="ADBE Vector Rect Size"?dt.size:null}var ut=propertyGroupFactory(dt,ht),pt=ct.sh.ty==="tm"?ct.sh.prop:ct.sh;return dt.propertyIndex=lt.ix,pt.p.setGroupProperty(PropertyInterface("Position",ut)),pt.s.setGroupProperty(PropertyInterface("Size",ut)),pt.r.setGroupProperty(PropertyInterface("Rotation",ut)),Object.defineProperties(dt,{position:{get:ExpressionPropertyInterface(pt.p)},roundness:{get:ExpressionPropertyInterface(pt.r)},size:{get:ExpressionPropertyInterface(pt.s)},_name:{value:lt.nm}}),dt.mn=lt.mn,dt}function ot(lt,ct,ht){function dt(ft){return lt.r.ix===ft||ft==="Round Corners 1"?dt.radius:null}var ut=propertyGroupFactory(dt,ht),pt=ct;return dt.propertyIndex=lt.ix,pt.rd.setGroupProperty(PropertyInterface("Radius",ut)),Object.defineProperties(dt,{radius:{get:ExpressionPropertyInterface(pt.rd)},_name:{value:lt.nm}}),dt.mn=lt.mn,dt}function at(lt,ct,ht){function dt(ft){return lt.c.ix===ft||ft==="Copies"?dt.copies:lt.o.ix===ft||ft==="Offset"?dt.offset:null}var ut=propertyGroupFactory(dt,ht),pt=ct;return dt.propertyIndex=lt.ix,pt.c.setGroupProperty(PropertyInterface("Copies",ut)),pt.o.setGroupProperty(PropertyInterface("Offset",ut)),Object.defineProperties(dt,{copies:{get:ExpressionPropertyInterface(pt.c)},offset:{get:ExpressionPropertyInterface(pt.o)},_name:{value:lt.nm}}),dt.mn=lt.mn,dt}return function(lt,ct,ht){var dt;function ut(ft){if(typeof ft=="number")return ft=ft===void 0?1:ft,ft===0?ht:dt[ft-1];for(var mt=0,gt=dt.length;mt<gt;){if(dt[mt]._name===ft)return dt[mt];mt+=1}return null}function pt(){return ht}return ut.propertyGroup=propertyGroupFactory(ut,pt),dt=o(lt,ct,ut.propertyGroup),ut.numProperties=dt.length,ut._name="Contents",ut}}(),TextExpressionInterface=function(){return function(o){var s;function a($){switch($){case"ADBE Text Document":return a.sourceText;default:return null}}return Object.defineProperty(a,"sourceText",{get:function(){o.textProperty.getValue();var j=o.textProperty.currentData.t;return(!s||j!==s.value)&&(s=new String(j),s.value=j||new String(j),Object.defineProperty(s,"style",{get:function(){return{fillColor:o.textProperty.currentData.fc}}})),s}}),a}}();function _typeof(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(a){return typeof a}:_typeof=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(o)}var FootageInterface=function(){var o=function($){var j="",_e=$.getFootageData();function et(){return j="",_e=$.getFootageData(),tt}function tt(nt){if(_e[nt])return j=nt,_e=_e[nt],_typeof(_e)==="object"?tt:_e;var it=nt.indexOf(j);if(it!==-1){var rt=parseInt(nt.substr(it+j.length),10);return _e=_e[rt],_typeof(_e)==="object"?tt:_e}return""}return et},s=function($){function j(_e){return _e==="Outline"?j.outlineInterface():null}return j._name="Outline",j.outlineInterface=o($),j};return function(a){function $(j){return j==="Data"?$.dataInterface:null}return $._name="Data",$.dataInterface=s(a),$}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(o){return interfaces[o]||null}var expressionHelpers=function(){function o(et,tt,nt){tt.x&&(nt.k=!0,nt.x=!0,nt.initiateExpression=ExpressionManager.initiateExpression,nt.effectsSequence.push(nt.initiateExpression(et,tt,nt).bind(nt)))}function s(et){return et*=this.elem.globalData.frameRate,et-=this.offsetTime,et!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<et?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(et,this._cachingAtTime),this._cachingAtTime.lastFrame=et),this._cachingAtTime.value}function a(et){var tt=-.01,nt=this.getValueAtTime(et),it=this.getValueAtTime(et+tt),rt=0;if(nt.length){var st;for(st=0;st<nt.length;st+=1)rt+=Math.pow(it[st]-nt[st],2);rt=Math.sqrt(rt)*100}else rt=0;return rt}function $(et){if(this.vel!==void 0)return this.vel;var tt=-.001,nt=this.getValueAtTime(et),it=this.getValueAtTime(et+tt),rt;if(nt.length){rt=createTypedArray("float32",nt.length);var st;for(st=0;st<nt.length;st+=1)rt[st]=(it[st]-nt[st])/tt}else rt=(it-nt)/tt;return rt}function j(){return this.pv}function _e(et){this.propertyGroup=et}return{searchExpressions:o,getSpeedAtTime:a,getVelocityAtTime:$,getValueAtTime:s,getStaticValueAtTime:j,setGroupProperty:_e}}();function addPropertyDecorator(){function o(ot,at,lt){if(!this.k||!this.keyframes)return this.pv;ot=ot?ot.toLowerCase():"";var ct=this.comp.renderedFrame,ht=this.keyframes,dt=ht[ht.length-1].t;if(ct<=dt)return this.pv;var ut,pt;lt?(at?ut=Math.abs(dt-this.elem.comp.globalData.frameRate*at):ut=Math.max(0,dt-this.elem.data.ip),pt=dt-ut):((!at||at>ht.length-1)&&(at=ht.length-1),pt=ht[ht.length-1-at].t,ut=dt-pt);var ft,mt,gt;if(ot==="pingpong"){var bt=Math.floor((ct-pt)/ut);if(bt%2!==0)return this.getValueAtTime((ut-(ct-pt)%ut+pt)/this.comp.globalData.frameRate,0)}else if(ot==="offset"){var St=this.getValueAtTime(pt/this.comp.globalData.frameRate,0),Nt=this.getValueAtTime(dt/this.comp.globalData.frameRate,0),Rt=this.getValueAtTime(((ct-pt)%ut+pt)/this.comp.globalData.frameRate,0),Ft=Math.floor((ct-pt)/ut);if(this.pv.length){for(gt=new Array(St.length),mt=gt.length,ft=0;ft<mt;ft+=1)gt[ft]=(Nt[ft]-St[ft])*Ft+Rt[ft];return gt}return(Nt-St)*Ft+Rt}else if(ot==="continue"){var Ot=this.getValueAtTime(dt/this.comp.globalData.frameRate,0),Ct=this.getValueAtTime((dt-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(gt=new Array(Ot.length),mt=gt.length,ft=0;ft<mt;ft+=1)gt[ft]=Ot[ft]+(Ot[ft]-Ct[ft])*((ct-dt)/this.comp.globalData.frameRate)/5e-4;return gt}return Ot+(Ot-Ct)*((ct-dt)/.001)}return this.getValueAtTime(((ct-pt)%ut+pt)/this.comp.globalData.frameRate,0)}function s(ot,at,lt){if(!this.k)return this.pv;ot=ot?ot.toLowerCase():"";var ct=this.comp.renderedFrame,ht=this.keyframes,dt=ht[0].t;if(ct>=dt)return this.pv;var ut,pt;lt?(at?ut=Math.abs(this.elem.comp.globalData.frameRate*at):ut=Math.max(0,this.elem.data.op-dt),pt=dt+ut):((!at||at>ht.length-1)&&(at=ht.length-1),pt=ht[at].t,ut=pt-dt);var ft,mt,gt;if(ot==="pingpong"){var bt=Math.floor((dt-ct)/ut);if(bt%2===0)return this.getValueAtTime(((dt-ct)%ut+dt)/this.comp.globalData.frameRate,0)}else if(ot==="offset"){var St=this.getValueAtTime(dt/this.comp.globalData.frameRate,0),Nt=this.getValueAtTime(pt/this.comp.globalData.frameRate,0),Rt=this.getValueAtTime((ut-(dt-ct)%ut+dt)/this.comp.globalData.frameRate,0),Ft=Math.floor((dt-ct)/ut)+1;if(this.pv.length){for(gt=new Array(St.length),mt=gt.length,ft=0;ft<mt;ft+=1)gt[ft]=Rt[ft]-(Nt[ft]-St[ft])*Ft;return gt}return Rt-(Nt-St)*Ft}else if(ot==="continue"){var Ot=this.getValueAtTime(dt/this.comp.globalData.frameRate,0),Ct=this.getValueAtTime((dt+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(gt=new Array(Ot.length),mt=gt.length,ft=0;ft<mt;ft+=1)gt[ft]=Ot[ft]+(Ot[ft]-Ct[ft])*(dt-ct)/.001;return gt}return Ot+(Ot-Ct)*(dt-ct)/.001}return this.getValueAtTime((ut-((dt-ct)%ut+dt))/this.comp.globalData.frameRate,0)}function a(ot,at){if(!this.k)return this.pv;if(ot=(ot||.4)*.5,at=Math.floor(at||5),at<=1)return this.pv;var lt=this.comp.renderedFrame/this.comp.globalData.frameRate,ct=lt-ot,ht=lt+ot,dt=at>1?(ht-ct)/(at-1):1,ut=0,pt=0,ft;this.pv.length?ft=createTypedArray("float32",this.pv.length):ft=0;for(var mt;ut<at;){if(mt=this.getValueAtTime(ct+ut*dt),this.pv.length)for(pt=0;pt<this.pv.length;pt+=1)ft[pt]+=mt[pt];else ft+=mt;ut+=1}if(this.pv.length)for(pt=0;pt<this.pv.length;pt+=1)ft[pt]/=at;else ft/=at;return ft}function $(ot){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var at=this._transformCachingAtTime.v;if(at.cloneFromProps(this.pre.props),this.appliedTransformations<1){var lt=this.a.getValueAtTime(ot);at.translate(-lt[0]*this.a.mult,-lt[1]*this.a.mult,lt[2]*this.a.mult)}if(this.appliedTransformations<2){var ct=this.s.getValueAtTime(ot);at.scale(ct[0]*this.s.mult,ct[1]*this.s.mult,ct[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var ht=this.sk.getValueAtTime(ot),dt=this.sa.getValueAtTime(ot);at.skewFromAxis(-ht*this.sk.mult,dt*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var ut=this.r.getValueAtTime(ot);at.rotate(-ut*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var pt=this.rz.getValueAtTime(ot),ft=this.ry.getValueAtTime(ot),mt=this.rx.getValueAtTime(ot),gt=this.or.getValueAtTime(ot);at.rotateZ(-pt*this.rz.mult).rotateY(ft*this.ry.mult).rotateX(mt*this.rx.mult).rotateZ(-gt[2]*this.or.mult).rotateY(gt[1]*this.or.mult).rotateX(gt[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var bt=this.px.getValueAtTime(ot),St=this.py.getValueAtTime(ot);if(this.data.p.z){var Nt=this.pz.getValueAtTime(ot);at.translate(bt*this.px.mult,St*this.py.mult,-Nt*this.pz.mult)}else at.translate(bt*this.px.mult,St*this.py.mult,0)}else{var Rt=this.p.getValueAtTime(ot);at.translate(Rt[0]*this.p.mult,Rt[1]*this.p.mult,-Rt[2]*this.p.mult)}return at}function j(){return this.v.clone(new Matrix)}var _e=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(ot,at,lt){var ct=_e(ot,at,lt);return ct.dynamicProperties.length?ct.getValueAtTime=$.bind(ct):ct.getValueAtTime=j.bind(ct),ct.setGroupProperty=expressionHelpers.setGroupProperty,ct};var et=PropertyFactory.getProp;PropertyFactory.getProp=function(ot,at,lt,ct,ht){var dt=et(ot,at,lt,ct,ht);dt.kf?dt.getValueAtTime=expressionHelpers.getValueAtTime.bind(dt):dt.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(dt),dt.setGroupProperty=expressionHelpers.setGroupProperty,dt.loopOut=o,dt.loopIn=s,dt.smooth=a,dt.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(dt),dt.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(dt),dt.numKeys=at.a===1?at.k.length:0,dt.propertyIndex=at.ix;var ut=0;return lt!==0&&(ut=createTypedArray("float32",at.a===1?at.k[0].s.length:at.k.length)),dt._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:ut},expressionHelpers.searchExpressions(ot,at,dt),dt.k&&ht.addDynamicProperty(dt),dt};function tt(ot){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),ot*=this.elem.globalData.frameRate,ot-=this.offsetTime,ot!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<ot?this._caching.lastIndex:0,this._cachingAtTime.lastTime=ot,this.interpolateShape(ot,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var nt=ShapePropertyFactory.getConstructorFunction(),it=ShapePropertyFactory.getKeyframedConstructorFunction();function rt(){}rt.prototype={vertices:function(at,lt){this.k&&this.getValue();var ct=this.v;lt!==void 0&&(ct=this.getValueAtTime(lt,0));var ht,dt=ct._length,ut=ct[at],pt=ct.v,ft=createSizedArray(dt);for(ht=0;ht<dt;ht+=1)at==="i"||at==="o"?ft[ht]=[ut[ht][0]-pt[ht][0],ut[ht][1]-pt[ht][1]]:ft[ht]=[ut[ht][0],ut[ht][1]];return ft},points:function(at){return this.vertices("v",at)},inTangents:function(at){return this.vertices("i",at)},outTangents:function(at){return this.vertices("o",at)},isClosed:function(){return this.v.c},pointOnPath:function(at,lt){var ct=this.v;lt!==void 0&&(ct=this.getValueAtTime(lt,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(ct));for(var ht=this._segmentsLength,dt=ht.lengths,ut=ht.totalLength*at,pt=0,ft=dt.length,mt=0,gt;pt<ft;){if(mt+dt[pt].addedLength>ut){var bt=pt,St=ct.c&&pt===ft-1?0:pt+1,Nt=(ut-mt)/dt[pt].addedLength;gt=bez.getPointInSegment(ct.v[bt],ct.v[St],ct.o[bt],ct.i[St],Nt,dt[pt]);break}else mt+=dt[pt].addedLength;pt+=1}return gt||(gt=ct.c?[ct.v[0][0],ct.v[0][1]]:[ct.v[ct._length-1][0],ct.v[ct._length-1][1]]),gt},vectorOnPath:function(at,lt,ct){at==1?at=this.v.c:at==0&&(at=.999);var ht=this.pointOnPath(at,lt),dt=this.pointOnPath(at+.001,lt),ut=dt[0]-ht[0],pt=dt[1]-ht[1],ft=Math.sqrt(Math.pow(ut,2)+Math.pow(pt,2));if(ft===0)return[0,0];var mt=ct==="tangent"?[ut/ft,pt/ft]:[-pt/ft,ut/ft];return mt},tangentOnPath:function(at,lt){return this.vectorOnPath(at,lt,"tangent")},normalOnPath:function(at,lt){return this.vectorOnPath(at,lt,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([rt],nt),extendPrototype([rt],it),it.prototype.getValueAtTime=tt,it.prototype.initiateExpression=ExpressionManager.initiateExpression;var st=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(ot,at,lt,ct,ht){var dt=st(ot,at,lt,ct,ht);return dt.propertyIndex=at.ix,dt.lock=!1,lt===3?expressionHelpers.searchExpressions(ot,at.pt,dt):lt===4&&expressionHelpers.searchExpressions(ot,at.ks,dt),dt.k&&ot.addDynamicProperty(dt),dt}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function o(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(s,a){var $=this.calculateExpression(a);if(s.t!==$){var j={};return this.copyData(j,s),j.t=$.toString(),j.__complete=!1,j}return s},TextProperty.prototype.searchProperty=function(){var s=this.searchKeyframes(),a=this.searchExpressions();return this.kf=s||a,this.kf},TextProperty.prototype.searchExpressions=o}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function o(s,a){var $=createNS("feMerge");$.setAttribute("result",s);var j,_e;for(_e=0;_e<a.length;_e+=1)j=createNS("feMergeNode"),j.setAttribute("in",a[_e]),$.appendChild(j),$.appendChild(j);return $}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(o,s,a,$,j){this.filterManager=s;var _e=createNS("feColorMatrix");_e.setAttribute("type","matrix"),_e.setAttribute("color-interpolation-filters","linearRGB"),_e.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=_e,_e.setAttribute("result",$+"_tint_1"),o.appendChild(_e),_e=createNS("feColorMatrix"),_e.setAttribute("type","matrix"),_e.setAttribute("color-interpolation-filters","sRGB"),_e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),_e.setAttribute("result",$+"_tint_2"),o.appendChild(_e),this.matrixFilter=_e;var et=this.createMergeNode($,[j,$+"_tint_1",$+"_tint_2"]);o.appendChild(et)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var s=this.filterManager.effectElements[0].p.v,a=this.filterManager.effectElements[1].p.v,$=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+$+" 0"),this.matrixFilter.setAttribute("values",a[0]-s[0]+" 0 0 0 "+s[0]+" "+(a[1]-s[1])+" 0 0 0 "+s[1]+" "+(a[2]-s[2])+" 0 0 0 "+s[2]+" 0 0 0 1 0")}};function SVGFillFilter(o,s,a,$){this.filterManager=s;var j=createNS("feColorMatrix");j.setAttribute("type","matrix"),j.setAttribute("color-interpolation-filters","sRGB"),j.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),j.setAttribute("result",$),o.appendChild(j),this.matrixFilter=j}SVGFillFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var s=this.filterManager.effectElements[2].p.v,a=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+s[0]+" 0 0 0 0 "+s[1]+" 0 0 0 0 "+s[2]+" 0 0 0 "+a+" 0")}};function SVGStrokeEffect(o,s,a){this.initialized=!1,this.filterManager=s,this.elem=a,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var o=this.elem.layerElement.children||this.elem.layerElement.childNodes,s,a,$,j;for(this.filterManager.effectElements[1].p.v===1?(j=this.elem.maskManager.masksProperties.length,$=0):($=this.filterManager.effectElements[0].p.v-1,j=$+1),a=createNS("g"),a.setAttribute("fill","none"),a.setAttribute("stroke-linecap","round"),a.setAttribute("stroke-dashoffset",1),$;$<j;$+=1)s=createNS("path"),a.appendChild(s),this.paths.push({p:s,m:$});if(this.filterManager.effectElements[10].p.v===3){var _e=createNS("mask"),et=createElementID();_e.setAttribute("id",et),_e.setAttribute("mask-type","alpha"),_e.appendChild(a),this.elem.globalData.defs.appendChild(_e);var tt=createNS("g");for(tt.setAttribute("mask","url("+getLocationHref()+"#"+et+")");o[0];)tt.appendChild(o[0]);this.elem.layerElement.appendChild(tt),this.masker=_e,a.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(o=this.elem.layerElement.children||this.elem.layerElement.childNodes;o.length;)this.elem.layerElement.removeChild(o[0]);this.elem.layerElement.appendChild(a),this.elem.layerElement.removeAttribute("mask"),a.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=a},SVGStrokeEffect.prototype.renderFrame=function(o){this.initialized||this.initialize();var s,a=this.paths.length,$,j;for(s=0;s<a;s+=1)if(this.paths[s].m!==-1&&($=this.elem.maskManager.viewData[this.paths[s].m],j=this.paths[s].p,(o||this.filterManager._mdf||$.prop._mdf)&&j.setAttribute("d",$.lastPath),o||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||$.prop._mdf)){var _e;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var et=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,tt=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,nt=j.getTotalLength();_e="0 0 0 "+nt*et+" ";var it=nt*(tt-et),rt=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,st=Math.floor(it/rt),ot;for(ot=0;ot<st;ot+=1)_e+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";_e+="0 "+nt*10+" 0 0"}else _e="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;j.setAttribute("stroke-dasharray",_e)}if((o||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(o||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(o||this.filterManager.effectElements[3].p._mdf)){var at=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(at[0]*255)+","+bmFloor(at[1]*255)+","+bmFloor(at[2]*255)+")")}};function SVGTritoneFilter(o,s,a,$){this.filterManager=s;var j=createNS("feColorMatrix");j.setAttribute("type","matrix"),j.setAttribute("color-interpolation-filters","linearRGB"),j.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),o.appendChild(j);var _e=createNS("feComponentTransfer");_e.setAttribute("color-interpolation-filters","sRGB"),_e.setAttribute("result",$),this.matrixFilter=_e;var et=createNS("feFuncR");et.setAttribute("type","table"),_e.appendChild(et),this.feFuncR=et;var tt=createNS("feFuncG");tt.setAttribute("type","table"),_e.appendChild(tt),this.feFuncG=tt;var nt=createNS("feFuncB");nt.setAttribute("type","table"),_e.appendChild(nt),this.feFuncB=nt,o.appendChild(_e)}SVGTritoneFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var s=this.filterManager.effectElements[0].p.v,a=this.filterManager.effectElements[1].p.v,$=this.filterManager.effectElements[2].p.v,j=$[0]+" "+a[0]+" "+s[0],_e=$[1]+" "+a[1]+" "+s[1],et=$[2]+" "+a[2]+" "+s[2];this.feFuncR.setAttribute("tableValues",j),this.feFuncG.setAttribute("tableValues",_e),this.feFuncB.setAttribute("tableValues",et)}};function SVGProLevelsFilter(o,s,a,$){this.filterManager=s;var j=this.filterManager.effectElements,_e=createNS("feComponentTransfer");(j[10].p.k||j[10].p.v!==0||j[11].p.k||j[11].p.v!==1||j[12].p.k||j[12].p.v!==1||j[13].p.k||j[13].p.v!==0||j[14].p.k||j[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",_e)),(j[17].p.k||j[17].p.v!==0||j[18].p.k||j[18].p.v!==1||j[19].p.k||j[19].p.v!==1||j[20].p.k||j[20].p.v!==0||j[21].p.k||j[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",_e)),(j[24].p.k||j[24].p.v!==0||j[25].p.k||j[25].p.v!==1||j[26].p.k||j[26].p.v!==1||j[27].p.k||j[27].p.v!==0||j[28].p.k||j[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",_e)),(j[31].p.k||j[31].p.v!==0||j[32].p.k||j[32].p.v!==1||j[33].p.k||j[33].p.v!==1||j[34].p.k||j[34].p.v!==0||j[35].p.k||j[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",_e)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(_e.setAttribute("color-interpolation-filters","sRGB"),o.appendChild(_e)),(j[3].p.k||j[3].p.v!==0||j[4].p.k||j[4].p.v!==1||j[5].p.k||j[5].p.v!==1||j[6].p.k||j[6].p.v!==0||j[7].p.k||j[7].p.v!==1)&&(_e=createNS("feComponentTransfer"),_e.setAttribute("color-interpolation-filters","sRGB"),_e.setAttribute("result",$),o.appendChild(_e),this.feFuncRComposed=this.createFeFunc("feFuncR",_e),this.feFuncGComposed=this.createFeFunc("feFuncG",_e),this.feFuncBComposed=this.createFeFunc("feFuncB",_e))}SVGProLevelsFilter.prototype.createFeFunc=function(o,s){var a=createNS(o);return a.setAttribute("type","table"),s.appendChild(a),a},SVGProLevelsFilter.prototype.getTableValue=function(o,s,a,$,j){for(var _e=0,et=256,tt,nt=Math.min(o,s),it=Math.max(o,s),rt=Array.call(null,{length:et}),st,ot=0,at=j-$,lt=s-o;_e<=256;)tt=_e/256,tt<=nt?st=lt<0?j:$:tt>=it?st=lt<0?$:j:st=$+at*Math.pow((tt-o)/lt,1/a),rt[ot]=st,ot+=1,_e+=256/(et-1);return rt.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var s,a=this.filterManager.effectElements;this.feFuncRComposed&&(o||a[3].p._mdf||a[4].p._mdf||a[5].p._mdf||a[6].p._mdf||a[7].p._mdf)&&(s=this.getTableValue(a[3].p.v,a[4].p.v,a[5].p.v,a[6].p.v,a[7].p.v),this.feFuncRComposed.setAttribute("tableValues",s),this.feFuncGComposed.setAttribute("tableValues",s),this.feFuncBComposed.setAttribute("tableValues",s)),this.feFuncR&&(o||a[10].p._mdf||a[11].p._mdf||a[12].p._mdf||a[13].p._mdf||a[14].p._mdf)&&(s=this.getTableValue(a[10].p.v,a[11].p.v,a[12].p.v,a[13].p.v,a[14].p.v),this.feFuncR.setAttribute("tableValues",s)),this.feFuncG&&(o||a[17].p._mdf||a[18].p._mdf||a[19].p._mdf||a[20].p._mdf||a[21].p._mdf)&&(s=this.getTableValue(a[17].p.v,a[18].p.v,a[19].p.v,a[20].p.v,a[21].p.v),this.feFuncG.setAttribute("tableValues",s)),this.feFuncB&&(o||a[24].p._mdf||a[25].p._mdf||a[26].p._mdf||a[27].p._mdf||a[28].p._mdf)&&(s=this.getTableValue(a[24].p.v,a[25].p.v,a[26].p.v,a[27].p.v,a[28].p.v),this.feFuncB.setAttribute("tableValues",s)),this.feFuncA&&(o||a[31].p._mdf||a[32].p._mdf||a[33].p._mdf||a[34].p._mdf||a[35].p._mdf)&&(s=this.getTableValue(a[31].p.v,a[32].p.v,a[33].p.v,a[34].p.v,a[35].p.v),this.feFuncA.setAttribute("tableValues",s))}};function SVGDropShadowEffect(o,s,a,$,j){var _e=s.container.globalData.renderConfig.filterSize,et=s.data.fs||_e;o.setAttribute("x",et.x||_e.x),o.setAttribute("y",et.y||_e.y),o.setAttribute("width",et.width||_e.width),o.setAttribute("height",et.height||_e.height),this.filterManager=s;var tt=createNS("feGaussianBlur");tt.setAttribute("in","SourceAlpha"),tt.setAttribute("result",$+"_drop_shadow_1"),tt.setAttribute("stdDeviation","0"),this.feGaussianBlur=tt,o.appendChild(tt);var nt=createNS("feOffset");nt.setAttribute("dx","25"),nt.setAttribute("dy","0"),nt.setAttribute("in",$+"_drop_shadow_1"),nt.setAttribute("result",$+"_drop_shadow_2"),this.feOffset=nt,o.appendChild(nt);var it=createNS("feFlood");it.setAttribute("flood-color","#00ff00"),it.setAttribute("flood-opacity","1"),it.setAttribute("result",$+"_drop_shadow_3"),this.feFlood=it,o.appendChild(it);var rt=createNS("feComposite");rt.setAttribute("in",$+"_drop_shadow_3"),rt.setAttribute("in2",$+"_drop_shadow_2"),rt.setAttribute("operator","in"),rt.setAttribute("result",$+"_drop_shadow_4"),o.appendChild(rt);var st=this.createMergeNode($,[$+"_drop_shadow_4",j]);o.appendChild(st)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){if((o||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),o||this.filterManager.effectElements[0].p._mdf){var s=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(s[0]*255),Math.round(s[1]*255),Math.round(s[2]*255)))}if((o||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),o||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var a=this.filterManager.effectElements[3].p.v,$=(this.filterManager.effectElements[2].p.v-90)*degToRads,j=a*Math.cos($),_e=a*Math.sin($);this.feOffset.setAttribute("dx",j),this.feOffset.setAttribute("dy",_e)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(o,s,a){this.initialized=!1,this.filterManager=s,this.filterElem=o,this.elem=a,a.matteElement=createNS("g"),a.matteElement.appendChild(a.layerElement),a.matteElement.appendChild(a.transformedElement),a.baseElement=a.matteElement}SVGMatte3Effect.prototype.findSymbol=function(o){for(var s=0,a=_svgMatteSymbols.length;s<a;){if(_svgMatteSymbols[s]===o)return _svgMatteSymbols[s];s+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(o,s){var a=o.layerElement.parentNode;if(a){for(var $=a.children,j=0,_e=$.length;j<_e&&$[j]!==o.layerElement;)j+=1;var et;j<=_e-2&&(et=$[j+1]);var tt=createNS("use");tt.setAttribute("href","#"+s),et?a.insertBefore(tt,et):a.appendChild(tt)}},SVGMatte3Effect.prototype.setElementAsMask=function(o,s){if(!this.findSymbol(s)){var a=createElementID(),$=createNS("mask");$.setAttribute("id",s.layerId),$.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(s);var j=o.globalData.defs;j.appendChild($);var _e=createNS("symbol");_e.setAttribute("id",a),this.replaceInParent(s,a),_e.appendChild(s.layerElement),j.appendChild(_e);var et=createNS("use");et.setAttribute("href","#"+a),$.appendChild(et),s.data.hd=!1,s.show()}o.setMatte(s.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var o=this.filterManager.effectElements[0].p.v,s=this.elem.comp.elements,a=0,$=s.length;a<$;)s[a]&&s[a].data.ind===o&&this.setElementAsMask(this.elem,s[a]),a+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(o,s,a,$){o.setAttribute("x","-100%"),o.setAttribute("y","-100%"),o.setAttribute("width","300%"),o.setAttribute("height","300%"),this.filterManager=s;var j=createNS("feGaussianBlur");j.setAttribute("result",$),o.appendChild(j),this.feGaussianBlur=j}SVGGaussianBlurEffect.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var s=.3,a=this.filterManager.effectElements[0].p.v*s,$=this.filterManager.effectElements[1].p.v,j=$==3?0:a,_e=$==2?0:a;this.feGaussianBlur.setAttribute("stdDeviation",j+" "+_e);var et=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",et)}};function TransformEffect(){}TransformEffect.prototype.init=function(o){this.effectsManager=o,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(o){if(this._opMdf=!1,this._mdf=!1,o||this.effectsManager._mdf){var s=this.effectsManager.effectElements,a=s[0].p.v,$=s[1].p.v,j=s[2].p.v===1,_e=s[3].p.v,et=j?_e:s[4].p.v,tt=s[5].p.v,nt=s[6].p.v,it=s[7].p.v;this.matrix.reset(),this.matrix.translate(-a[0],-a[1],a[2]),this.matrix.scale(et*.01,_e*.01,1),this.matrix.rotate(-it*degToRads),this.matrix.skewFromAxis(-tt*degToRads,(nt+90)*degToRads),this.matrix.translate($[0],$[1],0),this._mdf=!0,this.opacity!==s[8].p.v&&(this.opacity=s[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(o,s){this.init(s)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(o){this.init(o)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})})(lottie$1,lottie$1.exports);var lottieExports=lottie$1.exports;const lottie=getDefaultExportFromCjs(lottieExports);function _iterableToArrayLimit(o,s){var a=o==null?null:typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(a!=null){var $,j,_e,et,tt=[],nt=!0,it=!1;try{if(_e=(a=a.call(o)).next,s!==0)for(;!(nt=($=_e.call(a)).done)&&(tt.push($.value),tt.length!==s);nt=!0);}catch(rt){it=!0,j=rt}finally{try{if(!nt&&a.return!=null&&(et=a.return(),Object(et)!==et))return}finally{if(it)throw j}}return tt}}function ownKeys(o,s){var a=Object.keys(o);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(o);s&&($=$.filter(function(j){return Object.getOwnPropertyDescriptor(o,j).enumerable})),a.push.apply(a,$)}return a}function _objectSpread2(o){for(var s=1;s<arguments.length;s++){var a=arguments[s]!=null?arguments[s]:{};s%2?ownKeys(Object(a),!0).forEach(function($){_defineProperty(o,$,a[$])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(a)):ownKeys(Object(a)).forEach(function($){Object.defineProperty(o,$,Object.getOwnPropertyDescriptor(a,$))})}return o}function _defineProperty(o,s,a){return s=_toPropertyKey(s),s in o?Object.defineProperty(o,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[s]=a,o}function _objectWithoutPropertiesLoose(o,s){if(o==null)return{};var a={},$=Object.keys(o),j,_e;for(_e=0;_e<$.length;_e++)j=$[_e],!(s.indexOf(j)>=0)&&(a[j]=o[j]);return a}function _objectWithoutProperties(o,s){if(o==null)return{};var a=_objectWithoutPropertiesLoose(o,s),$,j;if(Object.getOwnPropertySymbols){var _e=Object.getOwnPropertySymbols(o);for(j=0;j<_e.length;j++)$=_e[j],!(s.indexOf($)>=0)&&Object.prototype.propertyIsEnumerable.call(o,$)&&(a[$]=o[$])}return a}function _slicedToArray(o,s){return _arrayWithHoles(o)||_iterableToArrayLimit(o,s)||_unsupportedIterableToArray(o,s)||_nonIterableRest()}function _arrayWithHoles(o){if(Array.isArray(o))return o}function _unsupportedIterableToArray(o,s){if(o){if(typeof o=="string")return _arrayLikeToArray(o,s);var a=Object.prototype.toString.call(o).slice(8,-1);if(a==="Object"&&o.constructor&&(a=o.constructor.name),a==="Map"||a==="Set")return Array.from(o);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return _arrayLikeToArray(o,s)}}function _arrayLikeToArray(o,s){(s==null||s>o.length)&&(s=o.length);for(var a=0,$=new Array(s);a<s;a++)$[a]=o[a];return $}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toPrimitive(o,s){if(typeof o!="object"||o===null)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var $=a.call(o,s||"default");if(typeof $!="object")return $;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(o)}function _toPropertyKey(o){var s=_toPrimitive(o,"string");return typeof s=="symbol"?s:String(s)}var _excluded$1=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],useLottie=function o(s,a){var $=s.animationData,j=s.loop,_e=s.autoplay,et=s.initialSegment,tt=s.onComplete,nt=s.onLoopComplete,it=s.onEnterFrame,rt=s.onSegmentStart,st=s.onConfigReady,ot=s.onDataReady,at=s.onDataFailed,lt=s.onLoadedImages,ct=s.onDOMLoaded,ht=s.onDestroy;s.lottieRef,s.renderer,s.name,s.assetsPath,s.rendererSettings;var dt=_objectWithoutProperties(s,_excluded$1),ut=reactExports.useState(!1),pt=_slicedToArray(ut,2),ft=pt[0],mt=pt[1],gt=reactExports.useRef(),bt=reactExports.useRef(null),St=function(){var Dt;(Dt=gt.current)===null||Dt===void 0||Dt.play()},Nt=function(){var Dt;(Dt=gt.current)===null||Dt===void 0||Dt.stop()},Rt=function(){var Dt;(Dt=gt.current)===null||Dt===void 0||Dt.pause()},Ft=function(Dt){var Bt;(Bt=gt.current)===null||Bt===void 0||Bt.setSpeed(Dt)},Ot=function(Dt,Bt){var Wt;(Wt=gt.current)===null||Wt===void 0||Wt.goToAndPlay(Dt,Bt)},Ct=function(Dt,Bt){var Wt;(Wt=gt.current)===null||Wt===void 0||Wt.goToAndStop(Dt,Bt)},yt=function(Dt){var Bt;(Bt=gt.current)===null||Bt===void 0||Bt.setDirection(Dt)},Pt=function(Dt,Bt){var Wt;(Wt=gt.current)===null||Wt===void 0||Wt.playSegments(Dt,Bt)},wt=function(Dt){var Bt;(Bt=gt.current)===null||Bt===void 0||Bt.setSubframe(Dt)},Lt=function(Dt){var Bt;return(Bt=gt.current)===null||Bt===void 0?void 0:Bt.getDuration(Dt)},vt=function(){var Dt;(Dt=gt.current)===null||Dt===void 0||Dt.destroy(),gt.current=void 0},xt=function(){var Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Bt;if(bt.current){(Bt=gt.current)===null||Bt===void 0||Bt.destroy();var Wt=_objectSpread2(_objectSpread2(_objectSpread2({},s),Dt),{},{container:bt.current});return gt.current=lottie.loadAnimation(Wt),mt(!!gt.current),function(){var Zt;(Zt=gt.current)===null||Zt===void 0||Zt.destroy(),gt.current=void 0}}};reactExports.useEffect(function(){var Et=xt();return function(){return Et==null?void 0:Et()}},[$,j]),reactExports.useEffect(function(){gt.current&&(gt.current.autoplay=!!_e)},[_e]),reactExports.useEffect(function(){if(gt.current){if(!et){gt.current.resetSegments(!0);return}!Array.isArray(et)||!et.length||((gt.current.currentRawFrame<et[0]||gt.current.currentRawFrame>et[1])&&(gt.current.currentRawFrame=et[0]),gt.current.setSegment(et[0],et[1]))}},[et]),reactExports.useEffect(function(){var Et=[{name:"complete",handler:tt},{name:"loopComplete",handler:nt},{name:"enterFrame",handler:it},{name:"segmentStart",handler:rt},{name:"config_ready",handler:st},{name:"data_ready",handler:ot},{name:"data_failed",handler:at},{name:"loaded_images",handler:lt},{name:"DOMLoaded",handler:ct},{name:"destroy",handler:ht}],Dt=Et.filter(function(Wt){return Wt.handler!=null});if(Dt.length){var Bt=Dt.map(function(Wt){var Zt;return(Zt=gt.current)===null||Zt===void 0||Zt.addEventListener(Wt.name,Wt.handler),function(){var sn;(sn=gt.current)===null||sn===void 0||sn.removeEventListener(Wt.name,Wt.handler)}});return function(){Bt.forEach(function(Wt){return Wt()})}}},[tt,nt,it,rt,st,ot,at,lt,ct,ht]);var Ut=React$1.createElement("div",_objectSpread2({style:a,ref:bt},dt));return{View:Ut,play:St,stop:Nt,pause:Rt,setSpeed:Ft,goToAndStop:Ct,goToAndPlay:Ot,setDirection:yt,playSegments:Pt,setSubframe:wt,getDuration:Lt,destroy:vt,animationContainerRef:bt,animationLoaded:ft,animationItem:gt.current}};function getContainerVisibility(o){var s=o.getBoundingClientRect(),a=s.top,$=s.height,j=window.innerHeight-a,_e=window.innerHeight+$;return j/_e}function getContainerCursorPosition(o,s,a){var $=o.getBoundingClientRect(),j=$.top,_e=$.left,et=$.width,tt=$.height,nt=(s-_e)/et,it=(a-j)/tt;return{x:nt,y:it}}var useInitInteractivity=function o(s){var a=s.wrapperRef,$=s.animationItem,j=s.mode,_e=s.actions;reactExports.useEffect(function(){var et=a.current;if(!(!et||!$||!_e.length)){$.stop();var tt=function(){var rt=null,st=function(){var at=getContainerVisibility(et),lt=_e.find(function(ht){var dt=ht.visibility;return dt&&at>=dt[0]&&at<=dt[1]});if(lt){if(lt.type==="seek"&&lt.visibility&&lt.frames.length===2){var ct=lt.frames[0]+Math.ceil((at-lt.visibility[0])/(lt.visibility[1]-lt.visibility[0])*lt.frames[1]);//! goToAndStop must be relative to the start of the current segment
$.goToAndStop(ct-$.firstFrame-1,!0)}lt.type==="loop"&&(rt===null||rt!==lt.frames||$.isPaused)&&($.playSegments(lt.frames,!0),rt=lt.frames),lt.type==="play"&&$.isPaused&&($.resetSegments(!0),$.play()),lt.type==="stop"&&$.goToAndStop(lt.frames[0]-$.firstFrame-1,!0)}};return document.addEventListener("scroll",st),function(){document.removeEventListener("scroll",st)}},nt=function(){var rt=function(lt,ct){var ht=lt,dt=ct;if(ht!==-1&&dt!==-1){var ut=getContainerCursorPosition(et,ht,dt);ht=ut.x,dt=ut.y}var pt=_e.find(function(gt){var bt=gt.position;return bt&&Array.isArray(bt.x)&&Array.isArray(bt.y)?ht>=bt.x[0]&&ht<=bt.x[1]&&dt>=bt.y[0]&&dt<=bt.y[1]:bt&&!Number.isNaN(bt.x)&&!Number.isNaN(bt.y)?ht===bt.x&&dt===bt.y:!1});if(pt){if(pt.type==="seek"&&pt.position&&Array.isArray(pt.position.x)&&Array.isArray(pt.position.y)&&pt.frames.length===2){var ft=(ht-pt.position.x[0])/(pt.position.x[1]-pt.position.x[0]),mt=(dt-pt.position.y[0])/(pt.position.y[1]-pt.position.y[0]);$.playSegments(pt.frames,!0),$.goToAndStop(Math.ceil((ft+mt)/2*(pt.frames[1]-pt.frames[0])),!0)}pt.type==="loop"&&$.playSegments(pt.frames,!0),pt.type==="play"&&($.isPaused&&$.resetSegments(!1),$.playSegments(pt.frames)),pt.type==="stop"&&$.goToAndStop(pt.frames[0],!0)}},st=function(lt){rt(lt.clientX,lt.clientY)},ot=function(){rt(-1,-1)};return et.addEventListener("mousemove",st),et.addEventListener("mouseout",ot),function(){et.removeEventListener("mousemove",st),et.removeEventListener("mouseout",ot)}};switch(j){case"scroll":return tt();case"cursor":return nt()}}},[j,$])},useLottieInteractivity=function o(s){var a=s.actions,$=s.mode,j=s.lottieObj,_e=j.animationItem,et=j.View,tt=j.animationContainerRef;return useInitInteractivity({actions:a,animationItem:_e,mode:$,wrapperRef:tt}),et},_excluded=["style","interactivity"],Lottie=function o(s){var a,$,j,_e=s.style,et=s.interactivity,tt=_objectWithoutProperties(s,_excluded),nt=useLottie(tt,_e),it=nt.View,rt=nt.play,st=nt.stop,ot=nt.pause,at=nt.setSpeed,lt=nt.goToAndStop,ct=nt.goToAndPlay,ht=nt.setDirection,dt=nt.playSegments,ut=nt.setSubframe,pt=nt.getDuration,ft=nt.destroy,mt=nt.animationContainerRef,gt=nt.animationLoaded,bt=nt.animationItem;return reactExports.useEffect(function(){s.lottieRef&&(s.lottieRef.current={play:rt,stop:st,pause:ot,setSpeed:at,goToAndPlay:ct,goToAndStop:lt,setDirection:ht,playSegments:dt,setSubframe:ut,getDuration:pt,destroy:ft,animationContainerRef:mt,animationLoaded:gt,animationItem:bt})},[(a=s.lottieRef)===null||a===void 0?void 0:a.current]),useLottieInteractivity({lottieObj:{View:it,play:rt,stop:st,pause:ot,setSpeed:at,goToAndStop:lt,goToAndPlay:ct,setDirection:ht,playSegments:dt,setSubframe:ut,getDuration:pt,destroy:ft,animationContainerRef:mt,animationLoaded:gt,animationItem:bt},actions:($=et==null?void 0:et.actions)!==null&&$!==void 0?$:[],mode:(j=et==null?void 0:et.mode)!==null&&j!==void 0?j:"scroll"})};const AnimationLayout=Object.freeze({...dist.Fit}),AnimationAsset=({"data-test":o,src:s,height:a,width:$="100%",className:j,fit:_e=AnimationLayout.Cover,lottie:et})=>{const tt=!!et,nt=!tt&&!!s;return jsxRuntimeExports.jsxs("div",{className:clsx("flex-shrink-0",j),style:{height:a,width:$},children:[nt&&jsxRuntimeExports.jsx(Rive,{src:s,layout:new dist.Layout({fit:_e})}),tt&&jsxRuntimeExports.jsx(Lottie,{animationData:et,loop:!0})]})},EmbeddedDialerContext=reactExports.createContext(void 0),EmbeddedDialerProvider=({children:o})=>{const[s,a]=reactExports.useState(!1),[$,j]=reactExports.useState(!1),[_e,et]=reactExports.useState(!1),[tt,nt]=reactExports.useState({});return reactExports.useEffect(()=>{a($||_e)},[$,_e]),jsxRuntimeExports.jsx(EmbeddedDialerContext.Provider,{value:{isEmbeddedDialer:s,isInSalesforce:$,isInHubspot:_e,queryParams:tt,setIsInSalesforce:j,setIsInHubspot:et,setQueryParams:nt},children:o})},useEmbeddedDialer=()=>{const o=reactExports.useContext(EmbeddedDialerContext);if(o===void 0)throw new Error("useEmbeddedDialer must be used within an EmbeddedDialerProvider");return o},KeyboardContext=reactExports.createContext(void 0),KeyboardProvider=({children:o,minKeyboardHeight:s=300})=>{const[a,$]=reactExports.useState(!1);return reactExports.useEffect(()=>{var _e;const j=()=>{if(!window.visualViewport)return;const et=window.screen.height-s>window.visualViewport.height;$(et)};return(_e=window.visualViewport)==null||_e.addEventListener("resize",j),()=>{var et;(et=window.visualViewport)==null||et.removeEventListener("resize",j)}},[s]),jsxRuntimeExports.jsx(KeyboardContext.Provider,{value:a,children:o})},useDetectKeyboardOpen=()=>{const o=reactExports.useContext(KeyboardContext);if(o===void 0)throw new Error("useKeyboard must be used within a KeyboardProvider");return o},MOBILE_NAV_MENU_PATH_BLACKLIST=["/phone/automations/",PAGE_ROUTES.bookMeeting.email,PAGE_ROUTES.newEmail.path],getDefaultMenuItems=(o,s)=>[{title:"Home",type:AppPageMenuItemType.HOME,url:PAGE_ROUTES.dashboard,iosIconSelected:ICONS.HOME_FILLED,iosIcon:ICONS.HOME_OUTLINED,testId:APP_TEST_IDS.SIDE_MENU.HOME},{title:"Pages",type:AppPageMenuItemType.PAGES,url:"/profile",iosIconSelected:ICONS.PAGES_FILLED,iosIcon:ICONS.PAGES_OUTLINED,testId:APP_TEST_IDS.SIDE_MENU.PAGES},{title:"Phone",type:AppPageMenuItemType.PHONE,url:"/conversations",iosIconSelected:ICONS.PHONE_FILLED,iosIcon:ICONS.PHONE_OUTLINED,rive:s!=="acknowledged"?"assets/rives/icon-phone-ring.riv":void 0,testId:APP_TEST_IDS.SIDE_MENU.INBOX},{title:"Contacts",type:AppPageMenuItemType.CONTACTS,url:"/contacts",iosIconSelected:ICONS.CONTACTS_FILLED,iosIcon:ICONS.CONTACTS_OUTLINED,testId:APP_TEST_IDS.SIDE_MENU.CONTACTS},{title:"Menu",type:AppPageMenuItemType.MENU,url:"/settings-tab",iosIconSelected:menu,iosIcon:menuOutline,testId:APP_TEST_IDS.SIDE_MENU.MENU}],MobileNavMenu=({"data-test":o})=>{const s=useHistory(),a=useDispatch(),$=useSelectCurrentUser(),j=useLocation(),{notificationStatus:_e}=useNotificationCallout("viewed-conversations"),{isEmbeddedDialer:et}=useEmbeddedDialer(),[tt,nt]=reactExports.useState(),it=et?cArray(!($!=null&&$.linq_phone_disabled)&&{title:"Phone",type:AppPageMenuItemType.PHONE,url:"/dialer",iosIconSelected:ICONS.PHONE_FILLED,iosIcon:ICONS.PHONE_OUTLINED,rive:_e!=="acknowledged"?"assets/rives/icon-phone-ring.riv":void 0,testId:APP_TEST_IDS.SIDE_MENU.PHONE},{title:"Messages",type:AppPageMenuItemType.MESSAGES,url:"/conversations",iosIconSelected:ICONS.MESSAGES_FILLED,iosIcon:ICONS.MESSAGES_OUTLINED,showNotificationBubble:$==null?void 0:$.has_unread_messages,testId:APP_TEST_IDS.SIDE_MENU.INBOX},{title:"Contacts",type:AppPageMenuItemType.CONTACTS,url:"/contacts",iosIconSelected:ICONS.CONTACTS_FILLED,iosIcon:ICONS.CONTACTS_OUTLINED,testId:APP_TEST_IDS.SIDE_MENU.CONTACTS}):getDefaultMenuItems($==null?void 0:$.has_unread_messages,_e).filter(ct=>!(ct.type===AppPageMenuItemType.PHONE&&($!=null&&$.linq_phone_disabled)));reactExports.useEffect(()=>{var ht;const ct=(ht=it.find(dt=>dt.url===j.pathname))==null?void 0:ht.type;ct!==void 0&&nt(ct)},[it,j.pathname]);const rt=ct=>{a(track(`clicked ${ct.title} navbar button'`)),s.push(ct.url),localStorage.setItem("lastMobileRoute",ct.url)},st=useDetectKeyboardOpen()&&!et,ot=!!useRouteMatch(["/signup","/setup-profile","/lft-trial-signup"]),at=!st&&!!$&&!ot;return MOBILE_NAV_MENU_PATH_BLACKLIST.some(ct=>j.pathname.startsWith(ct))?null:jsxRuntimeExports.jsx("div",{className:clsx("absolute","bottom-0","w-full","hide-on-camera-active",!at&&"hidden pointer-events-none"),style:{background:"rgba(246, 248, 255, 0.76)",backdropFilter:"blur(4px)",WebkitBackdropFilter:"blur(4px)"},"data-test":o,children:jsxRuntimeExports.jsx("div",{className:clsx("flex","items-center","justify-evenly","bg-white","rounded-full","my-5","h-14","mx-4"),style:{boxShadow:"0px 4px 6px 0px #000F311F"},children:it.map(ct=>jsxRuntimeExports.jsx(ClearButton,{"aria-label":ct.title,onClick:()=>rt(ct),className:clsx("transition-all duration-220 ease-in-out","no-padding","flex","justify-center","items-center","flex-shrink-0","w-[64px]"),"data-test":ct.testId,children:jsxRuntimeExports.jsxs("div",{className:clsx("relative","flex","flex-col","justify-center","items-center"),children:[ct.rive?jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(AnimationAsset,{height:"24px",width:"24px",src:ct.rive})}):jsxRuntimeExports.jsxs("div",{className:"relative",children:[ct.showNotificationBubble&&jsxRuntimeExports.jsx("span",{className:clsx("absolute","-top-1","-right-1","rounded-full","w-3","h-3","bg-nonary","z-10")}),jsxRuntimeExports.jsx(IonIcon,{icon:tt===ct.type&&ct.iosIconSelected?ct.iosIconSelected:ct.iosIcon,className:clsx(tt===ct.type?"text-primary":"text-gray-400","text-2xl","transition-all duration-220 ease-in-out")},tt===ct.type&&ct.iosIconSelected?"selected":"unselected")]}),jsxRuntimeExports.jsx(IonLabel,{style:{fontSize:"0.75rem",paddingTop:"1px",letterSpacing:"0px"},className:clsx("text-caption-small","font-medium","text-gray-400","uppercase","w-full"),children:jsxRuntimeExports.jsx(AnimatedReveal,{centered:!0,show:tt===ct.type,revealDirection:"top-down",children:ct.title})})]})},ct.title))})})},HeadScripts=reactExports.lazy(()=>__vitePreload(()=>import("./head-scripts-C7rsMMga.js"),__vite__mapDeps([501,187,101]))),ReEngageLinqOneSubscriptionModal=reactExports.lazy(()=>__vitePreload(()=>import("./re-engage-linq-one-subscription-modal-D4-CulTW.js"),__vite__mapDeps([502,73,55]))),EXTRA_MARGIN_PATH_BLACKLIST=["/signup","/welcome","/setup-profile","/auth-page","/add-photo","/about-me","/lft-trial-signup","/phone/automations/",PAGE_ROUTES.bookMeeting.email,PAGE_ROUTES.newEmail.path],routes$1=LinqAppRoutes(!1),MobileAppView=()=>{var ct;const o=useDispatch(),s=useSelectCurrentUser(),a=useLocation(),$=useDetectKeyboardOpen(),j=(ct=s==null?void 0:s.organization)==null?void 0:ct.id,{showModal:_e,orgSubscriptionStatus:et,orgSubscription:tt}=useShowOrganizationSubscriptionMessageModal(j),{data:nt}=usePlatform(),{subscriptionStatus:it,subscription:rt}=useOrganizationSubscriptionInfo(),{notificationStatus:st}=useNotificationCallout("re-engage-linq-one-subscription-modal"),ot=rt!=null&&rt.updated_at?new Date(rt.updated_at)<new Date(new Date().setMonth(new Date().getMonth()-1)):!1,at=it===OrganizationSubscriptionStatus.Canceled&&ot&&st!==ACKNOWLEDGED&&nt!==Platform.IOS;return useTrackPage(),reactExports.useEffect(()=>{!_e||!tt||!j||(o(track("show suspended organization modal",{subscriptionStatus:et})),o(showAlertModal({wrappedContent:jsxRuntimeExports.jsx(OrganizationSubscriptionMessageModal,{subscription:tt,orgId:j,isMobile:!0}),disableBackdropDismiss:!0})))},[_e,tt,o,et,j,s]),reactExports.useEffect(()=>{const ht=a.pathname,dt=EXTRA_MARGIN_PATH_BLACKLIST.some(ft=>ht.startsWith(ft)),ut=!$&&!dt&&!!s,pt=document.getElementById("router-outlet");if(pt){if(ut)return pt.classList.add("mb-24");pt.classList.remove("mb-24")}},[$,a.pathname,s]),reactExports.useEffect(()=>{!at||!nt||(o(track("show re-engage linq one subscription modal",{subscriptionStatus:it})),o(showAlertModal({wrappedContent:jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(LoadingIndicator,{}),children:jsxRuntimeExports.jsx(ReEngageLinqOneSubscriptionModal,{platform:nt})})})))},[o,it,at,nt]),reactExports.useMemo(()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsx(HeadScripts,{})}),jsxRuntimeExports.jsxs("div",{className:clsx("non-admin-view","ion-page"),children:[jsxRuntimeExports.jsx(IonRouterOutlet,{className:"md:mb-0",id:"router-outlet",children:jsxRuntimeExports.jsx(Switch,{children:routes$1.map(ht=>jsxRuntimeExports.jsx(Route,{path:ht.path,component:ht.component,exact:ht.exact,render:ht.render},ht.path[0]||ht.path))})}),jsxRuntimeExports.jsx(MobileNavMenu,{})]}),jsxRuntimeExports.jsx(DeepLinkingHandlerMobile,{})]}),[])},useIsIntercomEnabled=()=>{const[o,s]=reactExports.useState(!1),a=useSelectCurrentUser(),{isMobile:$}=useLayoutV2(),{isWeb:j}=usePlatform();return reactExports.useEffect(()=>{const _e=!!(a!=null&&a.organization)&&!$&&!ENV.PLAYWRIGHT&&j;s(_e)},[a,$,j]),o};function getIonContentScrollElement(o){const s=document.getElementById(o),a=s==null?void 0:s.shadowRoot;return a==null?void 0:a.querySelector(".inner-scroll")}const ScrollRestorationContext=reactExports.createContext(void 0);function useScrollRestoration(){const o=reactExports.useContext(ScrollRestorationContext);if(!o)throw new Error("useScrollRestoration must be used within a ScrollRestorationProvider");return o}function ScrollRestorationProvider({children:o}){const[s,a]=reactExports.useState(0),_e={saveIonContentScrollPosition:et=>{var nt;const tt=((nt=getIonContentScrollElement(et))==null?void 0:nt.scrollTop)||s;a(tt)},scrollPosition:s,saveScrollPosition:et=>{a(et)}};return jsxRuntimeExports.jsx(ScrollRestorationContext.Provider,{value:_e,children:o})}function isBefore(o,s){requiredArgs(2,arguments);var a=toDate(o),$=toDate(s);return a.getTime()<$.getTime()}const useUser=(o,s)=>{const a=useApiRequest(),$=async()=>(await a({url:`${BASE_API_URL}/api/v1/users/${o}`,apiMethod:API_METHODS.GET})).user;return useQuery(userKeys.detail(o||""),$,{enabled:!!o,...s&&s})},stopUserPolling=()=>({type:POLL_USER_TYPES.STOP_USER_POLLING}),POLL_INTERVAL=5e3,usePollUser=()=>{const o=useDispatch(),s=useSelectPollUser(),a=useSelectCurrentUser(),{refetch:$}=useUser(a==null?void 0:a.uuid,{enabled:!1}),j=reactExports.useCallback(async()=>{if(!s.polling)return;s.timeout!==null&&isBefore(s.timeout,new Date)&&o(stopUserPolling());const{data:_e}=await $();_e!=null&&_e.is_pro&&(o(setCurrentUser(_e)),o(stopUserPolling()))},[s,$,o]);useInterval(j,s.polling?POLL_INTERVAL:null)},Poller=({"data-test":o})=>(usePollUser(),null),LoggedInAsDisplay=()=>{const o=useDispatch(),s=useSelector(st=>{var ot;return(ot=st.modals.loggedInAsDisplay)==null?void 0:ot.show}),a=useSelector(st=>st.user.currentUser),[$,j]=reactExports.useState("0"),[_e,et]=reactExports.useState(null),tt=()=>{o(logOutCurrentUser())},nt=()=>{$?(et("0"),j(null)):(j("0"),et(null))},it=jsxRuntimeExports.jsx("small",{style:{textDecoration:"underline",cursor:"pointer"},onClick:tt,children:"log out"}),rt=jsxRuntimeExports.jsx("small",{style:{textDecoration:"underline",cursor:"pointer"},onClick:nt,children:"move this"});return s?jsxRuntimeExports.jsxs("div",{style:{left:$,right:_e,position:"fixed",background:"hwb(8deg 0% 0% / 75%)",borderRadius:"10px",color:"white",padding:"10px",margin:"5px"},children:[jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx(IonIcon,{icon:warningOutline})," Logged in as"," ",jsxRuntimeExports.jsx("a",{style:{color:"white"},href:`https://hubble.linqapp.com/user/${a.uuid}`,children:a==null?void 0:a.name})]}),_e?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(IonIcon,{icon:arrowBackOutline}),rt,jsxRuntimeExports.jsx("small",{children:" or "}),it]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[it,jsxRuntimeExports.jsx("small",{children:" or "}),rt,jsxRuntimeExports.jsx(IonIcon,{icon:arrowForwardOutline})]})]}):null};function setVoipStateAction(o){return{type:VOIP_ACTIONS.SET_VOIP_STATE,payload:o}}const useVoipState=()=>{const o=useDispatch(),s=useSelector($=>$.voip),a=reactExports.useCallback($=>{o(setVoipStateAction($))},[o]);return{voipState:s,setVoipState:a}},CallInProgressFab=reactExports.lazy(()=>__vitePreload(()=>import("./call-in-progress-fab-DVEDljD5.js"),__vite__mapDeps([503,118,62,504,73,125,102,126]))),CallInProgressSheet=reactExports.lazy(()=>__vitePreload(()=>import("./call-in-progress-sheet-DiW9mOyy.js"),__vite__mapDeps([505,1,118,62,504,73,122,180,181,182,183,20,21,78,184,185,60,186,187,101,188,121,189,190,59,191,192,193,194,195,196,197,146,63,198,199,200,70,201,51,7,52,10,53,54,55,13,48,49,41,50,36,40,42,9,43,44,45,46,47,56,57,124,125,102,126,153,138,202,39]))),CallInProgressController=()=>{const{voipState:{isCallInProgress:o,isUiMinimized:s},setVoipState:a}=useVoipState(),$=o&&!s,j=o&&s,{voipState:{islandPosition:_e}}=useVoipState();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsx(BottomSheet,{content:jsxRuntimeExports.jsx(CallInProgressSheet,{onHide:()=>{a({isUiMinimized:!0})}}),onClose:()=>a({isUiMinimized:!0}),show:$,backdrop:!0})}),j&&jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsx("div",{className:clsx("fixed",_e==="top"?"top-[40px]":"bottom-[104px]","w-full","w-screen","z-20"),children:jsxRuntimeExports.jsx(CallInProgressFab,{onClick:()=>a({isUiMinimized:!1})})})})]})},useIsAppClip=()=>{const{data:o}=useQuery("isAppClip",runningAppClip);return o};function useAllowLinqPhone(){const o=useIsAppClip(),{isIOS:s,isAndroid:a}=usePlatform(),{isLinqOne:$}=useOrganizationSubscriptionInfo();return reactExports.useMemo(()=>!(ENV.PLAYWRIGHT||o!==!1||!$||!(s||a||ENV.ALLOW_VOIP_ON_WEB)),[s,o,a,$])}const routes=LinqAppRoutes(!1),EmptyAppView=()=>{const o=useDispatch(),s=useSelectCurrentUser(),a=useSelectApiToken();return reactExports.useEffect(()=>{(a===null||s===null)&&(o(setRedirectPathAfterLogin(`${window.location.pathname}`)),window.location.pathname="/welcome")},[s,a,o]),reactExports.useMemo(()=>jsxRuntimeExports.jsx("div",{className:clsx("non-admin-view","ion-page"),children:jsxRuntimeExports.jsx(IonRouterOutlet,{className:"md:mb-0",id:"router-outlet",children:jsxRuntimeExports.jsx(Switch,{children:routes.map($=>jsxRuntimeExports.jsx(Route,{path:$.path,component:$.component,exact:$.exact,render:$.render},$.path[0]||$.path))})})}),[])},redirectToAdminDashboard=o=>(o||(window.location.pathname=PAGE_ROUTES.dashboard),window.location.pathname=`/admin/${o==null?void 0:o.id}/dashboard`,null);var ConsoleApiName={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},globalConsole=console,originalConsoleMethods={};Object.keys(ConsoleApiName).forEach(function(o){originalConsoleMethods[o]=globalConsole[o]});var PREFIX="Datadog Browser SDK:",display={debug:originalConsoleMethods.debug.bind(globalConsole,PREFIX),log:originalConsoleMethods.log.bind(globalConsole,PREFIX),info:originalConsoleMethods.info.bind(globalConsole,PREFIX),warn:originalConsoleMethods.warn.bind(globalConsole,PREFIX),error:originalConsoleMethods.error.bind(globalConsole,PREFIX)},DOCS_ORIGIN="https://docs.datadoghq.com",DOCS_TROUBLESHOOTING="".concat(DOCS_ORIGIN,"/real_user_monitoring/browser/troubleshooting"),MORE_DETAILS="More details:";function catchUserErrors(o,s){return function(){for(var a=[],$=0;$<arguments.length;$++)a[$]=arguments[$];try{return o.apply(void 0,a)}catch(j){display.error(s,j)}}}function performDraw(o){return o!==0&&Math.random()*100<=o}function round(o,s){return+o.toFixed(s)}function isPercentage(o){return isNumber(o)&&o>=0&&o<=100}function isNumber(o){return typeof o=="number"}var ONE_SECOND=1e3,ONE_MINUTE=60*ONE_SECOND,ONE_HOUR=60*ONE_MINUTE,ONE_DAY=24*ONE_HOUR,ONE_YEAR=365*ONE_DAY;function relativeToClocks(o){return{relative:o,timeStamp:getCorrectedTimeStamp(o)}}function timeStampToClocks(o){return{relative:getRelativeTime(o),timeStamp:o}}function getCorrectedTimeStamp(o){var s=dateNow()-performance.now();return s>getNavigationStart()?Math.round(addDuration(s,o)):getTimeStamp(o)}function currentDrift(){return Math.round(dateNow()-addDuration(getNavigationStart(),performance.now()))}function toServerDuration(o){return isNumber(o)?round(o*1e6,0):o}function dateNow(){return new Date().getTime()}function timeStampNow(){return dateNow()}function relativeNow(){return performance.now()}function clocksNow(){return{relative:relativeNow(),timeStamp:timeStampNow()}}function clocksOrigin(){return{relative:0,timeStamp:getNavigationStart()}}function elapsed(o,s){return s-o}function addDuration(o,s){return o+s}function getRelativeTime(o){return o-getNavigationStart()}function getTimeStamp(o){return Math.round(addDuration(getNavigationStart(),o))}function looksLikeRelativeTime(o){return o<ONE_YEAR}var navigationStart;function getNavigationStart(){return navigationStart===void 0&&(navigationStart=performance.timing.navigationStart),navigationStart}var ONE_KIBI_BYTE=1024,ONE_MEBI_BYTE=1024*ONE_KIBI_BYTE,HAS_MULTI_BYTES_CHARACTERS=/[^\u0000-\u007F]/;function computeBytesCount(o){return HAS_MULTI_BYTES_CHARACTERS.test(o)?window.TextEncoder!==void 0?new TextEncoder().encode(o).length:new Blob([o]).size:o.length}function concatBuffers(o){for(var s=o.reduce(function(tt,nt){return tt+nt.length},0),a=new Uint8Array(s),$=0,j=0,_e=o;j<_e.length;j++){var et=_e[j];a.set(et,$),$+=et.length}return a}function includes(o,s){return o.indexOf(s)!==-1}function arrayFrom(o){if(Array.from)return Array.from(o);var s=[];if(o instanceof Set)o.forEach(function($){return s.push($)});else for(var a=0;a<o.length;a++)s.push(o[a]);return s}function find(o,s){for(var a=0;a<o.length;a+=1){var $=o[a];if(s($,a))return $}}function findLast(o,s){for(var a=o.length-1;a>=0;a-=1){var $=o[a];if(s($,a,o))return $}}function forEach(o,s){Array.prototype.forEach.call(o,s)}function objectValues(o){return Object.keys(o).map(function(s){return o[s]})}function objectEntries(o){return Object.keys(o).map(function(s){return[s,o[s]]})}function startsWith(o,s){return o.slice(0,s.length)===s}function endsWith(o,s){return o.slice(-s.length)===s}function assign(o){for(var s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];return s.forEach(function($){for(var j in $)Object.prototype.hasOwnProperty.call($,j)&&(o[j]=$[j])}),o}function shallowClone(o){return assign({},o)}function objectHasValue(o,s){return Object.keys(o).some(function(a){return o[a]===s})}function isEmptyObject(o){return Object.keys(o).length===0}function mapValues(o,s){for(var a={},$=0,j=Object.keys(o);$<j.length;$++){var _e=j[$];a[_e]=s(o[_e])}return a}function getGlobalObject(){if(typeof globalThis=="object")return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var o=_dd_temp_;return delete Object.prototype._dd_temp_,typeof o!="object"&&(typeof self=="object"?o=self:typeof window=="object"?o=window:o={}),o}function getZoneJsOriginalValue(o,s){var a=getGlobalObject(),$;return a.Zone&&typeof a.Zone.__symbol__=="function"&&($=o[a.Zone.__symbol__(s)]),$||($=o[s]),$}var __spreadArray=function(o,s,a){if(a||arguments.length===2)for(var $=0,j=s.length,_e;$<j;$++)(_e||!($ in s))&&(_e||(_e=Array.prototype.slice.call(s,0,$)),_e[$]=s[$]);return o.concat(_e||Array.prototype.slice.call(s))},onMonitorErrorCollected,debugMode=!1;function startMonitorErrorCollection(o){onMonitorErrorCollected=o}function setDebugMode(o){debugMode=o}function monitor(o){return function(){return callMonitored(o,this,arguments)}}function callMonitored(o,s,a){try{return o.apply(s,a)}catch($){if(displayIfDebugEnabled($),onMonitorErrorCollected)try{onMonitorErrorCollected($)}catch(j){displayIfDebugEnabled(j)}}}function displayIfDebugEnabled(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];debugMode&&display.error.apply(display,__spreadArray(["[MONITOR]"],o,!1))}function setTimeout$1(o,s){return getZoneJsOriginalValue(getGlobalObject(),"setTimeout")(monitor(o),s)}function clearTimeout$1(o){getZoneJsOriginalValue(getGlobalObject(),"clearTimeout")(o)}function setInterval$1(o,s){return getZoneJsOriginalValue(getGlobalObject(),"setInterval")(monitor(o),s)}function clearInterval$1(o){getZoneJsOriginalValue(getGlobalObject(),"clearInterval")(o)}var Observable=function(){function o(s){this.onFirstSubscribe=s,this.observers=[]}return o.prototype.subscribe=function(s){var a=this;return this.observers.push(s),this.observers.length===1&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{unsubscribe:function(){a.observers=a.observers.filter(function($){return s!==$}),!a.observers.length&&a.onLastUnsubscribe&&a.onLastUnsubscribe()}}},o.prototype.notify=function(s){this.observers.forEach(function(a){return a(s)})},o}();function mergeObservables(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return new Observable(function(a){var $=o.map(function(j){return j.subscribe(function(_e){return a.notify(_e)})});return function(){return $.forEach(function(j){return j.unsubscribe()})}})}function throttle(o,s,a){var $=a&&a.leading!==void 0?a.leading:!0,j=a&&a.trailing!==void 0?a.trailing:!0,_e=!1,et,tt;return{throttled:function(){for(var nt=[],it=0;it<arguments.length;it++)nt[it]=arguments[it];if(_e){et=nt;return}$?o.apply(void 0,nt):et=nt,_e=!0,tt=setTimeout$1(function(){j&&et&&o.apply(void 0,et),_e=!1,et=void 0},s)},cancel:function(){clearTimeout$1(tt),_e=!1,et=void 0}}}function noop(){}function generateUUID(o){return o?(parseInt(o,10)^Math.random()*16>>parseInt(o,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,generateUUID)}var COMMA_SEPARATED_KEY_VALUE=/([\w-]+)\s*=\s*([^;]+)/g;function findCommaSeparatedValue(o,s){for(COMMA_SEPARATED_KEY_VALUE.lastIndex=0;;){var a=COMMA_SEPARATED_KEY_VALUE.exec(o);if(a){if(a[1]===s)return a[2]}else break}}function findCommaSeparatedValues(o){var s=new Map;for(COMMA_SEPARATED_KEY_VALUE.lastIndex=0;;){var a=COMMA_SEPARATED_KEY_VALUE.exec(o);if(a)s.set(a[1],a[2]);else break}return s}function safeTruncate(o,s,a){a===void 0&&(a="");var $=o.charCodeAt(s-1),j=$>=55296&&$<=56319,_e=j?s+1:s;return o.length<=_e?o:"".concat(o.slice(0,_e)).concat(a)}function isIE(){return detectBrowserCached()===0}function isChromium(){return detectBrowserCached()===1}function isSafari(){return detectBrowserCached()===2}var browserCache;function detectBrowserCached(){return browserCache??(browserCache=detectBrowser())}function detectBrowser(o){var s;o===void 0&&(o=window);var a=o.navigator.userAgent;return o.chrome||/HeadlessChrome/.test(a)?1:((s=o.navigator.vendor)===null||s===void 0?void 0:s.indexOf("Apple"))===0||/safari/i.test(a)&&!/chrome|android/i.test(a)?2:o.document.documentMode?0:3}function setCookie(o,s,a,$){var j=new Date;j.setTime(j.getTime()+a);var _e="expires=".concat(j.toUTCString()),et=$&&$.crossSite?"none":"strict",tt=$&&$.domain?";domain=".concat($.domain):"",nt=$&&$.secure?";secure":"",it=$&&$.partitioned?";partitioned":"";document.cookie="".concat(o,"=").concat(s,";").concat(_e,";path=/;samesite=").concat(et).concat(tt).concat(nt).concat(it)}function getCookie(o){return findCommaSeparatedValue(document.cookie,o)}var initCookieParsed;function getInitCookie(o){return initCookieParsed||(initCookieParsed=findCommaSeparatedValues(document.cookie)),initCookieParsed.get(o)}function deleteCookie(o,s){setCookie(o,"",0,s)}function areCookiesAuthorized(o){if(document.cookie===void 0||document.cookie===null)return!1;try{var s="dd_cookie_test_".concat(generateUUID()),a="test";setCookie(s,a,ONE_MINUTE,o);var $=getCookie(s)===a;return deleteCookie(s,o),$}catch(j){return display.error(j),!1}}var getCurrentSiteCache;function getCurrentSite(){if(getCurrentSiteCache===void 0){for(var o="dd_site_test_".concat(generateUUID()),s="test",a=window.location.hostname.split("."),$=a.pop();a.length&&!getCookie(o);)$="".concat(a.pop(),".").concat($),setCookie(o,s,ONE_SECOND,{domain:$});deleteCookie(o,{domain:$}),getCurrentSiteCache=$}return getCurrentSiteCache}var SESSION_STORE_KEY="_dd_s",SESSION_TIME_OUT_DELAY=4*ONE_HOUR,SESSION_EXPIRATION_DELAY=15*ONE_MINUTE,SESSION_ENTRY_REGEXP=/^([a-zA-Z]+)=([a-z0-9-]+)$/,SESSION_ENTRY_SEPARATOR="&",EXPIRED="1";function getExpiredSessionState(){return{isExpired:EXPIRED}}function isSessionInNotStartedState(o){return isEmptyObject(o)}function isSessionStarted(o){return!isSessionInNotStartedState(o)}function isSessionInExpiredState(o){return o.isExpired!==void 0||!isActiveSession(o)}function isActiveSession(o){return(o.created===void 0||dateNow()-Number(o.created)<SESSION_TIME_OUT_DELAY)&&(o.expire===void 0||dateNow()<Number(o.expire))}function expandSessionState(o){o.expire=String(dateNow()+SESSION_EXPIRATION_DELAY)}function toSessionString(o){return objectEntries(o).map(function(s){var a=s[0],$=s[1];return"".concat(a,"=").concat($)}).join(SESSION_ENTRY_SEPARATOR)}function toSessionState(o){var s={};return isValidSessionString(o)&&o.split(SESSION_ENTRY_SEPARATOR).forEach(function(a){var $=SESSION_ENTRY_REGEXP.exec(a);if($!==null){var j=$[1],_e=$[2];s[j]=_e}}),s}function isValidSessionString(o){return!!o&&(o.indexOf(SESSION_ENTRY_SEPARATOR)!==-1||SESSION_ENTRY_REGEXP.test(o))}var OLD_SESSION_COOKIE_NAME="_dd",OLD_RUM_COOKIE_NAME="_dd_r",OLD_LOGS_COOKIE_NAME="_dd_l",RUM_SESSION_KEY$1="rum",LOGS_SESSION_KEY="logs";function tryOldCookiesMigration(o){var s=getInitCookie(SESSION_STORE_KEY);if(!s){var a=getInitCookie(OLD_SESSION_COOKIE_NAME),$=getInitCookie(OLD_RUM_COOKIE_NAME),j=getInitCookie(OLD_LOGS_COOKIE_NAME),_e={};a&&(_e.id=a),j&&/^[01]$/.test(j)&&(_e[LOGS_SESSION_KEY]=j),$&&/^[012]$/.test($)&&(_e[RUM_SESSION_KEY$1]=$),isSessionStarted(_e)&&(expandSessionState(_e),o.persistSession(_e))}}function selectCookieStrategy(o){var s=buildCookieOptions(o);return areCookiesAuthorized(s)?{type:"Cookie",cookieOptions:s}:void 0}function initCookieStrategy(o){var s={isLockEnabled:isChromium(),persistSession:persistSessionCookie(o),retrieveSession:retrieveSessionCookie,expireSession:function(){return expireSessionCookie(o)}};return tryOldCookiesMigration(s),s}function persistSessionCookie(o){return function(s){setCookie(SESSION_STORE_KEY,toSessionString(s),SESSION_EXPIRATION_DELAY,o)}}function expireSessionCookie(o){setCookie(SESSION_STORE_KEY,toSessionString(getExpiredSessionState()),SESSION_TIME_OUT_DELAY,o)}function retrieveSessionCookie(){var o=getCookie(SESSION_STORE_KEY);return toSessionState(o)}function buildCookieOptions(o){var s={};return s.secure=!!o.useSecureSessionCookie||!!o.usePartitionedCrossSiteSessionCookie||!!o.useCrossSiteSessionCookie,s.crossSite=!!o.usePartitionedCrossSiteSessionCookie||!!o.useCrossSiteSessionCookie,s.partitioned=!!o.usePartitionedCrossSiteSessionCookie,o.trackSessionAcrossSubdomains&&(s.domain=getCurrentSite()),s}var LOCAL_STORAGE_TEST_KEY="_dd_test_";function selectLocalStorageStrategy(){try{var o=generateUUID(),s="".concat(LOCAL_STORAGE_TEST_KEY).concat(o);localStorage.setItem(s,o);var a=localStorage.getItem(s);return localStorage.removeItem(s),o===a?{type:"LocalStorage"}:void 0}catch{return}}function initLocalStorageStrategy(){return{isLockEnabled:!1,persistSession:persistInLocalStorage,retrieveSession:retrieveSessionFromLocalStorage,expireSession:expireSessionFromLocalStorage}}function persistInLocalStorage(o){localStorage.setItem(SESSION_STORE_KEY,toSessionString(o))}function retrieveSessionFromLocalStorage(){var o=localStorage.getItem(SESSION_STORE_KEY);return toSessionState(o)}function expireSessionFromLocalStorage(){persistInLocalStorage(getExpiredSessionState())}var LOCK_RETRY_DELAY=10,LOCK_MAX_TRIES=100,bufferedOperations=[],ongoingOperations;function processSessionStoreOperations(o,s,a){var $;a===void 0&&(a=0);var j=s.isLockEnabled,_e=s.persistSession,et=s.expireSession,tt=function(ot){return _e(assign({},ot,{lock:it}))},nt=function(){var ot=s.retrieveSession(),at=ot.lock;return ot.lock&&delete ot.lock,{session:ot,lock:at}};if(ongoingOperations||(ongoingOperations=o),o!==ongoingOperations){bufferedOperations.push(o);return}if(j&&a>=LOCK_MAX_TRIES){next(s);return}var it,rt=nt();if(j){if(rt.lock){retryLater(o,s,a);return}if(it=generateUUID(),tt(rt.session),rt=nt(),rt.lock!==it){retryLater(o,s,a);return}}var st=o.process(rt.session);if(j&&(rt=nt(),rt.lock!==it)){retryLater(o,s,a);return}if(st&&(isSessionInExpiredState(st)?et():(expandSessionState(st),j?tt(st):_e(st))),j&&!(st&&isSessionInExpiredState(st))){if(rt=nt(),rt.lock!==it){retryLater(o,s,a);return}_e(rt.session),st=rt.session}($=o.after)===null||$===void 0||$.call(o,st||rt.session),next(s)}function retryLater(o,s,a){setTimeout$1(function(){processSessionStoreOperations(o,s,a+1)},LOCK_RETRY_DELAY)}function next(o){ongoingOperations=void 0;var s=bufferedOperations.shift();s&&processSessionStoreOperations(s,o)}var STORAGE_POLL_DELAY=ONE_SECOND;function selectSessionStoreStrategyType(o){var s=selectCookieStrategy(o);return!s&&o.allowFallbackToLocalStorage&&(s=selectLocalStorageStrategy()),s}function startSessionStore(o,s,a){var $=new Observable,j=new Observable,_e=new Observable,et=o.type==="Cookie"?initCookieStrategy(o.cookieOptions):initLocalStorageStrategy(),tt=et.expireSession,nt=setInterval$1(lt,STORAGE_POLL_DELAY),it;ht();var rt=throttle(function(){processSessionStoreOperations({process:function(bt){if(!isSessionInNotStartedState(bt)){var St=ct(bt);return dt(St),St}},after:function(bt){isSessionStarted(bt)&&!ut()&&mt(bt),it=bt}},et)},STORAGE_POLL_DELAY),st=rt.throttled,ot=rt.cancel;function at(){processSessionStoreOperations({process:function(bt){return ut()?ct(bt):void 0}},et)}function lt(){processSessionStoreOperations({process:function(bt){return isSessionInExpiredState(bt)?getExpiredSessionState():void 0},after:ct},et)}function ct(bt){return isSessionInExpiredState(bt)&&(bt=getExpiredSessionState()),ut()&&(pt(bt)?ft():(_e.notify({previousState:it,newState:bt}),it=bt)),bt}function ht(){processSessionStoreOperations({process:function(bt){if(isSessionInNotStartedState(bt))return getExpiredSessionState()},after:function(bt){it=bt}},et)}function dt(bt){if(isSessionInNotStartedState(bt))return!1;var St=a(bt[s]),Nt=St.trackingType,Rt=St.isTracked;bt[s]=Nt,delete bt.isExpired,Rt&&!bt.id&&(bt.id=generateUUID(),bt.created=String(dateNow()))}function ut(){return it[s]!==void 0}function pt(bt){return it.id!==bt.id||it[s]!==bt[s]}function ft(){it=getExpiredSessionState(),j.notify()}function mt(bt){it=bt,$.notify()}function gt(bt){processSessionStoreOperations({process:function(St){return assign({},St,bt)},after:ct},et)}return{expandOrRenewSession:st,expandSession:at,getSession:function(){return it},renewObservable:$,expireObservable:j,sessionStateUpdateObservable:_e,restartSession:ht,expire:function(){ot(),tt(),ct(getExpiredSessionState())},stop:function(){clearInterval$1(nt)},updateSessionState:gt}}var TrackingConsent={GRANTED:"granted",NOT_GRANTED:"not-granted"};function createTrackingConsentState(o){var s=new Observable;return{tryToInit:function(a){o||(o=a)},update:function(a){o=a,s.notify()},isGranted:function(){return o===TrackingConsent.GRANTED},observable:s}}function jsonStringify(o,s,a){if(typeof o!="object"||o===null)return JSON.stringify(o);var $=detachToJsonMethod(Object.prototype),j=detachToJsonMethod(Array.prototype),_e=detachToJsonMethod(Object.getPrototypeOf(o)),et=detachToJsonMethod(o);try{return JSON.stringify(o,s,a)}catch{return"<error: unable to serialize object>"}finally{$(),j(),_e(),et()}}function detachToJsonMethod(o){var s=o,a=s.toJSON;return a?(delete s.toJSON,function(){s.toJSON=a}):noop}function normalizeUrl(o){return buildUrl(o,location.href).href}function isValidUrl(o){try{return!!buildUrl(o)}catch{return!1}}function getPathName(o){var s=buildUrl(o).pathname;return s[0]==="/"?s:"/".concat(s)}function buildUrl(o,s){var a=getSupportedUrl();if(a)try{return s!==void 0?new a(o,s):new a(o)}catch(et){throw new Error("Failed to construct URL: ".concat(String(et)," ").concat(jsonStringify({url:o,base:s})))}if(s===void 0&&!/:/.test(o))throw new Error("Invalid URL: '".concat(o,"'"));var $=document,j=$.createElement("a");if(s!==void 0){$=document.implementation.createHTMLDocument("");var _e=$.createElement("base");_e.href=s,$.head.appendChild(_e),$.body.appendChild(j)}return j.href=o,j}var originalURL=URL,isURLSupported;function getSupportedUrl(){if(isURLSupported===void 0)try{var o=new originalURL("http://test/path");isURLSupported=o.href==="http://test/path"}catch{isURLSupported=!1}return isURLSupported?originalURL:void 0}var INTAKE_SITE_STAGING="datad0g.com",INTAKE_SITE_FED_STAGING="dd0g-gov.com",INTAKE_SITE_US1="datadoghq.com",INTAKE_SITE_EU1="datadoghq.eu",INTAKE_SITE_US1_FED="ddog-gov.com",PCI_INTAKE_HOST_US1="pci.browser-intake-datadoghq.com";function createEndpointBuilder(o,s,a){var $=createEndpointUrlWithParametersBuilder(o,s);return{build:function(j,_e){var et=buildEndpointParameters(o,s,a,j,_e);return $(et)},urlPrefix:$(""),trackType:s}}function createEndpointUrlWithParametersBuilder(o,s){var a="/api/v2/".concat(s),$=o.proxy;if(typeof $=="string"){var j=normalizeUrl($);return function(et){return"".concat(j,"?ddforward=").concat(encodeURIComponent("".concat(a,"?").concat(et)))}}if(typeof $=="function")return function(et){return $({path:a,parameters:et})};var _e=buildEndpointHost(s,o);return function(et){return"https://".concat(_e).concat(a,"?").concat(et)}}function buildEndpointHost(o,s){var a=s.site,$=a===void 0?INTAKE_SITE_US1:a,j=s.internalAnalyticsSubdomain;if(o==="logs"&&s.usePciIntake&&$===INTAKE_SITE_US1)return PCI_INTAKE_HOST_US1;if(j&&$===INTAKE_SITE_US1)return"".concat(j,".").concat(INTAKE_SITE_US1);if($===INTAKE_SITE_FED_STAGING)return"http-intake.logs.".concat($);var _e=$.split("."),et=_e.pop();return"browser-intake-".concat(_e.join("-"),".").concat(et)}function buildEndpointParameters(o,s,a,$,j){var _e=o.clientToken,et=o.internalAnalyticsSubdomain,tt=j.retry,nt=j.encoding,it=["sdk_version:".concat("5.29.1"),"api:".concat($)].concat(a);tt&&it.push("retry_count:".concat(tt.count),"retry_after:".concat(tt.lastFailureStatus));var rt=["ddsource=browser","ddtags=".concat(encodeURIComponent(it.join(","))),"dd-api-key=".concat(_e),"dd-evp-origin-version=".concat(encodeURIComponent("5.29.1")),"dd-evp-origin=browser","dd-request-id=".concat(generateUUID())];return nt&&rt.push("dd-evp-encoding=".concat(nt)),s==="rum"&&rt.push("batch_time=".concat(timeStampNow())),et&&rt.reverse(),rt.join("&")}var TAG_SIZE_LIMIT=200;function buildTags(o){var s=o.env,a=o.service,$=o.version,j=o.datacenter,_e=[];return s&&_e.push(buildTag("env",s)),a&&_e.push(buildTag("service",a)),$&&_e.push(buildTag("version",$)),j&&_e.push(buildTag("datacenter",j)),_e}function buildTag(o,s){var a=TAG_SIZE_LIMIT-o.length-1;(s.length>a||hasForbiddenCharacters(s))&&display.warn("".concat(o," value doesn't meet tag requirements and will be sanitized. ").concat(MORE_DETAILS," ").concat(DOCS_ORIGIN,"/getting_started/tagging/#defining-tags"));var $=s.replace(/,/g,"_");return"".concat(o,":").concat($)}function hasForbiddenCharacters(o){return supportUnicodePropertyEscapes()?new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(o):!1}function supportUnicodePropertyEscapes(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch{return!1}}function computeTransportConfiguration(o){var s=o.site||INTAKE_SITE_US1,a=buildTags(o),$=computeEndpointBuilders(o,a),j=computeIntakeUrlPrefixes($,s),_e=computeReplicaConfiguration(o,j,a);return assign({isIntakeUrl:function(et){return j.some(function(tt){return et.indexOf(tt)===0})},replica:_e,site:s},$)}function computeEndpointBuilders(o,s){return{logsEndpointBuilder:createEndpointBuilder(o,"logs",s),rumEndpointBuilder:createEndpointBuilder(o,"rum",s),sessionReplayEndpointBuilder:createEndpointBuilder(o,"replay",s)}}function computeReplicaConfiguration(o,s,a){if(o.replica){var $=assign({},o,{site:INTAKE_SITE_US1,clientToken:o.replica.clientToken}),j={logsEndpointBuilder:createEndpointBuilder($,"logs",a),rumEndpointBuilder:createEndpointBuilder($,"rum",a)};return s.push.apply(s,objectValues(j).map(function(_e){return _e.urlPrefix})),assign({applicationId:o.replica.applicationId},j)}}function computeIntakeUrlPrefixes(o,s){var a=objectValues(o).map(function($){return $.urlPrefix});return s===INTAKE_SITE_US1&&a.push("https://".concat(PCI_INTAKE_HOST_US1,"/")),a}var DefaultPrivacyLevel={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"},TraceContextInjection={ALL:"all",SAMPLED:"sampled"};function isString(o,s){return o!=null&&typeof o!="string"?(display.error("".concat(s," must be defined as a string")),!1):!0}function isDatadogSite(o){return o&&typeof o=="string"&&!/(datadog|ddog|datad0g|dd0g)/.test(o)?(display.error("Site should be a valid Datadog site. ".concat(MORE_DETAILS," ").concat(DOCS_ORIGIN,"/getting_started/site/.")),!1):!0}function isSampleRate(o,s){return o!==void 0&&!isPercentage(o)?(display.error("".concat(s," Sample Rate should be a number between 0 and 100")),!1):!0}function validateAndBuildConfiguration(o){var s,a,$,j,_e;if(!o||!o.clientToken){display.error("Client Token is not configured, we will not send any data.");return}if(!(!isDatadogSite(o.site)||!isSampleRate(o.sessionSampleRate,"Session")||!isSampleRate(o.telemetrySampleRate,"Telemetry")||!isSampleRate(o.telemetryConfigurationSampleRate,"Telemetry Configuration")||!isSampleRate(o.telemetryUsageSampleRate,"Telemetry Usage")||!isString(o.version,"Version")||!isString(o.env,"Env")||!isString(o.service,"Service"))){if(o.trackingConsent!==void 0&&!objectHasValue(TrackingConsent,o.trackingConsent)){display.error('Tracking Consent should be either "granted" or "not-granted"');return}return assign({beforeSend:o.beforeSend&&catchUserErrors(o.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:selectSessionStoreStrategyType(o),sessionSampleRate:(s=o.sessionSampleRate)!==null&&s!==void 0?s:100,telemetrySampleRate:(a=o.telemetrySampleRate)!==null&&a!==void 0?a:20,telemetryConfigurationSampleRate:($=o.telemetryConfigurationSampleRate)!==null&&$!==void 0?$:5,telemetryUsageSampleRate:(j=o.telemetryUsageSampleRate)!==null&&j!==void 0?j:5,service:o.service||void 0,silentMultipleInit:!!o.silentMultipleInit,allowUntrustedEvents:!!o.allowUntrustedEvents,trackingConsent:(_e=o.trackingConsent)!==null&&_e!==void 0?_e:TrackingConsent.GRANTED,storeContextsAcrossPages:!!o.storeContextsAcrossPages,batchBytesLimit:16*ONE_KIBI_BYTE,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*ONE_SECOND,batchMessagesLimit:50,messageBytesLimit:256*ONE_KIBI_BYTE},computeTransportConfiguration(o))}}function serializeConfiguration(o){return{session_sample_rate:o.sessionSampleRate,telemetry_sample_rate:o.telemetrySampleRate,telemetry_configuration_sample_rate:o.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:o.telemetryUsageSampleRate,use_before_send:!!o.beforeSend,use_cross_site_session_cookie:o.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:o.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:o.useSecureSessionCookie,use_proxy:!!o.proxy,silent_multiple_init:o.silentMultipleInit,track_session_across_subdomains:o.trackSessionAcrossSubdomains,allow_fallback_to_local_storage:!!o.allowFallbackToLocalStorage,store_contexts_across_pages:!!o.storeContextsAcrossPages,allow_untrusted_events:!!o.allowUntrustedEvents,tracking_consent:o.trackingConsent}}var ExperimentalFeature;(function(o){o.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",o.REMOTE_CONFIGURATION="remote_configuration",o.UPDATE_VIEW_NAME="update_view_name",o.LONG_ANIMATION_FRAME="long_animation_frame"})(ExperimentalFeature||(ExperimentalFeature={}));var enabledExperimentalFeatures=new Set;function initFeatureFlags(o){Array.isArray(o)&&addExperimentalFeatures(o.filter(function(s){return objectHasValue(ExperimentalFeature,s)}))}function addExperimentalFeatures(o){o.forEach(function(s){enabledExperimentalFeatures.add(s)})}function isExperimentalFeatureEnabled(o){return enabledExperimentalFeatures.has(o)}function getExperimentalFeatures(){return enabledExperimentalFeatures}var UNKNOWN_FUNCTION="?";function computeStackTrace(o){var s=[],a=tryToGetString(o,"stack"),$=String(o);return a&&startsWith(a,$)&&(a=a.slice($.length)),a&&a.split(`
`).forEach(function(j){var _e=parseChromeLine(j)||parseChromeAnonymousLine(j)||parseWinLine(j)||parseGeckoLine(j);_e&&(!_e.func&&_e.line&&(_e.func=UNKNOWN_FUNCTION),s.push(_e))}),{message:tryToGetString(o,"message"),name:tryToGetString(o,"name"),stack:s}}var fileUrl="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",filePosition="(?::(\\d+))",CHROME_LINE_RE=new RegExp("^\\s*at (.*?) ?\\(".concat(fileUrl).concat(filePosition,"?").concat(filePosition,"?\\)?\\s*$"),"i"),CHROME_EVAL_RE=new RegExp("\\((\\S*)".concat(filePosition).concat(filePosition,"\\)"));function parseChromeLine(o){var s=CHROME_LINE_RE.exec(o);if(s){var a=s[2]&&s[2].indexOf("native")===0,$=s[2]&&s[2].indexOf("eval")===0,j=CHROME_EVAL_RE.exec(s[2]);return $&&j&&(s[2]=j[1],s[3]=j[2],s[4]=j[3]),{args:a?[s[2]]:[],column:s[4]?+s[4]:void 0,func:s[1]||UNKNOWN_FUNCTION,line:s[3]?+s[3]:void 0,url:a?void 0:s[2]}}}var CHROME_ANONYMOUS_FUNCTION_RE=new RegExp("^\\s*at ?".concat(fileUrl).concat(filePosition,"?").concat(filePosition,"??\\s*$"),"i");function parseChromeAnonymousLine(o){var s=CHROME_ANONYMOUS_FUNCTION_RE.exec(o);if(s)return{args:[],column:s[3]?+s[3]:void 0,func:UNKNOWN_FUNCTION,line:s[2]?+s[2]:void 0,url:s[1]}}var WINJS_LINE_RE=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function parseWinLine(o){var s=WINJS_LINE_RE.exec(o);if(s)return{args:[],column:s[4]?+s[4]:void 0,func:s[1]||UNKNOWN_FUNCTION,line:+s[3],url:s[2]}}var GECKO_LINE_RE=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,GECKO_EVAL_RE=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function parseGeckoLine(o){var s=GECKO_LINE_RE.exec(o);if(s){var a=s[3]&&s[3].indexOf(" > eval")>-1,$=GECKO_EVAL_RE.exec(s[3]);return a&&$&&(s[3]=$[1],s[4]=$[2],s[5]=void 0),{args:s[2]?s[2].split(","):[],column:s[5]?+s[5]:void 0,func:s[1]||UNKNOWN_FUNCTION,line:s[4]?+s[4]:void 0,url:s[3]}}}function tryToGetString(o,s){if(!(typeof o!="object"||!o||!(s in o))){var a=o[s];return typeof a=="string"?a:void 0}}function computeStackTraceFromOnErrorMessage(o,s,a,$){var j=[{url:s,column:$,line:a}],_e=tryToParseMessage(o),et=_e.name,tt=_e.message;return{name:et,message:tt,stack:j}}var ERROR_TYPES_RE=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function tryToParseMessage(o){var s,a,$;return{}.toString.call(o)==="[object String]"&&(s=ERROR_TYPES_RE.exec(o),a=s[1],$=s[2]),{name:a,message:$}}function createHandlingStack(){var o=2,s=new Error,a;if(!s.stack)try{throw s}catch{}return callMonitored(function(){var $=computeStackTrace(s);$.stack=$.stack.slice(o),a=toStackTraceString($)}),a}function toStackTraceString(o){var s=formatErrorMessage(o);return o.stack.forEach(function(a){var $=a.func==="?"?"<anonymous>":a.func,j=a.args&&a.args.length>0?"(".concat(a.args.join(", "),")"):"",_e=a.line?":".concat(a.line):"",et=a.line&&a.column?":".concat(a.column):"";s+=`
  at `.concat($).concat(j," @ ").concat(a.url).concat(_e).concat(et)}),s}function formatErrorMessage(o){return"".concat(o.name||"Error",": ").concat(o.message)}function instrumentMethod(o,s,a,$){var j=$===void 0?{}:$,_e=j.computeHandlingStack,et=o[s];if(typeof et!="function")if(s in o&&startsWith(s,"on"))et=noop;else return{stop:noop};var tt=!1,nt=function(){if(tt)return et.apply(this,arguments);var it=arrayFrom(arguments),rt;callMonitored(a,null,[{target:this,parameters:it,onPostCall:function(ot){rt=ot},handlingStack:_e?createHandlingStack():void 0}]);var st=et.apply(this,it);return rt&&callMonitored(rt,null,[st]),st};return o[s]=nt,{stop:function(){tt=!0,o[s]===nt&&(o[s]=et)}}}function instrumentSetter(o,s,a){var $=Object.getOwnPropertyDescriptor(o,s);if(!$||!$.set||!$.configurable)return{stop:noop};var j=noop,_e=function(tt,nt){setTimeout$1(function(){_e!==j&&a(tt,nt)},0)},et=function(tt){$.set.call(this,tt),_e(this,tt)};return Object.defineProperty(o,s,{set:et}),{stop:function(){var tt;((tt=Object.getOwnPropertyDescriptor(o,s))===null||tt===void 0?void 0:tt.set)===et&&Object.defineProperty(o,s,$),_e=j}}}var SANITIZE_DEFAULT_MAX_CHARACTER_COUNT=220*ONE_KIBI_BYTE,JSON_PATH_ROOT_ELEMENT="$",KEY_DECORATION_LENGTH=3;function sanitize(o,s){s===void 0&&(s=SANITIZE_DEFAULT_MAX_CHARACTER_COUNT);var a=detachToJsonMethod(Object.prototype),$=detachToJsonMethod(Array.prototype),j=[],_e=new WeakMap,et=sanitizeProcessor(o,JSON_PATH_ROOT_ELEMENT,void 0,j,_e),tt=JSON.stringify(et),nt=tt?tt.length:0;if(nt>s){warnOverCharacterLimit(s,"discarded",o);return}for(;j.length>0&&nt<s;){var it=j.shift(),rt=0;if(Array.isArray(it.source))for(var st=0;st<it.source.length;st++){var ot=sanitizeProcessor(it.source[st],it.path,st,j,_e);if(ot!==void 0?nt+=JSON.stringify(ot).length:nt+=4,nt+=rt,rt=1,nt>s){warnOverCharacterLimit(s,"truncated",o);break}it.target[st]=ot}else for(var st in it.source)if(Object.prototype.hasOwnProperty.call(it.source,st)){var ot=sanitizeProcessor(it.source[st],it.path,st,j,_e);if(ot!==void 0&&(nt+=JSON.stringify(ot).length+rt+st.length+KEY_DECORATION_LENGTH,rt=1),nt>s){warnOverCharacterLimit(s,"truncated",o);break}it.target[st]=ot}}return a(),$(),et}function sanitizeProcessor(o,s,a,$,j){var _e=tryToApplyToJSON(o);if(!_e||typeof _e!="object")return sanitizePrimitivesAndFunctions(_e);var et=sanitizeObjects(_e);if(et!=="[Object]"&&et!=="[Array]"&&et!=="[Error]")return et;var tt=o;if(j.has(tt))return"[Reference seen at ".concat(j.get(tt),"]");var nt=a!==void 0?"".concat(s,".").concat(a):s,it=Array.isArray(_e)?[]:{};return j.set(tt,nt),$.push({source:_e,target:it,path:nt}),it}function sanitizePrimitivesAndFunctions(o){return typeof o=="bigint"?"[BigInt] ".concat(o.toString()):typeof o=="function"?"[Function] ".concat(o.name||"unknown"):typeof o=="symbol"?"[Symbol] ".concat(o.description||o.toString()):o}function sanitizeObjects(o){try{if(o instanceof Event)return{isTrusted:o.isTrusted};var s=Object.prototype.toString.call(o),a=s.match(/\[object (.*)\]/);if(a&&a[1])return"[".concat(a[1],"]")}catch{}return"[Unserializable]"}function tryToApplyToJSON(o){var s=o;if(s&&typeof s.toJSON=="function")try{return s.toJSON()}catch{}return o}function warnOverCharacterLimit(o,s,a){display.warn("The data provided has been ".concat(s," as it is over the limit of ").concat(o," characters:"),a)}var NO_ERROR_STACK_PRESENT_MESSAGE="No stack, consider using an instance of Error";function computeRawError(o){var s=o.stackTrace,a=o.originalError,$=o.handlingStack,j=o.startClocks,_e=o.nonErrorPrefix,et=o.source,tt=o.handling,nt=a instanceof Error,it=computeMessage(s,nt,_e,a),rt=hasUsableStack(nt,s)?toStackTraceString(s):NO_ERROR_STACK_PRESENT_MESSAGE,st=nt?flattenErrorCauses(a,et):void 0,ot=s?s.name:void 0,at=tryToGetFingerprint(a);return{startClocks:j,source:et,handling:tt,handlingStack:$,originalError:a,type:ot,message:it,stack:rt,causes:st,fingerprint:at}}function computeMessage(o,s,a,$){return o!=null&&o.message&&(o!=null&&o.name)?o.message:s?"Empty message":"".concat(a," ").concat(jsonStringify(sanitize($)))}function hasUsableStack(o,s){return s===void 0?!1:o?!0:s.stack.length>0&&(s.stack.length>1||s.stack[0].url!==void 0)}function tryToGetFingerprint(o){return o instanceof Error&&"dd_fingerprint"in o?String(o.dd_fingerprint):void 0}function flattenErrorCauses(o,s){for(var a=o,$=[];(a==null?void 0:a.cause)instanceof Error&&$.length<10;){var j=computeStackTrace(a.cause);$.push({message:a.cause.message,source:s,type:j==null?void 0:j.name,stack:j&&toStackTraceString(j)}),a=a.cause}return $.length?$:void 0}var ErrorSource={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function trackRuntimeError(o){var s=function(j,_e){var et=computeRawError({stackTrace:j,originalError:_e,startClocks:clocksNow(),nonErrorPrefix:"Uncaught",source:ErrorSource.SOURCE,handling:"unhandled"});o.notify(et)},a=instrumentOnError(s).stop,$=instrumentUnhandledRejection(s).stop;return{stop:function(){a(),$()}}}function instrumentOnError(o){return instrumentMethod(window,"onerror",function(s){var a=s.parameters,$=a[0],j=a[1],_e=a[2],et=a[3],tt=a[4],nt;tt instanceof Error?nt=computeStackTrace(tt):nt=computeStackTraceFromOnErrorMessage($,j,_e,et),o(nt,tt??$)})}function instrumentUnhandledRejection(o){return instrumentMethod(window,"onunhandledrejection",function(s){var a=s.parameters[0],$=a.reason||"Empty reason",j=computeStackTrace($);o(j,$)})}function makePublicApi(o){var s=assign({version:"5.29.1",onReady:function(a){a()}},o);return Object.defineProperty(s,"_setDebug",{get:function(){return setDebugMode},enumerable:!1}),s}function defineGlobal(o,s,a){var $=o[s];$&&!$.q&&$.version&&display.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),o[s]=a,$&&$.q&&$.q.forEach(function(j){return catchUserErrors(j,"onReady callback threw an error:")()})}function displayAlreadyInitializedError(o,s){s.silentMultipleInit||display.error("".concat(o," is already initialized."))}function addEventListener(o,s,a,$,j){return addEventListeners(o,s,[a],$,j)}function addEventListeners(o,s,a,$,j){var _e=j===void 0?{}:j,et=_e.once,tt=_e.capture,nt=_e.passive,it=monitor(function(at){!at.isTrusted&&!at.__ddIsTrusted&&!o.allowUntrustedEvents||(et&&ot(),$(at))}),rt=nt?{capture:tt,passive:nt}:tt,st=getZoneJsOriginalValue(s,"addEventListener");a.forEach(function(at){return st.call(s,at,it,rt)});function ot(){var at=getZoneJsOriginalValue(s,"removeEventListener");a.forEach(function(lt){return at.call(s,lt,it,rt)})}return{stop:ot}}var RawReportType={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function initReportObservable(o,s){var a=[];includes(s,RawReportType.cspViolation)&&a.push(createCspViolationReportObservable(o));var $=s.filter(function(j){return j!==RawReportType.cspViolation});return $.length&&a.push(createReportObservable($)),mergeObservables.apply(void 0,a)}function createReportObservable(o){return new Observable(function(s){if(window.ReportingObserver){var a=monitor(function(j,_e){return j.forEach(function(et){return s.notify(buildRawReportErrorFromReport(et))})}),$=new window.ReportingObserver(a,{types:o,buffered:!0});return $.observe(),function(){$.disconnect()}}})}function createCspViolationReportObservable(o){return new Observable(function(s){var a=addEventListener(o,document,"securitypolicyviolation",function($){s.notify(buildRawReportErrorFromCspViolation($))}).stop;return a})}function buildRawReportErrorFromReport(o){var s=o.type,a=o.body;return buildRawReportError({type:a.id,message:"".concat(s,": ").concat(a.message),originalError:o,stack:buildStack(a.id,a.message,a.sourceFile,a.lineNumber,a.columnNumber)})}function buildRawReportErrorFromCspViolation(o){var s="'".concat(o.blockedURI,"' blocked by '").concat(o.effectiveDirective,"' directive");return buildRawReportError({type:o.effectiveDirective,message:"".concat(RawReportType.cspViolation,": ").concat(s),originalError:o,csp:{disposition:o.disposition},stack:buildStack(o.effectiveDirective,o.originalPolicy?"".concat(s,' of the policy "').concat(safeTruncate(o.originalPolicy,100,"..."),'"'):"no policy",o.sourceFile,o.lineNumber,o.columnNumber)})}function buildRawReportError(o){return assign({startClocks:clocksNow(),source:ErrorSource.REPORT,handling:"unhandled"},o)}function buildStack(o,s,a,$,j){return a?toStackTraceString({name:o,message:s,stack:[{func:"?",url:a,line:$??void 0,column:j??void 0}]}):void 0}function sendToExtension(o,s){var a=window.__ddBrowserSdkExtensionCallback;a&&a({type:o,payload:s})}function getType(o){return o===null?"null":Array.isArray(o)?"array":typeof o}function mergeInto(o,s,a){if(a===void 0&&(a=createCircularReferenceChecker()),s===void 0)return o;if(typeof s!="object"||s===null)return s;if(s instanceof Date)return new Date(s.getTime());if(s instanceof RegExp){var $=s.flags||[s.global?"g":"",s.ignoreCase?"i":"",s.multiline?"m":"",s.sticky?"y":"",s.unicode?"u":""].join("");return new RegExp(s.source,$)}if(!a.hasAlreadyBeenSeen(s)){if(Array.isArray(s)){for(var j=Array.isArray(o)?o:[],_e=0;_e<s.length;++_e)j[_e]=mergeInto(j[_e],s[_e],a);return j}var et=getType(o)==="object"?o:{};for(var tt in s)Object.prototype.hasOwnProperty.call(s,tt)&&(et[tt]=mergeInto(et[tt],s[tt],a));return et}}function deepClone(o){return mergeInto(void 0,o)}function combine(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];for(var a,$=0,j=o;$<j.length;$++){var _e=j[$];_e!=null&&(a=mergeInto(a,_e))}return a}function createCircularReferenceChecker(){if(typeof WeakSet<"u"){var o=new WeakSet;return{hasAlreadyBeenSeen:function(a){var $=o.has(a);return $||o.add(a),$}}}var s=[];return{hasAlreadyBeenSeen:function(a){var $=s.indexOf(a)>=0;return $||s.push(a),$}}}function getConnectivity(){var o,s=window.navigator;return{status:s.onLine?"connected":"not_connected",interfaces:s.connection&&s.connection.type?[s.connection.type]:void 0,effective_type:(o=s.connection)===null||o===void 0?void 0:o.effectiveType}}function removeItem(o,s){var a=o.indexOf(s);a>=0&&o.splice(a,1)}var BUFFER_LIMIT=500;function createBoundedBuffer(){var o=[],s=function(j){var _e=o.push(j);_e>BUFFER_LIMIT&&o.splice(0,1)},a=function(j){removeItem(o,j)},$=function(j){o.forEach(function(_e){return _e(j)}),o.length=0};return{add:s,remove:a,drain:$}}var TelemetryType={log:"log",configuration:"configuration",usage:"usage"},ALLOWED_FRAME_URLS=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],TELEMETRY_EXCLUDED_SITES=[INTAKE_SITE_US1_FED],preStartTelemetryBuffer=createBoundedBuffer(),onRawTelemetryEventCollected=function(o){preStartTelemetryBuffer.add(function(){return onRawTelemetryEventCollected(o)})};function startTelemetry(o,s){var a,$,j=new Observable,_e=new Set,et=!includes(TELEMETRY_EXCLUDED_SITES,s.site)&&performDraw(s.telemetrySampleRate),tt=(a={},a[TelemetryType.log]=et,a[TelemetryType.configuration]=et&&performDraw(s.telemetryConfigurationSampleRate),a[TelemetryType.usage]=et&&performDraw(s.telemetryUsageSampleRate),a),nt=getRuntimeEnvInfo();onRawTelemetryEventCollected=function(rt){var st=jsonStringify(rt);if(tt[rt.type]&&_e.size<s.maxTelemetryEventsPerPage&&!_e.has(st)){var ot=it(o,rt,nt);j.notify(ot),sendToExtension("telemetry",ot),_e.add(st)}},startMonitorErrorCollection(addTelemetryError);function it(rt,st,ot){return combine({type:"telemetry",date:timeStampNow(),service:rt,version:"5.29.1",source:"browser",_dd:{format_version:2},telemetry:combine(st,{runtime_env:ot,connectivity:getConnectivity(),sdk_setup:"npm"}),experimental_features:arrayFrom(getExperimentalFeatures())},$!==void 0?$():{})}return{setContextProvider:function(rt){$=rt},observable:j,enabled:et}}function getRuntimeEnvInfo(){return{is_local_file:window.location.protocol==="file:",is_worker:"WorkerGlobalScope"in self}}function drainPreStartTelemetry(){preStartTelemetryBuffer.drain()}function isTelemetryReplicationAllowed(o){return o.site===INTAKE_SITE_STAGING}function addTelemetryDebug(o,s){displayIfDebugEnabled(ConsoleApiName.debug,o,s),onRawTelemetryEventCollected(assign({type:TelemetryType.log,message:o,status:"debug"},s))}function addTelemetryError(o,s){onRawTelemetryEventCollected(assign({type:TelemetryType.log,status:"error"},formatError(o),s))}function addTelemetryConfiguration(o){onRawTelemetryEventCollected({type:TelemetryType.configuration,configuration:o})}function addTelemetryUsage(o){onRawTelemetryEventCollected({type:TelemetryType.usage,usage:o})}function formatError(o){if(o instanceof Error){var s=computeStackTrace(o);return{error:{kind:s.name,stack:toStackTraceString(scrubCustomerFrames(s))},message:s.message}}return{error:{stack:NO_ERROR_STACK_PRESENT_MESSAGE},message:"".concat("Uncaught"," ").concat(jsonStringify(o))}}function scrubCustomerFrames(o){return o.stack=o.stack.filter(function(s){return!s.url||ALLOWED_FRAME_URLS.some(function(a){return startsWith(s.url,a)})}),o}var END_OF_TIMES=1/0,CLEAR_OLD_VALUES_INTERVAL=ONE_MINUTE;function createValueHistory(o){var s=o.expireDelay,a=o.maxEntries,$=[],j=setInterval$1(function(){return _e()},CLEAR_OLD_VALUES_INTERVAL);function _e(){for(var ot=relativeNow()-s;$.length>0&&$[$.length-1].endTime<ot;)$.pop()}function et(ot,at){var lt={value:ot,startTime:at,endTime:END_OF_TIMES,remove:function(){removeItem($,lt)},close:function(ct){lt.endTime=ct}};return a&&$.length>=a&&$.pop(),$.unshift(lt),lt}function tt(ot,at){ot===void 0&&(ot=END_OF_TIMES),at===void 0&&(at={returnInactive:!1});for(var lt=0,ct=$;lt<ct.length;lt++){var ht=ct[lt];if(ht.startTime<=ot){if(at.returnInactive||ot<=ht.endTime)return ht.value;break}}}function nt(ot){var at=$[0];at&&at.endTime===END_OF_TIMES&&at.close(ot)}function it(ot,at){ot===void 0&&(ot=END_OF_TIMES),at===void 0&&(at=0);var lt=addDuration(ot,at);return $.filter(function(ct){return ct.startTime<=lt&&ot<=ct.endTime}).map(function(ct){return ct.value})}function rt(){$=[]}function st(){clearInterval$1(j)}return{add:et,find:tt,closeActive:nt,findAll:it,reset:rt,stop:st}}var VISIBILITY_CHECK_DELAY=ONE_MINUTE,SESSION_CONTEXT_TIMEOUT_DELAY=SESSION_TIME_OUT_DELAY;function startSessionManager(o,s,a,$){var j=new Observable,_e=new Observable,et=startSessionStore(o.sessionStoreStrategyType,s,a),tt=createValueHistory({expireDelay:SESSION_CONTEXT_TIMEOUT_DELAY});et.renewObservable.subscribe(function(){tt.add(nt(),relativeNow()),j.notify()}),et.expireObservable.subscribe(function(){_e.notify(),tt.closeActive(relativeNow())}),et.expandOrRenewSession(),tt.add(nt(),clocksOrigin().relative),$.observable.subscribe(function(){$.isGranted()?et.expandOrRenewSession():et.expire()}),trackActivity(o,function(){$.isGranted()&&et.expandOrRenewSession()}),trackVisibility(o,function(){return et.expandSession()}),trackResume(o,function(){return et.restartSession()});function nt(){return{id:et.getSession().id,trackingType:et.getSession()[s],isReplayForced:!!et.getSession().forcedReplay}}return{findSession:function(it,rt){return tt.find(it,rt)},renewObservable:j,expireObservable:_e,sessionStateUpdateObservable:et.sessionStateUpdateObservable,expire:et.expire,updateSessionState:et.updateSessionState}}function trackActivity(o,s){addEventListeners(o,window,["click","touchstart","keydown","scroll"],s,{capture:!0,passive:!0}).stop}function trackVisibility(o,s){var a=function(){document.visibilityState==="visible"&&s()};addEventListener(o,document,"visibilitychange",a).stop,setInterval$1(a,VISIBILITY_CHECK_DELAY)}function trackResume(o,s){addEventListener(o,window,"resume",s,{capture:!0}).stop}function isServerError(o){return o>=500}function tryToClone(o){try{return o.clone()}catch{return}}var MAX_ONGOING_BYTES_COUNT=80*ONE_KIBI_BYTE,MAX_ONGOING_REQUESTS=32,MAX_QUEUE_BYTES_COUNT=3*ONE_MEBI_BYTE,MAX_BACKOFF_TIME=ONE_MINUTE,INITIAL_BACKOFF_TIME=ONE_SECOND;function sendWithRetryStrategy(o,s,a,$,j){s.transportStatus===0&&s.queuedPayloads.size()===0&&s.bandwidthMonitor.canHandle(o)?send(o,s,a,{onSuccess:function(){return retryQueuedPayloads(0,s,a,$,j)},onFailure:function(){s.queuedPayloads.enqueue(o),scheduleRetry(s,a,$,j)}}):s.queuedPayloads.enqueue(o)}function scheduleRetry(o,s,a,$){o.transportStatus===2&&setTimeout$1(function(){var j=o.queuedPayloads.first();send(j,o,s,{onSuccess:function(){o.queuedPayloads.dequeue(),o.currentBackoffTime=INITIAL_BACKOFF_TIME,retryQueuedPayloads(1,o,s,a,$)},onFailure:function(){o.currentBackoffTime=Math.min(MAX_BACKOFF_TIME,o.currentBackoffTime*2),scheduleRetry(o,s,a,$)}})},o.currentBackoffTime)}function send(o,s,a,$){var j=$.onSuccess,_e=$.onFailure;s.bandwidthMonitor.add(o),a(o,function(et){s.bandwidthMonitor.remove(o),shouldRetryRequest(et)?(s.transportStatus=s.bandwidthMonitor.ongoingRequestCount>0?1:2,o.retry={count:o.retry?o.retry.count+1:1,lastFailureStatus:et.status},_e()):(s.transportStatus=0,j())})}function retryQueuedPayloads(o,s,a,$,j){o===0&&s.queuedPayloads.isFull()&&!s.queueFullReported&&(j({message:"Reached max ".concat($," events size queued for upload: ").concat(MAX_QUEUE_BYTES_COUNT/ONE_MEBI_BYTE,"MiB"),source:ErrorSource.AGENT,startClocks:clocksNow()}),s.queueFullReported=!0);var _e=s.queuedPayloads;for(s.queuedPayloads=newPayloadQueue();_e.size()>0;)sendWithRetryStrategy(_e.dequeue(),s,a,$,j)}function shouldRetryRequest(o){return o.type!=="opaque"&&(o.status===0&&!navigator.onLine||o.status===408||o.status===429||isServerError(o.status))}function newRetryState(){return{transportStatus:0,currentBackoffTime:INITIAL_BACKOFF_TIME,bandwidthMonitor:newBandwidthMonitor(),queuedPayloads:newPayloadQueue(),queueFullReported:!1}}function newPayloadQueue(){var o=[];return{bytesCount:0,enqueue:function(s){this.isFull()||(o.push(s),this.bytesCount+=s.bytesCount)},first:function(){return o[0]},dequeue:function(){var s=o.shift();return s&&(this.bytesCount-=s.bytesCount),s},size:function(){return o.length},isFull:function(){return this.bytesCount>=MAX_QUEUE_BYTES_COUNT}}}function newBandwidthMonitor(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(o){return this.ongoingRequestCount===0||this.ongoingByteCount+o.bytesCount<=MAX_ONGOING_BYTES_COUNT&&this.ongoingRequestCount<MAX_ONGOING_REQUESTS},add:function(o){this.ongoingRequestCount+=1,this.ongoingByteCount+=o.bytesCount},remove:function(o){this.ongoingRequestCount-=1,this.ongoingByteCount-=o.bytesCount}}}function createHttpRequest(o,s,a,$){var j=newRetryState(),_e=function(et,tt){return fetchKeepAliveStrategy(o,s,a,et,tt)};return{send:function(et){sendWithRetryStrategy(et,j,_e,s.trackType,$)},sendOnExit:function(et){sendBeaconStrategy(o,s,a,et)}}}function sendBeaconStrategy(o,s,a,$){var j=!!navigator.sendBeacon&&$.bytesCount<a;if(j)try{var _e=s.build("beacon",$),et=navigator.sendBeacon(_e,$.data);if(et)return}catch(nt){reportBeaconError(nt)}var tt=s.build("xhr",$);sendXHR(o,tt,$.data)}var hasReportedBeaconError=!1;function reportBeaconError(o){hasReportedBeaconError||(hasReportedBeaconError=!0,addTelemetryError(o))}function fetchKeepAliveStrategy(o,s,a,$,j){var _e=isKeepAliveSupported()&&$.bytesCount<a;if(_e){var et=s.build("fetch",$);fetch(et,{method:"POST",body:$.data,keepalive:!0,mode:"cors"}).then(monitor(function(nt){return j==null?void 0:j({status:nt.status,type:nt.type})}),monitor(function(){var nt=s.build("xhr",$);sendXHR(o,nt,$.data,j)}))}else{var tt=s.build("xhr",$);sendXHR(o,tt,$.data,j)}}function isKeepAliveSupported(){try{return window.Request&&"keepalive"in new Request("http://a")}catch{return!1}}function sendXHR(o,s,a,$){var j=new XMLHttpRequest;j.open("POST",s,!0),a instanceof Blob&&j.setRequestHeader("Content-Type",a.type),addEventListener(o,j,"loadend",function(){$==null||$({status:j.status})},{once:!0}),j.send(a)}function getEventBridge(){var o=getEventBridgeGlobal();if(o)return{getCapabilities:function(){var s;return JSON.parse(((s=o.getCapabilities)===null||s===void 0?void 0:s.call(o))||"[]")},getPrivacyLevel:function(){var s;return(s=o.getPrivacyLevel)===null||s===void 0?void 0:s.call(o)},getAllowedWebViewHosts:function(){return JSON.parse(o.getAllowedWebViewHosts())},send:function(s,a,$){var j=$?{id:$}:void 0;o.send(JSON.stringify({eventType:s,event:a,view:j}))}}}function bridgeSupports(o){var s=getEventBridge();return!!s&&includes(s.getCapabilities(),o)}function canUseEventBridge(o){var s;o===void 0&&(o=(s=getGlobalObject().location)===null||s===void 0?void 0:s.hostname);var a=getEventBridge();return!!a&&a.getAllowedWebViewHosts().some(function($){return o===$||endsWith(o,".".concat($))})}function getEventBridgeGlobal(){return getGlobalObject().DatadogEventBridge}var PageExitReason={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function createPageExitObservable(o){return new Observable(function(s){var a=addEventListeners(o,window,["visibilitychange","freeze"],function(j){j.type==="visibilitychange"&&document.visibilityState==="hidden"?s.notify({reason:PageExitReason.HIDDEN}):j.type==="freeze"&&s.notify({reason:PageExitReason.FROZEN})},{capture:!0}).stop,$=addEventListener(o,window,"beforeunload",function(){s.notify({reason:PageExitReason.UNLOADING})}).stop;return function(){a(),$()}})}function isPageExitReason(o){return includes(objectValues(PageExitReason),o)}function createBatch(o){var s=o.encoder,a=o.request,$=o.flushController,j=o.messageBytesLimit,_e={},et=$.flushObservable.subscribe(function(ot){return st(ot)});function tt(ot,at,lt){$.notifyBeforeAddMessage(at),lt!==void 0?(_e[lt]=ot,$.notifyAfterAddMessage()):s.write(s.isEmpty?ot:`
`.concat(ot),function(ct){$.notifyAfterAddMessage(ct-at)})}function nt(ot){return ot!==void 0&&_e[ot]!==void 0}function it(ot){var at=_e[ot];delete _e[ot];var lt=s.estimateEncodedBytesCount(at);$.notifyAfterRemoveMessage(lt)}function rt(ot,at){var lt=jsonStringify(ot),ct=s.estimateEncodedBytesCount(lt);if(ct>=j){display.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(j,"KB. ").concat(MORE_DETAILS," ").concat(DOCS_TROUBLESHOOTING,"/#technical-limitations"));return}nt(at)&&it(at),tt(lt,ct,at)}function st(ot){var at=objectValues(_e).join(`
`);_e={};var lt=isPageExitReason(ot.reason),ct=lt?a.sendOnExit:a.send;if(lt&&s.isAsync){var ht=s.finishSync();ht.outputBytesCount&&ct(formatPayloadFromEncoder(ht));var dt=[ht.pendingData,at].filter(Boolean).join(`
`);dt&&ct({data:dt,bytesCount:computeBytesCount(dt)})}else at&&s.write(s.isEmpty?at:`
`.concat(at)),s.finish(function(ut){ct(formatPayloadFromEncoder(ut))})}return{flushController:$,add:rt,upsert:rt,stop:et.unsubscribe}}function formatPayloadFromEncoder(o){var s;return typeof o.output=="string"?s=o.output:s=new Blob([o.output],{type:"text/plain"}),{data:s,bytesCount:o.outputBytesCount,encoding:o.encoding}}function createFlushController(o){var s=o.messagesLimit,a=o.bytesLimit,$=o.durationLimit,j=o.pageExitObservable,_e=o.sessionExpireObservable,et=j.subscribe(function(ct){return st(ct.reason)}),tt=_e.subscribe(function(){return st("session_expire")}),nt=new Observable(function(){return function(){et.unsubscribe(),tt.unsubscribe()}}),it=0,rt=0;function st(ct){if(rt!==0){var ht=rt,dt=it;rt=0,it=0,lt(),nt.notify({reason:ct,messagesCount:ht,bytesCount:dt})}}var ot;function at(){ot===void 0&&(ot=setTimeout$1(function(){st("duration_limit")},$))}function lt(){clearTimeout$1(ot),ot=void 0}return{flushObservable:nt,get messagesCount(){return rt},notifyBeforeAddMessage:function(ct){it+ct>=a&&st("bytes_limit"),rt+=1,it+=ct,at()},notifyAfterAddMessage:function(ct){ct===void 0&&(ct=0),it+=ct,rt>=s?st("messages_limit"):it>=a&&st("bytes_limit")},notifyAfterRemoveMessage:function(ct){it-=ct,rt-=1,rt===0&&lt()}}}function startBatchWithReplica(o,s,a,$,j,_e,et){et===void 0&&(et=createBatch);var tt=it(o,s),nt=a&&it(o,a);function it(rt,st){var ot=st.endpoint,at=st.encoder;return et({encoder:at,request:createHttpRequest(rt,ot,rt.batchBytesLimit,$),flushController:createFlushController({messagesLimit:rt.batchMessagesLimit,bytesLimit:rt.batchBytesLimit,durationLimit:rt.flushTimeout,pageExitObservable:j,sessionExpireObservable:_e}),messageBytesLimit:rt.messageBytesLimit})}return{flushObservable:tt.flushController.flushObservable,add:function(rt,st){st===void 0&&(st=!0),tt.add(rt),nt&&st&&nt.add(a.transformMessage?a.transformMessage(rt):rt)},upsert:function(rt,st){tt.upsert(rt,st),nt&&nt.upsert(a.transformMessage?a.transformMessage(rt):rt,st)},stop:function(){tt.stop(),nt&&nt.stop()}}}function createIdentityEncoder(){var o="",s=0;return{isAsync:!1,get isEmpty(){return!o},write:function(a,$){var j=computeBytesCount(a);s+=j,o+=a,$&&$(j)},finish:function(a){a(this.finishSync())},finishSync:function(){var a={output:o,outputBytesCount:s,rawBytesCount:s,pendingData:""};return o="",s=0,a},estimateEncodedBytesCount:function(a){return a.length}}}var AbstractLifeCycle=function(){function o(){this.callbacks={}}return o.prototype.notify=function(s,a){var $=this.callbacks[s];$&&$.forEach(function(j){return j(a)})},o.prototype.subscribe=function(s,a){var $=this;return this.callbacks[s]||(this.callbacks[s]=[]),this.callbacks[s].push(a),{unsubscribe:function(){$.callbacks[s]=$.callbacks[s].filter(function(j){return a!==j})}}},o}();function createEventRateLimiter(o,s,a){var $=0,j=!1;return{isLimitReached:function(){if($===0&&setTimeout$1(function(){$=0},ONE_MINUTE),$+=1,$<=s||j)return j=!1,!1;if($===s+1){j=!0;try{a({message:"Reached max number of ".concat(o,"s by minute: ").concat(s),source:ErrorSource.AGENT,startClocks:clocksNow()})}finally{j=!1}}return!0}}}function runOnReadyState(o,s,a){if(document.readyState===s||document.readyState==="complete")return a(),{stop:noop};var $=s==="complete"?"load":"DOMContentLoaded";return addEventListener(o,window,$,a,{once:!0})}var xhrObservable,xhrContexts=new WeakMap;function initXhrObservable(o){return xhrObservable||(xhrObservable=createXhrObservable(o)),xhrObservable}function createXhrObservable(o){return new Observable(function(s){var a=instrumentMethod(XMLHttpRequest.prototype,"open",openXhr).stop,$=instrumentMethod(XMLHttpRequest.prototype,"send",function(_e){sendXhr(_e,o,s)},{computeHandlingStack:!0}).stop,j=instrumentMethod(XMLHttpRequest.prototype,"abort",abortXhr).stop;return function(){a(),$(),j()}})}function openXhr(o){var s=o.target,a=o.parameters,$=a[0],j=a[1];xhrContexts.set(s,{state:"open",method:String($).toUpperCase(),url:normalizeUrl(String(j))})}function sendXhr(o,s,a){var $=o.target,j=o.handlingStack,_e=xhrContexts.get($);if(_e){var et=_e;et.state="start",et.startClocks=clocksNow(),et.isAborted=!1,et.xhr=$,et.handlingStack=j;var tt=!1,nt=instrumentMethod($,"onreadystatechange",function(){$.readyState===XMLHttpRequest.DONE&&it()}).stop,it=function(){if(rt(),nt(),!tt){tt=!0;var st=_e;st.state="complete",st.duration=elapsed(et.startClocks.timeStamp,timeStampNow()),st.status=$.status,a.notify(shallowClone(st))}},rt=addEventListener(s,$,"loadend",it).stop;a.notify(et)}}function abortXhr(o){var s=o.target,a=xhrContexts.get(s);a&&(a.isAborted=!0)}var fetchObservable;function initFetchObservable(){return fetchObservable||(fetchObservable=createFetchObservable()),fetchObservable}function createFetchObservable(){return new Observable(function(o){if(window.fetch){var s=instrumentMethod(window,"fetch",function(a){return beforeSend(a,o)},{computeHandlingStack:!0}).stop;return s}})}function beforeSend(o,s){var a=o.parameters,$=o.onPostCall,j=o.handlingStack,_e=a[0],et=a[1],tt=et&&et.method;tt===void 0&&_e instanceof Request&&(tt=_e.method);var nt=tt!==void 0?String(tt).toUpperCase():"GET",it=_e instanceof Request?_e.url:normalizeUrl(String(_e)),rt=clocksNow(),st={state:"start",init:et,input:_e,method:nt,startClocks:rt,url:it,handlingStack:j};s.notify(st),a[0]=st.input,a[1]=st.init,$(function(ot){return afterSend(s,ot,st)})}function afterSend(o,s,a){var $=a;function j(_e){$.state="resolve",assign($,_e),o.notify($)}s.then(monitor(function(_e){j({response:_e,responseType:_e.type,status:_e.status,isAborted:!1})}),monitor(function(_e){var et,tt;j({status:0,isAborted:((tt=(et=$.init)===null||et===void 0?void 0:et.signal)===null||tt===void 0?void 0:tt.aborted)||_e instanceof DOMException&&_e.code===DOMException.ABORT_ERR,error:_e})}))}var consoleObservablesByApi={};function initConsoleObservable(o){var s=o.map(function(a){return consoleObservablesByApi[a]||(consoleObservablesByApi[a]=createConsoleObservable(a)),consoleObservablesByApi[a]});return mergeObservables.apply(void 0,s)}function createConsoleObservable(o){return new Observable(function(s){var a=globalConsole[o];return globalConsole[o]=function(){for(var $=[],j=0;j<arguments.length;j++)$[j]=arguments[j];a.apply(console,$);var _e=createHandlingStack();callMonitored(function(){s.notify(buildConsoleLog($,o,_e))})},function(){globalConsole[o]=a}})}function buildConsoleLog(o,s,a){var $=o.map(function(et){return formatConsoleParameters(et)}).join(" "),j;if(s===ConsoleApiName.error){var _e=find(o,function(et){return et instanceof Error});j={stack:_e?toStackTraceString(computeStackTrace(_e)):void 0,fingerprint:tryToGetFingerprint(_e),causes:_e?flattenErrorCauses(_e,"console"):void 0,startClocks:clocksNow(),message:$,source:ErrorSource.CONSOLE,handling:"handled",handlingStack:a}}return{api:s,message:$,error:j,handlingStack:a}}function formatConsoleParameters(o){return typeof o=="string"?sanitize(o):o instanceof Error?formatErrorMessage(computeStackTrace(o)):jsonStringify(sanitize(o),void 0,2)}function createContextManager(o){var s={},a=new Observable,$={getContext:function(){return deepClone(s)},setContext:function(j){getType(j)==="object"?(s=sanitize(j),o&&o.updateCustomerData(s)):$.clearContext(),a.notify()},setContextProperty:function(j,_e){s[j]=sanitize(_e),o&&o.updateCustomerData(s),a.notify()},removeContextProperty:function(j){delete s[j],o&&o.updateCustomerData(s),a.notify()},clearContext:function(){s={},o&&o.resetCustomerData(),a.notify()},changeObservable:a};return $}var CONTEXT_STORE_KEY_PREFIX="_dd_c",storageListeners=[];function storeContextManager(o,s,a,$){var j=buildStorageKey(a,$);storageListeners.push(addEventListener(o,window,"storage",function(nt){var it=nt.key;j===it&&_e()})),s.changeObservable.subscribe(et),s.setContext(combine(tt(),s.getContext()));function _e(){s.setContext(tt())}function et(){localStorage.setItem(j,JSON.stringify(s.getContext()))}function tt(){var nt=localStorage.getItem(j);return nt!==null?JSON.parse(nt):{}}}function buildStorageKey(o,s){return"".concat(CONTEXT_STORE_KEY_PREFIX,"_").concat(o,"_").concat(s)}var CUSTOMER_DATA_BYTES_LIMIT=3*ONE_KIBI_BYTE,CUSTOMER_COMPRESSED_DATA_BYTES_LIMIT=16*ONE_KIBI_BYTE,BYTES_COMPUTATION_THROTTLING_DELAY=200;function createCustomerDataTrackerManager(o){o===void 0&&(o=2);var s=new Map,a=!1;function $(j){if(j===void 0&&(j=0),!(a||o===0)){var _e=o===2?CUSTOMER_DATA_BYTES_LIMIT:CUSTOMER_COMPRESSED_DATA_BYTES_LIMIT,et=j;s.forEach(function(tt){et+=tt.getBytesCount()}),et>_e&&(displayCustomerDataLimitReachedWarning(_e),a=!0)}}return{createDetachedTracker:function(){var j=createCustomerDataTracker(function(){return $(j.getBytesCount())});return j},getOrCreateTracker:function(j){return s.has(j)||s.set(j,createCustomerDataTracker($)),s.get(j)},setCompressionStatus:function(j){o===0&&(o=j,$())},getCompressionStatus:function(){return o},stop:function(){s.forEach(function(j){return j.stop()}),s.clear()}}}function createCustomerDataTracker(o){var s=0,a=throttle(function(et){s=computeBytesCount(jsonStringify(et)),o()},BYTES_COMPUTATION_THROTTLING_DELAY),$=a.throttled,j=a.cancel,_e=function(){j(),s=0};return{updateCustomerData:function(et){isEmptyObject(et)?_e():$(et)},resetCustomerData:_e,getBytesCount:function(){return s},stop:function(){j()}}}function displayCustomerDataLimitReachedWarning(o){display.warn("Customer data exceeds the recommended ".concat(o/ONE_KIBI_BYTE,"KiB threshold. ").concat(MORE_DETAILS," ").concat(DOCS_TROUBLESHOOTING,"/#customer-data-exceeds-the-recommended-threshold-warning"))}function readBytesFromStream(o,s,a){var $=o.getReader(),j=0;_e();function _e(){$.read().then(monitor(function(tt){if(tt.done){et();return}j+=tt.value.length,j>a.bytesLimit?et():_e()}),monitor(function(tt){return s(tt)}))}function et(){$.cancel().catch(noop);var tt,nt;s(void 0,tt,nt)}}var SYNTHETICS_TEST_ID_COOKIE_NAME="datadog-synthetics-public-id",SYNTHETICS_RESULT_ID_COOKIE_NAME="datadog-synthetics-result-id",SYNTHETICS_INJECTS_RUM_COOKIE_NAME="datadog-synthetics-injects-rum";function willSyntheticsInjectRum(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||getInitCookie(SYNTHETICS_INJECTS_RUM_COOKIE_NAME))}function getSyntheticsTestId(){var o=window._DATADOG_SYNTHETICS_PUBLIC_ID||getInitCookie(SYNTHETICS_TEST_ID_COOKIE_NAME);return typeof o=="string"?o:void 0}function getSyntheticsResultId(){var o=window._DATADOG_SYNTHETICS_RESULT_ID||getInitCookie(SYNTHETICS_RESULT_ID_COOKIE_NAME);return typeof o=="string"?o:void 0}function sanitizeUser(o){var s=assign({},o),a=["id","name","email"];return a.forEach(function($){$ in s&&(s[$]=String(s[$]))}),s}function checkUser(o){var s=getType(o)==="object";return s||display.error("Unsupported user:",o),s}function isMatchOption(o){var s=getType(o);return s==="string"||s==="function"||o instanceof RegExp}function matchList(o,s,a){return a===void 0&&(a=!1),o.some(function($){try{if(typeof $=="function")return $(s);if($ instanceof RegExp)return $.test(s);if(typeof $=="string")return a?startsWith(s,$):$===s}catch(j){display.error(j)}return!1})}function buildCommonContext(o,s,a){return{context:o.getContext(),user:s.getContext(),hasReplay:a.isRecording()?!0:void 0}}function createCustomVitalsState(){var o=new Map,s=new WeakMap;return{vitalsByName:o,vitalsByReference:s}}function startVitalCollection(o,s,a){function $(_e){return!s.wasInPageStateDuringPeriod("frozen",_e.startClocks.relative,_e.duration)}function j(_e){$(_e)&&o.notify(11,processVital(_e))}return{addDurationVital:j,startDurationVital:function(_e,et){return et===void 0&&(et={}),startDurationVital(a,_e,et)},stopDurationVital:function(_e,et){et===void 0&&(et={}),stopDurationVital(j,a,_e,et)}}}function startDurationVital(o,s,a){var $=o.vitalsByName,j=o.vitalsByReference;a===void 0&&(a={});var _e={name:s,startClocks:clocksNow(),context:a.context,description:a.description},et={__dd_vital_reference:!0};return $.set(s,_e),j.set(et,_e),et}function stopDurationVital(o,s,a,$){var j=s.vitalsByName,_e=s.vitalsByReference;$===void 0&&($={});var et=typeof a=="string"?j.get(a):_e.get(a);et&&(o(buildDurationVital(et,et.startClocks,$,clocksNow())),typeof a=="string"?j.delete(a):_e.delete(a))}function buildDurationVital(o,s,a,$){var j;return{name:o.name,type:"duration",startClocks:s,duration:elapsed(s.timeStamp,$.timeStamp),context:combine(o.context,a.context),description:(j=a.description)!==null&&j!==void 0?j:o.description}}function processVital(o,s){var a={date:o.startClocks.timeStamp,vital:{id:generateUUID(),type:o.type,name:o.name,duration:toServerDuration(o.duration),description:o.description},type:"vital"};return a._dd={vital:{computed_value:!0}},{rawRumEvent:a,startTime:o.startClocks.relative,customerContext:o.context,domainContext:{}}}function isTracingOption(o){var s=o;return getType(s)==="object"&&isMatchOption(s.match)&&Array.isArray(s.propagatorTypes)}function clearTracingIfNeeded(o){o.status===0&&!o.isAborted&&(o.traceId=void 0,o.spanId=void 0,o.traceSampled=void 0)}function startTracer(o,s){return{clearTracingIfNeeded,traceFetch:function(a){return injectHeadersIfTracingAllowed(o,a,s,function($){var j;if(a.input instanceof Request&&!(!((j=a.init)===null||j===void 0)&&j.headers))a.input=new Request(a.input),Object.keys($).forEach(function(et){a.input.headers.append(et,$[et])});else{a.init=shallowClone(a.init);var _e=[];a.init.headers instanceof Headers?a.init.headers.forEach(function(et,tt){_e.push([tt,et])}):Array.isArray(a.init.headers)?a.init.headers.forEach(function(et){_e.push(et)}):a.init.headers&&Object.keys(a.init.headers).forEach(function(et){_e.push([et,a.init.headers[et]])}),a.init.headers=_e.concat(objectEntries($))}})},traceXhr:function(a,$){return injectHeadersIfTracingAllowed(o,a,s,function(j){Object.keys(j).forEach(function(_e){$.setRequestHeader(_e,j[_e])})})}}}function injectHeadersIfTracingAllowed(o,s,a,$){if(!(!isTracingSupported()||!a.findTrackedSession())){var j=find(o.allowedTracingUrls,function(_e){return matchList([_e.match],s.url,!0)});j&&(s.traceSampled=!isNumber(o.traceSampleRate)||performDraw(o.traceSampleRate),!(!s.traceSampled&&o.traceContextInjection!==TraceContextInjection.ALL)&&(s.traceId=createTraceIdentifier(),s.spanId=createTraceIdentifier(),$(makeTracingHeaders(s.traceId,s.spanId,s.traceSampled,j.propagatorTypes))))}}function isTracingSupported(){return getCrypto()!==void 0}function getCrypto(){return window.crypto||window.msCrypto}function makeTracingHeaders(o,s,a,$){var j={};return $.forEach(function(_e){switch(_e){case"datadog":{assign(j,{"x-datadog-origin":"rum","x-datadog-parent-id":s.toDecimalString(),"x-datadog-sampling-priority":a?"1":"0","x-datadog-trace-id":o.toDecimalString()});break}case"tracecontext":{assign(j,{traceparent:"00-0000000000000000".concat(o.toPaddedHexadecimalString(),"-").concat(s.toPaddedHexadecimalString(),"-0").concat(a?"1":"0")});break}case"b3":{assign(j,{b3:"".concat(o.toPaddedHexadecimalString(),"-").concat(s.toPaddedHexadecimalString(),"-").concat(a?"1":"0")});break}case"b3multi":{assign(j,{"X-B3-TraceId":o.toPaddedHexadecimalString(),"X-B3-SpanId":s.toPaddedHexadecimalString(),"X-B3-Sampled":a?"1":"0"});break}}}),j}function createTraceIdentifier(){var o=new Uint8Array(8);getCrypto().getRandomValues(o),o[0]=o[0]&127;function s(_e){return o[_e]*16777216+(o[_e+1]<<16)+(o[_e+2]<<8)+o[_e+3]}function a(_e){var et=s(0),tt=s(4),nt="";do{var it=et%_e*4294967296+tt;et=Math.floor(et/_e),tt=Math.floor(it/_e),nt=(it%_e).toString(_e)+nt}while(et||tt);return nt}function $(){return a(10)}function j(){var _e=a(16);return Array(17-_e.length).join("0")+_e}return{toDecimalString:$,toPaddedHexadecimalString:j}}var DEFAULT_PROPAGATOR_TYPES=["tracecontext","datadog"];function validateAndBuildRumConfiguration(o){var s,a;if(!o.applicationId){display.error("Application ID is not configured, no RUM data will be collected.");return}if(!(!isSampleRate(o.sessionReplaySampleRate,"Session Replay")||!isSampleRate(o.traceSampleRate,"Trace"))){if(o.excludedActivityUrls!==void 0&&!Array.isArray(o.excludedActivityUrls)){display.error("Excluded Activity Urls should be an array");return}var $=validateAndBuildTracingOptions(o);if($){var j=validateAndBuildConfiguration(o);if(j)return assign({applicationId:o.applicationId,version:o.version||void 0,actionNameAttribute:o.actionNameAttribute,sessionReplaySampleRate:(s=o.sessionReplaySampleRate)!==null&&s!==void 0?s:0,startSessionReplayRecordingManually:!!o.startSessionReplayRecordingManually,traceSampleRate:o.traceSampleRate,allowedTracingUrls:$,excludedActivityUrls:(a=o.excludedActivityUrls)!==null&&a!==void 0?a:[],workerUrl:o.workerUrl,compressIntakeRequests:!!o.compressIntakeRequests,trackUserInteractions:!!o.trackUserInteractions,trackViewsManually:!!o.trackViewsManually,trackResources:!!o.trackResources,trackLongTasks:!!o.trackLongTasks,subdomain:o.subdomain,defaultPrivacyLevel:objectHasValue(DefaultPrivacyLevel,o.defaultPrivacyLevel)?o.defaultPrivacyLevel:DefaultPrivacyLevel.MASK,enablePrivacyForActionName:!!o.enablePrivacyForActionName,customerDataTelemetrySampleRate:1,traceContextInjection:objectHasValue(TraceContextInjection,o.traceContextInjection)?o.traceContextInjection:TraceContextInjection.ALL,plugins:o.betaPlugins||[]},j)}}}function validateAndBuildTracingOptions(o){if(o.allowedTracingUrls===void 0)return[];if(!Array.isArray(o.allowedTracingUrls)){display.error("Allowed Tracing URLs should be an array");return}if(o.allowedTracingUrls.length!==0&&o.service===void 0){display.error("Service needs to be configured when tracing is enabled");return}var s=[];return o.allowedTracingUrls.forEach(function(a){isMatchOption(a)?s.push({match:a,propagatorTypes:DEFAULT_PROPAGATOR_TYPES}):isTracingOption(a)?s.push(a):display.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",a)}),s}function getSelectedTracingPropagators(o){var s=new Set;return Array.isArray(o.allowedTracingUrls)&&o.allowedTracingUrls.length>0&&o.allowedTracingUrls.forEach(function(a){isMatchOption(a)?DEFAULT_PROPAGATOR_TYPES.forEach(function($){return s.add($)}):getType(a)==="object"&&Array.isArray(a.propagatorTypes)&&a.propagatorTypes.forEach(function($){return s.add($)})}),arrayFrom(s)}function serializeRumConfiguration(o){var s,a=serializeConfiguration(o);return assign({session_replay_sample_rate:o.sessionReplaySampleRate,start_session_replay_recording_manually:o.startSessionReplayRecordingManually,trace_sample_rate:o.traceSampleRate,trace_context_injection:o.traceContextInjection,action_name_attribute:o.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(o.allowedTracingUrls)&&o.allowedTracingUrls.length>0,selected_tracing_propagators:getSelectedTracingPropagators(o),default_privacy_level:o.defaultPrivacyLevel,enable_privacy_for_action_name:o.enablePrivacyForActionName,use_excluded_activity_urls:Array.isArray(o.excludedActivityUrls)&&o.excludedActivityUrls.length>0,use_worker_url:!!o.workerUrl,compress_intake_requests:o.compressIntakeRequests,track_views_manually:o.trackViewsManually,track_user_interactions:o.trackUserInteractions,track_resources:o.trackResources,track_long_task:o.trackLongTasks,plugins:(s=o.betaPlugins)===null||s===void 0?void 0:s.map(function($){var j;return assign({name:$.name},(j=$.getConfigurationTelemetry)===null||j===void 0?void 0:j.call($))})},a)}var REMOTE_CONFIGURATION_URL="https://d3uc069fcn7uxw.cloudfront.net/configuration";function fetchAndApplyRemoteConfiguration(o,s){fetchRemoteConfiguration(o,function(a){s(applyRemoteConfiguration(o,a))})}function applyRemoteConfiguration(o,s){return assign({},o,s)}function fetchRemoteConfiguration(o,s){var a=new XMLHttpRequest;addEventListener(o,a,"load",function(){a.status===200?s(JSON.parse(a.responseText)):displayRemoteConfigurationFetchingError()}),addEventListener(o,a,"error",function(){displayRemoteConfigurationFetchingError()}),a.open("GET","".concat(REMOTE_CONFIGURATION_URL,"/").concat(encodeURIComponent(o.remoteConfigurationId),".json")),a.send()}function displayRemoteConfigurationFetchingError(){display.error("Error fetching the remote configuration.")}function callPluginsMethod(o,s,a){if(o)for(var $=0,j=o;$<j.length;$++){var _e=j[$],et=_e[s];et&&et(a)}}function createPreStartStrategy(o,s,a,$,j){var _e=o.ignoreInitIfSyntheticsWillInjectRum,et=o.startDeflateWorker,tt=createBoundedBuffer(),nt,it,rt,st,ot=a.observable.subscribe(at);function at(){if(!(!rt||!st||!a.isGranted())){ot.unsubscribe();var ht;if(st.trackViewsManually){if(!nt)return;tt.remove(nt.callback),ht=nt.options}var dt=j(st,it,ht);tt.drain(dt)}}function lt(ht){var dt=canUseEventBridge();if(dt&&(ht=overrideInitConfigurationForBridge(ht)),rt=ht,addTelemetryConfiguration(serializeRumConfiguration(ht)),st){displayAlreadyInitializedError("DD_RUM",ht);return}var ut=validateAndBuildRumConfiguration(ht);if(ut){if(!dt&&!ut.sessionStoreStrategyType){display.warn("No storage available for session. We will not send any data.");return}ut.compressIntakeRequests&&!dt&&et&&(it=et(ut,"Datadog RUM",noop),!it)||(st=ut,initFetchObservable().subscribe(noop),a.tryToInit(ut.trackingConsent),at())}}var ct=function(ht){tt.add(function(dt){return dt.addDurationVital(ht)})};return{init:function(ht,dt){if(!ht){display.error("Missing configuration");return}initFeatureFlags(ht.enableExperimentalFeatures),rt=ht,!(_e&&willSyntheticsInjectRum())&&(callPluginsMethod(ht.betaPlugins,"onInit",{initConfiguration:ht,publicApi:dt}),ht.remoteConfigurationId&&isExperimentalFeatureEnabled(ExperimentalFeature.REMOTE_CONFIGURATION)?fetchAndApplyRemoteConfiguration(ht,lt):lt(ht))},get initConfiguration(){return rt},getInternalContext:noop,stopSession:noop,addTiming:function(ht,dt){dt===void 0&&(dt=timeStampNow()),tt.add(function(ut){return ut.addTiming(ht,dt)})},startView:function(ht,dt){dt===void 0&&(dt=clocksNow());var ut=function(pt){pt.startView(ht,dt)};tt.add(ut),nt||(nt={options:ht,callback:ut},at())},updateViewName:function(ht){tt.add(function(dt){return dt.updateViewName(ht)})},setViewContext:function(ht){tt.add(function(dt){return dt.setViewContext(ht)})},setViewContextProperty:function(ht,dt){tt.add(function(ut){return ut.setViewContextProperty(ht,dt)})},addAction:function(ht,dt){dt===void 0&&(dt=s()),tt.add(function(ut){return ut.addAction(ht,dt)})},addError:function(ht,dt){dt===void 0&&(dt=s()),tt.add(function(ut){return ut.addError(ht,dt)})},addFeatureFlagEvaluation:function(ht,dt){tt.add(function(ut){return ut.addFeatureFlagEvaluation(ht,dt)})},startDurationVital:function(ht,dt){return startDurationVital($,ht,dt)},stopDurationVital:function(ht,dt){stopDurationVital(ct,$,ht,dt)},addDurationVital:ct}}function overrideInitConfigurationForBridge(o){var s,a;return assign({},o,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:(s=o.defaultPrivacyLevel)!==null&&s!==void 0?s:(a=getEventBridge())===null||a===void 0?void 0:a.getPrivacyLevel()})}var RUM_STORAGE_KEY="rum";function makeRumPublicApi(o,s,a){a===void 0&&(a={});var $=createCustomerDataTrackerManager(0),j=createContextManager($.getOrCreateTracker(2)),_e=createContextManager($.getOrCreateTracker(1)),et=createTrackingConsentState(),tt=createCustomVitalsState();function nt(){return buildCommonContext(j,_e,s)}var it=createPreStartStrategy(a,nt,et,tt,function(ot,at,lt){ot.storeContextsAcrossPages&&(storeContextManager(ot,j,RUM_STORAGE_KEY,2),storeContextManager(ot,_e,RUM_STORAGE_KEY,1)),$.setCompressionStatus(at?1:2);var ct=o(ot,s,$,nt,lt,at&&a.createDeflateEncoder?function(ht){return a.createDeflateEncoder(ot,at,ht)}:createIdentityEncoder,et,tt);return s.onRumStart(ct.lifeCycle,ot,ct.session,ct.viewHistory,at),it=createPostStartStrategy(it,ct),ct}),rt=monitor(function(ot){var at=typeof ot=="object"?ot:{name:ot};at.context&&$.getOrCreateTracker(3).updateCustomerData(at.context),it.startView(at),addTelemetryUsage({feature:"start-view"})}),st=makePublicApi({init:monitor(function(ot){it.init(ot,st),isExperimentalFeatureEnabled(ExperimentalFeature.UPDATE_VIEW_NAME)&&(st.updateViewName=monitor(function(at){it.updateViewName(at)}))}),setTrackingConsent:monitor(function(ot){et.update(ot),addTelemetryUsage({feature:"set-tracking-consent",tracking_consent:ot})}),setViewContext:monitor(function(ot){it.setViewContext(ot)}),setViewContextProperty:monitor(function(ot,at){it.setViewContextProperty(ot,at)}),setGlobalContext:monitor(function(ot){j.setContext(ot),addTelemetryUsage({feature:"set-global-context"})}),getGlobalContext:monitor(function(){return j.getContext()}),setGlobalContextProperty:monitor(function(ot,at){j.setContextProperty(ot,at),addTelemetryUsage({feature:"set-global-context"})}),removeGlobalContextProperty:monitor(function(ot){return j.removeContextProperty(ot)}),clearGlobalContext:monitor(function(){return j.clearContext()}),getInternalContext:monitor(function(ot){return it.getInternalContext(ot)}),getInitConfiguration:monitor(function(){return deepClone(it.initConfiguration)}),addAction:function(ot,at){var lt=createHandlingStack();callMonitored(function(){it.addAction({name:sanitize(ot),context:sanitize(at),startClocks:clocksNow(),type:"custom",handlingStack:lt}),addTelemetryUsage({feature:"add-action"})})},addError:function(ot,at){var lt=createHandlingStack();callMonitored(function(){it.addError({error:ot,handlingStack:lt,context:sanitize(at),startClocks:clocksNow()}),addTelemetryUsage({feature:"add-error"})})},addTiming:monitor(function(ot,at){it.addTiming(sanitize(ot),at)}),setUser:monitor(function(ot){checkUser(ot)&&_e.setContext(sanitizeUser(ot)),addTelemetryUsage({feature:"set-user"})}),getUser:monitor(function(){return _e.getContext()}),setUserProperty:monitor(function(ot,at){var lt,ct=sanitizeUser((lt={},lt[ot]=at,lt))[ot];_e.setContextProperty(ot,ct),addTelemetryUsage({feature:"set-user"})}),removeUserProperty:monitor(function(ot){return _e.removeContextProperty(ot)}),clearUser:monitor(function(){return _e.clearContext()}),startView:rt,stopSession:monitor(function(){it.stopSession(),addTelemetryUsage({feature:"stop-session"})}),addFeatureFlagEvaluation:monitor(function(ot,at){it.addFeatureFlagEvaluation(sanitize(ot),sanitize(at)),addTelemetryUsage({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:monitor(function(){return s.getSessionReplayLink()}),startSessionReplayRecording:monitor(function(ot){s.start(ot),addTelemetryUsage({feature:"start-session-replay-recording",force:ot&&ot.force})}),stopSessionReplayRecording:monitor(function(){return s.stop()}),addDurationVital:monitor(function(ot,at){addTelemetryUsage({feature:"add-duration-vital"}),it.addDurationVital({name:sanitize(ot),type:"duration",startClocks:timeStampToClocks(at.startTime),duration:at.duration,context:sanitize(at&&at.context),description:sanitize(at&&at.description)})}),startDurationVital:monitor(function(ot,at){return addTelemetryUsage({feature:"start-duration-vital"}),it.startDurationVital(sanitize(ot),{context:sanitize(at&&at.context),description:sanitize(at&&at.description)})}),stopDurationVital:monitor(function(ot,at){addTelemetryUsage({feature:"stop-duration-vital"}),it.stopDurationVital(typeof ot=="string"?sanitize(ot):ot,{context:sanitize(at&&at.context),description:sanitize(at&&at.description)})})});return st}function createPostStartStrategy(o,s){return assign({init:function(a){displayAlreadyInitializedError("DD_RUM",a)},initConfiguration:o.initConfiguration},s)}function createDOMMutationObservable(){var o=getMutationObserverConstructor();return new Observable(function(s){if(o){var a=new o(monitor(function(){return s.notify()}));return a.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return a.disconnect()}}})}function getMutationObserverConstructor(){var o,s=window;if(s.Zone&&(o=getZoneJsOriginalValue(s,"MutationObserver"),s.MutationObserver&&o===s.MutationObserver)){var a=new s.MutationObserver(noop),$=getZoneJsOriginalValue(a,"originalInstance");o=$&&$.constructor}return o||(o=s.MutationObserver),o}function getSyntheticsContext(){var o=getSyntheticsTestId(),s=getSyntheticsResultId();if(o&&s)return{test_id:o,result_id:s,injected:willSyntheticsInjectRum()}}function limitModification(o,s,a){var $=deepClone(o),j=a($);return objectEntries(s).forEach(function(_e){var et=_e[0],tt=_e[1],nt=get($,et),it=getType(nt);it===tt?set(o,et,sanitize(nt)):tt==="object"&&(it==="undefined"||it==="null")&&set(o,et,{})}),j}function get(o,s){for(var a=o,$=0,j=s.split(".");$<j.length;$++){var _e=j[$];if(!isValidObjectContaining(a,_e))return;a=a[_e]}return a}function set(o,s,a){for(var $=o,j=s.split("."),_e=0;_e<j.length;_e+=1){var et=j[_e];if(!isValidObject($))return;_e!==j.length-1?$=$[et]:$[et]=a}}function isValidObject(o){return getType(o)==="object"}function isValidObjectContaining(o,s){return isValidObject(o)&&Object.prototype.hasOwnProperty.call(o,s)}var VIEW_MODIFIABLE_FIELD_PATHS={"view.name":"string","view.url":"string","view.referrer":"string"},USER_CUSTOMIZABLE_FIELD_PATHS={context:"object"},ROOT_MODIFIABLE_FIELD_PATHS={service:"string",version:"string"},modifiableFieldPathsByEvent;function startRumAssembly(o,s,a,$,j,_e,et,tt,nt,it){var rt,st;modifiableFieldPathsByEvent=(rt={},rt.view=assign({},USER_CUSTOMIZABLE_FIELD_PATHS,VIEW_MODIFIABLE_FIELD_PATHS),rt.error=assign({"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string"},USER_CUSTOMIZABLE_FIELD_PATHS,VIEW_MODIFIABLE_FIELD_PATHS,ROOT_MODIFIABLE_FIELD_PATHS),rt.resource=assign({"resource.url":"string"},isExperimentalFeatureEnabled(ExperimentalFeature.WRITABLE_RESOURCE_GRAPHQL)?{"resource.graphql":"object"}:{},USER_CUSTOMIZABLE_FIELD_PATHS,VIEW_MODIFIABLE_FIELD_PATHS,ROOT_MODIFIABLE_FIELD_PATHS),rt.action=assign({"action.target.name":"string"},USER_CUSTOMIZABLE_FIELD_PATHS,VIEW_MODIFIABLE_FIELD_PATHS,ROOT_MODIFIABLE_FIELD_PATHS),rt.long_task=assign({},USER_CUSTOMIZABLE_FIELD_PATHS,VIEW_MODIFIABLE_FIELD_PATHS),rt.vital=assign({},USER_CUSTOMIZABLE_FIELD_PATHS,VIEW_MODIFIABLE_FIELD_PATHS),rt);var ot=(st={},st.error=createEventRateLimiter("error",o.eventRateLimiterThreshold,it),st.action=createEventRateLimiter("action",o.eventRateLimiterThreshold,it),st.vital=createEventRateLimiter("vital",o.eventRateLimiterThreshold,it),st),at=getSyntheticsContext();s.subscribe(11,function(lt){var ct=lt.startTime,ht=lt.rawRumEvent,dt=lt.domainContext,ut=lt.savedCommonContext,pt=lt.customerContext,ft=$.findView(ct),mt=j.findUrl(ct),gt=a.findTrackedSession(ct);if(gt&&ft&&mt){var bt=ut||nt(),St=_e.findActionId(ct),Nt={_dd:{format_version:2,drift:currentDrift(),configuration:{session_sample_rate:round(o.sessionSampleRate,3),session_replay_sample_rate:round(o.sessionReplaySampleRate,3)},browser_sdk_version:canUseEventBridge()?"5.29.1":void 0},application:{id:o.applicationId},date:timeStampNow(),service:ft.service||o.service,version:ft.version||o.version,source:"browser",session:{id:gt.id,type:at?"synthetics":tt.get()?"ci_test":"user"},view:{id:ft.id,name:ft.name,url:mt.url,referrer:mt.referrer},action:needToAssembleWithAction(ht)&&St?{id:St}:void 0,synthetics:at,ci_test:tt.get(),display:et.get(),connectivity:getConnectivity()},Rt=combine(Nt,ht);Rt.context=combine(bt.context,ft.context,pt),"has_replay"in Rt.session||(Rt.session.has_replay=bt.hasReplay),Rt.type==="view"&&(Rt.session.sampled_for_replay=gt.sessionReplay===1),isEmptyObject(bt.user)||(Rt.usr=bt.user),shouldSend(Rt,o.beforeSend,dt,ot)&&(isEmptyObject(Rt.context)&&delete Rt.context,s.notify(12,Rt))}})}function shouldSend(o,s,a,$){var j;if(s){var _e=limitModification(o,modifiableFieldPathsByEvent[o.type],function(tt){return s(tt,a)});if(_e===!1&&o.type!=="view")return!1;_e===!1&&display.warn("Can't dismiss view events using beforeSend!")}var et=(j=$[o.type])===null||j===void 0?void 0:j.isLimitReached();return!et}function needToAssembleWithAction(o){return["error","resource","long_task"].indexOf(o.type)!==-1}function startInternalContext(o,s,a,$,j){return{get:function(_e){var et=a.findView(_e),tt=j.findUrl(_e),nt=s.findTrackedSession(_e);if(nt&&et&&tt){var it=$.findActionId(_e);return{application_id:o,session_id:nt.id,user_action:it?{id:it}:void 0,view:{id:et.id,name:et.name,referrer:tt.referrer,url:tt.url}}}}}}var LifeCycle=AbstractLifeCycle,VIEW_CONTEXT_TIME_OUT_DELAY=SESSION_TIME_OUT_DELAY;function startViewHistory(o){var s=createValueHistory({expireDelay:VIEW_CONTEXT_TIME_OUT_DELAY});o.subscribe(1,function($){s.add(a($),$.startClocks.relative)}),o.subscribe(5,function($){var j=$.endClocks;s.closeActive(j.relative)}),o.subscribe(3,function($){var j=s.find($.startClocks.relative);j&&$.name&&(j.name=$.name),j&&$.context&&(j.context=$.context)}),o.subscribe(9,function(){s.reset()});function a($){return{service:$.service,version:$.version,context:$.context,id:$.id,name:$.name,startClocks:$.startClocks}}return{findView:function($){return s.find($)},stop:function(){s.stop()}}}var FAKE_INITIAL_DOCUMENT="initial_document",RESOURCE_TYPES=[["document",function(o){return FAKE_INITIAL_DOCUMENT===o}],["xhr",function(o){return o==="xmlhttprequest"}],["fetch",function(o){return o==="fetch"}],["beacon",function(o){return o==="beacon"}],["css",function(o,s){return/\.css$/i.test(s)}],["js",function(o,s){return/\.js$/i.test(s)}],["image",function(o,s){return includes(["image","img","icon"],o)||/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(s)!==null}],["font",function(o,s){return/\.(woff|eot|woff2|ttf)$/i.exec(s)!==null}],["media",function(o,s){return includes(["audio","video"],o)||/\.(mp3|mp4)$/i.exec(s)!==null}]];function computeResourceEntryType(o){var s=o.name;if(!isValidUrl(s))return addTelemetryDebug('Failed to construct URL for "'.concat(o.name,'"')),"other";for(var a=getPathName(s),$=0,j=RESOURCE_TYPES;$<j.length;$++){var _e=j[$],et=_e[0],tt=_e[1];if(tt(o.initiatorType,a))return et}return"other"}function areInOrder(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];for(var a=1;a<o.length;a+=1)if(o[a-1]>o[a])return!1;return!0}function isResourceEntryRequestType(o){return o.initiatorType==="xmlhttprequest"||o.initiatorType==="fetch"}function computeResourceEntryDuration(o){var s=o.duration,a=o.startTime,$=o.responseEnd;return s===0&&a<$?toServerDuration(elapsed(a,$)):toServerDuration(s)}function computeResourceEntryDetails(o){if(hasValidResourceEntryTimings(o)){var s=o.startTime,a=o.fetchStart,$=o.redirectStart,j=o.redirectEnd,_e=o.domainLookupStart,et=o.domainLookupEnd,tt=o.connectStart,nt=o.secureConnectionStart,it=o.connectEnd,rt=o.requestStart,st=o.responseStart,ot=o.responseEnd,at={download:formatTiming(s,st,ot),first_byte:formatTiming(s,rt,st)};return a<it&&(at.connect=formatTiming(s,tt,it),tt<=nt&&nt<=it&&(at.ssl=formatTiming(s,nt,it))),a<et&&(at.dns=formatTiming(s,_e,et)),s<j&&(at.redirect=formatTiming(s,$,j)),at}}function hasValidResourceEntryDuration(o){return o.duration>=0}function hasValidResourceEntryTimings(o){var s=areInOrder(o.startTime,o.fetchStart,o.domainLookupStart,o.domainLookupEnd,o.connectStart,o.connectEnd,o.requestStart,o.responseStart,o.responseEnd),a=hasRedirection(o)?areInOrder(o.startTime,o.redirectStart,o.redirectEnd,o.fetchStart):!0;return s&&a}function hasRedirection(o){return o.redirectEnd>o.startTime}function formatTiming(o,s,a){if(o<=s&&s<=a)return{duration:toServerDuration(elapsed(s,a)),start:toServerDuration(elapsed(o,s))}}function computeResourceEntrySize(o){if(o.startTime<o.responseStart){var s=o.encodedBodySize,a=o.decodedBodySize,$=o.transferSize;return{size:a,encoded_body_size:s,decoded_body_size:a,transfer_size:$}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}function isAllowedRequestUrl(o,s){return s&&!o.isIntakeUrl(s)}var DATA_URL_REGEX=/data:(.+)?(;base64)?,/g,MAX_ATTRIBUTE_VALUE_CHAR_LENGTH=24e3;function isLongDataUrl(o){return o.length<=MAX_ATTRIBUTE_VALUE_CHAR_LENGTH?!1:o.substring(0,5)==="data:"?(o=o.substring(0,MAX_ATTRIBUTE_VALUE_CHAR_LENGTH),!0):!1}function sanitizeDataUrl(o){return"".concat(o.match(DATA_URL_REGEX)[0],"[...]")}var nextRequestIndex=1;function startRequestCollection(o,s,a){var $=startTracer(s,a);trackXhr(o,s,$),trackFetch(o,s,$)}function trackXhr(o,s,a){var $=initXhrObservable(s).subscribe(function(j){var _e=j;if(isAllowedRequestUrl(s,_e.url))switch(_e.state){case"start":a.traceXhr(_e,_e.xhr),_e.requestIndex=getNextRequestIndex(),o.notify(6,{requestIndex:_e.requestIndex,url:_e.url});break;case"complete":a.clearTracingIfNeeded(_e),o.notify(7,{duration:_e.duration,method:_e.method,requestIndex:_e.requestIndex,spanId:_e.spanId,startClocks:_e.startClocks,status:_e.status,traceId:_e.traceId,traceSampled:_e.traceSampled,type:"xhr",url:_e.url,xhr:_e.xhr,isAborted:_e.isAborted,handlingStack:_e.handlingStack});break}});return{stop:function(){return $.unsubscribe()}}}function trackFetch(o,s,a){var $=initFetchObservable().subscribe(function(j){var _e=j;if(isAllowedRequestUrl(s,_e.url))switch(_e.state){case"start":a.traceFetch(_e),_e.requestIndex=getNextRequestIndex(),o.notify(6,{requestIndex:_e.requestIndex,url:_e.url});break;case"resolve":waitForResponseToComplete(_e,function(et){a.clearTracingIfNeeded(_e),o.notify(7,{duration:et,method:_e.method,requestIndex:_e.requestIndex,responseType:_e.responseType,spanId:_e.spanId,startClocks:_e.startClocks,status:_e.status,traceId:_e.traceId,traceSampled:_e.traceSampled,type:"fetch",url:_e.url,response:_e.response,init:_e.init,input:_e.input,isAborted:_e.isAborted,handlingStack:_e.handlingStack})});break}});return{stop:function(){return $.unsubscribe()}}}function getNextRequestIndex(){var o=nextRequestIndex;return nextRequestIndex+=1,o}function waitForResponseToComplete(o,s){var a=o.response&&tryToClone(o.response);!a||!a.body?s(elapsed(o.startClocks.timeStamp,timeStampNow())):readBytesFromStream(a.body,function(){s(elapsed(o.startClocks.timeStamp,timeStampNow()))},{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1})}function discardNegativeDuration(o){return isNumber(o)&&o<0?void 0:o}function trackEventCounts(o){var s=o.lifeCycle,a=o.isChildEvent,$=o.onChange,j=$===void 0?noop:$,_e={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},et=s.subscribe(12,function(tt){var nt;if(!(tt.type==="view"||tt.type==="vital"||!a(tt)))switch(tt.type){case"error":_e.errorCount+=1,j();break;case"action":_e.actionCount+=1,tt.action.frustration&&(_e.frustrationCount+=tt.action.frustration.type.length),j();break;case"long_task":_e.longTaskCount+=1,j();break;case"resource":!((nt=tt._dd)===null||nt===void 0)&&nt.discarded||(_e.resourceCount+=1,j());break}});return{stop:function(){et.unsubscribe()},eventCounts:_e}}function retrieveFirstInputTiming(o,s){var a=dateNow(),$=!1,j=addEventListeners(o,window,["click","mousedown","keydown","touchstart","pointerdown"],function(tt){if(tt.cancelable){var nt={entryType:"first-input",processingStart:relativeNow(),processingEnd:relativeNow(),startTime:tt.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:function(){return{}}};tt.type==="pointerdown"?_e(o,nt):et(nt)}},{passive:!0,capture:!0}).stop;return{stop:j};function _e(tt,nt){addEventListeners(tt,window,["pointerup","pointercancel"],function(it){it.type==="pointerup"&&et(nt)},{once:!0})}function et(tt){if(!$){$=!0,j();var nt=tt.processingStart-tt.startTime;nt>=0&&nt<dateNow()-a&&s(tt)}}}var RumPerformanceEntryType;(function(o){o.EVENT="event",o.FIRST_INPUT="first-input",o.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",o.LAYOUT_SHIFT="layout-shift",o.LONG_TASK="longtask",o.LONG_ANIMATION_FRAME="long-animation-frame",o.NAVIGATION="navigation",o.PAINT="paint",o.RESOURCE="resource"})(RumPerformanceEntryType||(RumPerformanceEntryType={}));function createPerformanceObservable(o,s){return new Observable(function(a){if(window.PerformanceObserver){var $=function(it){var rt=filterRumPerformanceEntries(o,it);rt.length>0&&a.notify(rt)},j,_e=!0,et=new PerformanceObserver(monitor(function(it){_e?j=setTimeout$1(function(){return $(it.getEntries())}):$(it.getEntries())}));try{et.observe(s)}catch{var tt=[RumPerformanceEntryType.RESOURCE,RumPerformanceEntryType.NAVIGATION,RumPerformanceEntryType.LONG_TASK,RumPerformanceEntryType.PAINT];if(includes(tt,s.type)){s.buffered&&(j=setTimeout$1(function(){return $(performance.getEntriesByType(s.type))}));try{et.observe({entryTypes:[s.type]})}catch{return}}}_e=!1,manageResourceTimingBufferFull(o);var nt;return!supportPerformanceTimingEvent(RumPerformanceEntryType.FIRST_INPUT)&&s.type===RumPerformanceEntryType.FIRST_INPUT&&(nt=retrieveFirstInputTiming(o,function(it){$([it])}).stop),function(){et.disconnect(),nt&&nt(),clearTimeout$1(j)}}})}var resourceTimingBufferFullListener;function manageResourceTimingBufferFull(o){return!resourceTimingBufferFullListener&&supportPerformanceObject()&&"addEventListener"in performance&&(resourceTimingBufferFullListener=addEventListener(o,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()})),function(){resourceTimingBufferFullListener==null||resourceTimingBufferFullListener.stop()}}function supportPerformanceObject(){return window.performance!==void 0&&"getEntries"in performance}function supportPerformanceTimingEvent(o){return window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes!==void 0&&PerformanceObserver.supportedEntryTypes.includes(o)}function filterRumPerformanceEntries(o,s){return s.filter(function(a){return!isForbiddenResource(o,a)})}function isForbiddenResource(o,s){return s.entryType===RumPerformanceEntryType.RESOURCE&&(!isAllowedRequestUrl(o,s.name)||!hasValidResourceEntryDuration(s))}var PAGE_ACTIVITY_VALIDATION_DELAY=100,PAGE_ACTIVITY_END_DELAY=100;function waitPageActivityEnd(o,s,a,$,j){var _e=createPageActivityObservable(o,s,a);return doWaitPageActivityEnd(_e,$,j)}function doWaitPageActivityEnd(o,s,a){var $,j=!1,_e=setTimeout$1(monitor(function(){return it({hadActivity:!1})}),PAGE_ACTIVITY_VALIDATION_DELAY),et=a!==void 0?setTimeout$1(monitor(function(){return it({hadActivity:!0,end:timeStampNow()})}),a):void 0,tt=o.subscribe(function(rt){var st=rt.isBusy;clearTimeout$1(_e),clearTimeout$1($);var ot=timeStampNow();st||($=setTimeout$1(monitor(function(){return it({hadActivity:!0,end:ot})}),PAGE_ACTIVITY_END_DELAY))}),nt=function(){j=!0,clearTimeout$1(_e),clearTimeout$1($),clearTimeout$1(et),tt.unsubscribe()};function it(rt){j||(nt(),s(rt))}return{stop:nt}}function createPageActivityObservable(o,s,a){return new Observable(function($){var j=[],_e,et=0;j.push(s.subscribe(nt),createPerformanceObservable(a,{type:RumPerformanceEntryType.RESOURCE}).subscribe(function(it){it.some(function(rt){return!isExcludedUrl(a,rt.name)})&&nt()}),o.subscribe(6,function(it){isExcludedUrl(a,it.url)||(_e===void 0&&(_e=it.requestIndex),et+=1,nt())}),o.subscribe(7,function(it){isExcludedUrl(a,it.url)||_e===void 0||it.requestIndex<_e||(et-=1,nt())}));var tt=trackWindowOpen(nt).stop;return function(){tt(),j.forEach(function(it){return it.unsubscribe()})};function nt(){$.notify({isBusy:et>0})}})}function isExcludedUrl(o,s){return matchList(o.excludedActivityUrls,s)}function trackWindowOpen(o){return instrumentMethod(window,"open",o)}function cssEscape(o){return window.CSS&&window.CSS.escape?window.CSS.escape(o):o.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(s,a){return a?s==="\0"?"�":"".concat(s.slice(0,-1),"\\").concat(s.charCodeAt(s.length-1).toString(16)," "):"\\".concat(s)})}function elementMatches(o,s){return o.matches?o.matches(s):o.msMatchesSelector?o.msMatchesSelector(s):!1}function getParentElement(o){if(o.parentElement)return o.parentElement;for(;o.parentNode;){if(o.parentNode.nodeType===Node.ELEMENT_NODE)return o.parentNode;o=o.parentNode}return null}function getClassList(o){if(o.classList)return o.classList;var s=(o.getAttribute("class")||"").trim();return s?s.split(/\s+/):[]}var PLACEHOLDER=1,WeakSet$1=function(){function o(s){var a=this;this.map=new WeakMap,s&&s.forEach(function($){return a.map.set($,PLACEHOLDER)})}return o.prototype.add=function(s){return this.map.set(s,PLACEHOLDER),this},o.prototype.delete=function(s){return this.map.delete(s)},o.prototype.has=function(s){return this.map.has(s)},o}();function isTextNode(o){return o.nodeType===Node.TEXT_NODE}function isCommentNode(o){return o.nodeType===Node.COMMENT_NODE}function isElementNode(o){return o.nodeType===Node.ELEMENT_NODE}function isNodeShadowHost(o){return isElementNode(o)&&!!o.shadowRoot}function isNodeShadowRoot(o){var s=o;return!!s.host&&s.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&isElementNode(s.host)}function hasChildNodes(o){return o.childNodes.length>0||isNodeShadowHost(o)}function forEachChildNodes(o,s){for(var a=o.firstChild;a;)s(a),a=a.nextSibling;isNodeShadowHost(o)&&s(o.shadowRoot)}function getParentNode(o){return isNodeShadowRoot(o)?o.host:o.parentNode}var NodePrivacyLevel={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:DefaultPrivacyLevel.ALLOW,MASK:DefaultPrivacyLevel.MASK,MASK_USER_INPUT:DefaultPrivacyLevel.MASK_USER_INPUT},PRIVACY_ATTR_NAME="data-dd-privacy",PRIVACY_ATTR_VALUE_HIDDEN="hidden",PRIVACY_CLASS_PREFIX="dd-privacy-",CENSORED_STRING_MARK="***",CENSORED_IMG_MARK="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",FORM_PRIVATE_TAG_NAMES={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},TEXT_MASKING_CHAR="x";function getNodePrivacyLevel(o,s,a){if(a&&a.has(o))return a.get(o);var $=getParentNode(o),j=$?getNodePrivacyLevel($,s,a):s,_e=getNodeSelfPrivacyLevel(o),et=reducePrivacyLevel(_e,j);return a&&a.set(o,et),et}function reducePrivacyLevel(o,s){switch(s){case NodePrivacyLevel.HIDDEN:case NodePrivacyLevel.IGNORE:return s}switch(o){case NodePrivacyLevel.ALLOW:case NodePrivacyLevel.MASK:case NodePrivacyLevel.MASK_USER_INPUT:case NodePrivacyLevel.HIDDEN:case NodePrivacyLevel.IGNORE:return o;default:return s}}function getNodeSelfPrivacyLevel(o){if(isElementNode(o)){if(o.tagName==="BASE")return NodePrivacyLevel.ALLOW;if(o.tagName==="INPUT"){var s=o;if(s.type==="password"||s.type==="email"||s.type==="tel"||s.type==="hidden")return NodePrivacyLevel.MASK;var a=s.getAttribute("autocomplete");if(a&&a.indexOf("cc-")===0)return NodePrivacyLevel.MASK}if(elementMatches(o,getPrivacySelector(NodePrivacyLevel.HIDDEN)))return NodePrivacyLevel.HIDDEN;if(elementMatches(o,getPrivacySelector(NodePrivacyLevel.MASK)))return NodePrivacyLevel.MASK;if(elementMatches(o,getPrivacySelector(NodePrivacyLevel.MASK_USER_INPUT)))return NodePrivacyLevel.MASK_USER_INPUT;if(elementMatches(o,getPrivacySelector(NodePrivacyLevel.ALLOW)))return NodePrivacyLevel.ALLOW;if(shouldIgnoreElement(o))return NodePrivacyLevel.IGNORE}}function shouldMaskNode(o,s){switch(s){case NodePrivacyLevel.MASK:case NodePrivacyLevel.HIDDEN:case NodePrivacyLevel.IGNORE:return!0;case NodePrivacyLevel.MASK_USER_INPUT:return isTextNode(o)?isFormElement(o.parentNode):isFormElement(o);default:return!1}}function isFormElement(o){if(!o||o.nodeType!==o.ELEMENT_NODE)return!1;var s=o;if(s.tagName==="INPUT")switch(s.type){case"button":case"color":case"reset":case"submit":return!1}return!!FORM_PRIVATE_TAG_NAMES[s.tagName]}var censorText=function(o){return o.replace(/\S/g,TEXT_MASKING_CHAR)};function getTextContent(o,s,a){var $,j=($=o.parentElement)===null||$===void 0?void 0:$.tagName,_e=o.textContent||"";if(!(s&&!_e.trim())){var et=a,tt=j==="SCRIPT";if(tt)_e=CENSORED_STRING_MARK;else if(et===NodePrivacyLevel.HIDDEN)_e=CENSORED_STRING_MARK;else if(shouldMaskNode(o,et))if(j==="DATALIST"||j==="SELECT"||j==="OPTGROUP"){if(!_e.trim())return}else j==="OPTION"?_e=CENSORED_STRING_MARK:_e=censorText(_e);return _e}}function shouldIgnoreElement(o){if(o.nodeName==="SCRIPT")return!0;if(o.nodeName==="LINK"){var s=j("rel");return/preload|prefetch/i.test(s)&&j("as")==="script"||s==="shortcut icon"||s==="icon"}if(o.nodeName==="META"){var a=j("name"),s=j("rel"),$=j("property");return/^msapplication-tile(image|color)$/.test(a)||a==="application-name"||s==="icon"||s==="apple-touch-icon"||s==="shortcut icon"||a==="keywords"||a==="description"||/^(og|twitter|fb):/.test($)||/^(og|twitter):/.test(a)||a==="pinterest"||a==="robots"||a==="googlebot"||a==="bingbot"||o.hasAttribute("http-equiv")||a==="author"||a==="generator"||a==="framework"||a==="publisher"||a==="progid"||/^article:/.test($)||/^product:/.test($)||a==="google-site-verification"||a==="yandex-verification"||a==="csrf-token"||a==="p:domain_verify"||a==="verify-v1"||a==="verification"||a==="shopify-checkout-api-token"}function j(_e){return(o.getAttribute(_e)||"").toLowerCase()}return!1}function getPrivacySelector(o){return"[".concat(PRIVACY_ATTR_NAME,'="').concat(o,'"], .').concat(PRIVACY_CLASS_PREFIX).concat(o)}var DEFAULT_PROGRAMMATIC_ACTION_NAME_ATTRIBUTE="data-dd-action-name",ACTION_NAME_PLACEHOLDER="Masked Element";function getActionNameFromElement(o,s,a){var $=s.enablePrivacyForActionName,j=s.actionNameAttribute,_e=getActionNameFromElementProgrammatically(o,DEFAULT_PROGRAMMATIC_ACTION_NAME_ATTRIBUTE)||j&&getActionNameFromElementProgrammatically(o,j);return a===NodePrivacyLevel.MASK?_e||ACTION_NAME_PLACEHOLDER:_e||getActionNameFromElementForStrategies(o,j,priorityStrategies,$)||getActionNameFromElementForStrategies(o,j,fallbackStrategies,$)||""}function getActionNameFromElementProgrammatically(o,s){var a;if(supportsElementClosest())a=o.closest("[".concat(s,"]"));else for(var $=o;$;){if($.hasAttribute(s)){a=$;break}$=getParentElement($)}if(a){var j=a.getAttribute(s);return truncate(normalizeWhitespace(j.trim()))}}var priorityStrategies=[function(o,s,a){if(supportsLabelProperty()){if("labels"in o&&o.labels&&o.labels.length>0)return getTextualContent(o.labels[0],s)}else if(o.id){var $=o.ownerDocument&&find(o.ownerDocument.querySelectorAll("label"),function(j){return j.htmlFor===o.id});return $&&getTextualContent($,s,a)}},function(o){if(o.nodeName==="INPUT"){var s=o,a=s.getAttribute("type");if(a==="button"||a==="submit"||a==="reset")return s.value}},function(o,s,a){if(o.nodeName==="BUTTON"||o.nodeName==="LABEL"||o.getAttribute("role")==="button")return getTextualContent(o,s,a)},function(o){return o.getAttribute("aria-label")},function(o,s,a){var $=o.getAttribute("aria-labelledby");if($)return $.split(/\s+/).map(function(j){return getElementById(o,j)}).filter(function(j){return!!j}).map(function(j){return getTextualContent(j,s,a)}).join(" ")},function(o){return o.getAttribute("alt")},function(o){return o.getAttribute("name")},function(o){return o.getAttribute("title")},function(o){return o.getAttribute("placeholder")},function(o,s){if("options"in o&&o.options.length>0)return getTextualContent(o.options[0],s)}],fallbackStrategies=[function(o,s,a){return getTextualContent(o,s,a)}],MAX_PARENTS_TO_CONSIDER=10;function getActionNameFromElementForStrategies(o,s,a,$){for(var j=o,_e=0;_e<=MAX_PARENTS_TO_CONSIDER&&j&&j.nodeName!=="BODY"&&j.nodeName!=="HTML"&&j.nodeName!=="HEAD";){for(var et=0,tt=a;et<tt.length;et++){var nt=tt[et],it=nt(j,s,$);if(typeof it=="string"){var rt=it.trim();if(rt)return truncate(normalizeWhitespace(rt))}}if(j.nodeName==="FORM")break;j=getParentElement(j),_e+=1}}function normalizeWhitespace(o){return o.replace(/\s+/g," ")}function truncate(o){return o.length>100?"".concat(safeTruncate(o,100)," [...]"):o}function getElementById(o,s){return o.ownerDocument?o.ownerDocument.getElementById(s):null}function getTextualContent(o,s,a){if(!o.isContentEditable){if("innerText"in o){var $=o.innerText,j=function(_e){for(var et=o.querySelectorAll(_e),tt=0;tt<et.length;tt+=1){var nt=et[tt];if("innerText"in nt){var it=nt.innerText;it&&it.trim().length>0&&($=$.replace(it,""))}}};return supportsInnerTextScriptAndStyleRemoval()||j("script, style"),j("[".concat(DEFAULT_PROGRAMMATIC_ACTION_NAME_ATTRIBUTE,"]")),s&&j("[".concat(s,"]")),a&&j("".concat(getPrivacySelector(NodePrivacyLevel.HIDDEN),", ").concat(getPrivacySelector(NodePrivacyLevel.MASK))),$}return o.textContent}}function supportsInnerTextScriptAndStyleRemoval(){return!isIE()}var supportsLabelPropertyResult;function supportsLabelProperty(){return supportsLabelPropertyResult===void 0&&(supportsLabelPropertyResult="labels"in HTMLInputElement.prototype),supportsLabelPropertyResult}var supportsElementClosestResult;function supportsElementClosest(){return supportsElementClosestResult===void 0&&(supportsElementClosestResult="closest"in HTMLElement.prototype),supportsElementClosestResult}var STABLE_ATTRIBUTES=[DEFAULT_PROGRAMMATIC_ACTION_NAME_ATTRIBUTE,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],GLOBALLY_UNIQUE_SELECTOR_GETTERS=[getStableAttributeSelector,getIDSelector],UNIQUE_AMONG_CHILDREN_SELECTOR_GETTERS=[getStableAttributeSelector,getClassSelector,getTagNameSelector];function getSelectorFromElement(o,s){if(isConnected(o)){for(var a,$=o;$&&$.nodeName!=="HTML";){var j=findSelector($,GLOBALLY_UNIQUE_SELECTOR_GETTERS,isSelectorUniqueGlobally,s,a);if(j)return j;var _e=findSelector($,UNIQUE_AMONG_CHILDREN_SELECTOR_GETTERS,isSelectorUniqueAmongSiblings,s,a);a=_e||combineSelector(getPositionSelector($),a),$=getParentElement($)}return a}}function isGeneratedValue(o){return/[0-9]/.test(o)}function getIDSelector(o){if(o.id&&!isGeneratedValue(o.id))return"#".concat(cssEscape(o.id))}function getClassSelector(o){if(o.tagName!=="BODY")for(var s=getClassList(o),a=0;a<s.length;a+=1){var $=s[a];if(!isGeneratedValue($))return"".concat(cssEscape(o.tagName),".").concat(cssEscape($))}}function getTagNameSelector(o){return cssEscape(o.tagName)}function getStableAttributeSelector(o,s){if(s){var a=et(s);if(a)return a}for(var $=0,j=STABLE_ATTRIBUTES;$<j.length;$++){var _e=j[$],a=et(_e);if(a)return a}function et(tt){if(o.hasAttribute(tt))return"".concat(cssEscape(o.tagName),"[").concat(tt,'="').concat(cssEscape(o.getAttribute(tt)),'"]')}}function getPositionSelector(o){for(var s=getParentElement(o).firstElementChild,a=1;s&&s!==o;)s.tagName===o.tagName&&(a+=1),s=s.nextElementSibling;return"".concat(cssEscape(o.tagName),":nth-of-type(").concat(a,")")}function findSelector(o,s,a,$,j){for(var _e=0,et=s;_e<et.length;_e++){var tt=et[_e],nt=tt(o,$);if(nt&&a(o,nt,j))return combineSelector(nt,j)}}function isSelectorUniqueGlobally(o,s,a){return o.ownerDocument.querySelectorAll(combineSelector(s,a)).length===1}function isSelectorUniqueAmongSiblings(o,s,a){var $;if(a===void 0)$=function(tt){return elementMatches(tt,s)};else{var j=supportScopeSelector()?combineSelector("".concat(s,":scope"),a):combineSelector(s,a);$=function(tt){return tt.querySelector(j)!==null}}for(var _e=getParentElement(o),et=_e.firstElementChild;et;){if(et!==o&&$(et))return!1;et=et.nextElementSibling}return!0}function combineSelector(o,s){return s?"".concat(o,">").concat(s):o}var supportScopeSelectorCache;function supportScopeSelector(){if(supportScopeSelectorCache===void 0)try{document.querySelector(":scope"),supportScopeSelectorCache=!0}catch{supportScopeSelectorCache=!1}return supportScopeSelectorCache}function isConnected(o){return"isConnected"in o?o.isConnected:o.ownerDocument.documentElement.contains(o)}var MAX_DURATION_BETWEEN_CLICKS=ONE_SECOND,MAX_DISTANCE_BETWEEN_CLICKS=100;function createClickChain(o,s){var a=[],$=0,j;_e(o);function _e(nt){nt.stopObservable.subscribe(et),a.push(nt),clearTimeout$1(j),j=setTimeout$1(tt,MAX_DURATION_BETWEEN_CLICKS)}function et(){$===1&&a.every(function(nt){return nt.isStopped()})&&($=2,s(a))}function tt(){clearTimeout$1(j),$===0&&($=1,et())}return{tryAppend:function(nt){return $!==0?!1:a.length>0&&!areEventsSimilar(a[a.length-1].event,nt.event)?(tt(),!1):(_e(nt),!0)},stop:function(){tt()}}}function areEventsSimilar(o,s){return o.target===s.target&&mouseEventDistance(o,s)<=MAX_DISTANCE_BETWEEN_CLICKS&&o.timeStamp-s.timeStamp<=MAX_DURATION_BETWEEN_CLICKS}function mouseEventDistance(o,s){return Math.sqrt(Math.pow(o.clientX-s.clientX,2)+Math.pow(o.clientY-s.clientY,2))}function listenActionEvents(o,s){var a=s.onPointerDown,$=s.onPointerUp,j,_e={selection:!1,input:!1,scroll:!1},et,tt=[addEventListener(o,window,"pointerdown",function(nt){isValidPointerEvent(nt)&&(j=isSelectionEmpty(),_e={selection:!1,input:!1,scroll:!1},et=a(nt))},{capture:!0}),addEventListener(o,window,"selectionchange",function(){(!j||!isSelectionEmpty())&&(_e.selection=!0)},{capture:!0}),addEventListener(o,window,"scroll",function(){_e.scroll=!0},{capture:!0,passive:!0}),addEventListener(o,window,"pointerup",function(nt){if(isValidPointerEvent(nt)&&et){var it=_e;$(et,nt,function(){return it}),et=void 0}},{capture:!0}),addEventListener(o,window,"input",function(){_e.input=!0},{capture:!0})];return{stop:function(){tt.forEach(function(nt){return nt.stop()})}}}function isSelectionEmpty(){var o=window.getSelection();return!o||o.isCollapsed}function isValidPointerEvent(o){return o.target instanceof Element&&o.isPrimary!==!1}var MIN_CLICKS_PER_SECOND_TO_CONSIDER_RAGE=3;function computeFrustration(o,s){if(isRage(o))return s.addFrustration("rage_click"),o.some(isDead)&&s.addFrustration("dead_click"),s.hasError&&s.addFrustration("error_click"),{isRage:!0};var a=o.some(function($){return $.getUserActivity().selection});return o.forEach(function($){$.hasError&&$.addFrustration("error_click"),isDead($)&&!a&&$.addFrustration("dead_click")}),{isRage:!1}}function isRage(o){if(o.some(function(a){return a.getUserActivity().selection||a.getUserActivity().scroll}))return!1;for(var s=0;s<o.length-(MIN_CLICKS_PER_SECOND_TO_CONSIDER_RAGE-1);s+=1)if(o[s+MIN_CLICKS_PER_SECOND_TO_CONSIDER_RAGE-1].event.timeStamp-o[s].event.timeStamp<=ONE_SECOND)return!0;return!1}var DEAD_CLICK_EXCLUDE_SELECTOR='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *';function isDead(o){return o.hasPageActivity||o.getUserActivity().input||o.getUserActivity().scroll?!1:!elementMatches(o.event.target,DEAD_CLICK_EXCLUDE_SELECTOR)}var CLICK_ACTION_MAX_DURATION=10*ONE_SECOND,interactionSelectorCache=new Map;function getInteractionSelector(o){var s=interactionSelectorCache.get(o);return interactionSelectorCache.delete(o),s}function updateInteractionSelector(o,s){interactionSelectorCache.set(o,s),interactionSelectorCache.forEach(function(a,$){elapsed($,relativeNow())>CLICK_ACTION_MAX_DURATION&&interactionSelectorCache.delete($)})}var ACTION_CONTEXT_TIME_OUT_DELAY=5*ONE_MINUTE;function trackClickActions(o,s,a){var $=createValueHistory({expireDelay:ACTION_CONTEXT_TIME_OUT_DELAY}),j=new Observable,_e;o.subscribe(9,function(){$.reset()}),o.subscribe(4,it);var et=listenActionEvents(a,{onPointerDown:function(rt){return processPointerDown(a,o,s,rt)},onPointerUp:function(rt,st,ot){var at=rt.clickActionBase,lt=rt.hadActivityOnPointerDown;startClickAction(a,o,s,$,j,nt,at,st,ot,lt)}}).stop,tt={findActionId:function(rt){return $.findAll(rt)}};return{stop:function(){it(),j.notify(),et()},actionContexts:tt};function nt(rt){if(!_e||!_e.tryAppend(rt)){var st=rt.clone();_e=createClickChain(rt,function(ot){finalizeClicks(ot,st)})}}function it(){_e&&_e.stop()}}function processPointerDown(o,s,a,$){var j=o.enablePrivacyForActionName?getNodePrivacyLevel($.target,o.defaultPrivacyLevel):NodePrivacyLevel.ALLOW;if(j!==NodePrivacyLevel.HIDDEN){var _e=computeClickActionBase($,j,o),et=!1;return waitPageActivityEnd(s,a,o,function(tt){et=tt.hadActivity},PAGE_ACTIVITY_VALIDATION_DELAY),{clickActionBase:_e,hadActivityOnPointerDown:function(){return et}}}}function startClickAction(o,s,a,$,j,_e,et,tt,nt,it){var rt,st=newClick(s,$,nt,et,tt);_e(st);var ot=(rt=et==null?void 0:et.target)===null||rt===void 0?void 0:rt.selector;ot&&updateInteractionSelector(tt.timeStamp,ot);var at=waitPageActivityEnd(s,a,o,function(ht){ht.hadActivity&&ht.end<st.startClocks.timeStamp?st.discard():ht.hadActivity?st.stop(ht.end):it()?st.stop(st.startClocks.timeStamp):st.stop()},CLICK_ACTION_MAX_DURATION).stop,lt=s.subscribe(4,function(ht){var dt=ht.endClocks;st.stop(dt.timeStamp)}),ct=j.subscribe(function(){st.stop()});st.stopObservable.subscribe(function(){lt.unsubscribe(),at(),ct.unsubscribe()})}function computeClickActionBase(o,s,a){var $=o.target.getBoundingClientRect(),j=getSelectorFromElement(o.target,a.actionNameAttribute);return j&&updateInteractionSelector(o.timeStamp,j),{type:"click",target:{width:Math.round($.width),height:Math.round($.height),selector:j},position:{x:Math.round(o.clientX-$.left),y:Math.round(o.clientY-$.top)},name:getActionNameFromElement(o.target,a,s)}}function newClick(o,s,a,$,j){var _e=generateUUID(),et=clocksNow(),tt=s.add(_e,et.relative),nt=trackEventCounts({lifeCycle:o,isChildEvent:function(lt){return lt.action!==void 0&&(Array.isArray(lt.action.id)?includes(lt.action.id,_e):lt.action.id===_e)}}),it=0,rt,st=[],ot=new Observable;function at(lt){it===0&&(rt=lt,it=1,rt?tt.close(getRelativeTime(rt)):tt.remove(),nt.stop(),ot.notify())}return{event:j,stop:at,stopObservable:ot,get hasError(){return nt.eventCounts.errorCount>0},get hasPageActivity(){return rt!==void 0},getUserActivity:a,addFrustration:function(lt){st.push(lt)},startClocks:et,isStopped:function(){return it===1||it===2},clone:function(){return newClick(o,s,a,$,j)},validate:function(lt){if(at(),it===1){var ct=nt.eventCounts,ht=ct.resourceCount,dt=ct.errorCount,ut=ct.longTaskCount,pt=assign({type:"click",duration:rt&&elapsed(et.timeStamp,rt),startClocks:et,id:_e,frustrationTypes:st,counts:{resourceCount:ht,errorCount:dt,longTaskCount:ut},events:lt??[j],event:j},$);o.notify(0,pt),it=2}},discard:function(){at(),it=2}}}function finalizeClicks(o,s){var a=computeFrustration(o,s).isRage;a?(o.forEach(function($){return $.discard()}),s.stop(timeStampNow()),s.validate(o.map(function($){return $.event}))):(s.discard(),o.forEach(function($){return $.validate()}))}function startActionCollection(o,s,a,$){o.subscribe(0,function(_e){return o.notify(11,processAction(_e,$))});var j={findActionId:noop};return a.trackUserInteractions&&(j=trackClickActions(o,s,a).actionContexts),{addAction:function(_e,et){o.notify(11,assign({savedCommonContext:et},processAction(_e,$)))},actionContexts:j}}function processAction(o,s){var a=isAutoAction(o)?{action:{id:o.id,loading_time:discardNegativeDuration(toServerDuration(o.duration)),frustration:{type:o.frustrationTypes},error:{count:o.counts.errorCount},long_task:{count:o.counts.longTaskCount},resource:{count:o.counts.resourceCount}},_dd:{action:{target:o.target,position:o.position}}}:void 0,$=isAutoAction(o)?void 0:o.context,j=combine({action:{id:generateUUID(),target:{name:o.name},type:o.type},date:o.startClocks.timeStamp,type:"action",view:{in_foreground:s.wasInPageStateAt("active",o.startClocks.relative)}},a),_e=isAutoAction(o)?{events:o.events}:{};return!isAutoAction(o)&&o.handlingStack&&(_e.handlingStack=o.handlingStack),{customerContext:$,rawRumEvent:j,startTime:o.startClocks.relative,domainContext:_e}}function isAutoAction(o){return o.type!=="custom"}function trackConsoleError(o){var s=initConsoleObservable([ConsoleApiName.error]).subscribe(function(a){return o.notify(a.error)});return{stop:function(){s.unsubscribe()}}}function trackReportError(o,s){var a=initReportObservable(o,[RawReportType.cspViolation,RawReportType.intervention]).subscribe(function($){return s.notify($)});return{stop:function(){a.unsubscribe()}}}function startErrorCollection(o,s,a,$){var j=new Observable;return trackConsoleError(j),trackRuntimeError(j),trackReportError(s,j),j.subscribe(function(_e){return o.notify(13,{error:_e})}),doStartErrorCollection(o,a,$)}function doStartErrorCollection(o,s,a){return o.subscribe(13,function($){var j=$.error,_e=$.customerContext,et=$.savedCommonContext;o.notify(11,assign({customerContext:_e,savedCommonContext:et},processError(j,s,a)))}),{addError:function($,j){var _e=$.error,et=$.handlingStack,tt=$.startClocks,nt=$.context,it=_e instanceof Error?computeStackTrace(_e):void 0,rt=computeRawError({stackTrace:it,originalError:_e,handlingStack:et,startClocks:tt,nonErrorPrefix:"Provided",source:ErrorSource.CUSTOM,handling:"handled"});o.notify(13,{customerContext:nt,savedCommonContext:j,error:rt})}}}function processError(o,s,a){var $={date:o.startClocks.timeStamp,error:{id:generateUUID(),message:o.message,source:o.source,stack:o.stack,handling_stack:o.handlingStack,type:o.type,handling:o.handling,causes:o.causes,source_type:"browser",fingerprint:o.fingerprint,csp:o.csp},type:"error",view:{in_foreground:s.wasInPageStateAt("active",o.startClocks.relative)}},j=a.findFeatureFlagEvaluations(o.startClocks.relative);j&&!isEmptyObject(j)&&($.feature_flags=j);var _e={error:o.originalError,handlingStack:o.handlingStack};return{rawRumEvent:$,startTime:o.startClocks.relative,domainContext:_e}}function startLongTaskCollection(o,s){var a=createPerformanceObservable(s,{type:RumPerformanceEntryType.LONG_TASK,buffered:!0}).subscribe(function($){for(var j=0,_e=$;j<_e.length;j++){var et=_e[j];if(et.entryType!==RumPerformanceEntryType.LONG_TASK||!s.trackLongTasks)break;var tt=relativeToClocks(et.startTime),nt={date:tt.timeStamp,long_task:{id:generateUUID(),entry_type:"long-task",duration:toServerDuration(et.duration)},type:"long_task",_dd:{discarded:!1}};o.notify(11,{rawRumEvent:nt,startTime:tt.relative,domainContext:{performanceEntry:et}})}});return{stop:function(){a.unsubscribe()}}}var alreadyMatchedEntries=new WeakSet$1;function matchRequestResourceEntry(o){if(!(!performance||!("getEntriesByName"in performance))){var s=performance.getEntriesByName(o.url,"resource");if(!(!s.length||!("toJSON"in s[0]))){var a=s.filter(function($){return!alreadyMatchedEntries.has($)}).filter(function($){return hasValidResourceEntryDuration($)&&hasValidResourceEntryTimings($)}).filter(function($){return isBetween($,o.startClocks.relative,endTime({startTime:o.startClocks.relative,duration:o.duration}))});if(a.length===1)return alreadyMatchedEntries.add(a[0]),a[0].toJSON()}}}function endTime(o){return addDuration(o.startTime,o.duration)}function isBetween(o,s,a){var $=1;return o.startTime>=s-$&&endTime(o)<=addDuration(a,$)}var INITIAL_DOCUMENT_OUTDATED_TRACE_ID_THRESHOLD=2*ONE_MINUTE;function getDocumentTraceId(o){var s=getDocumentTraceDataFromMeta(o)||getDocumentTraceDataFromComment(o);if(!(!s||s.traceTime<=dateNow()-INITIAL_DOCUMENT_OUTDATED_TRACE_ID_THRESHOLD))return s.traceId}function getDocumentTraceDataFromMeta(o){var s=o.querySelector("meta[name=dd-trace-id]"),a=o.querySelector("meta[name=dd-trace-time]");return createDocumentTraceData(s&&s.content,a&&a.content)}function getDocumentTraceDataFromComment(o){var s=findTraceComment(o);if(s)return createDocumentTraceData(findCommaSeparatedValue(s,"trace-id"),findCommaSeparatedValue(s,"trace-time"))}function createDocumentTraceData(o,s){var a=s&&Number(s);if(!(!o||!a))return{traceId:o,traceTime:a}}function findTraceComment(o){for(var s=0;s<o.childNodes.length;s+=1){var a=getTraceCommentFromNode(o.childNodes[s]);if(a)return a}if(o.body)for(var s=o.body.childNodes.length-1;s>=0;s-=1){var $=o.body.childNodes[s],a=getTraceCommentFromNode($);if(a)return a;if(!isTextNode($))break}}function getTraceCommentFromNode(o){if(o&&isCommentNode(o)){var s=/^\s*DATADOG;(.*?)\s*$/.exec(o.data);if(s)return s[1]}}function getNavigationEntry(){if(supportPerformanceTimingEvent(RumPerformanceEntryType.NAVIGATION)){var o=performance.getEntriesByType(RumPerformanceEntryType.NAVIGATION)[0];if(o)return o}var s=computeTimingsFromDeprecatedPerformanceTiming(),a=assign({entryType:RumPerformanceEntryType.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:s.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,toJSON:function(){return assign({},a,{toJSON:void 0})}},s);return a}function computeTimingsFromDeprecatedPerformanceTiming(){var o={},s=performance.timing;for(var a in s)if(isNumber(s[a])){var $=a,j=s[$];o[$]=j===0?0:getRelativeTime(j)}return o}function retrieveInitialDocumentResourceTiming(o,s){runOnReadyState(o,"interactive",function(){var a=assign(getNavigationEntry().toJSON(),{entryType:RumPerformanceEntryType.RESOURCE,initiatorType:FAKE_INITIAL_DOCUMENT,traceId:getDocumentTraceId(document),toJSON:function(){return assign({},a,{toJSON:void 0})}});s(a)})}function startResourceCollection(o,s,a,$){$===void 0&&($=retrieveInitialDocumentResourceTiming),o.subscribe(7,function(_e){var et=processRequest(_e,s,a);et&&o.notify(11,et)});var j=createPerformanceObservable(s,{type:RumPerformanceEntryType.RESOURCE,buffered:!0}).subscribe(function(_e){for(var et=0,tt=_e;et<tt.length;et++){var nt=tt[et];if(!isResourceEntryRequestType(nt)){var it=processResourceEntry(nt,s);it&&o.notify(11,it)}}});return $(s,function(_e){var et=processResourceEntry(_e,s);et&&o.notify(11,et)}),{stop:function(){j.unsubscribe()}}}function processRequest(o,s,a){var $=matchRequestResourceEntry(o),j=$?relativeToClocks($.startTime):o.startClocks,_e=computeRequestTracingInfo(o,s);if(!(!s.trackResources&&!_e)){var et=o.type==="xhr"?"xhr":"fetch",tt=$?computeResourceEntryMetrics($):void 0,nt=computeRequestDuration(a,j,o.duration),it=combine({date:j.timeStamp,resource:{id:generateUUID(),type:et,duration:nt,method:o.method,status_code:o.status,url:isLongDataUrl(o.url)?sanitizeDataUrl(o.url):o.url},type:"resource",_dd:{discarded:!s.trackResources}},_e,tt);return{startTime:j.relative,rawRumEvent:it,domainContext:{performanceEntry:$,xhr:o.xhr,response:o.response,requestInput:o.input,requestInit:o.init,error:o.error,isAborted:o.isAborted,handlingStack:o.handlingStack}}}}function processResourceEntry(o,s){var a=relativeToClocks(o.startTime),$=computeResourceEntryTracingInfo(o,s);if(!(!s.trackResources&&!$)){var j=computeResourceEntryType(o),_e=computeResourceEntryMetrics(o),et=combine({date:a.timeStamp,resource:{id:generateUUID(),type:j,url:o.name,status_code:discardZeroStatus(o.responseStatus)},type:"resource",_dd:{discarded:!s.trackResources}},$,_e);return{startTime:a.relative,rawRumEvent:et,domainContext:{performanceEntry:o}}}}function computeResourceEntryMetrics(o){var s=o.renderBlockingStatus;return{resource:assign({duration:computeResourceEntryDuration(o),render_blocking_status:s},computeResourceEntrySize(o),computeResourceEntryDetails(o))}}function computeRequestTracingInfo(o,s){var a=o.traceSampled&&o.traceId&&o.spanId;if(a)return{_dd:{span_id:o.spanId.toDecimalString(),trace_id:o.traceId.toDecimalString(),rule_psr:getRulePsr(s)}}}function computeResourceEntryTracingInfo(o,s){var a=o.traceId;if(a)return{_dd:{trace_id:o.traceId,span_id:createTraceIdentifier().toDecimalString(),rule_psr:getRulePsr(s)}}}function getRulePsr(o){return isNumber(o.traceSampleRate)?o.traceSampleRate/100:void 0}function computeRequestDuration(o,s,a){return o.wasInPageStateDuringPeriod("frozen",s.relative,a)?void 0:toServerDuration(a)}function discardZeroStatus(o){return o===0?void 0:o}function trackViewEventCounts(o,s,a){var $=trackEventCounts({lifeCycle:o,isChildEvent:function(et){return et.view.id===s},onChange:a}),j=$.stop,_e=$.eventCounts;return{stop:j,eventCounts:_e}}var FCP_MAXIMUM_DELAY=10*ONE_MINUTE;function trackFirstContentfulPaint(o,s,a){var $=createPerformanceObservable(o,{type:RumPerformanceEntryType.PAINT,buffered:!0}).subscribe(function(j){var _e=find(j,function(et){return et.name==="first-contentful-paint"&&et.startTime<s.timeStamp&&et.startTime<FCP_MAXIMUM_DELAY});_e&&a(_e.startTime)});return{stop:$.unsubscribe}}function trackFirstInput(o,s,a){var $=createPerformanceObservable(o,{type:RumPerformanceEntryType.FIRST_INPUT,buffered:!0}).subscribe(function(j){var _e=find(j,function(nt){return nt.startTime<s.timeStamp});if(_e){var et=elapsed(_e.startTime,_e.processingStart),tt=void 0;_e.target&&isElementNode(_e.target)&&(tt=getSelectorFromElement(_e.target,o.actionNameAttribute)),a({delay:et>=0?et:0,time:_e.startTime,targetSelector:tt})}});return{stop:function(){$.unsubscribe()}}}function trackNavigationTimings(o,s,a){return a===void 0&&(a=getNavigationEntry),waitAfterLoadEvent(o,function(){var $=a();isIncompleteNavigation($)||s(processNavigationEntry($))})}function processNavigationEntry(o){return{domComplete:o.domComplete,domContentLoaded:o.domContentLoadedEventEnd,domInteractive:o.domInteractive,loadEvent:o.loadEventEnd,firstByte:o.responseStart>=0&&o.responseStart<=relativeNow()?o.responseStart:void 0}}function isIncompleteNavigation(o){return o.loadEventEnd<=0}function waitAfterLoadEvent(o,s){var a,$=runOnReadyState(o,"complete",function(){a=setTimeout$1(function(){return s()})}).stop;return{stop:function(){$(),clearTimeout$1(a)}}}var LCP_MAXIMUM_DELAY=10*ONE_MINUTE;function trackLargestContentfulPaint(o,s,a,$){var j=1/0,_e=addEventListeners(o,a,["pointerdown","keydown"],function(nt){j=nt.timeStamp},{capture:!0,once:!0}).stop,et=0,tt=createPerformanceObservable(o,{type:RumPerformanceEntryType.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(function(nt){var it=findLast(nt,function(st){return st.entryType===RumPerformanceEntryType.LARGEST_CONTENTFUL_PAINT&&st.startTime<j&&st.startTime<s.timeStamp&&st.startTime<LCP_MAXIMUM_DELAY&&st.size>et});if(it){var rt=void 0;it.element&&(rt=getSelectorFromElement(it.element,o.actionNameAttribute)),$({value:it.startTime,targetSelector:rt}),et=it.size}});return{stop:function(){_e(),tt.unsubscribe()}}}function trackFirstHidden(o,s){s===void 0&&(s=window);var a,$;return document.visibilityState==="hidden"?a=0:(a=1/0,$=addEventListeners(o,s,["pagehide","visibilitychange"],function(j){(j.type==="pagehide"||document.visibilityState==="hidden")&&(a=j.timeStamp,$())},{capture:!0}).stop),{get timeStamp(){return a},stop:function(){$==null||$()}}}function trackInitialViewMetrics(o,s,a){var $={},j=trackNavigationTimings(o,function(rt){s(rt.loadEvent),$.navigationTimings=rt,a()}).stop,_e=trackFirstHidden(o),et=trackFirstContentfulPaint(o,_e,function(rt){$.firstContentfulPaint=rt,a()}).stop,tt=trackLargestContentfulPaint(o,_e,window,function(rt){$.largestContentfulPaint=rt,a()}).stop,nt=trackFirstInput(o,_e,function(rt){$.firstInput=rt,a()}).stop;function it(){j(),et(),tt(),nt(),_e.stop()}return{stop:it,initialViewMetrics:$}}function trackCumulativeLayoutShift(o,s,a){if(!isLayoutShiftSupported())return{stop:noop};var $=0,j,_e;a({value:0});var et=slidingSessionWindow(),tt=createPerformanceObservable(o,{type:RumPerformanceEntryType.LAYOUT_SHIFT,buffered:!0}).subscribe(function(nt){for(var it=0,rt=nt;it<rt.length;it++){var st=rt[it];if(!(st.hadRecentInput||st.startTime<s)){var ot=et.update(st),at=ot.cumulatedValue,lt=ot.isMaxValue;if(lt){var ct=getTargetFromSource(st.sources);j=ct?new WeakRef(ct):void 0,_e=elapsed(s,st.startTime)}if(at>$){$=at;var ct=j==null?void 0:j.deref();a({value:round($,4),targetSelector:ct&&getSelectorFromElement(ct,o.actionNameAttribute),time:_e})}}}});return{stop:function(){tt.unsubscribe()}}}function getTargetFromSource(o){var s;if(o)return(s=find(o,function(a){return!!a.node&&isElementNode(a.node)}))===null||s===void 0?void 0:s.node}var MAX_WINDOW_DURATION=5*ONE_SECOND,MAX_UPDATE_GAP=ONE_SECOND;function slidingSessionWindow(){var o=0,s,a,$=0;return{update:function(j){var _e=s===void 0||j.startTime-a>=MAX_UPDATE_GAP||j.startTime-s>=MAX_WINDOW_DURATION,et;return _e?(s=a=j.startTime,$=o=j.value,et=!0):(o+=j.value,a=j.startTime,et=j.value>$,et&&($=j.value)),{cumulatedValue:o,isMaxValue:et}}}}function isLayoutShiftSupported(){return supportPerformanceTimingEvent(RumPerformanceEntryType.LAYOUT_SHIFT)&&"WeakRef"in window}var observer,interactionCountEstimate=0,minKnownInteractionId=1/0,maxKnownInteractionId=0;function initInteractionCountPolyfill(){"interactionCount"in performance||observer||(observer=new window.PerformanceObserver(monitor(function(o){o.getEntries().forEach(function(s){var a=s;a.interactionId&&(minKnownInteractionId=Math.min(minKnownInteractionId,a.interactionId),maxKnownInteractionId=Math.max(maxKnownInteractionId,a.interactionId),interactionCountEstimate=(maxKnownInteractionId-minKnownInteractionId)/7+1)})})),observer.observe({type:"event",buffered:!0,durationThreshold:0}))}var getInteractionCount=function(){return observer?interactionCountEstimate:window.performance.interactionCount||0},MAX_INTERACTION_ENTRIES=10,MAX_INP_VALUE=1*ONE_MINUTE;function trackInteractionToNextPaint(o,s,a){if(!isInteractionToNextPaintSupported())return{getInteractionToNextPaint:function(){},setViewEnd:noop,stop:noop};var $=trackViewInteractionCount(a),j=$.getViewInteractionCount,_e=$.stopViewInteractionCount,et=1/0,tt=trackLongestInteractions(j),nt=-1,it,rt;function st(lt){for(var ct=0,ht=lt;ct<ht.length;ct++){var dt=ht[ct];dt.interactionId&&dt.startTime>=s&&dt.startTime<=et&&tt.process(dt)}var ut=tt.estimateP98Interaction();ut&&ut.duration!==nt&&(nt=ut.duration,rt=elapsed(s,ut.startTime),it=getInteractionSelector(ut.startTime),!it&&ut.target&&isElementNode(ut.target)&&(it=getSelectorFromElement(ut.target,o.actionNameAttribute)))}var ot=createPerformanceObservable(o,{type:RumPerformanceEntryType.FIRST_INPUT,buffered:!0}).subscribe(st),at=createPerformanceObservable(o,{type:RumPerformanceEntryType.EVENT,durationThreshold:40,buffered:!0}).subscribe(st);return{getInteractionToNextPaint:function(){if(nt>=0)return{value:Math.min(nt,MAX_INP_VALUE),targetSelector:it,time:rt};if(j())return{value:0}},setViewEnd:function(lt){et=lt,_e()},stop:function(){at.unsubscribe(),ot.unsubscribe()}}}function trackLongestInteractions(o){var s=[];function a(){s.sort(function($,j){return j.duration-$.duration}).splice(MAX_INTERACTION_ENTRIES)}return{process:function($){var j=s.findIndex(function(et){return $.interactionId===et.interactionId}),_e=s[s.length-1];j!==-1?$.duration>s[j].duration&&(s[j]=$,a()):(s.length<MAX_INTERACTION_ENTRIES||$.duration>_e.duration)&&(s.push($),a())},estimateP98Interaction:function(){var $=Math.min(s.length-1,Math.floor(o()/50));return s[$]}}}function trackViewInteractionCount(o){initInteractionCountPolyfill();var s=o==="initial_load"?0:getInteractionCount(),a={stopped:!1};function $(){return getInteractionCount()-s}return{getViewInteractionCount:function(){return a.stopped?a.interactionCount:$()},stopViewInteractionCount:function(){a={stopped:!0,interactionCount:$()}}}}function isInteractionToNextPaintSupported(){return supportPerformanceTimingEvent(RumPerformanceEntryType.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype}function trackLoadingTime(o,s,a,$,j,_e){var et=$==="initial_load",tt=!0,nt=[],it=trackFirstHidden(a);function rt(){if(!tt&&!et&&nt.length>0){var ot=Math.max.apply(Math,nt);ot<it.timeStamp&&_e(ot)}}var st=waitPageActivityEnd(o,s,a,function(ot){tt&&(tt=!1,ot.hadActivity&&nt.push(elapsed(j.timeStamp,ot.end)),rt())}).stop;return{stop:function(){st(),it.stop()},setLoadEvent:function(ot){et&&(et=!1,nt.push(ot),rt())}}}function getScrollX(){var o,s=window.visualViewport;return s?o=s.pageLeft-s.offsetLeft:window.scrollX!==void 0?o=window.scrollX:o=window.pageXOffset||0,Math.round(o)}function getScrollY(){var o,s=window.visualViewport;return s?o=s.pageTop-s.offsetTop:window.scrollY!==void 0?o=window.scrollY:o=window.pageYOffset||0,Math.round(o)}var viewportObservable;function initViewportObservable(o){return viewportObservable||(viewportObservable=createViewportObservable(o)),viewportObservable}function createViewportObservable(o){return new Observable(function(s){var a=throttle(function(){s.notify(getViewportDimension())},200).throttled;return addEventListener(o,window,"resize",a,{capture:!0,passive:!0}).stop})}function getViewportDimension(){var o=window.visualViewport;return o?{width:Number(o.width*o.scale),height:Number(o.height*o.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var THROTTLE_SCROLL_DURATION=ONE_SECOND;function trackScrollMetrics(o,s,a,$){$===void 0&&($=createScrollValuesObservable(o));var j=0,_e=0,et=0,tt=$.subscribe(function(nt){var it=nt.scrollDepth,rt=nt.scrollTop,st=nt.scrollHeight,ot=!1;if(it>j&&(j=it,ot=!0),st>_e){_e=st;var at=relativeNow();et=elapsed(s.relative,at),ot=!0}ot&&a({maxDepth:Math.min(j,_e),maxDepthScrollTop:rt,maxScrollHeight:_e,maxScrollHeightTime:et})});return{stop:function(){return tt.unsubscribe()}}}function computeScrollValues(){var o=getScrollY(),s=getViewportDimension().height,a=Math.round((document.scrollingElement||document.documentElement).scrollHeight),$=Math.round(s+o);return{scrollHeight:a,scrollDepth:$,scrollTop:o}}function createScrollValuesObservable(o,s){return s===void 0&&(s=THROTTLE_SCROLL_DURATION),new Observable(function(a){function $(){a.notify(computeScrollValues())}if(window.ResizeObserver){var j=throttle($,s,{leading:!1,trailing:!0}),_e=document.scrollingElement||document.documentElement,et=new ResizeObserver(monitor(j.throttled));et.observe(_e);var tt=addEventListener(o,window,"scroll",j.throttled,{passive:!0});return function(){j.cancel(),et.unobserve(_e),tt.stop()}}})}function trackCommonViewMetrics(o,s,a,$,j,_e){var et={},tt=trackLoadingTime(o,s,a,j,_e,function(ht){et.loadingTime=ht,$()}),nt=tt.stop,it=tt.setLoadEvent,rt=trackScrollMetrics(a,_e,function(ht){et.scroll=ht}).stop,st=trackCumulativeLayoutShift(a,_e.relative,function(ht){et.cumulativeLayoutShift=ht,$()}).stop,ot=trackInteractionToNextPaint(a,_e.relative,j),at=ot.stop,lt=ot.getInteractionToNextPaint,ct=ot.setViewEnd;return{stop:function(){nt(),st(),rt()},stopINPTracking:at,setLoadEvent:it,setViewEnd:ct,getCommonViewMetrics:function(){return et.interactionToNextPaint=lt(),et}}}var THROTTLE_VIEW_UPDATE_PERIOD=3e3,SESSION_KEEP_ALIVE_INTERVAL=5*ONE_MINUTE,KEEP_TRACKING_AFTER_VIEW_DELAY=5*ONE_MINUTE;function trackViews(o,s,a,$,j,_e,et){var tt=new Set,nt=rt("initial_load",clocksOrigin(),et);st();var it;_e&&(it=ot(j));function rt(at,lt,ct){var ht=newView(s,a,$,o,at,lt,ct);return tt.add(ht),ht.stopObservable.subscribe(function(){tt.delete(ht)}),ht}function st(){s.subscribe(9,function(){nt=rt("route_change",void 0,{name:nt.name,service:nt.service,version:nt.version,context:nt.contextManager.getContext()})}),s.subscribe(8,function(){nt.end({sessionIsActive:!1})}),s.subscribe(10,function(at){at.reason===PageExitReason.UNLOADING&&nt.end()})}function ot(at){return at.subscribe(function(lt){var ct=lt.oldLocation,ht=lt.newLocation;areDifferentLocation(ct,ht)&&(nt.end(),nt=rt("route_change"))})}return{addTiming:function(at,lt){lt===void 0&&(lt=timeStampNow()),nt.addTiming(at,lt)},startView:function(at,lt){nt.end({endClocks:lt}),nt=rt("route_change",lt,at)},setViewContext:function(at){nt.contextManager.setContext(at)},setViewContextProperty:function(at,lt){nt.contextManager.setContextProperty(at,lt)},updateViewName:function(at){nt.updateViewName(at)},stop:function(){it&&it.unsubscribe(),nt.end(),tt.forEach(function(at){return at.stop()})}}}function newView(o,s,a,$,j,_e,et){_e===void 0&&(_e=clocksNow());var tt=generateUUID(),nt=new Observable,it={},rt=0,st,ot=shallowClone($),at=createContextManager(),lt=!0,ct,ht,dt,ut;et&&(ct=et.name,ht=et.service||void 0,dt=et.version||void 0,et.context&&(ut=et.context,at.setContext(ut)));var pt={id:tt,name:ct,startClocks:_e,service:ht,version:dt,context:ut};o.notify(1,pt),o.notify(2,pt);var ft=throttle(Ut,THROTTLE_VIEW_UPDATE_PERIOD,{leading:!1}),mt=ft.throttled,gt=ft.cancel,bt=trackCommonViewMetrics(o,s,a,mt,j,_e),St=bt.setLoadEvent,Nt=bt.setViewEnd,Rt=bt.stop,Ft=bt.stopINPTracking,Ot=bt.getCommonViewMetrics,Ct=j==="initial_load"?trackInitialViewMetrics(a,St,mt):{stop:noop,initialViewMetrics:{}},yt=Ct.stop,Pt=Ct.initialViewMetrics,wt=trackViewEventCounts(o,tt,mt),Lt=wt.stop,vt=wt.eventCounts,xt=setInterval$1(Ut,SESSION_KEEP_ALIVE_INTERVAL);Ut(),at.changeObservable.subscribe(Ut);function Ut(){gt(),rt+=1;var Et=st===void 0?timeStampNow():st.timeStamp;o.notify(3,{customTimings:it,documentVersion:rt,id:tt,name:ct,service:ht,version:dt,context:at.getContext(),loadingType:j,location:ot,startClocks:_e,commonViewMetrics:Ot(),initialViewMetrics:Pt,duration:elapsed(_e.timeStamp,Et),isActive:st===void 0,sessionIsActive:lt,eventCounts:vt})}return{get name(){return ct},service:ht,version:dt,contextManager:at,stopObservable:nt,end:function(Et){var Dt=this,Bt,Wt;Et===void 0&&(Et={}),!st&&(st=(Bt=Et.endClocks)!==null&&Bt!==void 0?Bt:clocksNow(),lt=(Wt=Et.sessionIsActive)!==null&&Wt!==void 0?Wt:!0,o.notify(4,{endClocks:st}),o.notify(5,{endClocks:st}),clearInterval$1(xt),Nt(st.relative),Rt(),Ut(),setTimeout$1(function(){Dt.stop()},KEEP_TRACKING_AFTER_VIEW_DELAY))},stop:function(){yt(),Lt(),Ft(),nt.notify()},addTiming:function(Et,Dt){if(!st){var Bt=looksLikeRelativeTime(Dt)?Dt:elapsed(_e.timeStamp,Dt);it[sanitizeTiming(Et)]=Bt,mt()}},updateViewName:function(Et){isExperimentalFeatureEnabled(ExperimentalFeature.UPDATE_VIEW_NAME)&&(ct=Et,Ut())}}}function sanitizeTiming(o){var s=o.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return s!==o&&display.warn("Invalid timing name: ".concat(o,", sanitized to: ").concat(s)),s}function areDifferentLocation(o,s){return o.pathname!==s.pathname||!isHashAnAnchor(s.hash)&&getPathFromHash(s.hash)!==getPathFromHash(o.hash)}function isHashAnAnchor(o){var s=o.substring(1);return s!==""&&!!document.getElementById(s)}function getPathFromHash(o){var s=o.indexOf("?");return s<0?o:o.slice(0,s)}function startViewCollection(o,s,a,$,j,_e,et,tt,nt){return o.subscribe(3,function(it){return o.notify(11,processViewUpdate(it,s,_e,tt,et))}),trackViews(a,o,$,s,j,!s.trackViewsManually,nt)}function processViewUpdate(o,s,a,$,j){var _e,et,tt,nt,it,rt,st,ot,at,lt,ct,ht,dt,ut,pt,ft,mt=$.getReplayStats(o.id),gt=a.findFeatureFlagEvaluations(o.startClocks.relative),bt=j.findAll(o.startClocks.relative,o.duration),St={_dd:{document_version:o.documentVersion,replay_stats:mt,page_states:bt,configuration:{start_session_replay_recording_manually:s.startSessionReplayRecordingManually}},date:o.startClocks.timeStamp,type:"view",view:{action:{count:o.eventCounts.actionCount},frustration:{count:o.eventCounts.frustrationCount},cumulative_layout_shift:(_e=o.commonViewMetrics.cumulativeLayoutShift)===null||_e===void 0?void 0:_e.value,cumulative_layout_shift_time:toServerDuration((et=o.commonViewMetrics.cumulativeLayoutShift)===null||et===void 0?void 0:et.time),cumulative_layout_shift_target_selector:(tt=o.commonViewMetrics.cumulativeLayoutShift)===null||tt===void 0?void 0:tt.targetSelector,first_byte:toServerDuration((nt=o.initialViewMetrics.navigationTimings)===null||nt===void 0?void 0:nt.firstByte),dom_complete:toServerDuration((it=o.initialViewMetrics.navigationTimings)===null||it===void 0?void 0:it.domComplete),dom_content_loaded:toServerDuration((rt=o.initialViewMetrics.navigationTimings)===null||rt===void 0?void 0:rt.domContentLoaded),dom_interactive:toServerDuration((st=o.initialViewMetrics.navigationTimings)===null||st===void 0?void 0:st.domInteractive),error:{count:o.eventCounts.errorCount},first_contentful_paint:toServerDuration(o.initialViewMetrics.firstContentfulPaint),first_input_delay:toServerDuration((ot=o.initialViewMetrics.firstInput)===null||ot===void 0?void 0:ot.delay),first_input_time:toServerDuration((at=o.initialViewMetrics.firstInput)===null||at===void 0?void 0:at.time),first_input_target_selector:(lt=o.initialViewMetrics.firstInput)===null||lt===void 0?void 0:lt.targetSelector,interaction_to_next_paint:toServerDuration((ct=o.commonViewMetrics.interactionToNextPaint)===null||ct===void 0?void 0:ct.value),interaction_to_next_paint_time:toServerDuration((ht=o.commonViewMetrics.interactionToNextPaint)===null||ht===void 0?void 0:ht.time),interaction_to_next_paint_target_selector:(dt=o.commonViewMetrics.interactionToNextPaint)===null||dt===void 0?void 0:dt.targetSelector,is_active:o.isActive,name:o.name,largest_contentful_paint:toServerDuration((ut=o.initialViewMetrics.largestContentfulPaint)===null||ut===void 0?void 0:ut.value),largest_contentful_paint_target_selector:(pt=o.initialViewMetrics.largestContentfulPaint)===null||pt===void 0?void 0:pt.targetSelector,load_event:toServerDuration((ft=o.initialViewMetrics.navigationTimings)===null||ft===void 0?void 0:ft.loadEvent),loading_time:discardNegativeDuration(toServerDuration(o.commonViewMetrics.loadingTime)),loading_type:o.loadingType,long_task:{count:o.eventCounts.longTaskCount},resource:{count:o.eventCounts.resourceCount},time_spent:toServerDuration(o.duration)},feature_flags:gt&&!isEmptyObject(gt)?gt:void 0,display:o.commonViewMetrics.scroll?{scroll:{max_depth:o.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:o.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:o.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:toServerDuration(o.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:mt?!0:void 0,is_active:o.sessionIsActive?void 0:!1},privacy:{replay_level:s.defaultPrivacyLevel}};return isEmptyObject(o.customTimings)||(St.view.custom_timings=mapValues(o.customTimings,toServerDuration)),{rawRumEvent:St,startTime:o.startClocks.relative,domainContext:{location:o.location}}}var RUM_SESSION_KEY="rum";function startRumSessionManager(o,s,a){var $=startSessionManager(o,RUM_SESSION_KEY,function(j){return computeSessionState(o,j)},a);return $.expireObservable.subscribe(function(){s.notify(8)}),$.renewObservable.subscribe(function(){s.notify(9)}),$.sessionStateUpdateObservable.subscribe(function(j){var _e=j.previousState,et=j.newState;if(!_e.forcedReplay&&et.forcedReplay){var tt=$.findSession();tt&&(tt.isReplayForced=!0)}}),{findTrackedSession:function(j){var _e=$.findSession(j);if(!(!_e||!isTypeTracked(_e.trackingType)))return{id:_e.id,sessionReplay:_e.trackingType==="1"?1:_e.isReplayForced?2:0}},expire:$.expire,expireObservable:$.expireObservable,setForcedReplay:function(){return $.updateSessionState({forcedReplay:"1"})}}}function startRumSessionManagerStub(){var o={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:bridgeSupports("records")?1:0};return{findTrackedSession:function(){return o},expire:noop,expireObservable:new Observable,setForcedReplay:noop}}function computeSessionState(o,s){var a;return hasValidRumSession(s)?a=s:performDraw(o.sessionSampleRate)?performDraw(o.sessionReplaySampleRate)?a="1":a="2":a="0",{trackingType:a,isTracked:isTypeTracked(a)}}function hasValidRumSession(o){return o==="0"||o==="1"||o==="2"}function isTypeTracked(o){return o==="2"||o==="1"}function startRumBatch(o,s,a,$,j,_e,et){var tt=o.replica,nt=startBatchWithReplica(o,{endpoint:o.rumEndpointBuilder,encoder:et(2)},tt&&{endpoint:tt.rumEndpointBuilder,transformMessage:function(it){return combine(it,{application:{id:tt.applicationId}})},encoder:et(3)},$,j,_e);return s.subscribe(12,function(it){it.type==="view"?nt.upsert(it,it.view.id):nt.add(it)}),a.subscribe(function(it){return nt.add(it,isTelemetryReplicationAllowed(o))}),nt}function startRumEventBridge(o){var s=getEventBridge();o.subscribe(12,function(a){s.send("rum",a)})}var URL_CONTEXT_TIME_OUT_DELAY=SESSION_TIME_OUT_DELAY;function startUrlContexts(o,s,a){var $=createValueHistory({expireDelay:URL_CONTEXT_TIME_OUT_DELAY}),j;o.subscribe(1,function(tt){var nt=tt.startClocks,it=a.href;$.add(et({url:it,referrer:j||document.referrer}),nt.relative),j=it}),o.subscribe(5,function(tt){var nt=tt.endClocks;$.closeActive(nt.relative)});var _e=s.subscribe(function(tt){var nt=tt.newLocation,it=$.find();if(it){var rt=relativeNow();$.closeActive(rt),$.add(et({url:nt.href,referrer:it.referrer}),rt)}});function et(tt){var nt=tt.url,it=tt.referrer;return{url:nt,referrer:it}}return{findUrl:function(tt){return $.find(tt)},stop:function(){_e.unsubscribe(),$.stop()}}}function createLocationChangeObservable(o,s){var a=shallowClone(s);return new Observable(function($){var j=trackHistory(o,et).stop,_e=trackHash(o,et).stop;function et(){if(a.href!==s.href){var tt=shallowClone(s);$.notify({newLocation:tt,oldLocation:a}),a=tt}}return function(){j(),_e()}})}function trackHistory(o,s){var a=instrumentMethod(getHistoryInstrumentationTarget("pushState"),"pushState",function(_e){var et=_e.onPostCall;et(s)}).stop,$=instrumentMethod(getHistoryInstrumentationTarget("replaceState"),"replaceState",function(_e){var et=_e.onPostCall;et(s)}).stop,j=addEventListener(o,window,"popstate",s).stop;return{stop:function(){a(),$(),j()}}}function trackHash(o,s){return addEventListener(o,window,"hashchange",s)}function getHistoryInstrumentationTarget(o){return Object.prototype.hasOwnProperty.call(history,o)?history:History.prototype}var FEATURE_FLAG_CONTEXT_TIME_OUT_DELAY=SESSION_TIME_OUT_DELAY;function startFeatureFlagContexts(o,s){var a=createValueHistory({expireDelay:FEATURE_FLAG_CONTEXT_TIME_OUT_DELAY});return o.subscribe(1,function($){var j=$.startClocks;a.add({},j.relative),s.resetCustomerData()}),o.subscribe(5,function($){var j=$.endClocks;a.closeActive(j.relative)}),{findFeatureFlagEvaluations:function($){return a.find($)},addFeatureFlagEvaluation:function($,j){var _e=a.find();_e&&(_e[$]=j,s.updateCustomerData(_e))},stop:function(){return s.stop()}}}var MEASURES_PERIOD_DURATION=10*ONE_SECOND,currentPeriodMeasures,currentBatchMeasures,batchHasRumEvent;function startCustomerDataTelemetry(o,s,a,$,j){var _e=s.enabled&&performDraw(o.customerDataTelemetrySampleRate);_e&&(initCurrentPeriodMeasures(),initCurrentBatchMeasures(),a.subscribe(12,function(et){batchHasRumEvent=!0,updateMeasure(currentBatchMeasures.globalContextBytes,$.getOrCreateTracker(2).getBytesCount()),updateMeasure(currentBatchMeasures.userContextBytes,$.getOrCreateTracker(1).getBytesCount()),updateMeasure(currentBatchMeasures.featureFlagBytes,includes(["view","error"],et.type)?$.getOrCreateTracker(0).getBytesCount():0)}),j.subscribe(function(et){var tt=et.bytesCount,nt=et.messagesCount;batchHasRumEvent&&(currentPeriodMeasures.batchCount+=1,updateMeasure(currentPeriodMeasures.batchBytesCount,tt),updateMeasure(currentPeriodMeasures.batchMessagesCount,nt),mergeMeasure(currentPeriodMeasures.globalContextBytes,currentBatchMeasures.globalContextBytes),mergeMeasure(currentPeriodMeasures.userContextBytes,currentBatchMeasures.userContextBytes),mergeMeasure(currentPeriodMeasures.featureFlagBytes,currentBatchMeasures.featureFlagBytes),initCurrentBatchMeasures())}),setInterval$1(sendCurrentPeriodMeasures,MEASURES_PERIOD_DURATION))}function sendCurrentPeriodMeasures(){currentPeriodMeasures.batchCount!==0&&(addTelemetryDebug("Customer data measures",currentPeriodMeasures),initCurrentPeriodMeasures())}function createMeasure(){return{min:1/0,max:0,sum:0}}function updateMeasure(o,s){o.sum+=s,o.min=Math.min(o.min,s),o.max=Math.max(o.max,s)}function mergeMeasure(o,s){o.sum+=s.sum,o.min=Math.min(o.min,s.min),o.max=Math.max(o.max,s.max)}function initCurrentPeriodMeasures(){currentPeriodMeasures={batchCount:0,batchBytesCount:createMeasure(),batchMessagesCount:createMeasure(),globalContextBytes:createMeasure(),userContextBytes:createMeasure(),featureFlagBytes:createMeasure()}}function initCurrentBatchMeasures(){batchHasRumEvent=!1,currentBatchMeasures={globalContextBytes:createMeasure(),userContextBytes:createMeasure(),featureFlagBytes:createMeasure()}}var MAX_PAGE_STATE_ENTRIES=4e3,MAX_PAGE_STATE_ENTRIES_SELECTABLE=500,PAGE_STATE_CONTEXT_TIME_OUT_DELAY=SESSION_TIME_OUT_DELAY;function startPageStateHistory(o,s){s===void 0&&(s=MAX_PAGE_STATE_ENTRIES_SELECTABLE);var a=createValueHistory({expireDelay:PAGE_STATE_CONTEXT_TIME_OUT_DELAY,maxEntries:MAX_PAGE_STATE_ENTRIES}),$;_e(getPageState(),relativeNow());var j=addEventListeners(o,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],function(tt){_e(computePageState(tt),tt.timeStamp)},{capture:!0}).stop;function _e(tt,nt){nt===void 0&&(nt=relativeNow()),tt!==$&&($=tt,a.closeActive(nt),a.add({state:$,startTime:nt},nt))}var et={findAll:function(tt,nt){var it=a.findAll(tt,nt);if(it.length!==0){for(var rt=[],st=Math.max(0,it.length-s),ot=it.length-1;ot>=st;ot--){var at=it[ot],lt=elapsed(tt,at.startTime);rt.push({state:at.state,start:toServerDuration(lt)})}return rt}},wasInPageStateAt:function(tt,nt){return et.wasInPageStateDuringPeriod(tt,nt,0)},wasInPageStateDuringPeriod:function(tt,nt,it){return a.findAll(nt,it).some(function(rt){return rt.state===tt})},addPageState:_e,stop:function(){j(),a.stop()}};return et}function computePageState(o){return o.type==="freeze"?"frozen":o.type==="pagehide"?o.persisted?"frozen":"terminated":getPageState()}function getPageState(){return document.visibilityState==="hidden"?"hidden":document.hasFocus()?"active":"passive"}function startDisplayContext(o){var s=getViewportDimension(),a=initViewportObservable(o).subscribe(function($){s=$}).unsubscribe;return{get:function(){return{viewport:s}},stop:a}}function createCookieObservable(o,s){var a=window.cookieStore?listenToCookieStoreChange(o):watchCookieFallback;return new Observable(function($){return a(s,function(j){return $.notify(j)})})}function listenToCookieStoreChange(o){return function(s,a){var $=addEventListener(o,window.cookieStore,"change",function(j){var _e=find(j.changed,function(et){return et.name===s})||find(j.deleted,function(et){return et.name===s});_e&&a(_e.value)});return $.stop}}var WATCH_COOKIE_INTERVAL_DELAY=ONE_SECOND;function watchCookieFallback(o,s){var a=findCommaSeparatedValue(document.cookie,o),$=setInterval$1(function(){var j=findCommaSeparatedValue(document.cookie,o);j!==a&&s(j)},WATCH_COOKIE_INTERVAL_DELAY);return function(){clearInterval$1($)}}var CI_VISIBILITY_TEST_ID_COOKIE_NAME="datadog-ci-visibility-test-execution-id";function startCiVisibilityContext(o,s){var a;s===void 0&&(s=createCookieObservable(o,CI_VISIBILITY_TEST_ID_COOKIE_NAME));var $=getInitCookie(CI_VISIBILITY_TEST_ID_COOKIE_NAME)||((a=window.Cypress)===null||a===void 0?void 0:a.env("traceId")),j=s.subscribe(function(_e){$=_e});return{get:function(){if(typeof $=="string")return{test_execution_id:$}},stop:function(){return j.unsubscribe()}}}function startLongAnimationFrameCollection(o,s){var a=createPerformanceObservable(s,{type:RumPerformanceEntryType.LONG_ANIMATION_FRAME,buffered:!0}).subscribe(function($){for(var j=0,_e=$;j<_e.length;j++){var et=_e[j],tt=relativeToClocks(et.startTime),nt={date:tt.timeStamp,long_task:{id:generateUUID(),entry_type:"long-animation-frame",duration:toServerDuration(et.duration),blocking_duration:toServerDuration(et.blockingDuration),first_ui_event_timestamp:toServerDuration(et.firstUIEventTimestamp),render_start:toServerDuration(et.renderStart),style_and_layout_start:toServerDuration(et.styleAndLayoutStart),start_time:toServerDuration(et.startTime),scripts:et.scripts.map(function(it){return{duration:toServerDuration(it.duration),pause_duration:toServerDuration(it.pauseDuration),forced_style_and_layout_duration:toServerDuration(it.forcedStyleAndLayoutDuration),start_time:toServerDuration(it.startTime),execution_start:toServerDuration(it.executionStart),source_url:it.sourceURL,source_function_name:it.sourceFunctionName,source_char_position:it.sourceCharPosition,invoker:it.invoker,invoker_type:it.invokerType,window_attribution:it.windowAttribution}})},type:"long_task",_dd:{discarded:!1}};o.notify(11,{rawRumEvent:nt,startTime:tt.relative,domainContext:{performanceEntry:et}})}});return{stop:function(){return a.unsubscribe()}}}function startRum(o,s,a,$,j,_e,et,tt){var nt=[],it=new LifeCycle;it.subscribe(12,function(Dt){return sendToExtension("rum",Dt)});var rt=startRumTelemetry(o);rt.setContextProvider(function(){var Dt,Bt;return{application:{id:o.applicationId},session:{id:(Dt=ct.findTrackedSession())===null||Dt===void 0?void 0:Dt.id},view:{id:(Bt=mt.findView())===null||Bt===void 0?void 0:Bt.id},action:{id:bt.findActionId()}}});var st=function(Dt){it.notify(13,{error:Dt}),addTelemetryDebug("Error reported to customer",{"error.message":Dt.message})},ot=startFeatureFlagContexts(it,a.getOrCreateTracker(0)),at=createPageExitObservable(o),lt=at.subscribe(function(Dt){it.notify(10,Dt)});nt.push(function(){return lt.unsubscribe()});var ct=canUseEventBridge()?startRumSessionManagerStub():startRumSessionManager(o,it,et);if(canUseEventBridge())startRumEventBridge(it);else{var ht=startRumBatch(o,it,rt.observable,st,at,ct.expireObservable,_e);nt.push(function(){return ht.stop()}),startCustomerDataTelemetry(o,rt,it,a,ht.flushObservable)}var dt=createDOMMutationObservable(),ut=createLocationChangeObservable(o,location),pt=startPageStateHistory(o),ft=startRumEventCollection(it,o,location,ct,pt,ut,dt,$,st),mt=ft.viewHistory,gt=ft.urlContexts,bt=ft.actionContexts,St=ft.addAction,Nt=ft.stop;nt.push(Nt),drainPreStartTelemetry();var Rt=startViewCollection(it,o,location,dt,ut,ot,pt,s,j),Ft=Rt.addTiming,Ot=Rt.startView,Ct=Rt.updateViewName,yt=Rt.setViewContext,Pt=Rt.setViewContextProperty,wt=Rt.stop;nt.push(wt);var Lt=startResourceCollection(it,o,pt).stop;if(nt.push(Lt),isExperimentalFeatureEnabled(ExperimentalFeature.LONG_ANIMATION_FRAME)){if(o.trackLongTasks){var vt=startLongAnimationFrameCollection(it,o).stop;nt.push(vt)}}else startLongTaskCollection(it,o);var xt=startErrorCollection(it,o,pt,ot).addError;startRequestCollection(it,o,ct);var Ut=startVitalCollection(it,pt,tt),Et=startInternalContext(o.applicationId,ct,mt,bt,gt);return{addAction:St,addError:xt,addTiming:Ft,addFeatureFlagEvaluation:ot.addFeatureFlagEvaluation,startView:Ot,setViewContext:yt,setViewContextProperty:Pt,updateViewName:Ct,lifeCycle:it,viewHistory:mt,session:ct,stopSession:function(){return ct.expire()},getInternalContext:Et.get,startDurationVital:Ut.startDurationVital,stopDurationVital:Ut.stopDurationVital,addDurationVital:Ut.addDurationVital,stop:function(){nt.forEach(function(Dt){return Dt()})}}}function startRumTelemetry(o){var s=startTelemetry("browser-rum-sdk",o);if(canUseEventBridge()){var a=getEventBridge();s.observable.subscribe(function($){return a.send("internal_telemetry",$)})}return s}function startRumEventCollection(o,s,a,$,j,_e,et,tt,nt){var it=startViewHistory(o),rt=startUrlContexts(o,_e,a),st=startActionCollection(o,et,s,j),ot=st.addAction,at=st.actionContexts,lt=startDisplayContext(s),ct=startCiVisibilityContext(s);return startRumAssembly(s,o,$,it,rt,at,lt,ct,tt,nt),{viewHistory:it,pageStateHistory:j,urlContexts:rt,addAction:ot,actionContexts:at,stop:function(){ct.stop(),lt.stop(),rt.stop(),it.stop(),j.stop()}}}function getSessionReplayUrl(o,s){var a=s.session,$=s.viewContext,j=s.errorType,_e=a?a.id:"no-session-id",et=[];j!==void 0&&et.push("error-type=".concat(j)),$&&(et.push("seed=".concat($.id)),et.push("from=".concat($.startClocks.timeStamp)));var tt=getDatadogSiteUrl(o),nt="/rum/replay/sessions/".concat(_e);return"".concat(tt).concat(nt,"?").concat(et.join("&"))}function getDatadogSiteUrl(o){var s=o.site,a=o.subdomain||getSiteDefaultSubdomain(o);return"https://".concat(a?"".concat(a,"."):"").concat(s)}function getSiteDefaultSubdomain(o){switch(o.site){case INTAKE_SITE_US1:case INTAKE_SITE_EU1:return"app";case INTAKE_SITE_STAGING:return"dd";default:return}}var MAX_STATS_HISTORY=10,statsPerView;function getSegmentsCount(o){return getOrCreateReplayStats(o).segments_count}function addSegment(o){getOrCreateReplayStats(o).segments_count+=1}function addRecord(o){getOrCreateReplayStats(o).records_count+=1}function addWroteData(o,s){getOrCreateReplayStats(o).segments_total_raw_size+=s}function getReplayStats(o){return statsPerView==null?void 0:statsPerView.get(o)}function getOrCreateReplayStats(o){statsPerView||(statsPerView=new Map);var s;return statsPerView.has(o)?s=statsPerView.get(o):(s={records_count:0,segments_count:0,segments_total_raw_size:0},statsPerView.set(o,s),statsPerView.size>MAX_STATS_HISTORY&&deleteOldestStats()),s}function deleteOldestStats(){if(statsPerView)if(statsPerView.keys){var o=statsPerView.keys().next().value;o&&statsPerView.delete(o)}else{var s=!0;statsPerView.forEach(function(a,$){s&&(statsPerView.delete($),s=!1)})}}var serializedNodeIds=new WeakMap;function hasSerializedNode(o){return serializedNodeIds.has(o)}function nodeAndAncestorsHaveSerializedNode(o){for(var s=o;s;){if(!hasSerializedNode(s)&&!isNodeShadowRoot(s))return!1;s=getParentNode(s)}return!0}function getSerializedNodeId(o){return serializedNodeIds.get(o)}function setSerializedNodeId(o,s){serializedNodeIds.set(o,s)}function getElementInputValue(o,s){var a=o.tagName,$=o.value;if(shouldMaskNode(o,s)){var j=o.type;return a==="INPUT"&&(j==="button"||j==="submit"||j==="reset")?$:!$||a==="OPTION"?void 0:CENSORED_STRING_MARK}if(a==="OPTION"||a==="SELECT")return o.value;if(!(a!=="INPUT"&&a!=="TEXTAREA"))return $}var URL_IN_CSS_REF=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,ABSOLUTE_URL=/^[A-Za-z]+:|^\/\//,DATA_URI=/^data:.*,/i;function switchToAbsoluteUrl(o,s){return o.replace(URL_IN_CSS_REF,function(a,$,j,_e,et,tt){var nt=j||et||tt;if(!s||!nt||ABSOLUTE_URL.test(nt)||DATA_URI.test(nt))return a;var it=$||_e||"";return"url(".concat(it).concat(makeUrlAbsolute(nt,s)).concat(it,")")})}function makeUrlAbsolute(o,s){try{return buildUrl(o,s).href}catch{return o}}var TAG_NAME_REGEX=/[^a-z1-6-_]/;function getValidTagName(o){var s=o.toLowerCase().trim();return TAG_NAME_REGEX.test(s)?"div":s}function censoredImageForSize(o,s){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='".concat(o,"' height='").concat(s,"' style='background-color:silver'%3E%3C/svg%3E")}var RecordType={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},NodeType={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},IncrementalSource={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},MouseInteractionType={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},MediaInteractionType={Play:0,Pause:1};function serializeStyleSheets(o){if(!(o===void 0||o.length===0))return o.map(function(s){var a=s.cssRules||s.rules,$=Array.from(a,function(_e){return _e.cssText}),j={cssRules:$,disabled:s.disabled||void 0,media:s.media.length>0?Array.from(s.media):void 0};return j})}function serializeAttribute(o,s,a,$){if(s===NodePrivacyLevel.HIDDEN)return null;var j=o.getAttribute(a);if(s===NodePrivacyLevel.MASK&&a!==PRIVACY_ATTR_NAME&&!STABLE_ATTRIBUTES.includes(a)&&a!==$.actionNameAttribute){var _e=o.tagName;switch(a){case"title":case"alt":case"placeholder":return CENSORED_STRING_MARK}if(_e==="IMG"&&(a==="src"||a==="srcset")){var et=o;if(et.naturalWidth>0)return censoredImageForSize(et.naturalWidth,et.naturalHeight);var tt=o.getBoundingClientRect(),nt=tt.width,it=tt.height;return nt>0||it>0?censoredImageForSize(nt,it):CENSORED_IMG_MARK}if(_e==="SOURCE"&&(a==="src"||a==="srcset"))return CENSORED_IMG_MARK;if(_e==="A"&&a==="href"||j&&startsWith(a,"data-")||_e==="IFRAME"&&a==="srcdoc")return CENSORED_STRING_MARK}return!j||typeof j!="string"?j:isLongDataUrl(j)?sanitizeDataUrl(j):j}function serializeAttributes(o,s,a){var $;if(s===NodePrivacyLevel.HIDDEN)return{};for(var j={},_e=getValidTagName(o.tagName),et=o.ownerDocument,tt=0;tt<o.attributes.length;tt+=1){var nt=o.attributes.item(tt),it=nt.name,rt=serializeAttribute(o,s,it,a.configuration);rt!==null&&(j[it]=rt)}if(o.value&&(_e==="textarea"||_e==="select"||_e==="option"||_e==="input")){var st=getElementInputValue(o,s);st!==void 0&&(j.value=st)}if(_e==="option"&&s===NodePrivacyLevel.ALLOW){var ot=o;ot.selected&&(j.selected=ot.selected)}if(_e==="link"){var at=Array.from(et.styleSheets).find(function(ft){return ft.href===o.href}),lt=getCssRulesString(at);lt&&at&&(j._cssText=lt)}if(_e==="style"&&o.sheet){var lt=getCssRulesString(o.sheet);lt&&(j._cssText=lt)}var ct=o;if(_e==="input"&&(ct.type==="radio"||ct.type==="checkbox")&&(s===NodePrivacyLevel.ALLOW?j.checked=!!ct.checked:shouldMaskNode(ct,s)&&delete j.checked),_e==="audio"||_e==="video"){var ht=o;j.rr_mediaState=ht.paused?"paused":"played"}var dt,ut,pt=a.serializationContext;switch(pt.status){case 0:dt=Math.round(o.scrollTop),ut=Math.round(o.scrollLeft),(dt||ut)&&pt.elementsScrollPositions.set(o,{scrollTop:dt,scrollLeft:ut});break;case 1:pt.elementsScrollPositions.has(o)&&($=pt.elementsScrollPositions.get(o),dt=$.scrollTop,ut=$.scrollLeft);break}return ut&&(j.rr_scrollLeft=ut),dt&&(j.rr_scrollTop=dt),j}function getCssRulesString(o){if(!o)return null;var s;try{s=o.rules||o.cssRules}catch{}if(!s)return null;var a=Array.from(s,isSafari()?getCssRuleStringForSafari:getCssRuleString).join("");return switchToAbsoluteUrl(a,o.href)}function getCssRuleStringForSafari(o){if(isCSSStyleRule(o)&&o.selectorText.includes(":")){var s=/(\[[\w-]+[^\\])(:[^\]]+\])/g;return o.cssText.replace(s,"$1\\$2")}return getCssRuleString(o)}function getCssRuleString(o){return isCSSImportRule(o)&&getCssRulesString(o.styleSheet)||o.cssText}function isCSSImportRule(o){return"styleSheet"in o}function isCSSStyleRule(o){return"selectorText"in o}function serializeNodeWithId(o,s){var a=serializeNode(o,s);if(!a)return null;var $=getSerializedNodeId(o)||generateNextId(),j=a;return j.id=$,setSerializedNodeId(o,$),s.serializedNodeIds&&s.serializedNodeIds.add($),j}var _nextId=1;function generateNextId(){return _nextId++}function serializeChildNodes(o,s){var a=[];return forEachChildNodes(o,function($){var j=serializeNodeWithId($,s);j&&a.push(j)}),a}function serializeNode(o,s){switch(o.nodeType){case o.DOCUMENT_NODE:return serializeDocumentNode(o,s);case o.DOCUMENT_FRAGMENT_NODE:return serializeDocumentFragmentNode(o,s);case o.DOCUMENT_TYPE_NODE:return serializeDocumentTypeNode(o);case o.ELEMENT_NODE:return serializeElementNode(o,s);case o.TEXT_NODE:return serializeTextNode(o,s);case o.CDATA_SECTION_NODE:return serializeCDataNode()}}function serializeDocumentNode(o,s){return{type:NodeType.Document,childNodes:serializeChildNodes(o,s),adoptedStyleSheets:serializeStyleSheets(o.adoptedStyleSheets)}}function serializeDocumentFragmentNode(o,s){var a=isNodeShadowRoot(o);return a&&s.serializationContext.shadowRootsController.addShadowRoot(o),{type:NodeType.DocumentFragment,childNodes:serializeChildNodes(o,s),isShadowRoot:a,adoptedStyleSheets:a?serializeStyleSheets(o.adoptedStyleSheets):void 0}}function serializeDocumentTypeNode(o){return{type:NodeType.DocumentType,name:o.name,publicId:o.publicId,systemId:o.systemId}}function serializeElementNode(o,s){var a,$=getValidTagName(o.tagName),j=isSVGElement(o)||void 0,_e=reducePrivacyLevel(getNodeSelfPrivacyLevel(o),s.parentNodePrivacyLevel);if(_e===NodePrivacyLevel.HIDDEN){var et=o.getBoundingClientRect(),tt=et.width,nt=et.height;return{type:NodeType.Element,tagName:$,attributes:(a={rr_width:"".concat(tt,"px"),rr_height:"".concat(nt,"px")},a[PRIVACY_ATTR_NAME]=PRIVACY_ATTR_VALUE_HIDDEN,a),childNodes:[],isSVG:j}}if(_e!==NodePrivacyLevel.IGNORE){var it=serializeAttributes(o,_e,s),rt=[];if(hasChildNodes(o)&&$!=="style"){var st=void 0;s.parentNodePrivacyLevel===_e&&s.ignoreWhiteSpace===($==="head")?st=s:st=assign({},s,{parentNodePrivacyLevel:_e,ignoreWhiteSpace:$==="head"}),rt=serializeChildNodes(o,st)}return{type:NodeType.Element,tagName:$,attributes:it,childNodes:rt,isSVG:j}}}function isSVGElement(o){return o.tagName==="svg"||o instanceof SVGElement}function serializeTextNode(o,s){var a=getTextContent(o,s.ignoreWhiteSpace||!1,s.parentNodePrivacyLevel);if(a!==void 0)return{type:NodeType.Text,textContent:a}}function serializeCDataNode(){return{type:NodeType.CDATA,textContent:""}}function serializeDocument(o,s,a){return serializeNodeWithId(o,{serializationContext:a,parentNodePrivacyLevel:s.defaultPrivacyLevel,configuration:s})}function isTouchEvent(o){return!!o.changedTouches}function getEventTarget(o){return o.composed===!0&&isNodeShadowHost(o.target)?o.composedPath()[0]:o.target}var TOLERANCE=25;function isVisualViewportFactoredIn(o){return Math.abs(o.pageTop-o.offsetTop-window.scrollY)>TOLERANCE||Math.abs(o.pageLeft-o.offsetLeft-window.scrollX)>TOLERANCE}var convertMouseEventToLayoutCoordinates=function(o,s){var a=window.visualViewport,$={layoutViewportX:o,layoutViewportY:s,visualViewportX:o,visualViewportY:s};if(a)isVisualViewportFactoredIn(a)?($.layoutViewportX=Math.round(o+a.offsetLeft),$.layoutViewportY=Math.round(s+a.offsetTop)):($.visualViewportX=Math.round(o-a.offsetLeft),$.visualViewportY=Math.round(s-a.offsetTop));else return $;return $},getVisualViewport=function(o){return{scale:o.scale,offsetLeft:o.offsetLeft,offsetTop:o.offsetTop,pageLeft:o.pageLeft,pageTop:o.pageTop,height:o.height,width:o.width}};function assembleIncrementalSnapshot(o,s){return{data:assign({source:o},s),type:RecordType.IncrementalSnapshot,timestamp:timeStampNow()}}var MOUSE_MOVE_OBSERVER_THRESHOLD=50;function trackMove(o,s){var a=throttle(function(et){var tt=getEventTarget(et);if(hasSerializedNode(tt)){var nt=tryToComputeCoordinates(et);if(!nt)return;var it={id:getSerializedNodeId(tt),timeOffset:0,x:nt.x,y:nt.y};s(assembleIncrementalSnapshot(isTouchEvent(et)?IncrementalSource.TouchMove:IncrementalSource.MouseMove,{positions:[it]}))}},MOUSE_MOVE_OBSERVER_THRESHOLD,{trailing:!1}),$=a.throttled,j=a.cancel,_e=addEventListeners(o,document,["mousemove","touchmove"],$,{capture:!0,passive:!0}).stop;return{stop:function(){_e(),j()}}}function tryToComputeCoordinates(o){var s=isTouchEvent(o)?o.changedTouches[0]:o,a=s.clientX,$=s.clientY;if(window.visualViewport){var j=convertMouseEventToLayoutCoordinates(a,$),_e=j.visualViewportX,et=j.visualViewportY;a=_e,$=et}if(!Number.isFinite(a)||!Number.isFinite($)){o.isTrusted&&addTelemetryDebug("mouse/touch event without x/y");return}return{x:a,y:$}}var _a,eventTypeToMouseInteraction=(_a={},_a.pointerup=MouseInteractionType.MouseUp,_a.mousedown=MouseInteractionType.MouseDown,_a.click=MouseInteractionType.Click,_a.contextmenu=MouseInteractionType.ContextMenu,_a.dblclick=MouseInteractionType.DblClick,_a.focus=MouseInteractionType.Focus,_a.blur=MouseInteractionType.Blur,_a.touchstart=MouseInteractionType.TouchStart,_a.touchend=MouseInteractionType.TouchEnd,_a);function trackMouseInteraction(o,s,a){var $=function(j){var _e=getEventTarget(j);if(!(getNodePrivacyLevel(_e,o.defaultPrivacyLevel)===NodePrivacyLevel.HIDDEN||!hasSerializedNode(_e))){var et=getSerializedNodeId(_e),tt=eventTypeToMouseInteraction[j.type],nt;if(tt!==MouseInteractionType.Blur&&tt!==MouseInteractionType.Focus){var it=tryToComputeCoordinates(j);if(!it)return;nt={id:et,type:tt,x:it.x,y:it.y}}else nt={id:et,type:tt};var rt=assign({id:a.getIdForEvent(j)},assembleIncrementalSnapshot(IncrementalSource.MouseInteraction,nt));s(rt)}};return addEventListeners(o,document,Object.keys(eventTypeToMouseInteraction),$,{capture:!0,passive:!0})}var SCROLL_OBSERVER_THRESHOLD=100;function trackScroll(o,s,a,$){$===void 0&&($=document);var j=throttle(function(nt){var it=getEventTarget(nt);if(!(!it||getNodePrivacyLevel(it,o.defaultPrivacyLevel)===NodePrivacyLevel.HIDDEN||!hasSerializedNode(it))){var rt=getSerializedNodeId(it),st=it===document?{scrollTop:getScrollY(),scrollLeft:getScrollX()}:{scrollTop:Math.round(it.scrollTop),scrollLeft:Math.round(it.scrollLeft)};a.set(it,st),s(assembleIncrementalSnapshot(IncrementalSource.Scroll,{id:rt,x:st.scrollLeft,y:st.scrollTop}))}},SCROLL_OBSERVER_THRESHOLD),_e=j.throttled,et=j.cancel,tt=addEventListener(o,$,"scroll",_e,{capture:!0,passive:!0}).stop;return{stop:function(){tt(),et()}}}var VISUAL_VIEWPORT_OBSERVER_THRESHOLD=200;function trackViewportResize(o,s){var a=initViewportObservable(o).subscribe(function($){s(assembleIncrementalSnapshot(IncrementalSource.ViewportResize,$))});return{stop:function(){a.unsubscribe()}}}function trackVisualViewportResize(o,s){var a=window.visualViewport;if(!a)return{stop:noop};var $=throttle(function(){s({data:getVisualViewport(a),type:RecordType.VisualViewport,timestamp:timeStampNow()})},VISUAL_VIEWPORT_OBSERVER_THRESHOLD,{trailing:!1}),j=$.throttled,_e=$.cancel,et=addEventListeners(o,a,["resize","scroll"],j,{capture:!0,passive:!0}).stop;return{stop:function(){et(),_e()}}}function trackMediaInteraction(o,s){return addEventListeners(o,document,["play","pause"],function(a){var $=getEventTarget(a);!$||getNodePrivacyLevel($,o.defaultPrivacyLevel)===NodePrivacyLevel.HIDDEN||!hasSerializedNode($)||s(assembleIncrementalSnapshot(IncrementalSource.MediaInteraction,{id:getSerializedNodeId($),type:a.type==="play"?MediaInteractionType.Play:MediaInteractionType.Pause}))},{capture:!0,passive:!0})}function trackStyleSheet(o){function s(j,_e){j&&hasSerializedNode(j.ownerNode)&&_e(getSerializedNodeId(j.ownerNode))}var a=[instrumentMethod(CSSStyleSheet.prototype,"insertRule",function(j){var _e=j.target,et=j.parameters,tt=et[0],nt=et[1];s(_e,function(it){return o(assembleIncrementalSnapshot(IncrementalSource.StyleSheetRule,{id:it,adds:[{rule:tt,index:nt}]}))})}),instrumentMethod(CSSStyleSheet.prototype,"deleteRule",function(j){var _e=j.target,et=j.parameters[0];s(_e,function(tt){return o(assembleIncrementalSnapshot(IncrementalSource.StyleSheetRule,{id:tt,removes:[{index:et}]}))})})];typeof CSSGroupingRule<"u"?$(CSSGroupingRule):($(CSSMediaRule),$(CSSSupportsRule));function $(j){a.push(instrumentMethod(j.prototype,"insertRule",function(_e){var et=_e.target,tt=_e.parameters,nt=tt[0],it=tt[1];s(et.parentStyleSheet,function(rt){var st=getPathToNestedCSSRule(et);st&&(st.push(it||0),o(assembleIncrementalSnapshot(IncrementalSource.StyleSheetRule,{id:rt,adds:[{rule:nt,index:st}]})))})}),instrumentMethod(j.prototype,"deleteRule",function(_e){var et=_e.target,tt=_e.parameters[0];s(et.parentStyleSheet,function(nt){var it=getPathToNestedCSSRule(et);it&&(it.push(tt),o(assembleIncrementalSnapshot(IncrementalSource.StyleSheetRule,{id:nt,removes:[{index:it}]})))})}))}return{stop:function(){a.forEach(function(j){return j.stop()})}}}function getPathToNestedCSSRule(o){for(var s=[],a=o;a.parentRule;){var $=Array.from(a.parentRule.cssRules),j=$.indexOf(a);s.unshift(j),a=a.parentRule}if(a.parentStyleSheet){var _e=Array.from(a.parentStyleSheet.cssRules),et=_e.indexOf(a);return s.unshift(et),s}}function trackFocus(o,s){return addEventListeners(o,window,["focus","blur"],function(){s({data:{has_focus:document.hasFocus()},type:RecordType.Focus,timestamp:timeStampNow()})})}function trackFrustration(o,s,a){var $=o.subscribe(11,function(j){var _e,et;j.rawRumEvent.type==="action"&&j.rawRumEvent.action.type==="click"&&(!((et=(_e=j.rawRumEvent.action.frustration)===null||_e===void 0?void 0:_e.type)===null||et===void 0)&&et.length)&&"events"in j.domainContext&&j.domainContext.events&&j.domainContext.events.length&&s({timestamp:j.rawRumEvent.date,type:RecordType.FrustrationRecord,data:{frustrationTypes:j.rawRumEvent.action.frustration.type,recordIds:j.domainContext.events.map(function(tt){return a.getIdForEvent(tt)})}})});return{stop:function(){$.unsubscribe()}}}function trackViewEnd(o,s){var a=o.subscribe(4,function(){s({timestamp:timeStampNow(),type:RecordType.ViewEnd})});return{stop:function(){a.unsubscribe()}}}function trackInput(o,s,a){a===void 0&&(a=document);var $=o.defaultPrivacyLevel,j=new WeakMap,_e=a!==document,et=addEventListeners(o,a,_e?["change"]:["input","change"],function(st){var ot=getEventTarget(st);(ot instanceof HTMLInputElement||ot instanceof HTMLTextAreaElement||ot instanceof HTMLSelectElement)&&it(ot)},{capture:!0,passive:!0}).stop,tt;if(_e)tt=noop;else{var nt=[instrumentSetter(HTMLInputElement.prototype,"value",it),instrumentSetter(HTMLInputElement.prototype,"checked",it),instrumentSetter(HTMLSelectElement.prototype,"value",it),instrumentSetter(HTMLTextAreaElement.prototype,"value",it),instrumentSetter(HTMLSelectElement.prototype,"selectedIndex",it)];tt=function(){nt.forEach(function(st){return st.stop()})}}return{stop:function(){tt(),et()}};function it(st){var ot=getNodePrivacyLevel(st,$);if(ot!==NodePrivacyLevel.HIDDEN){var at=st.type,lt;if(at==="radio"||at==="checkbox"){if(shouldMaskNode(st,ot))return;lt={isChecked:st.checked}}else{var ct=getElementInputValue(st,ot);if(ct===void 0)return;lt={text:ct}}rt(st,lt);var ht=st.name;at==="radio"&&ht&&st.checked&&forEach(document.querySelectorAll('input[type="radio"][name="'.concat(cssEscape(ht),'"]')),function(dt){dt!==st&&rt(dt,{isChecked:!1})})}}function rt(st,ot){if(hasSerializedNode(st)){var at=j.get(st);(!at||at.text!==ot.text||at.isChecked!==ot.isChecked)&&(j.set(st,ot),s(assembleIncrementalSnapshot(IncrementalSource.Input,assign({id:getSerializedNodeId(st)},ot))))}}}var MUTATION_PROCESS_MAX_DELAY=100,MUTATION_PROCESS_MIN_DELAY=16;function createMutationBatch(o){var s=noop,a=[];function $(){s(),o(a),a=[]}var j=throttle($,MUTATION_PROCESS_MIN_DELAY,{leading:!1}),_e=j.throttled,et=j.cancel;return{addMutations:function(tt){a.length===0&&(s=requestIdleCallback(_e,{timeout:MUTATION_PROCESS_MAX_DELAY})),a.push.apply(a,tt)},flush:$,stop:function(){s(),et()}}}function requestIdleCallback(o,s){if(window.requestIdleCallback&&window.cancelIdleCallback){var a=window.requestIdleCallback(monitor(o),s);return function(){return window.cancelIdleCallback(a)}}var $=window.requestAnimationFrame(monitor(o));return function(){return window.cancelAnimationFrame($)}}function trackMutation(o,s,a,$){var j=getMutationObserverConstructor();if(!j)return{stop:noop,flush:noop};var _e=createMutationBatch(function(tt){processMutations(tt.concat(et.takeRecords()),o,s,a)}),et=new j(monitor(_e.addMutations));return et.observe($,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){et.disconnect(),_e.stop()},flush:function(){_e.flush()}}}function processMutations(o,s,a,$){var j=new Map;o.filter(function(ot){return ot.type==="childList"}).forEach(function(ot){ot.removedNodes.forEach(function(at){traverseRemovedShadowDom(at,$.removeShadowRoot)})});var _e=o.filter(function(ot){return ot.target.isConnected&&nodeAndAncestorsHaveSerializedNode(ot.target)&&getNodePrivacyLevel(ot.target,a.defaultPrivacyLevel,j)!==NodePrivacyLevel.HIDDEN}),et=processChildListMutations(_e.filter(function(ot){return ot.type==="childList"}),a,$,j),tt=et.adds,nt=et.removes,it=et.hasBeenSerialized,rt=processCharacterDataMutations(_e.filter(function(ot){return ot.type==="characterData"&&!it(ot.target)}),a,j),st=processAttributesMutations(_e.filter(function(ot){return ot.type==="attributes"&&!it(ot.target)}),a,j);!rt.length&&!st.length&&!nt.length&&!tt.length||s(assembleIncrementalSnapshot(IncrementalSource.Mutation,{adds:tt,removes:nt,texts:rt,attributes:st}))}function processChildListMutations(o,s,a,$){for(var j=new Set,_e=new Map,et=function(gt){gt.addedNodes.forEach(function(bt){j.add(bt)}),gt.removedNodes.forEach(function(bt){j.has(bt)||_e.set(bt,gt.target),j.delete(bt)})},tt=0,nt=o;tt<nt.length;tt++){var it=nt[tt];et(it)}var rt=Array.from(j);sortAddedAndMovedNodes(rt);for(var st=new Set,ot=[],at=0,lt=rt;at<lt.length;at++){var ct=lt[at];if(!ft(ct)){var ht=getNodePrivacyLevel(ct.parentNode,s.defaultPrivacyLevel,$);if(!(ht===NodePrivacyLevel.HIDDEN||ht===NodePrivacyLevel.IGNORE)){var dt=serializeNodeWithId(ct,{serializedNodeIds:st,parentNodePrivacyLevel:ht,serializationContext:{status:2,shadowRootsController:a},configuration:s});if(dt){var ut=getParentNode(ct);ot.push({nextId:mt(ct),parentId:getSerializedNodeId(ut),node:dt})}}}}var pt=[];return _e.forEach(function(gt,bt){hasSerializedNode(bt)&&pt.push({parentId:getSerializedNodeId(gt),id:getSerializedNodeId(bt)})}),{adds:ot,removes:pt,hasBeenSerialized:ft};function ft(gt){return hasSerializedNode(gt)&&st.has(getSerializedNodeId(gt))}function mt(gt){for(var bt=gt.nextSibling;bt;){if(hasSerializedNode(bt))return getSerializedNodeId(bt);bt=bt.nextSibling}return null}}function processCharacterDataMutations(o,s,a){for(var $,j=[],_e=new Set,et=o.filter(function(ot){return _e.has(ot.target)?!1:(_e.add(ot.target),!0)}),tt=0,nt=et;tt<nt.length;tt++){var it=nt[tt],rt=it.target.textContent;if(rt!==it.oldValue){var st=getNodePrivacyLevel(getParentNode(it.target),s.defaultPrivacyLevel,a);st===NodePrivacyLevel.HIDDEN||st===NodePrivacyLevel.IGNORE||j.push({id:getSerializedNodeId(it.target),value:($=getTextContent(it.target,!1,st))!==null&&$!==void 0?$:null})}}return j}function processAttributesMutations(o,s,a){for(var $=[],j=new Map,_e=o.filter(function(ht){var dt=j.get(ht.target);return dt&&dt.has(ht.attributeName)?!1:(dt?dt.add(ht.attributeName):j.set(ht.target,new Set([ht.attributeName])),!0)}),et=new Map,tt=0,nt=_e;tt<nt.length;tt++){var it=nt[tt],rt=it.target.getAttribute(it.attributeName);if(rt!==it.oldValue){var st=getNodePrivacyLevel(it.target,s.defaultPrivacyLevel,a),ot=serializeAttribute(it.target,st,it.attributeName,s),at=void 0;if(it.attributeName==="value"){var lt=getElementInputValue(it.target,st);if(lt===void 0)continue;at=lt}else typeof ot=="string"?at=ot:at=null;var ct=et.get(it.target);ct||(ct={id:getSerializedNodeId(it.target),attributes:{}},$.push(ct),et.set(it.target,ct)),ct.attributes[it.attributeName]=at}}return $}function sortAddedAndMovedNodes(o){o.sort(function(s,a){var $=s.compareDocumentPosition(a);return $&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:$&Node.DOCUMENT_POSITION_CONTAINS||$&Node.DOCUMENT_POSITION_FOLLOWING?1:$&Node.DOCUMENT_POSITION_PRECEDING?-1:0})}function traverseRemovedShadowDom(o,s){isNodeShadowHost(o)&&s(o.shadowRoot),forEachChildNodes(o,function(a){return traverseRemovedShadowDom(a,s)})}function createElementsScrollPositions(){var o=new WeakMap;return{set:function(s,a){s===document&&!document.scrollingElement||o.set(s===document?document.scrollingElement:s,a)},get:function(s){return o.get(s)},has:function(s){return o.has(s)}}}var initShadowRootsController=function(o,s,a){var $=new Map,j={addShadowRoot:function(_e){if(!$.has(_e)){var et=trackMutation(s,o,j,_e),tt=trackInput(o,s,_e),nt=trackScroll(o,s,a,_e);$.set(_e,{flush:function(){return et.flush()},stop:function(){et.stop(),tt.stop(),nt.stop()}})}},removeShadowRoot:function(_e){var et=$.get(_e);et&&(et.stop(),$.delete(_e))},stop:function(){$.forEach(function(_e){var et=_e.stop;return et()})},flush:function(){$.forEach(function(_e){var et=_e.flush;return et()})}};return j};function startFullSnapshots(o,s,a,$,j,_e){var et=function(nt,it){nt===void 0&&(nt=timeStampNow()),it===void 0&&(it={status:0,elementsScrollPositions:o,shadowRootsController:s});var rt=getViewportDimension(),st=rt.width,ot=rt.height,at=[{data:{height:ot,href:window.location.href,width:st},type:RecordType.Meta,timestamp:nt},{data:{has_focus:document.hasFocus()},type:RecordType.Focus,timestamp:nt},{data:{node:serializeDocument(document,$,it),initialOffset:{left:getScrollX(),top:getScrollY()}},type:RecordType.FullSnapshot,timestamp:nt}];return window.visualViewport&&at.push({data:getVisualViewport(window.visualViewport),type:RecordType.VisualViewport,timestamp:nt}),at};_e(et());var tt=a.subscribe(2,function(nt){j(),_e(et(nt.startClocks.timeStamp,{shadowRootsController:s,status:1,elementsScrollPositions:o}))}).unsubscribe;return{stop:tt}}function initRecordIds(){var o=new WeakMap,s=1;return{getIdForEvent:function(a){return o.has(a)||o.set(a,s++),o.get(a)}}}function record(o){var s=o.emit,a=o.configuration,$=o.lifeCycle;if(!s)throw new Error("emit function is required");var j=function(ot){s(ot),sendToExtension("record",{record:ot});var at=o.viewHistory.findView();addRecord(at.id)},_e=createElementsScrollPositions(),et=initShadowRootsController(a,j,_e),tt=startFullSnapshots(_e,et,$,a,nt,function(ot){return ot.forEach(function(at){return j(at)})}).stop;function nt(){et.flush(),rt.flush()}var it=initRecordIds(),rt=trackMutation(j,a,et,document),st=[rt,trackMove(a,j),trackMouseInteraction(a,j,it),trackScroll(a,j,_e,document),trackViewportResize(a,j),trackInput(a,j),trackMediaInteraction(a,j),trackStyleSheet(j),trackFocus(a,j),trackVisualViewportResize(a,j),trackFrustration($,j,it),trackViewEnd($,function(ot){nt(),j(ot)})];return{stop:function(){et.stop(),st.forEach(function(ot){return ot.stop()}),tt()},flushMutations:nt,shadowRootsController:et}}function buildReplayPayload(o,s,a){var $=new FormData;$.append("segment",new Blob([o],{type:"application/octet-stream"}),"".concat(s.session.id,"-").concat(s.start));var j=assign({raw_segment_size:a,compressed_segment_size:o.byteLength},s),_e=JSON.stringify(j);return $.append("event",new Blob([_e],{type:"application/json"})),{data:$,bytesCount:o.byteLength}}function createSegment(o){var s=o.context,a=o.creationReason,$=o.encoder,j=0,_e=s.view.id,et=assign({start:1/0,end:-1/0,creation_reason:a,records_count:0,has_full_snapshot:!1,index_in_view:getSegmentsCount(_e),source:"browser"},s);addSegment(_e);function tt(it,rt){et.start=Math.min(et.start,it.timestamp),et.end=Math.max(et.end,it.timestamp),et.records_count+=1,et.has_full_snapshot||(et.has_full_snapshot=it.type===RecordType.FullSnapshot);var st=$.isEmpty?'{"records":[':",";$.write(st+JSON.stringify(it),function(ot){j+=ot,rt(j)})}function nt(it){if($.isEmpty)throw new Error("Empty segment flushed");$.write("],".concat(JSON.stringify(et).slice(1),`
`)),$.finish(function(rt){addWroteData(et.view.id,rt.rawBytesCount),it(et,rt)})}return{addRecord:tt,flush:nt}}var SEGMENT_DURATION_LIMIT=5*ONE_SECOND,SEGMENT_BYTES_LIMIT=6e4;function startSegmentCollection(o,s,a,$,j,_e){return doStartSegmentCollection(o,function(){return computeSegmentContext(s.applicationId,a,$)},j,_e)}function doStartSegmentCollection(o,s,a,$){var j={status:0,nextSegmentCreationReason:"init"},_e=o.subscribe(2,function(){tt("view_change")}).unsubscribe,et=o.subscribe(10,function(nt){tt(nt.reason)}).unsubscribe;function tt(nt){j.status===1&&(j.segment.flush(function(it,rt){var st=buildReplayPayload(rt.output,it,rt.rawBytesCount);isPageExitReason(nt)?a.sendOnExit(st):a.send(st)}),clearTimeout$1(j.expirationTimeoutId)),nt!=="stop"?j={status:0,nextSegmentCreationReason:nt}:j={status:2}}return{addRecord:function(nt){if(j.status!==2){if(j.status===0){var it=s();if(!it)return;j={status:1,segment:createSegment({encoder:$,context:it,creationReason:j.nextSegmentCreationReason}),expirationTimeoutId:setTimeout$1(function(){tt("segment_duration_limit")},SEGMENT_DURATION_LIMIT)}}j.segment.addRecord(nt,function(rt){rt>SEGMENT_BYTES_LIMIT&&tt("segment_bytes_limit")})}},stop:function(){tt("stop"),_e(),et()}}}function computeSegmentContext(o,s,a){var $=s.findTrackedSession(),j=a.findView();if(!(!$||!j))return{application:{id:o},session:{id:$.id},view:{id:j.id}}}function startRecordBridge(o){var s=getEventBridge();return{addRecord:function(a){var $=o.findView();s.send("record",a,$.id)}}}function startRecording(o,s,a,$,j,_e){var et=[],tt=function(ot){o.notify(13,{error:ot}),addTelemetryDebug("Error reported to customer",{"error.message":ot.message})},nt=_e||createHttpRequest(s,s.sessionReplayEndpointBuilder,SEGMENT_BYTES_LIMIT,tt),it;if(canUseEventBridge())it=startRecordBridge($).addRecord;else{var rt=startSegmentCollection(o,s,a,$,nt,j);it=rt.addRecord,et.push(rt.stop)}var st=record({emit:it,configuration:s,lifeCycle:o,viewHistory:$}).stop;return et.push(st),{stop:function(){et.forEach(function(ot){return ot()})}}}function isBrowserSupported(){return typeof Array.from=="function"&&typeof CSSSupportsRule=="function"&&typeof URL.createObjectURL=="function"&&"forEach"in NodeList.prototype}function getSessionReplayLink(o,s,a,$){var j=s.findTrackedSession(),_e=getErrorType(j,$),et=a.findView();return getSessionReplayUrl(o,{viewContext:et,errorType:_e,session:j})}function getErrorType(o,s){if(!isBrowserSupported())return"browser-not-supported";if(!o)return"rum-not-tracked";if(o.sessionReplay===0)return"incorrect-session-plan";if(!s)return"replay-not-started"}function createDeflateEncoder(o,s,a){var $=0,j=[],_e,et=0,tt=[],nt=addEventListener(o,s,"message",function(st){var ot=st.data;if(!(ot.type!=="wrote"||ot.streamId!==a)){$+=ot.additionalBytesCount,j.push(ot.result),_e=ot.trailer;var at=tt.shift();at&&at.id===ot.id?at.writeCallback?at.writeCallback(ot.result.byteLength):at.finishCallback&&at.finishCallback():(nt(),addTelemetryDebug("Worker responses received out of order."))}}).stop;function it(){var st=j.length===0?new Uint8Array(0):concatBuffers(j.concat(_e)),ot={rawBytesCount:$,output:st,outputBytesCount:st.byteLength,encoding:"deflate"};return $=0,j=[],ot}function rt(){et>0&&(s.postMessage({action:"reset",streamId:a}),et=0)}return{isAsync:!0,get isEmpty(){return et===0},write:function(st,ot){s.postMessage({action:"write",id:et,data:st,streamId:a}),tt.push({id:et,writeCallback:ot,data:st}),et+=1},finish:function(st){rt(),tt.length?(tt.forEach(function(ot){delete ot.writeCallback}),tt[tt.length-1].finishCallback=function(){return st(it())}):st(it())},finishSync:function(){rt();var st=tt.map(function(ot){return delete ot.writeCallback,delete ot.finishCallback,ot.data}).join("");return assign(it(),{pendingData:st})},estimateEncodedBytesCount:function(st){return st.length/8},stop:function(){nt()}}}var INITIALIZATION_TIME_OUT_DELAY=30*ONE_SECOND;function createDeflateWorker(o){return new Worker(o.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r<i.length;r++){var s=i[r];a.set(s,n),n+=s.length}return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),_=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,k(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},x=function(t,e,a){z(t,a[2*e],a[2*e+1])},A=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},E=function(t,e,a){var n,r,s=new Array(16),_=0;for(n=1;n<=i;n++)s[n]=_=_+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=A(s[h]++,h))}},Z=function(t){var e;for(e=0;e<n;e++)t.dyn_ltree[2*e]=0;for(e=0;e<r;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},U=function(t){t.bi_valid>8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},S=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},R=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&S(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!S(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},L=function(t,e,n){var r,i,h,l,o=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===r?x(t,i,e):(h=f[i],x(t,h+a+1,e),0!==(l=s[h])&&(i-=c[h],z(t,i,l)),r--,h=y(r),x(t,h,n),0!==(l=_[h])&&(r-=v[h],z(t,r,l)))}while(o<t.last_lit);x(t,256,e)},F=function(t,e){var a,n,r,s=e.dyn_tree,_=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=_[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)R(t,s,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,R(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,_,h,l=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),l[2*n+1]=s,n>o||(t.bl_count[s]++,_=0,n>=c&&(_=f[n-c]),h=l[2*n],t.opt_len+=h*(s+_),u&&(t.static_len+=h*(d[2*n+1]+_)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==s&&(t.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),n--)}}(t,e),E(s,o,t.bl_count)},T=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_<h&&r===s||(_<l?t.bl_tree[2*r]+=_:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4))},I=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++_<h&&r===s)){if(_<l)do{x(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),_--),x(t,16,t.bl_tree),z(t,_-3,2)):_<=10?(x(t,17,t.bl_tree),z(t,_-3,3)):(x(t,18,t.bl_tree),z(t,_-11,7));_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4)}},N=!1,O=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){U(t),n&&(k(t,a),k(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},D=function(t,e,n,r){var i,s,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),F(t,t.l_desc),F(t,t.d_desc),_=function(t){var e;for(T(t,t.dyn_ltree,t.l_desc.max_code),T(t,t.dyn_dtree,t.d_desc.max_code),F(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?O(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),L(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*l[r]+1],3);I(t,t.dyn_ltree,e-1),I(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),L(t,t.dyn_ltree,t.dyn_dtree)),Z(t),r&&U(t)},B={_tr_init:function(t){N||(!function(){var t,e,a,l,m,y=new Array(16);for(a=0,l=0;l<28;l++)for(c[l]=a,t=0;t<1<<s[l];t++)f[a++]=l;for(f[a-1]=l,m=0,l=0;l<16;l++)for(v[l]=m,t=0;t<1<<_[l];t++)u[m++]=l;for(m>>=7;l<r;l++)for(v[l]=m<<7,t=0;t<1<<_[l]-7;t++)u[256+m++]=l;for(e=0;e<=i;e++)y[e]=0;for(t=0;t<=143;)o[2*t+1]=8,t++,y[8]++;for(;t<=255;)o[2*t+1]=9,t++,y[9]++;for(;t<=279;)o[2*t+1]=7,t++,y[7]++;for(;t<=287;)o[2*t+1]=8,t++,y[8]++;for(E(o,287,y),t=0;t<r;t++)d[2*t+1]=5,d[2*t]=A(t,5);p=new b(o,s,257,n,i),g=new b(d,_,0,r,i),w=new b(new Array(0),h,0,19,7)}(),N=!0),t.l_desc=new m(t.dyn_ltree,p),t.d_desc=new m(t.dyn_dtree,g),t.bl_desc=new m(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,Z(t)},_tr_stored_block:O,_tr_flush_block:D,_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},C=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16|0},H=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),M=function(t,e,a,n){var r=H,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},Y={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},P=B._tr_init,j=B._tr_stored_block,G=B._tr_flush_block,X=B._tr_tally,W=B._tr_align,q=K.Z_NO_FLUSH,J=K.Z_PARTIAL_FLUSH,Q=K.Z_FULL_FLUSH,V=K.Z_FINISH,$=K.Z_BLOCK,tt=K.Z_OK,et=K.Z_STREAM_END,at=K.Z_STREAM_ERROR,nt=K.Z_DATA_ERROR,rt=K.Z_BUF_ERROR,it=K.Z_DEFAULT_COMPRESSION,st=K.Z_FILTERED,_t=K.Z_HUFFMAN_ONLY,ht=K.Z_RLE,lt=K.Z_FIXED,ot=K.Z_DEFAULT_STRATEGY,dt=K.Z_UNKNOWN,ut=K.Z_DEFLATED,ft=258,ct=262,pt=103,gt=113,wt=666,vt=function(t,e){return t.msg=Y[e],e},bt=function(t){return(t<<1)-(t>4?9:0)},mt=function(t){for(var e=t.length;--e>=0;)t[e]=0},yt=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},kt=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},zt=function(t,e){G(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,kt(t.strm)},xt=function(t,e){t.pending_buf[t.pending++]=e},At=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-ct?t.strstart-(t.w_size-ct):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+ft,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<u);if(n=ft-(u-i),i=u-ft,n>s){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Zt=function(t){var e,a,n,r,i,s,_,h,l,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-ct)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=C(s.adler,_,o,h):2===s.state.wrap&&(s.adler=M(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=yt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=yt(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<ct&&0!==t.strm.avail_in)},Ut=function(t,e){for(var a,n;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a)),t.match_length>=3)if(n=X(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=yt(t,t.ins_h,t.window[t.strstart+1]);else n=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2},St=function(t,e){for(var a,n,r;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a),t.match_length<=5&&(t.strategy===st||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=X(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(zt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=X(t,0,t.window[t.strstart-1]))&&zt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=X(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Lt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Zt(t),0===t.lookahead&&e===q)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,zt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-ct&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(zt(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Ut),new Rt(4,5,16,8,Ut),new Rt(4,6,32,32,Ut),new Rt(4,4,16,16,St),new Rt(8,16,32,32,St),new Rt(8,16,128,128,St),new Rt(8,32,128,256,St),new Rt(32,128,258,1024,St),new Rt(32,258,258,4096,St)];function Ft(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ut,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),mt(this.dyn_ltree),mt(this.dyn_dtree),mt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),mt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),mt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Tt=function(t){if(!t||!t.state)return vt(t,at);t.total_in=t.total_out=0,t.data_type=dt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:gt,t.adler=2===e.wrap?0:1,e.last_flush=q,P(e),tt},It=function(t){var e,a=Tt(t);return a===tt&&((e=t.state).window_size=2*e.w_size,mt(e.head),e.max_lazy_match=Lt[e.level].max_lazy,e.good_match=Lt[e.level].good_length,e.nice_match=Lt[e.level].nice_length,e.max_chain_length=Lt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Nt=function(t,e,a,n,r,i){if(!t)return at;var s=1;if(e===it&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ut||n<8||n>15||e<0||e>9||i<0||i>lt)return vt(t,at);8===n&&(n=9);var _=new Ft;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.d_buf=1*_.lit_bufsize,_.l_buf=3*_.lit_bufsize,_.level=e,_.strategy=i,_.method=a,It(t)},Ot={deflateInit:function(t,e){return Nt(t,e,ut,15,8,ot)},deflateInit2:Nt,deflateReset:It,deflateResetKeep:Tt,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?at:(t.state.gzhead=e,tt):at},deflate:function(t,e){var a,n;if(!t||!t.state||e>$||e<0)return t?vt(t,at):at;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===wt&&e!==V)return vt(t,0===t.avail_out?rt:at);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,xt(r,31),xt(r,139),xt(r,8),r.gzhead?(xt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),xt(r,255&r.gzhead.time),xt(r,r.gzhead.time>>8&255),xt(r,r.gzhead.time>>16&255),xt(r,r.gzhead.time>>24&255),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(xt(r,255&r.gzhead.extra.length),xt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=M(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,3),r.status=gt);else{var s=ut+(r.w_bits-8<<4)<<8;s|=(r.strategy>=_t||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=gt,At(r,s),0!==r.strstart&&(At(r,t.adler>>>16),At(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending!==r.pending_buf_size));)xt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=pt)}else r.status=pt;if(r.status===pt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&kt(t),r.pending+2<=r.pending_buf_size&&(xt(r,255&t.adler),xt(r,t.adler>>8&255),t.adler=0,r.status=gt)):r.status=gt),0!==r.pending){if(kt(t),0===t.avail_out)return r.last_flush=-1,tt}else if(0===t.avail_in&&bt(e)<=bt(i)&&e!==V)return vt(t,rt);if(r.status===wt&&0!==t.avail_in)return vt(t,rt);if(0!==t.avail_in||0!==r.lookahead||e!==q&&r.status!==wt){var _=r.strategy===_t?function(t,e){for(var a;;){if(0===t.lookahead&&(Zt(t),0===t.lookahead)){if(e===q)return 1;break}if(t.match_length=0,a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ht?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=ft){if(Zt(t),t.lookahead<=ft&&e===q)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+ft;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=ft-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=X(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Lt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=wt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),tt;if(2===_&&(e===J?W(r):e!==$&&(j(r,0,0,!1),e===Q&&(mt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),kt(t),0===t.avail_out))return r.last_flush=-1,tt}return e!==V?tt:r.wrap<=0?et:(2===r.wrap?(xt(r,255&t.adler),xt(r,t.adler>>8&255),xt(r,t.adler>>16&255),xt(r,t.adler>>24&255),xt(r,255&t.total_in),xt(r,t.total_in>>8&255),xt(r,t.total_in>>16&255),xt(r,t.total_in>>24&255)):(At(r,t.adler>>>16),At(r,65535&t.adler)),kt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?tt:et)},deflateEnd:function(t){if(!t||!t.state)return at;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==pt&&e!==gt&&e!==wt?vt(t,at):(t.state=null,e===gt?vt(t,nt):tt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return at;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return at;if(1===r&&(t.adler=C(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(mt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Zt(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=yt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Zt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,tt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Dt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Dt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Dt[254]=Dt[254]=1;var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Ht=Object.prototype.toString,Mt=K.Z_NO_FLUSH,Yt=K.Z_SYNC_FLUSH,Kt=K.Z_FULL_FLUSH,Pt=K.Z_FINISH,jt=K.Z_OK,Gt=K.Z_STREAM_END,Xt=K.Z_DEFAULT_COMPRESSION,Wt=K.Z_DEFAULT_STRATEGY,qt=K.Z_DEFLATED;function Jt(){this.options={level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;var e=Ot.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==jt)throw new Error(Y[e]);if(t.header&&Ot.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Ht.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ot.deflateSetDictionary(this.strm,a))!==jt)throw new Error(Y[e]);this._dict_set=!0}}function Qt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function Vt(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Jt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Pt:Mt,"[object ArrayBuffer]"===Ht.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Yt||n===Kt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ot.deflate(r,n))===Gt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ot.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===jt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===jt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,_=t.length;i<_;i++){var h=t[i];r.set(h,s),s+=h.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e){void 0===e&&(e=self);try{var a=new Map;e.addEventListener("message",(function(n){try{var r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"5.29.1"};case"write":var n=e.get(a.streamId);n||(n=new Jt,e.set(a.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,_=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),i=0,r=0;i<_;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,K.Z_SYNC_FLUSH),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:Vt(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){Qt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){Qt(e,t)}}()}();'])))}var state={status:0};function startDeflateWorker(o,s,a,$){switch($===void 0&&($=createDeflateWorker),state.status===0&&doStartDeflateWorker(o,s,$),state.status){case 1:return state.initializationFailureCallbacks.push(a),state.worker;case 3:return state.worker}}function getDeflateWorkerStatus(){return state.status}function doStartDeflateWorker(o,s,a){a===void 0&&(a=createDeflateWorker);try{var $=a(o),j=addEventListener(o,$,"error",function(tt){onError(o,s,tt)}).stop,_e=addEventListener(o,$,"message",function(tt){var nt=tt.data;nt.type==="errored"?onError(o,s,nt.error,nt.streamId):nt.type==="initialized"&&onInitialized(nt.version)}).stop;$.postMessage({action:"init"}),setTimeout$1(function(){return onTimeout(s)},INITIALIZATION_TIME_OUT_DELAY);var et=function(){j(),_e()};state={status:1,worker:$,stop:et,initializationFailureCallbacks:[]}}catch(tt){onError(o,s,tt)}}function onTimeout(o){state.status===1&&(display.error("".concat(o," failed to start: a timeout occurred while initializing the Worker")),state.initializationFailureCallbacks.forEach(function(s){return s()}),state={status:2})}function onInitialized(o){state.status===1&&(state={status:3,worker:state.worker,stop:state.stop,version:o})}function onError(o,s,a,$){if(state.status===1||state.status===0){if(display.error("".concat(s," failed to start: an error occurred while creating the Worker:"),a),a instanceof Event||a instanceof Error&&isMessageCspRelated(a.message)){var j=void 0;o.workerUrl?j="Please make sure the Worker URL ".concat(o.workerUrl," is correct and CSP is correctly configured."):j="Please make sure CSP is correctly configured.",display.error("".concat(j," See documentation at ").concat(DOCS_ORIGIN,"/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else addTelemetryError(a);state.status===1&&state.initializationFailureCallbacks.forEach(function(_e){return _e()}),state={status:2}}else addTelemetryError(a,{worker_version:state.status===3&&state.version,stream_id:$})}function isMessageCspRelated(o){return includes(o,"Content Security Policy")||includes(o,"requires 'TrustedScriptURL'")}function makeRecorderApi(o,s){if(canUseEventBridge()&&!bridgeSupports("records")||!isBrowserSupported())return{start:noop,stop:noop,getReplayStats:function(){},onRumStart:noop,isRecording:function(){return!1},getSessionReplayLink:function(){}};var a={status:1},$=function(){a={status:1}},j=function(){a={status:0}},_e=noop;return{start:function(et){return $(et)},stop:function(){return j()},getSessionReplayLink:function(){return _e()},onRumStart:function(et,tt,nt,it,rt){tt.startSessionReplayRecordingManually&&(a={status:0}),et.subscribe(8,function(){(a.status===2||a.status===3)&&(j(),a={status:1})}),et.subscribe(10,function(at){at.reason===PageExitReason.UNLOADING&&j()}),et.subscribe(9,function(){a.status===1&&$()});var st;function ot(){return st||(rt||(rt=startDeflateWorker(tt,"Datadog Session Replay",function(){j()},s)),rt&&(st=createDeflateEncoder(tt,rt,1))),st}$=function(at){var lt=nt.findTrackedSession();if(!lt||lt.sessionReplay===0&&(!at||!at.force)){a={status:1};return}a.status===2||a.status===3||(a={status:2},runOnReadyState(tt,"interactive",function(){if(a.status===2){var ct=ot();if(!ct){a={status:0};return}var ht=o(et,tt,nt,it,ct).stop;a={status:3,stopRecording:ht}}}),at&&at.force&&lt.sessionReplay===0&&nt.setForcedReplay())},j=function(){a.status!==0&&(a.status===3&&a.stopRecording(),a={status:0})},_e=function(){return getSessionReplayLink(tt,nt,it,a.status!==0)},a.status===1&&$()},isRecording:function(){return getDeflateWorkerStatus()===3&&a.status===3},getReplayStats:function(et){return getDeflateWorkerStatus()===3?getReplayStats(et):void 0}}}var recorderApi=makeRecorderApi(startRecording),datadogRum=makeRumPublicApi(startRum,recorderApi,{startDeflateWorker,createDeflateEncoder});defineGlobal(getGlobalObject(),"DD_RUM",datadogRum);const AdminAppView=reactExports.lazy(()=>__vitePreload(()=>import("./admin-app-view-Bw7y0EPa.js").then(o=>o.c),__vite__mapDeps([506,8,9,20,21,78,277,147,206,207,73,329,330,286,171,70,36,331,299,300,35,262,263,264,94,95,4,265,145,165,85,41,252,266,121,267,268,269,60,185,102,270,271,253,234,272,183,184,273,210,144,82,83,142,91,92,25,26,274,275,276,32,188,189,190,62,59,87,88,89,90,93,61,34,13,96,97,22,23,38,98,99,100,101,28,3,15,205,278,279,280,285,51,7,52,10,53,54,55,191,192,332,468,49,423,221]))),IntercomProvider=reactExports.lazy(()=>__vitePreload(()=>import("./intercom-provider-DBX6lrJm.js"),__vite__mapDeps([507,207]))),VoipController=reactExports.lazy(()=>__vitePreload(()=>import("./voip-controller-Bi9xnmo8.js"),__vite__mapDeps([508,125,102,126])));setupIonicReact({mode:"md"});const INTERCOM_APP_ID="rycjiir6",META_PIXEL_ID="3001627433285534";defineCustomElements();const timezone=Intl.DateTimeFormat().resolvedOptions().timeZone,App=()=>{const o=useLayout(),{data:s,isAndroid:a,isIOS:$}=usePlatform(),j=useSelectCurrentUser(),_e=useIsAdmin(j),et=useAllowLinqPhone();amplitude.getInstance().init(AMPLITUDE_KEY,void 0,{includeReferrer:!0,includeUtm:!0,includeGclid:!0});const tt=usePrefetchLocale(),{data:nt}=useUserSettings(j==null?void 0:j.id),{mutate:it}=useUpdateUserSettings();window.analyticsCurrentUser||(window.analyticsCurrentUser=j);const rt=useDispatch(),st=useSelectCurrentUserCards(),ot=useIsIntercomEnabled();function at(){setTimeout(()=>{SplashScreen.hide()},300)}function lt(){j!=null&&j.uuid&&(amplitude.getInstance().setUserId(j.uuid),rt(analyticsIdentify()))}function ct(){rt(cancelSelectCardFlow()),rt(resetModalState())}function ht(){j&&(rt(getCurrentUser(null,j==null?void 0:j.uuid)),rt(getCards(j==null?void 0:j.uuid)))}function dt(){StatusBar$1.setStyle({style:Style$1.Light})}const ut=()=>{rt(getLinqProducts())};reactExports.useEffect(()=>{s===Platform.IOS&&dt()},[s]),reactExports.useEffect(()=>{at(),ct(),ht(),ut(),rt(saveDeviceInfo()),tt()},[]),reactExports.useEffect(()=>{st&&setCardsForWidgetBridge(st)},[st]),reactExports.useEffect(()=>{(nt==null?void 0:nt.timezone)===null&&it({timezone})},[nt]);function pt(){const Ct=new Rollbar$1({accessToken:"999fc2a6695f4155bd81d8eca3617147"});configureRollbar(j,Ct)}reactExports.useEffect(()=>{j&&(pt(),lt())},[j]),reactExports.useEffect(()=>{ENV.PLAYWRIGHT||window.navigator.userAgent.includes("Headless")||datadogRum.init({applicationId:"1f6fa9e3-da88-4bb7-b303-caab32cca770",clientToken:"pubf9217ebfe191590692402bdd3c00fe8b",site:"us5.datadoghq.com",service:"linq-dbc",env:ENV.ENVIRONMENT,version:ENV.VERSION,sessionSampleRate:100,sessionReplaySampleRate:20,trackUserInteractions:!0,trackResources:!0,trackLongTasks:!0,defaultPrivacyLevel:"mask-user-input",allowFallbackToLocalStorage:!0,beforeSend:(yt,Pt)=>!(yt.type==="error"&&yt.error.message.includes("csp_violation"))})},[]),reactExports.useEffect(()=>{s===Platform.WEB&&(metaPixel.init(META_PIXEL_ID,{},{debug:!1}),metaPixel.pageView())},[s]);const mt=new URLSearchParams(window.location.search).get("viewingAs")!=="1",gt=reactExports.useMemo(()=>ALLOW_ADMIN_ON_MOBILE?!0:o!==Layout.MOBILE&&!$&&!a,[o,$,a]),bt=window.location.href.includes("/admin"),St=gt&&window.location.href.includes("/admin"),Nt=["/hubspot/dialer","/hubspot/contacts"],Rt=window.location.href.includes("/hubspot/contacts/")||Nt.includes(window.location.pathname);bt&&!gt&&(window.location.href=PAGE_ROUTES.dashboard);const Ot=reactExports.useMemo(()=>St?jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(LoadingIndicator,{}),children:jsxRuntimeExports.jsx(AdminAppView,{})}):Rt?jsxRuntimeExports.jsx(EmptyAppView,{}):o!==Layout.MOBILE?jsxRuntimeExports.jsx(DesktopAppView$1,{}):jsxRuntimeExports.jsx(MobileAppView,{}),[Rt,o,St]);return(window.location.pathname==="/"||window.location.pathname==="")&&_e&&gt||window.location.pathname==="/admin"&&gt?redirectToAdminDashboard(j==null?void 0:j.organization):jsxRuntimeExports.jsxs(IonApp,{className:clsx(j?"logged-in":"not-logged-in",St&&"app-background"),children:[jsxRuntimeExports.jsx(IonReactRouter,{children:jsxRuntimeExports.jsx(ScrollRestorationProvider,{children:jsxRuntimeExports.jsxs(EmbeddedDialerProvider,{children:[ot&&j?jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsxs(IntercomProvider,{autoBoot:!0,autoBootProps:{email:j.email,name:j.name,userId:j.id.toString(),createdAt:j.created_at,customAttributes:{organization:j.organization,is_org_admin:_e}},appId:INTERCOM_APP_ID,children:[Ot,jsxRuntimeExports.jsx(SlidingDrawerController,{})]})}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Ot,jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsx(SlidingDrawerController,{})})]}),mt&&jsxRuntimeExports.jsx(BottomSheetDeprecated,{}),jsxRuntimeExports.jsx(IonBottomSheet,{}),jsxRuntimeExports.jsx(Modal,{}),jsxRuntimeExports.jsx(AlertModalController,{}),jsxRuntimeExports.jsx(PopoverPromptController,{}),jsxRuntimeExports.jsx(Tooltip,{}),jsxRuntimeExports.jsx(BottomSheetController,{}),et&&jsxRuntimeExports.jsx(CallInProgressController,{})]})})}),jsxRuntimeExports.jsx(Toast,{topOrBottom:"bottom"}),jsxRuntimeExports.jsx(AppRateFeedbackPrompt,{}),jsxRuntimeExports.jsx(UpdateAlert,{}),jsxRuntimeExports.jsx(LoggedInAsDisplay,{}),jsxRuntimeExports.jsx(Poller,{}),et&&jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsx(VoipController,{})})]})},CTAButton=({className:o="",isLoading:s=!1,children:a,disabled:$=!1,disabledStyle:j=!1,onClick:_e,"data-test":et,formId:tt,nowrap:nt=!1,fullWidth:it=!1})=>{const[rt,st]=reactExports.useState(!1),[ot,at]=reactExports.useState(!1),lt=reactExports.useRef(null);return jsxRuntimeExports.jsxs("div",{className:clsx(o,"button-cta","relative","mx-auto","cursor-pointer",nt&&"whitespace-nowrap",it&&"w-full"),children:[jsxRuntimeExports.jsx("div",{"aria-hidden":"true",className:`absolute  w-full h-full rounded-lg top-2 left-2 transform transition-all duration-220 ease-in-out ${s?"-translate-x-2 -translate-y-2":""}${$||j?" bg-primary-100 ":ot?"bg-primary-300":"bg-primary-400"}
             `}),jsxRuntimeExports.jsxs("button",{form:tt,"data-test":et,onClick:_e||(()=>{var dt;return(dt=lt.current)==null?void 0:dt.click()}),onBlur:()=>st(!1),onFocus:()=>st(!0),onMouseEnter:()=>at(!0),onMouseLeave:()=>at(!1),disabled:$,className:`relative w-full h-full rounded-lg transition-all duration-220 ease-in-out focus:outline-none
            ${s?"cursor-not-allowed pointer-events-none":""}
            ${$||j?" bg-gray-800 text-black border-solid border-2 border-gray-400 ":ot?"bg-primary-400 text-white border-none":"bg-primary text-white border-none"}
           `,style:{boxShadow:`${ot&&rt?"0px 0px 0px 1px #FFFFFF, 0px 0px 0px 2px var(--ion-color-primary-300)":rt?"0px 0px 0px 1px #FFFFFF, 0px 0px 0px 2px var(--ion-color-primary)":"none"}`},children:[s&&jsxRuntimeExports.jsx("div",{className:clsx("absolute","inset-0","flex items-center justify-center"),children:jsxRuntimeExports.jsx(IonSpinner,{name:"dots",color:"white"})}),jsxRuntimeExports.jsx("div",{className:clsx(s&&["pointer-events-none","invisible"]),children:a})]})]})};var TRIAL_DAYS=(o=>(o.thirty="30",o.fourteen="14",o.trial="7",o.noTrial="0",o))(TRIAL_DAYS||{});const LINQ_ONE_TRIAL_DAYS="14";var LINQ_ONE_PRICE=(o=>(o[o.ANNUAL=249]="ANNUAL",o[o.MONTHLY=29]="MONTHLY",o[o.ANNUAL_SAVE=99]="ANNUAL_SAVE",o[o.MONTHLY_AS_ANNUAL_PRICE=20.75]="MONTHLY_AS_ANNUAL_PRICE",o[o.ANNUAL_20_OFF=199]="ANNUAL_20_OFF",o[o.MONTHLY_AS_ANNUAL_20_OFF_PRICE=16.583333333333332]="MONTHLY_AS_ANNUAL_20_OFF_PRICE",o[o.PRO_MATCH_MONTHLY=5]="PRO_MATCH_MONTHLY",o[o.PRO_MATCH_YEARLY=50]="PRO_MATCH_YEARLY",o[o.PRO_PLUS_MATCH_MONTHLY=19]="PRO_PLUS_MATCH_MONTHLY",o[o.PRO_PLUS_MATCH_YEARLY=149]="PRO_PLUS_MATCH_YEARLY",o))(LINQ_ONE_PRICE||{});const SvgLinqOneLogo=o=>reactExports.createElement("svg",{width:135,height:37,viewBox:"0 0 135 37",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},reactExports.createElement("path",{d:"M17.2341 7.43604H13.1645C13.0505 7.43604 12.958 7.52848 12.958 7.64252V28.4035C12.958 28.5175 13.0505 28.61 13.1645 28.61H17.2341C17.3481 28.61 17.4406 28.5175 17.4406 28.4035V7.64252C17.4406 7.52848 17.3481 7.43604 17.2341 7.43604Z",fill:"#000312"}),reactExports.createElement("path",{d:"M30.036 7.01385C29.0539 7.00162 28.0803 7.19685 27.1789 7.58678C26.2775 7.97671 25.4685 8.55255 24.8049 9.27664C24.6759 9.4057 24.4264 9.48313 24.3489 9.27664L23.9273 7.68494C23.9097 7.62217 23.871 7.56737 23.8177 7.52977C23.7645 7.49217 23.6999 7.47405 23.6348 7.47845H20.0814C20.054 7.47723 20.0266 7.48173 20.001 7.49168C19.9754 7.50162 19.9521 7.51679 19.9327 7.53622C19.9133 7.55564 19.8981 7.57889 19.8882 7.6045C19.8782 7.6301 19.8737 7.6575 19.875 7.68494V28.3943C19.8737 28.4217 19.8782 28.4491 19.8882 28.4747C19.8981 28.5003 19.9133 28.5236 19.9327 28.543C19.9521 28.5624 19.9754 28.5776 20.001 28.5875C20.0266 28.5975 20.054 28.602 20.0814 28.6008H24.1424C24.1706 28.6032 24.1989 28.5997 24.2256 28.5903C24.2522 28.5809 24.2765 28.566 24.2969 28.5464C24.3173 28.5268 24.3332 28.5031 24.3437 28.4769C24.3541 28.4507 24.3589 28.4225 24.3575 28.3943V16.7275C24.3575 13.8367 26.0267 11.1179 29.4166 11.1179C33.142 11.1179 34.5272 14.0862 34.5272 16.934V28.3943C34.5245 28.422 34.5281 28.4501 34.5375 28.4763C34.5469 28.5026 34.5621 28.5265 34.5818 28.5462C34.6015 28.5659 34.6254 28.581 34.6516 28.5905C34.6779 28.5999 34.7059 28.6034 34.7337 28.6008H38.8377C38.8652 28.602 38.8925 28.5975 38.9181 28.5875C38.9438 28.5776 38.967 28.5624 38.9864 28.543C39.0059 28.5236 39.021 28.5003 39.031 28.4747C39.0409 28.4491 39.0454 28.4217 39.0442 28.3943V16.934C39.0442 11.5739 36.3684 7.01385 30.036 7.01385Z",fill:"#000312"}),reactExports.createElement("path",{d:"M60.5542 7.43574H57.0008C56.8287 7.43574 56.7513 7.43574 56.7083 7.64223L56.2867 9.1479C56.2007 9.36299 55.9942 9.36299 55.8307 9.19092C54.2484 7.84431 52.2548 7.0766 50.178 7.01416C44.1468 7.01416 40.3611 11.4967 40.3611 18.07C40.3611 24.6433 44.336 29.0743 50.1522 29.0743C52.2902 29.1029 54.3572 28.3081 55.9253 26.8545C55.9536 26.8313 55.9875 26.8159 56.0235 26.8101C56.0596 26.8042 56.0966 26.808 56.1308 26.8212C56.1649 26.8343 56.1949 26.8562 56.2178 26.8848C56.2406 26.9133 56.2555 26.9474 56.2609 26.9836V36.7317C56.2597 36.7602 56.2644 36.7887 56.2748 36.8154C56.2852 36.842 56.301 36.8662 56.3212 36.8865C56.3414 36.9067 56.3656 36.9225 56.3923 36.9329C56.4189 36.9432 56.4474 36.948 56.476 36.9468H60.5284C60.5569 36.948 60.5855 36.9432 60.6121 36.9329C60.6388 36.9225 60.663 36.9067 60.6832 36.8865C60.7034 36.8662 60.7192 36.842 60.7296 36.8154C60.74 36.7887 60.7447 36.7602 60.7435 36.7317V7.64223C60.7446 7.61624 60.7406 7.59028 60.7317 7.56583C60.7229 7.54137 60.7092 7.51892 60.6916 7.49974C60.6741 7.48056 60.6529 7.46503 60.6293 7.45405C60.6057 7.44307 60.5802 7.43685 60.5542 7.43574ZM50.8061 24.9531C46.9946 24.9531 44.9039 22.1052 44.9039 18.07C44.9039 14.0349 46.9946 11.1182 50.8061 11.1182C54.3595 11.1182 56.2867 14.009 56.2867 18.07C56.2867 22.2945 54.3595 24.9531 50.8061 24.9531Z",fill:"#000312"}),reactExports.createElement("path",{d:"M15.1937 1.06042C14.6832 1.06042 14.1842 1.2118 13.7597 1.49542C13.3352 1.77904 13.0044 2.18216 12.809 2.6538C12.6137 3.12544 12.5626 3.64442 12.6621 4.14511C12.7617 4.64581 13.0076 5.10572 13.3685 5.4667C13.7295 5.82768 14.1894 6.07351 14.6901 6.1731C15.1908 6.2727 15.7098 6.22158 16.1814 6.02622C16.6531 5.83086 17.0562 5.50003 17.3398 5.07557C17.6234 4.6511 17.7748 4.15206 17.7748 3.64156C17.7748 2.957 17.5029 2.30048 17.0188 1.81642C16.5348 1.33236 15.8782 1.06042 15.1937 1.06042Z",fill:"#000312"}),reactExports.createElement("path",{d:"M10.2987 24.1356H4.87835C4.77258 24.1356 4.671 24.0942 4.59541 24.0202C4.51982 23.9462 4.47622 23.8456 4.47397 23.7398V2.3852C4.47397 2.33044 4.45222 2.27792 4.41349 2.23919C4.37477 2.20047 4.32225 2.17871 4.26748 2.17871H0.206492C0.151728 2.17871 0.0992036 2.20047 0.060479 2.23919C0.0217544 2.27792 0 2.33044 0 2.3852V25.6154C0 26.4118 0.316358 27.1756 0.879478 27.7387C1.4426 28.3018 2.20635 28.6182 3.00273 28.6182H10.2987C10.3535 28.6182 10.406 28.5964 10.4448 28.5577C10.4835 28.519 10.5052 28.4664 10.5052 28.4117V24.3421C10.5052 24.2873 10.4835 24.2348 10.4448 24.1961C10.406 24.1573 10.3535 24.1356 10.2987 24.1356Z",fill:"#000312"}),reactExports.createElement("path",{d:"M125.162 27.9558C123.054 27.9558 121.237 27.5052 119.714 26.6041C118.199 25.6937 117.029 24.4164 116.202 22.7721C115.385 21.1185 114.976 19.1815 114.976 16.9613C114.976 14.7689 115.385 12.8366 116.202 11.1644C117.029 9.49222 118.181 8.187 119.658 7.24872C121.144 6.31045 122.882 5.84131 124.87 5.84131C126.077 5.84131 127.248 6.04104 128.381 6.4405C129.515 6.83997 130.532 7.46703 131.433 8.3217C132.334 9.17636 133.045 10.2865 133.565 11.6521C134.085 13.0084 134.346 14.6574 134.346 16.599V18.076H117.331V14.9547H130.263C130.263 13.8584 130.04 12.8877 129.594 12.0423C129.148 11.1876 128.521 10.5141 127.712 10.0217C126.914 9.52938 125.975 9.2832 124.898 9.2832C123.727 9.2832 122.705 9.57118 121.832 10.1472C120.968 10.7138 120.299 11.457 119.825 12.3767C119.361 13.2871 119.128 14.2765 119.128 15.3448V17.7834C119.128 19.214 119.379 20.431 119.881 21.4343C120.392 22.4376 121.103 23.204 122.013 23.7336C122.923 24.2538 123.987 24.5139 125.204 24.5139C125.994 24.5139 126.714 24.4024 127.364 24.1795C128.014 23.9472 128.576 23.6035 129.05 23.1483C129.524 22.6931 129.886 22.1311 130.137 21.4622L134.081 22.1729C133.765 23.3341 133.198 24.3513 132.381 25.2246C131.573 26.0885 130.555 26.7621 129.329 27.2451C128.112 27.7189 126.723 27.9558 125.162 27.9558Z",fill:"#09060D"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.676 26.6684L119.676 26.6682C118.149 25.7502 116.969 24.4622 116.136 22.806L116.136 22.8055C115.312 21.1399 114.902 19.1913 114.902 16.962C114.902 14.7603 115.312 12.8166 116.136 11.1327C116.968 9.44923 118.129 8.13312 119.618 7.18711C121.118 6.24045 122.869 5.76819 124.87 5.76819C126.086 5.76819 127.265 5.96933 128.406 6.37158C129.549 6.77461 130.575 7.40728 131.484 8.26885C132.394 9.13237 133.111 10.2524 133.634 11.6266C134.158 12.9936 134.419 14.652 134.419 16.5997V18.1506H119.208C119.247 19.4144 119.495 20.4974 119.947 21.4017C120.452 22.3931 121.153 23.1485 122.05 23.6703C122.947 24.1831 123.998 24.4408 125.204 24.4408C125.987 24.4408 126.698 24.3303 127.34 24.1104C127.98 23.8815 128.533 23.5432 128.999 23.0958C129.464 22.6489 129.821 22.0964 130.068 21.437L130.09 21.3793L134.173 22.1152L134.152 22.193C133.833 23.3658 133.26 24.3937 132.435 25.2758C131.618 26.1486 130.591 26.828 129.356 27.3146C128.129 27.7923 126.73 28.0304 125.162 28.0304C123.043 28.0304 121.213 27.5775 119.676 26.6684ZM132.381 25.2253C133.181 24.37 133.741 23.3766 134.061 22.2451C134.068 22.2213 134.074 22.1975 134.081 22.1736L130.137 21.4629C129.886 22.1318 129.524 22.6938 129.05 23.149C128.576 23.6042 128.014 23.948 127.364 24.1802C126.714 24.4032 125.994 24.5146 125.204 24.5146C123.987 24.5146 122.923 24.2545 122.013 23.7343C121.103 23.2048 120.392 22.4384 119.881 21.4351C119.423 20.5185 119.174 19.4237 119.134 18.1506C119.133 18.1261 119.133 18.1015 119.132 18.0768H134.345V16.5997C134.345 14.6581 134.085 13.0092 133.565 11.6528C133.045 10.2872 132.334 9.1771 131.433 8.32243C130.532 7.46777 129.515 6.8407 128.381 6.44124C127.248 6.04178 126.077 5.84204 124.87 5.84204C122.882 5.84204 121.144 6.31118 119.658 7.24945C118.181 8.18773 117.029 9.49296 116.202 11.1651C115.384 12.8373 114.976 14.7696 114.976 16.962C114.976 19.1823 115.384 21.1192 116.202 22.7728C117.029 24.4171 118.199 25.6945 119.714 26.6049C121.237 27.506 123.053 27.9565 125.162 27.9565C126.723 27.9565 128.112 27.7196 129.329 27.2459C130.555 26.7628 131.572 26.0893 132.381 25.2253ZM119.143 14.8815C119.201 13.9893 119.429 13.1546 119.825 12.3775C120.299 11.4578 120.968 10.7146 121.832 10.1479C122.705 9.57192 123.727 9.28393 124.897 9.28393C125.975 9.28393 126.913 9.53011 127.712 10.0225C128.521 10.5148 129.148 11.1884 129.594 12.043C130.029 12.8694 130.252 13.8155 130.262 14.8815C130.262 14.9061 130.263 14.9307 130.263 14.9554H119.139C119.14 14.9307 119.142 14.9061 119.143 14.8815ZM119.217 14.8815C119.275 14.0008 119.5 13.1775 119.891 12.4111C120.359 11.5028 121.019 10.7693 121.872 10.2096C122.732 9.64256 123.74 9.35779 124.897 9.35779C125.964 9.35779 126.888 9.60118 127.674 10.0854L127.674 10.0855C128.47 10.5708 129.088 11.2342 129.528 12.0772C129.958 12.8915 130.178 13.8259 130.188 14.8815H119.217Z",fill:"#09060D"}),reactExports.createElement("path",{d:"M104.095 6.1076C103.113 6.09537 102.14 6.2906 101.238 6.68052C100.337 7.07045 99.5279 7.64629 98.8643 8.37037C98.7352 8.49942 98.4857 8.57686 98.4083 8.37037L97.9867 6.77868C97.9691 6.71591 97.9304 6.66112 97.8771 6.62352C97.8238 6.58591 97.7592 6.56779 97.6942 6.5722H94.1408C94.1133 6.57098 94.0859 6.57548 94.0603 6.58542C94.0347 6.59537 94.0115 6.61054 93.992 6.62996C93.9726 6.64938 93.9574 6.67264 93.9475 6.69824C93.9376 6.72385 93.9331 6.75124 93.9343 6.77868V27.4878C93.9331 27.5152 93.9376 27.5426 93.9475 27.5682C93.9574 27.5938 93.9726 27.6171 93.992 27.6365C94.0115 27.6559 94.0347 27.6711 94.0603 27.681C94.0859 27.691 94.1133 27.6955 94.1408 27.6943H98.2018C98.2299 27.6968 98.2583 27.6932 98.2849 27.6838C98.3116 27.6744 98.3359 27.6595 98.3563 27.6399C98.3767 27.6203 98.3926 27.5967 98.4031 27.5704C98.4135 27.5442 98.4182 27.516 98.4169 27.4878V15.8212C98.4169 12.9303 100.086 10.2116 103.476 10.2116C107.201 10.2116 108.587 13.1798 108.587 16.0277V27.4878C108.584 27.5156 108.588 27.5436 108.597 27.5698C108.606 27.5961 108.622 27.62 108.641 27.6397C108.661 27.6594 108.685 27.6746 108.711 27.684C108.737 27.6934 108.765 27.6969 108.793 27.6943H112.897C112.925 27.6955 112.952 27.691 112.978 27.681C113.003 27.6711 113.027 27.6559 113.046 27.6365C113.065 27.6171 113.081 27.5938 113.091 27.5682C113.1 27.5426 113.105 27.5152 113.104 27.4878V16.0277C113.104 10.6676 110.428 6.1076 104.095 6.1076Z",fill:"#09060D"}),reactExports.createElement("path",{d:"M91.459 14.7337C91.459 17.7808 90.9016 20.4005 89.7868 22.5929C88.672 24.7761 87.1438 26.4575 85.2022 27.6373C83.2698 28.8079 81.0727 29.3931 78.6109 29.3931C76.1397 29.3931 73.9333 28.8079 71.9917 27.6373C70.0594 26.4575 68.5358 24.7714 67.421 22.579C66.3062 20.3866 65.7488 17.7715 65.7488 14.7337C65.7488 11.6867 66.3062 9.07156 67.421 6.88845C68.5358 4.69604 70.0594 3.01458 71.9917 1.84406C73.9333 0.664246 76.1397 0.0743408 78.6109 0.0743408C81.0727 0.0743408 83.2698 0.664246 85.2022 1.84406C87.1438 3.01458 88.672 4.69604 89.7868 6.88845C90.9016 9.07156 91.459 11.6867 91.459 14.7337ZM87.1949 14.7337C87.1949 12.4113 86.8186 10.4558 86.0661 8.86719C85.3229 7.26933 84.301 6.06165 83.0004 5.24414C81.7091 4.41735 80.2459 4.00395 78.6109 4.00395C76.9665 4.00395 75.4987 4.41735 74.2074 5.24414C72.9161 6.06165 71.8942 7.26933 71.1417 8.86719C70.3985 10.4558 70.0268 12.4113 70.0268 14.7337C70.0268 17.0562 70.3985 19.0163 71.1417 20.6142C71.8942 22.2028 72.9161 23.4104 74.2074 24.2372C75.4987 25.0548 76.9665 25.4635 78.6109 25.4635C80.2459 25.4635 81.7091 25.0548 83.0004 24.2372C84.301 23.4104 85.3229 22.2028 86.0661 20.6142C86.8186 19.0163 87.1949 17.0562 87.1949 14.7337Z",fill:"#09060D"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M89.8525 22.6267L89.8525 22.6268C88.7319 24.8211 87.1946 26.5132 85.2404 27.7007L85.2403 27.7007C83.2954 28.8789 81.0849 29.4672 78.6107 29.4672C76.1274 29.4672 73.9076 28.8789 71.9534 27.7008L71.9531 27.7006C70.0081 26.5131 68.4755 24.8162 67.355 22.6127C66.2339 20.4078 65.6748 17.7807 65.6748 14.734C65.6748 11.678 66.2338 9.05088 67.3551 6.85515C68.4755 4.65167 70.0081 2.95946 71.9532 1.78119C73.9074 0.593741 76.1273 0.000732422 78.6107 0.000732422C81.0849 0.000732422 83.2955 0.593732 85.2404 1.78116C87.1947 2.9594 88.732 4.65159 89.8525 6.85511C90.9737 9.05084 91.5328 11.678 91.5328 14.734C91.5328 17.79 90.9737 20.4217 89.8525 22.6267ZM89.7867 6.88869C88.6719 4.69629 87.1437 3.01482 85.202 1.8443C83.2697 0.664493 81.0726 0.0745875 78.6107 0.0745875C76.1396 0.0745875 73.9332 0.664493 71.9916 1.8443C70.0592 3.01482 68.5357 4.69629 67.4209 6.88869C66.3061 9.07181 65.7487 11.6869 65.7487 14.734C65.7487 17.7718 66.3061 20.3868 67.4209 22.5793C68.5357 24.7717 70.0592 26.4578 71.9916 27.6376C73.9332 28.8081 76.1396 29.3934 78.6107 29.3934C81.0726 29.3934 83.2697 28.8081 85.202 27.6376C87.1437 26.4578 88.6719 24.7763 89.7867 22.5932C90.9015 20.4008 91.4589 17.781 91.4589 14.734C91.4589 11.6869 90.9015 9.07181 89.7867 6.88869ZM85.9993 8.89905L85.9991 8.89858C85.2609 7.31168 84.2479 6.11578 82.961 5.30692L82.9605 5.30659C81.6818 4.48791 80.2327 4.07805 78.6107 4.07805C76.9795 4.07805 75.5256 4.48796 74.2471 5.30659L74.2468 5.30679C72.9691 6.11565 71.9559 7.31163 71.2084 8.89873C70.471 10.4749 70.1006 12.419 70.1006 14.734C70.1006 17.0488 70.471 18.9975 71.2083 20.5829C71.9558 22.1608 72.969 23.357 74.247 24.1752C75.5255 24.9846 76.9794 25.3899 78.6107 25.3899C80.2328 25.3899 81.6821 24.9846 82.9608 24.1751C84.2479 23.3568 85.2611 22.1607 85.9991 20.5832L85.9992 20.583C86.7458 18.9976 87.1209 17.0488 87.1209 14.734C87.1209 12.4191 86.7458 10.4751 85.9993 8.89905ZM83.0003 24.2375C81.709 25.055 80.2458 25.4638 78.6107 25.4638C76.9664 25.4638 75.4986 25.055 74.2073 24.2375C72.9159 23.4107 71.894 22.203 71.1415 20.6144C70.3983 19.0166 70.0267 17.0564 70.0267 14.734C70.0267 12.4115 70.3983 10.456 71.1415 8.86743C71.894 7.26958 72.9159 6.0619 74.2073 5.24439C75.4986 4.41759 76.9664 4.0042 78.6107 4.0042C80.2458 4.0042 81.709 4.41759 83.0003 5.24439C84.3009 6.0619 85.3228 7.26958 86.066 8.86743C86.8185 10.456 87.1948 12.4115 87.1948 14.734C87.1948 17.0564 86.8185 19.0166 86.066 20.6144C85.3228 22.203 84.3009 23.4107 83.0003 24.2375Z",fill:"#09060D"})),setupPushToken=async()=>{if(await getPlatform()==="web")return;const{receive:s}=await PushNotifications.requestPermissions();s==="granted"&&await PushNotifications.register()},LinqOneSuccessModal=({platform:o,offeringTrial:s})=>{const a=useDispatch(),$=useHistory(),j=()=>{a(closeAlertModal()),window.location.pathname==="/manage-linq-one-subscription"?$.push(PAGE_ROUTES.dashboard):window.location.reload()},_e=()=>{setupPushToken(),a(closeAlertModal())},et=o===Platform.WEB?"You will get an email reminder 2 days before your trial ends.":"You will get an email reminder 2 days before your trial ends. Would you like push notification reminders?",tt=o===Platform.WEB?"Dismiss":"Maybe Later";return jsxRuntimeExports.jsx(AlertModalWrapper,{panelIcon:starOutline,hideButtons:!0,disableBackdropDismiss:!0,footerContent:jsxRuntimeExports.jsxs("div",{className:clsx("flex","flex-col","justify-center","mx-6"),children:[o!==Platform.WEB&&jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(CTAButton,{onClick:_e,children:jsxRuntimeExports.jsx("div",{className:clsx("flex flex-row","items-center","justify-center","gap-2","p-3"),children:jsxRuntimeExports.jsx("span",{children:"Turn on Notifications"})})})}),jsxRuntimeExports.jsx(ClearButton,{size:"large",color:"gray-500",onClick:j,children:tt})]}),children:jsxRuntimeExports.jsx("div",{className:clsx("flex flex-col","p-4"),children:jsxRuntimeExports.jsxs("div",{className:clsx("w-full","relative","text-center","flex","flex-col","gap-6"),children:[jsxRuntimeExports.jsx("div",{className:clsx("flex","justify-center"),children:jsxRuntimeExports.jsx(SvgLinqOneLogo,{className:clsx("fill-current","w-36","h-10","text-primary-100")})}),jsxRuntimeExports.jsx("div",{className:"text-header-3",children:s?`Your ${LINQ_ONE_TRIAL_DAYS}-day free trial has started! 🚀`:"Your Subscription has started! 🚀 "}),jsxRuntimeExports.jsx("div",{className:"text-header-3",children:"Please allow few minutes for your subscription to be activated."}),jsxRuntimeExports.jsx("div",{className:clsx("text-center","text-primary-100","text-header-2-reg","text-2xl sm:text-3xl"),children:jsxRuntimeExports.jsx("div",{className:"rounded-rive",style:{height:"155px"},children:jsxRuntimeExports.jsx(Rive,{src:"assets/rives/linqOne.riv",layout:new dist.Layout({fit:dist.Fit.Cover})})})}),jsxRuntimeExports.jsx("div",{className:clsx("text-body-regular","text-primary-100"),children:et})]})})})},CdvStoreContext=reactExports.createContext({cdvStore:void 0,isLoadingApplePurchase:!1,setIsLoadingApplePurchase:()=>{},handleIAPPurchase:async()=>{}}),CdvStoreProvider=({children:o})=>{const s=useHistory(),a=useSelectCurrentUser(),[$,j]=reactExports.useState(!1),[_e,et]=reactExports.useState(void 0),tt=useDispatch(),{isIOS:nt,data:it}=usePlatform(),rt=reactExports.useCallback(async()=>{const{store:ot,ProductType:at,Platform:lt}=CdvPurchase;ot.applicationUsername=`${a==null?void 0:a.id}`,ot.register([{id:IAP_MONTHLY_NO_TRIAL_PRODUCT_NAME,type:at.PAID_SUBSCRIPTION,platform:lt.APPLE_APPSTORE},{id:IAP_MONTHLY_WITH_TRIAL_PRODUCT_NAME,type:at.PAID_SUBSCRIPTION,platform:lt.APPLE_APPSTORE},{id:IAP_ANNUAL_NO_TRIAL_PRODUCT_NAME,type:at.PAID_SUBSCRIPTION,platform:lt.APPLE_APPSTORE},{id:IAP_ANNUAL_WITH_TRIAL_PRODUCT_NAME,type:at.PAID_SUBSCRIPTION,platform:lt.APPLE_APPSTORE},{id:IAP_PRO_PLUS_ANNUAL_WITH_TRIAL_PRODUCT_NAME,type:at.PAID_SUBSCRIPTION,platform:lt.APPLE_APPSTORE},{id:IAP_PRO_PLUS_MONTHLY_WITH_TRIAL_PRODUCT_NAME,type:at.PAID_SUBSCRIPTION,platform:lt.APPLE_APPSTORE},{id:IAP_LINQ_ONE_ANNUAL_WITH_TRIAL,type:at.PAID_SUBSCRIPTION,platform:lt.APPLE_APPSTORE},{id:IAP_LINQ_ONE_MONTHLY_WITH_TRIAL,type:at.PAID_SUBSCRIPTION,platform:lt.APPLE_APPSTORE},{id:IAP_LINQ_ONE_ANNUAL,type:at.PAID_SUBSCRIPTION,platform:lt.APPLE_APPSTORE},{id:IAP_LINQ_ONE_MONTHLY,type:at.PAID_SUBSCRIPTION,platform:lt.APPLE_APPSTORE}]);const ct=new CdvPurchase.Iaptic({appName:"com.linq.app",apiKey:IAPTIC_SECRET_KEY});ot.validator=ct.validator,ot.when().productUpdated(()=>et(ot)),ot.error(function(ht){tt(sendErrorLog({errorMessage:"window.store.error",errorObject:{error:`ERROR ${ht.code}: ${ht.message}`}}))}),await ot.initialize([lt.APPLE_APPSTORE])},[tt,a==null?void 0:a.id]),st=reactExports.useCallback(async(ot,at)=>{var ct;if(!_e){tt(showErrorMessageAlertModal({actionItem:"create Apple Purchase"}));return}j(!0),tt(track("IAP purchase starting"));const lt=_e.get(ot,CdvPurchase.Platform.APPLE_APPSTORE);await((ct=lt==null?void 0:lt.getOffer())==null?void 0:ct.order()),_e.when().approved(ht=>{if(ht.verify(),(ht==null?void 0:ht.state)==="approved"&&it)try{const dt=ot===IAP_MONTHLY_WITH_TRIAL_PRODUCT_NAME||ot===IAP_ANNUAL_WITH_TRIAL_PRODUCT_NAME||ot===IAP_PRO_PLUS_MONTHLY_WITH_TRIAL_PRODUCT_NAME||ot===IAP_PRO_PLUS_ANNUAL_WITH_TRIAL_PRODUCT_NAME||ot===IAP_LINQ_ONE_ANNUAL_WITH_TRIAL||ot===IAP_LINQ_ONE_MONTHLY_WITH_TRIAL;if(j(!1),tt(track("IAP purchase approved")),at){at();return}dt?tt(showAlertModal({wrappedContent:jsxRuntimeExports.jsx(LinqOneSuccessModal,{platform:it,offeringTrial:dt})})):(tt(setToast({toastMessage:"Subscription purchased successfully"})),tt(closeAlertModal()))}catch(dt){tt(sendErrorLog({errorMessage:"IAP Purchase Error",errorObject:dt}))}}),_e.when().verified(ht=>{tt(track("IAP purchase completed")),ht.finish()}),_e.when().unverified(ht=>{tt(track("IAP receipt unverified")),tt(sendErrorLog({errorMessage:"IAP receipt unverified",errorObject:{error:`ERROR ${ht.payload.code}: ${ht.payload.message}`}}))})},[_e,tt,it,s]);return reactExports.useEffect(()=>{_e&&_e.error(ot=>{tt(sendErrorLog({errorMessage:"cdv store error",errorObject:{error:`ERROR ${ot.code}: ${ot.message}`}})),j(!1)})},[_e,tt]),reactExports.useEffect(()=>{if(nt)return document.addEventListener("deviceready",rt),()=>{document.removeEventListener("deviceready",rt)}},[nt,rt]),jsxRuntimeExports.jsx(CdvStoreContext.Provider,{value:{cdvStore:_e,isLoadingApplePurchase:$,handleIAPPurchase:st},children:o})},persistor=persistStore(store),queryClient=new QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}}),showReactQueryDevtools=!1;ReactDOM.render(jsxRuntimeExports.jsx(Provider,{store,children:jsxRuntimeExports.jsx(PersistGate,{loading:null,persistor,children:jsxRuntimeExports.jsx(KeyboardProvider,{minKeyboardHeight:300,children:jsxRuntimeExports.jsx(QueryClientProvider,{client:queryClient,children:jsxRuntimeExports.jsxs(CdvStoreProvider,{children:[jsxRuntimeExports.jsx(App,{}),showReactQueryDevtools]})})})})}),document.getElementById("root"));export{MENU_ICON_DASHBOARD as $,AlertModalWrapper as A,Browser as B,ClearButton as C,CTAButton as D,ErrorBoundaryForPage$1 as E,APP_TEST_IDS as F,IonIcon as G,chevronUpOutline as H,IonSpinner as I,chevronDownOutline as J,useHistory as K,ANIMATION_DURATION as L,caretUpOutline as M,caretDownOutline as N,useRouteMatch as O,PAGE_ROUTES as P,generatePath as Q,Redirect as R,SvgLinqLogo as S,useShowOrganizationSubscriptionMessageModal as T,UserAvatar as U,useOrganizationSettings as V,WEB_APP_URL as W,useIsOrgManager as X,OrganizationSubscriptionStatus as Y,OrganizationSubscriptionMessageModal as Z,__vitePreload as _,useOrganizationSubscriptionInfo as a,raf as a$,phonePortrait as a0,MENU_ICON_AUTOMATIONS_FILLED as a1,MENU_ICON_PEOPLE as a2,shareSocial as a3,MENU_ICON_SETTINGS_FILLED as a4,helpCircle as a5,dayjs as a6,useApiRequest as a7,useQuery as a8,organizationsKeys as a9,GOOGLE_ANALYTICS_ID as aA,useNotificationCallout as aB,SvgLinqOneLogo as aC,AnimationAsset as aD,LINQ_ONE_PRICE as aE,STRIPE_LINQ_ONE_YEARLY_PRICE_KEY as aF,STRIPE_25_PERCENT_OFF_FOR_ALL_COUPON_ID as aG,useVoipState as aH,useEmbeddedDialer as aI,usePlatform as aJ,volumeHigh as aK,keypad as aL,documentTextSharp as aM,pricetag as aN,micOffOutline as aO,mic as aP,uniqueId as aQ,HapticsUtil as aR,now$2 as aS,pointerCoord as aT,readTask as aU,findClosestIonContent as aV,componentOnReady as aW,writeTask as aX,scrollToTop as aY,addEventListener$2 as aZ,removeEventListener as a_,BASE_API_URL as aa,API_METHODS as ab,formatPrice as ac,LoadingIndicator as ad,Button as ae,EDIT_PENCIL_ICON as af,useQueryClient as ag,useMutation as ah,sendErrorLog as ai,showErrorMessageAlertModal as aj,IonList as ak,IonItem as al,REMOVE_ICON as am,PrimaryButton as an,CancelButton as ao,showPopoverPrompt as ap,closePopoverPrompt as aq,withRouter as ar,useSelectApiToken as as,useTrackPage as at,resetSlidingDrawer as au,useLayoutV2 as av,IonRouterOutlet as aw,Route as ax,UserDropdownMenu as ay,WebPlugin as az,useDispatch as b,warning as b$,getScrollElement as b0,scrollByPoint as b1,isRTL$2 as b2,createGesture as b3,clamp$2 as b4,onboardingTasksKeys as b5,SecondaryButton as b6,MENU_ICON_PRODUCTS as b7,LinqImage as b8,imagesOutline as b9,DangerButton as bA,IonContent as bB,IonLabel as bC,IonListHeader as bD,showInformationAlertModal as bE,BarcodeScannerUtil as bF,getPlatform as bG,QR_CODE_OUTLINE_ICON as bH,useIonViewWillEnter as bI,IonRefresher as bJ,IonRefresherContent as bK,IonCard as bL,IonInfiniteScroll as bM,IonInfiniteScrollContent as bN,EMPTY_ARRAY as bO,useSelectPrimaryCard as bP,reactDomExports as bQ,call$1 as bR,mail as bS,useHandledMutation as bT,informationCircleOutline as bU,SlidingDrawerFooter as bV,DEFAULT_PANEL_WIDTH as bW,useIsIntercomEnabled as bX,informationOutline as bY,closeTooltip as bZ,showTooltip as b_,personAddOutline as ba,addCircleOutline as bb,schoolOutline as bc,copyOutline as bd,IonItemGroup as be,SubmitButton as bf,settingsOutline as bg,closeSlidingDrawer as bh,DOWNLOAD_ICON as bi,SETTINGS_ICON as bj,CONTENT_BLOCK_OUTLINE_ICON as bk,peopleOutline as bl,PRODUCT_ACTIVATION_OUTLINE_ICON as bm,bookOutline as bn,CHECKMARK_ICON as bo,checkmark as bp,chevronBackOutline as bq,ADMIN_ONBOARDING_ACTIONS as br,useSelector as bs,LINQ_ONE_TRIAL_DAYS as bt,LoggedInAsDisplay as bu,LINQ_ONE_MARKETING_SITE_URL as bv,IonHeader as bw,IonToolbar as bx,IonButtons as by,IonBackButton as bz,useOrganization as c,IAP_LINQ_ONE_ANNUAL as c$,organizationSettingsKeys as c0,useSelectSlidingDrawer as c1,removeSlidingDrawerFromStack as c2,userLinqProductsKeys as c3,teamsKeys as c4,useAppClipProduct as c5,LINK_ICON as c6,flashOutline as c7,IonSearchbar as c8,addSlidingDrawerToStack as c9,ACKNOWLEDGED as cA,reorderTwoOutline as cB,CLOUDINARY_UPLOAD_COVER_PHOTOS_PRESET as cC,CLOUDINARY_UPLOAD_PROFILE_PHOTOS_PRESET as cD,CLOUDINARY_UPLOAD_SECONDARY_PHOTOS_PRESET as cE,LINQ_HYPER_LINQ_BLOG_URL as cF,IonSegment as cG,IonSegmentButton as cH,pencil as cI,download as cJ,collapseSlidingDrawer as cK,appClipPushNotificationTemplatesKeys as cL,pageTemplatesKeys as cM,eyeOutline as cN,eyeOffOutline as cO,expandSlidingDrawer as cP,contactExchangeSettingsKeys as cQ,LinqAppRoutes as cR,commonjsGlobal$1 as cS,SkeletonText as cT,phonePortraitSharp as cU,closeOutline as cV,PURCHASE_LINQ_ONE_ACTIONS as cW,refreshCurrentUser as cX,IAP_LINQ_ONE_MONTHLY_WITH_TRIAL as cY,IAP_LINQ_ONE_MONTHLY as cZ,IAP_LINQ_ONE_ANNUAL_WITH_TRIAL as c_,trashBinOutline as ca,apiHeaders as cb,store as cc,handleErrorsAndJSON as cd,ARROW_FORWARD_ICON as ce,arrowForwardOutline as cf,handleErrors as cg,IonAlert as ch,useConstructUrl as ci,RESET_ALERT as cj,_inheritsLoose as ck,_extends$1 as cl,infiniteQueryBehavior as cm,hasNextPage as cn,hasPreviousPage as co,QueryObserver as cp,parseQueryArgs as cq,useBaseQuery as cr,IonAvatar as cs,APP_STORE_ICON as ct,CLOUDINARY_UPLOAD_APP_CLIP_IMAGES_PRESET as cu,useIsAdmin as cv,convertMinutesToTimeString as cw,cardsKeys as cx,convertTimeToMinutes as cy,checkmarkCircleOutline as cz,useSelectCurrentUser as d,INTEGRATION_ICON as d$,STRIPE_LINQ_ONE_MONTHLY_PRICE_KEY as d0,LinqOneSuccessModal as d1,IonTitle as d2,arrowBackOutline as d3,featureTogglesKeys as d4,React$1 as d5,ReactDOM as d6,checkmarkDone as d7,closeCircleOutline as d8,chatbubbleEllipsesOutline as d9,closeIonBottomSheet as dA,userContactsKeys as dB,useTeams as dC,paperPlaneOutline as dD,IonText as dE,CONTACT_ORIGINS as dF,CONTACT_SORT_BY as dG,CONTACT_SORT_DIRECTION as dH,closeBottomSheetDeprecated as dI,resetBottomSheetDeprecated as dJ,DEFAULT_FILTERS as dK,useSelectContactFilters as dL,useLayout as dM,FILTER_OUTLINE as dN,Layout as dO,useSelectUserEnrichment as dP,useSelectCurrentUserCards as dQ,useContact as dR,HUBSPOT_LFT_TRIAL_FORM_GUID as dS,USER_ENRICHMENT_ACTIONS as dT,megaphoneOutline as dU,LFT_VIDEO_URL as dV,checkmarkCircle as dW,mailUnreadOutline as dX,downloadOutline as dY,CONTACT_LABEL_OUTLINE as dZ,CONTACT_SHARE as d_,lockClosedOutline as da,warningOutline as db,lockClosed as dc,IonThumbnail as dd,imageOutline as de,showDeleteWarningAlertModal as df,TRIAL_DAYS as dg,STRIPE_LINQ_ONE_MONTHLY_19_PRICE_KEY as dh,STRIPE_LINQ_ONE_MONTHLY_5_PRICE_KEY as di,STRIPE_LINQ_ONE_YEARLY_149_PRICE_KEY as dj,STRIPE_LINQ_ONE_YEARLY_50_PRICE_KEY as dk,STRIPE_COUPON_149_OFF_YEARLY as dl,STRIPE_COUPON_50_OFF_YEARLY as dm,STRIPE_COUPON_249_OFF_YEARLY as dn,STRIPE_COUPON_19_OFF_MONTHLY as dp,STRIPE_COUPON_5_OFF_MONTHLY as dq,STRIPE_COUPON_29_OFF_MONTHLY as dr,connect as ds,alertCircleOutline as dt,tileGroupsKeys as du,useIonPopover as dv,close as dw,IonButton as dx,caretUpCircleOutline as dy,caretDownCircleOutline as dz,clsx as e,checkmarkOutline as e$,showIonBottomSheet as e0,getDefaultExportFromCjs as e1,CLOUDINARY_CLOUD_NAME as e2,cloudinaryPhotoKeys as e3,__awaiter$1 as e4,__generator as e5,__spread as e6,PropTypes as e7,IonModal as e8,IonFooter as e9,IonTextarea as eA,CLOUDINARY_UPLOAD_PHOTO_TILE_PRESET as eB,CLOUDINARY_UPLOAD_FILE_TILE_PRESET as eC,IonDatetime as eD,IonInput as eE,IonNote as eF,SuccessButton as eG,IonPopover as eH,showCloseWarningAlertModal as eI,IonReorderGroup as eJ,IonReorder as eK,reorderTwoSharp as eL,brushOutline as eM,shuffleOutline as eN,isEqual as eO,IonGrid as eP,IonRow as eQ,IonCol as eR,registerPlugin as eS,CONTACT_FILTERS_ACTIONS as eT,integrationConnectionsKeys as eU,ambassadorsKeys as eV,ALERT_ICON as eW,wait as eX,maxBy as eY,getAugmentedNamespace as eZ,propTypesExports as e_,CdvStoreContext as ea,entitlementKeys as eb,useLocation as ec,IonChip as ed,closeCircle as ee,addCircle as ef,tagsKeys as eg,filterTagsKeys as eh,filtersKeys as ei,tasksKeys as ej,showBottomSheetDeprecated as ek,AMBASSADOR_TILE_TYPE as el,TILE_CREATED as em,trashOutline as en,GET_AVAILABLE_TILE_TYPES_FOR_TILE_GROUP_FOR_ORGANIZATION_FETCHING as eo,GET_AVAILABLE_TILE_TYPES_FOR_TILE_GROUP_FOR_ORGANIZATION_SUCCESS as ep,GET_AVAILABLE_TILE_TYPES_FOR_TILE_GROUP_FOR_ORGANIZATION_FAILURE as eq,useSelectAvailibleTileTypes as er,SET_ADD_CONTENT_BUTTON_BADGE_SHOWN as es,IonToggle as et,IonCheckbox as eu,documentOutline as ev,groupsKeys as ew,IonSelect as ex,IonSelectOption as ey,clipboardOutline as ez,cArray as f,FAILURE as f$,useElementSize as f0,chevronUpSharp as f1,chevronDownSharp as f2,useClickToDismiss as f3,twilioIdentitiesKeys as f4,constructUrl$1 as f5,ENV as f6,App$1 as f7,objectAssign$1 as f8,fullNameAvatarColor as f9,TEAM_SUCCESS_EMAIL as fA,BottomSheetDeprecated as fB,chevronForward as fC,emailsKeys as fD,Rive as fE,dist as fF,popupStateKeys as fG,showModal as fH,conversationsKeys as fI,openOutline as fJ,addOutline as fK,attach as fL,closeModal as fM,codeSlash as fN,emailAccountsKeys as fO,ellipsisHorizontal as fP,phoneNumbersKeys as fQ,snippetsKeys as fR,cellularOutline as fS,useAllowLinqPhone as fT,useIsAppClip as fU,CONTACT_CARD_TILE_SET_PREVIEW_SHOULD_SHOW as fV,CONTACT_CARD_TILE_SET_PREVIEW_STATE as fW,FETCHING as fX,GET_LINQ_PAY_STRIPE_CHECKOUT_SESSION as fY,SUCCESS as fZ,STRIPE_KEY as f_,useDetectKeyboardOpen as fa,closeNewBottomSheet as fb,BOTTOM_SHEET_ID as fc,userContactEnrichmentKeys as fd,updateNewBottomSheet as fe,ENRICHMENT_SPARKLES as ff,searchOutline as fg,phonePortraitOutline as fh,briefcaseOutline as fi,homeOutline as fj,showNewBottomSheet as fk,Backdrop as fl,contactNotesKeys as fm,ellipse as fn,useQueryParamsV2 as fo,business as fp,home as fq,print as fr,CLASSNAMES as fs,informationCircle as ft,chatbox as fu,userContactActivityKeys as fv,userContactIntegrationResultsKeys as fw,contactSummaryKeys as fx,sparklesSharp as fy,uniqBy as fz,callOutline as g,peopleCircleOutline as g$,paperPlane as g0,chevronUp as g1,chevronDown as g2,CLOUDINARY_UPLOAD_VIRTUAL_BACKGROUNDS_PRESET as g3,virtualBackgroundsKeys as g4,useSelectInspirationPages as g5,ADMIN_INSPIRATION_PAGE_ACTIONS as g6,useCurrentWidth as g7,ALLOW_ADMIN_ON_MOBILE as g8,formFieldKeys as g9,getCards as gA,saveDeviceInfo as gB,getUserLinqProducts as gC,ACCOUNT_CREATED as gD,redirectAfterSignup as gE,sendCreateNewUserRequest as gF,reminderKeys as gG,ellipsisVertical as gH,useUserSettings as gI,SNOOZE as gJ,PHONE as gK,SMS as gL,EMAIL as gM,REMINDER_ICON as gN,NOTE as gO,CONTACT_LABEL as gP,IonCardHeader as gQ,repeat as gR,AlertModalButtonsHorizontal as gS,requiredArgs as gT,toDate as gU,_typeof$3 as gV,add as gW,arrowForward as gX,useElementSize$1 as gY,BOOK_MEETING_ACTIONS as gZ,useOrganizationUsers as g_,getOS as ga,resetAlertModal as gb,isSafari$1 as gc,linqProductsKeys as gd,giftOutline as ge,arrowForwardCircleOutline as gf,LINQ_MOBILE_APP_DOWNLOAD_URL as gg,SAVE_CONTACT_CLICKED as gh,AppClipContactsPlugin as gi,savedContactKeys as gj,STOP_LOADING as gk,START_LOADING as gl,EMPTY_OBJECT as gm,inspirationKeys as gn,eyedropOutline as go,SET_PREVIEW_PAGE_STEP as gp,useLocale as gq,exchangeContactsKeys as gr,userOnboardingStatusKeys as gs,IonRadioGroup as gt,IonRadio as gu,getProduct as gv,userKeys as gw,receivedCreateNewUserRequestError as gx,claimOrganizationWithStripeSessionId as gy,receivedCreateNewUserRequest as gz,helpCircleOutline as h,ConversationsPageSkeleton as h$,uniq as h0,shareOutline as h1,MARKETING_SITE_URL as h2,setRedirectPathAfterLogin as h3,pause as h4,play as h5,recording as h6,callKeys as h7,IonRange as h8,backspaceSharp as h9,reloadOutline as hA,CLOUD_CHECKED_OUTLINE as hB,CLOUD_UPLOAD_OUTLINE as hC,IonSkeletonText as hD,checkIsAdmin as hE,personCircleOutline as hF,workosConnectionsKeys as hG,domainContactsKeys as hH,sendOutline as hI,Capacitor as hJ,IonFab as hK,IonFabButton as hL,personAdd as hM,documentLockOutline as hN,scan as hO,textOutline as hP,RECENT_SCANNED_BUSINESS_CARD_ACTIONS as hQ,CONTACT_FILE_ICON as hR,EDIT_LINE_PAD_OUTLINE as hS,useIonViewWillLeave as hT,userOrganizationsKeys as hU,IonItemSliding as hV,IonItemOptions as hW,IonItemOption as hX,mailUnread as hY,trashBin as hZ,ConversationsMessagesListSkeleton as h_,TransitionComponent as ha,toInteger as hb,useEventListener as hc,useIsomorphicLayoutEffect as hd,ConversationPageSkeleton as he,logOutOutline as hf,NavigateBackButton as hg,alarmOutline as hh,image as hi,CapacitorException as hj,flashSharp as hk,contactsKeys as hl,locationOutline as hm,LINK_ICON_OUTLINE as hn,pencilOutline as ho,WarningButton as hp,lockOpenOutline as hq,returnUpBack as hr,emailThreadsKeys as hs,useScrollRestoration as ht,callsKeys as hu,trash as hv,stopCircleOutline as hw,recordingOutline as hx,voicemailGreetingsKeys as hy,pauseCircle as hz,calendarOutline as i,autoUpdate as i$,GradientButton as i0,useUpdateUserMetaData as i1,arrowBack as i2,userBusinessCardScansKeys as i3,Lottie as i4,camera as i5,CameraPreview as i6,redirectToProductActivation as i7,hideSelectCardModal as i8,cancelSelectCardFlow as i9,debounce as iA,validateCodeSubmit as iB,StatusBar$1 as iC,Style$1 as iD,useSignInUser as iE,useShowErrorModal as iF,joinUrlSegments as iG,useLinkedinOAuthCallback as iH,useLinkedinRedirectUri as iI,IonSlide as iJ,IonSlides as iK,getLinqProducts as iL,CLICKED_CAROUSEL_CTA as iM,CLICKED_SIGN_UP as iN,CLICKED_SIGN_IN as iO,CLICKED_CAROUSEL_ARROW as iP,setCheckoutSessionID as iQ,userTeamsKeys as iR,ONBOARDING_STEP_ADDED_PROFILE_PHOTO as iS,ONBOARDING_STEP_SKIPPED as iT,ONBOARDING_STEP_COMPLETED as iU,_setPrototypeOf$2 as iV,_assertThisInitialized$1 as iW,toPropertyKey as iX,_objectSpread2$2 as iY,React$2 as iZ,_defineProperty$4 as i_,selectCardModalCardSelected as ia,BEACH_EMPTY_ICON as ib,playCircleOutline as ic,isPlatform as id,CREATE_A_TASK_VIDEO_URL as ie,CONTACT_CARD as ig,AUTOMATIONS_PAD as ih,listCircleOutline as ii,timerOutline as ij,checkboxOutline as ik,throttle$1 as il,DESKTOP_LAYOUT_WIDTH as im,IonActionSheet as io,LINQ_PRIVACY_POLICY_URL as ip,LINQ_TERM_OF_USE_URL as iq,getAppInfo as ir,hammerOutline as is,barChartOutline as it,helpOutline as iu,LINQ_FEEDBACK_SURVEY_URL as iv,logOutCurrentUser as iw,NFC_ICON as ix,deviceNFCInstructionBucket as iy,IPHONE_PRE_NFC as iz,jsxRuntimeExports as j,IonCardSubtitle as j$,getOnboardingType as j0,ORGANIZATION_SETUP as j1,ONBOARDING_STEP_ADDED_ABOUT_INFO as j2,_objectWithoutPropertiesLoose$3 as j3,ONBOARDING_STEP_ADDED_ORGANIZATION_INFO as j4,ONBOARDING_STEP_INVITED_TEAM_MEMBERS as j5,fetchLinqPayDetails as j6,getLinqPayChargesList as j7,refreshOutline as j8,helpBuoyOutline as j9,PRODUCT_ACTIVATION_MODAL_TEST_IDS as jA,getCardUnactivatedAliasResponseReceived as jB,registerEventBadgeUserLinqProduct as jC,createUserLinqProduct as jD,ANALYTICS_LINE_ICON as jE,getAnalyticsForOrganization as jF,getAnalytics as jG,telescopeOutline as jH,IonCardTitle as jI,IonCardContent as jJ,getRecentActivityForOrganization as jK,getRecentActivity as jL,zapierApiKeys as jM,ZAPIER_LOGO as jN,syncOutline as jO,createOutline as jP,gitMergeOutline as jQ,integrationsKeys as jR,getCurrentUser as jS,getUserSettings as jT,setShowLoggedInAsDisplay as jU,showColdStartWelcomeAlert as jV,PRODUCTS_PAGE_TEST_IDS as jW,PRODUCT_ACTIVATION_VIDEO_URL as jX,radioButtonOffOutline as jY,LINQ_SHOP_URL as jZ,swapHorizontalOutline as j_,createStripeAccountLink as ja,stripeAccountDetailsKeys as jb,cardAliasAvailabilityQueryKeys as jc,OrganizationRoleType as jd,buildOutline as je,useUser as jf,invariant as jg,bindActionCreators as jh,Provider as ji,createStore as jj,applyMiddleware as jk,compose$2 as jl,move as jm,AnimatedReveal as jn,Transition as jo,TRANSITION_TIMEOUT as jp,TRANSITION_HIDE_STATES as jq,cartOutline as jr,useUserLinqProducts as js,useUpdateUserSettings as jt,resetAliasLocalState as ju,activateCardAlias as jv,isTrialEnded as jw,trackPage as jx,getPlatforms as jy,Device as jz,chatboxOutline as k,AlertModal as k$,adminOrganizationStripeCheckout as k0,STRIPE_CUSTOM_CARD_DISCOUNT_ID as k1,STRIPE_CUSTOM_CARD_PRICE_KEY as k2,linkOutline as k3,IPHONE_NEW as k4,ALL_DEVICE_INSTRUCTION_BUCKETS as k5,GENERAL as k6,IPHONE_OLD_IOS_13 as k7,menu as k8,IPHONE_OLD_IOS_14 as k9,UNION_ICON as kA,duplicateOutline as kB,ELEVATE as kC,organizationInvitesKeys as kD,LFT_PRICE_TIER_79 as kE,STRIPE_TEAMS_YEARLY_79_PRICE_KEY as kF,LFT_PRICE_TIER_69 as kG,STRIPE_TEAMS_YEARLY_69_PRICE_KEY as kH,LFT_PRICE_TIER_59 as kI,STRIPE_TEAMS_YEARLY_59_PRICE_KEY as kJ,LFT_PRICE_TIER_49 as kK,STRIPE_TEAMS_YEARLY_49_PRICE_KEY as kL,STRIPE_TEAMS_MONTHLY_PRICE_KEY as kM,resetOrganizationLoading as kN,star as kO,pricetagOutline as kP,STRIPE_TEAMS_YEARLY_PRICE_KEY as kQ,organizationStripeCheckout as kR,STRIPE_LFT_ANNUAL_PRICE_KEY as kS,STRIPE_LFT_MONTHLY_PRICE_KEY as kT,STRIPE_50_OFF_CUSTOM_CARD_DISCOUNT_ID as kU,useGetStripeBillingSessionUrl as kV,updateOrganizationSeatCount as kW,organizationSubscriptionInvoices as kX,SwipeableBottomSheet as kY,person as kZ,cardsTileGroups as k_,ANDROID as ka,search$1 as kb,toggle as kc,add$1 as kd,groupSearchKeys as ke,swapVerticalOutline as kf,arrowUpOutline as kg,QR_CODE_STYLE as kh,SNIPPET_ICON as ki,cloudUploadOutline as kj,workflowActionsKeys as kk,workflowsKeys as kl,workflowFiltersKeys as km,workflowCards as kn,IonRouterLink as ko,workflowIntegrationConnectionsKeys as kp,workflowTags as kq,workflowTeams as kr,workflowTriggersKeys as ks,chooseLinqPageToAddToTeam as kt,setManageTeamInviteModalShown as ku,IonBadge as kv,arrowUndo as kw,USER_PROVISIONED as kx,refreshCircleOutline as ky,HR_INTEGRATIONS_ICON as kz,Icon as l,FILTER_SOLID_ICON as l$,getTileAnalyticsForCard as l0,teamSettingsKeys as l1,orgPromptTemplateVariablesKeys as l2,Prompt as l3,orgPromptEmailTemplateKeys as l4,orgPromptSmsTemplateKeys as l5,QUICK_SHARE_FILLED_ICON as l6,QUICK_SHARE_ICON as l7,contactFileDataKeys as l8,OFFLINE_QR_CODE_STYLE as l9,share as lA,chatbubble as lB,logoFacebook as lC,businessOutline as lD,REFERRALS_ACTION_TYPES as lE,PRODUCTS_OUTLINE_ICON as lF,radioButtonOn as lG,radioButtonOff as lH,setLastShowUpgradeMonthlyToAnnualProModal as lI,JOIN_THE_PRO_HOME_PAGE_BACKGROUND_URL as lJ,PushNotifications as lK,userContentBlocksKeys as lL,chatbubbleEllipses as lM,contactAvatarColor as lN,SUBMIT_LFT_FORM_ACTIONS as lO,trendingUp as lP,LINQ_FOR_TEAM_PAGE_URL as lQ,checkmarkCircleSharp as lR,businessSharp as lS,bagCheckOutline as lT,removeOutline as lU,stripeCheckoutSessionsKeys as lV,setLftTrialCheckoutSessionId as lW,appstleSubscriptionsKeys as lX,userSubscriptionInvoicesKeys as lY,TableFilterPopoverSelectionHeader as lZ,arrowDownOutline as l_,createBrowserHistory as la,Router as lb,createHashHistory as lc,context as ld,createPath as le,matchPath as lf,createLocation as lg,copy as lh,LINQ_WIDGET_BLOG_URL as li,shareCard as lj,DEEP_LINK_URL as lk,TRASH_ICON as ll,NOTIFICATION_SETTING as lm,chatboxEllipsesOutline as ln,userNotificationSettingKeys as lo,notificationsOutline as lp,map as lq,mailOpenOutline as lr,LINQ_SHOPIFY_PAGE as ls,cardPromptEmailTemplateKeys as lt,cardPromptSmsTemplateKeys as lu,orgSnippetsKeys as lv,list as lw,referrerSalespersonKeys as lx,HUBSPOT_LFT_REFER_A_BUSINESS_FORM_GUID as ly,cashOutline as lz,mailOutline as m,useSelectWorkflowsPage as m$,filter as m0,showPopover as m1,entitlementInterestKeys as m2,shortcodeMessageSendsKeys as m3,LINQ_ONE_MONTHLY_PRICE_PAID_ANNUALLY as m4,availableNumbersKeys as m5,keypadOutline as m6,personOutline as m7,phoneAutomationKeys as m8,SEND_SMS_DEFAULT_BODY as m9,isBefore as mA,MENU_ICON_CONTACTS as mB,userActivitiesKeys as mC,bagHandleOutline as mD,cloudDownload as mE,easelOutline as mF,setSlidingDrawerWarnOnClose as mG,SLIDING_DRAWER_IDS as mH,shieldCheckmarkOutline as mI,REMOVE_USER_ICON as mJ,ADMIN_PAGES_PAGE_ACTIONS as mK,useSelectAdminPages as mL,SelectionPopoverLayout as mM,showSelectionPopover as mN,EDIT_PAGE_ICON as mO,SHARE_PAGE_ICON as mP,PROFILE_OUTLINE_ICON as mQ,PAGE_TO_CONTENT_BLOCK_OUTLINE_ICON as mR,atOutline as mS,shuffle as mT,useSelectProductsPage as mU,RIGHT_LEFT_ARROW_ICON as mV,LINQ_SHOP_CUSTOM_PRODUCTS_URL as mW,ADMIN_PAGES_ACTIONS as mX,ADMIN_PAGES as mY,workflowActionTemplatesKeys as mZ,workflowFilterTemplatesKeys as m_,listOutline as ma,IonDatetimeButton as mb,initialTimeDelayAction as mc,TimeDelayType as md,TimeDelayValuesByType as me,TimeDelayTypeOptions as mf,TimeDelayAmountOptions as mg,WorkflowActionType as mh,PHONE_AUTOMATIONS_ACTIONS as mi,useSelectPhoneAutomations as mj,WorkflowFilterType as mk,initialPhoneAutomationState as ml,moveOutline as mm,WorkflowActionUiByType as mn,chunk as mo,createAnimation as mp,getIonPageElement as mq,ImpactStyle as mr,NotificationType as ms,Platform as mt,ExceptionCode as mu,MENU_ICON_ANALYTICS as mv,cloudDownloadOutline as mw,INFINITE_ICON as mx,addDays as my,addMonths as mz,chevronForwardOutline as n,useSelectCRMPage as n$,card as n0,updateOrgnizationSuccess as n1,keyOutline as n2,zakekeApiKeys as n3,useSelectAdminShoppingCart as n4,ADMIN_SHOPPING_CART_ACTIONS as n5,closeExtraAlertModal as n6,wrapArray as n7,closeCircleSharp as n8,emailSignatureTemplatesKeys as n9,IonRippleEffect as nA,link as nB,onlyUrlDomainString as nC,last as nD,CLOUDINARY_ICONS as nE,logoSnapchat as nF,logoInstagram as nG,logoLinkedin as nH,logoYoutube as nI,logoWhatsapp as nJ,logoPinterest as nK,logoTwitch as nL,starOutline as nM,deleteCard as nN,metaPixel as nO,getCurrentUserConnections as nP,ADD_CONTENT_ICON as nQ,saveLinqPayRecord as nR,IonLoading as nS,setWelcomeAlertShowPending as nT,createConnectionOrConnectionRequest as nU,setPendingConnection as nV,Preferences as nW,eventGuestKeys as nX,storefrontOutline as nY,STRIPE_YEARLY_PRICE_KEY as nZ,appClipSettingsKeys as n_,googleUserMappingsKey as na,CLOUDINARY_UPLOAD_EMAIL_CUSTOM_BANNER_IMAGES_PRESET as nb,imageSharp as nc,leaf as nd,shield as ne,squareOutline as nf,readerOutline as ng,swapHorizontal as nh,caretUp as ni,caretDown as nj,menuOutline as nk,useSelectPhoneNumberPage as nl,time as nm,returnUpForwardOutline as nn,documentText as no,callForwardingsKeys as np,calendar as nq,useSelectInboxesPage as nr,DropdownMenu as ns,EDIT_FILLED_PAD as nt,fieldMappingsKeys as nu,integrationResultsKeys as nv,integrationConnectionSettingsKeys as nw,newspaperOutline as nx,arrowRedo as ny,cardOutline as nz,goToUrl as o,hideColdStartWelcomeAlert as o0,hideWelcomeAlert as o1,getProductCode as p,showSlidingDrawer as q,reactExports as r,setToast as s,track as t,useParams as u,closeAlertModal as v,showAlertModal as w,qrCodeOutline as x,ICONS as y,school as z};
//# sourceMappingURL=index-BnuZDt-r.js.map
