1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-t2AZMd-Z.js","assets/SiteNav-BcGgqsav.js","assets/dropdown-menu-KsqIXfPg.js","assets/index-Dc9JXvma.js","assets/index-xFoOlCOp.js","assets/index-BgFHfwbL.js","assets/chevron-down-Bsk54EUt.js","assets/globe-BA4Wl8PS.js","assets/SiteFooter-dnnZxriw.js","assets/input-CwAqzCK4.js","assets/mail-Dg76bAst.js","assets/LibrarySections-4mLsLWfo.js","assets/useSmartInterval-Caibau3y.js","assets/map-pin-BRjVggch.js","assets/award-ByAfj-gO.js","assets/FanFreeBanner-Bn5Nkcw_.js","assets/gift-zW-OXeDx.js","assets/ticket-DY92lRWa.js","assets/DeferredMount-DxXDzCIY.js","assets/HomeBelowFold-TpnRbXpS.js","assets/mo-sound-orange-hd.png.asset-DkAdYpxr.js","assets/platform-submissions-D3ZGXLMB.js","assets/mostreams-disc-default-cover.png.asset-CgIoJHym.js","assets/drum-nhBEtyuZ.js","assets/_authenticated-DECf9qMs.js","assets/subscriptions.functions-BUoSkefH.js","assets/useMutation-Qzvad6af.js","assets/calendar-clock-B886Eqij.js","assets/about-OGh5Tc3P.js","assets/PageShell-CWbrZUQJ.js","assets/YouTubeBackground-CCoqfn6u.js","assets/ads-partner-DLaXKNjZ.js","assets/affiliates-gIeBsKme.js","assets/artist-advice-CWa3J-xQ.js","assets/artist-services-BlxRNrnX.js","assets/RadioPartnersSlideshow-Bl7OcgXn.js","assets/FaqSection-W7EEo78F.js","assets/TrustProof-BgfGtO9J.js","assets/star-5Or_XEAT.js","assets/beats-CgFyNZUD.js","assets/plus-BewcIKll.js","assets/arrow-right-CRCU77cw.js","assets/crown-CPZs1SwB.js","assets/flame-DnNxxGET.js","assets/tag-Bcn_qsQe.js","assets/blog-CzHFgRg2.js","assets/book-an-artist-31h0gbK9.js","assets/bookings.functions-D_nZApHA.js","assets/BookingFaq-GUP0iPqH.js","assets/paidGigRoster.functions-DjE7pkq9.js","assets/textarea-BLivuDPD.js","assets/label-5jAbssum.js","assets/PartnerSlideshow-BEKcIyP0.js","assets/careers-t6jidM8Q.js","assets/changelog-C1GzEPPO.js","assets/charts-BJyJ6I_p.js","assets/video-engagement-CTOe3S-S.js","assets/official-channel-ScPM5slQ.js","assets/trending-up-DKvEzUeP.js","assets/charts-Br9cjPv8.js","assets/charts-DSZjnpnT.js","assets/charts-L90NGTzR.js","assets/compare-distribution-DU_VA3WK.js","assets/contact-O7ZgVsdD.js","assets/cookies-C6tX1ZkW.js","assets/copyright-DO5U7yUN.js","assets/demo-v8fp_in9.js","assets/select-F0D4_o6M.js","assets/index-BdQq_4o_.js","assets/index-CknWoRzV.js","assets/chevron-up-CzmrE-s_.js","assets/demo.functions-Bst3WQXa.js","assets/mic-vocal-1o-CIBe1.js","assets/music-4-XSQW5tQl.js","assets/rotate-ccw-QMW-PIuT.js","assets/dj-pool-DPgQK42U.js","assets/DEMO_USERS-K9SFuwQ2.js","assets/message-circle-CDHT5vRz.js","assets/events-DDC4Z70D.js","assets/explore-CW2DP4M_.js","assets/LibraryHome-Dsl1q_4d.js","assets/discCover-CfcRtT-1.js","assets/FollowerCount-DqYNFd1w.js","assets/calendar-DPBDZjL-.js","assets/GlobalSearch-Hj7UfeDD.js","assets/DiscBookletModal-BYZr6VB8.js","assets/modisc.functions-YskwSfYf.js","assets/useMe-Cr7XOTxZ.js","assets/discLibrary.functions-XplYfHC1.js","assets/shopping-cart-CvE4J-jm.js","assets/log-in-BjATJu04.js","assets/credit-card-DuGDEZtl.js","assets/scan-line-Y6QVMevr.js","assets/newspaper-BvYbnxei.js","assets/book-open-cq8RVrvi.js","assets/DiscBookletShelf-CrNUXowO.js","assets/forgot-password-9-GoDZaV.js","assets/account-lookup.functions-BcNhRuS2.js","assets/arrow-left-ywJUlbI1.js","assets/help-center-Csfm0bRz.js","assets/marketplace-BDJr7dTr.js","assets/CertifiedDisc-BuYG59mB.js","assets/qr-CA5yO7Ro.js","assets/browser-DT_WFUyo.js","assets/limitedEditions-b5ZKNg4A.js","assets/store-D5pbI_Li.js","assets/merch-1zQZj8fa.js","assets/MerchProductModal-WnMY96Cr.js","assets/modiscs-CtLLRaHk.js","assets/modiscStudio-Cs72mCLD.js","assets/music-library-CunMu5LF.js","assets/MusicLibrarySlideshow-C2xE9e2P.js","assets/sports-categories-BCLM3mE-.js","assets/previewQuota-CaxAv8xc.js","assets/VerifiedBadge-D-qjQohi.js","assets/verified-DZGDZdMB.js","assets/CommentSection-DBNJWIkC.js","assets/UnifiedComments-S_E1dpfw.js","assets/pin-DcxkXoWM.js","assets/reply-CWQsSptt.js","assets/trash-2-DqSHrMYS.js","assets/thumbs-up-C6P5ySa9.js","assets/thumbs-down-Ci16tFLJ.js","assets/GuestPlayLimitBanner-BGRwRvKL.js","assets/clock-BFHVmY_h.js","assets/calendar-check-wSOnQFCm.js","assets/MessageArtistButton-J0QGCeaD.js","assets/message-square-text-mBAIdjKE.js","assets/volume-x-B7ShTouY.js","assets/ShareMenu-CMmWRQcz.js","assets/link-2-Dn2YDI0q.js","assets/plays.functions-bwSmvIbQ.js","assets/adServing-BRr30AWw.js","assets/adAssets-C675SCmn.js","assets/graduation-cap-Conm3xCi.js","assets/LockedDropsRail-Dr4X48Vm.js","assets/nft.drops.functions-eAhzeF2u.js","assets/gem-DST2RriO.js","assets/net
1work-room-CquoV0jF.js","assets/eye-off-DKZjR1l7.js","assets/partners-D-SHvCr1.js","assets/building-2-BOaJGj8e.js","assets/briefcase-DtnABjC5.js","assets/policy-CGgPG3IF.js","assets/gavel-CoI8yPiA.js","assets/eye-D8eAoNYW.js","assets/press-CAXUSGFH.js","assets/preview-dashboards-79HsSX00.js","assets/LabelDashboard-DeKeB02B.js","assets/PayoutMethodsCard-Bb2zo1vq.js","assets/calendar-days-ChavMRYP.js","assets/circle-dollar-sign-CAZcCOCn.js","assets/cloud-Cb9qtDsF.js","assets/circle-alert-CM2dpfqw.js","assets/apple-haSKgfyH.js","assets/youtube-Dwyf_-1G.js","assets/master-wallet.functions-Cp2D4ZTp.js","assets/arrow-up-right-VJ_azc3F.js","assets/coins-BsB653j2.js","assets/WorldwideListenersCard-DamxJui_.js","assets/CoSignsList-CaEJ70kP.js","assets/RedeemCodeLedgerCard-CNfWCgcT.js","assets/file-down-BCeML1zB.js","assets/library-CkoHQiGT.js","assets/arrow-down-right-0nbpkgjR.js","assets/inbox-BKDzKKbB.js","assets/pencil-YSg_AcJn.js","assets/usePushSubscription-DQ7UwmQm.js","assets/track-DCp5lGtH.js","assets/smartphone-iiYFCtbw.js","assets/bell-off-CgjkupxA.js","assets/mostreams-logo.png.asset-BLv69mKP.js","assets/GeoPlayMap-DHynfgXZ.js","assets/file-text-av3IHVAy.js","assets/discPressing-DCrEq51i.js","assets/layers-DTxjUv88.js","assets/package-BQ4320WN.js","assets/clipboard-check-glQbZmBA.js","assets/pricing-DuYchc5F.js","assets/privacy-DUAVdVhO.js","assets/redeem-6do9CTQr.js","assets/reset-password-CQjOvFBZ.js","assets/PasswordInput-BoQscDYM.js","assets/key-round-B63eJ-WV.js","assets/reviews-CKQgpE2e.js","assets/royalty-accounting-olMhOkH2.js","assets/sell-your-music-BD2knUnq.js","assets/signup-THqhCUDF.js","assets/index-DPsmHOpL.js","assets/tabs-7-_U4cvK.js","assets/command-BZUbMk91.js","assets/status-mb8IOy6B.js","assets/submit-radio-8DyrrhgX.js","assets/SubmitToRadioSection-C9Oa5X-Q.js","assets/user-BEEPU-TH.js","assets/sync-licensing-B9KHnt6i.js","assets/phone-DzTg92fJ.js","assets/terms-DaTar9--.js","assets/video-distribution-BiSRkZAb.js","assets/SponsoredVideoTile-B5cYZeQs.js","assets/tooltip-38gOocur.js","assets/ellipsis-vertical-yOi2Ft7_.js","assets/advertising-DRqKobAa.js","assets/analytics-B0hI3L-O.js","assets/analytics.functions-DlYqIBq2.js","assets/audience-BkPQ6E2X.js","assets/SocialUsagePanel-DBK6C2l_.js","assets/billing-C644g2UL.js","assets/paymentGateways-CYuRFGiq.js","assets/switch-C1ei1wwS.js","assets/wand-sparkles-DSBQh42L.js","assets/card-BiTQ_Rx7.js","assets/circle-x-DgJhG60J.js","assets/hand-coins-dG5UDIga.js","assets/blocklist-CEZ2OQHS.js","assets/BackOfficeWorkspace-BsNQ8xko.js","assets/chart-registration-ygAqjX5M.js","assets/copyright-registration-DpU1MvUf.js","assets/cover-song-licensing-McYUXvSA.js","assets/dashboard-DhsAF18q.js","assets/generateCategoricalChart-DaXyT3Gq.js","assets/quantize-CcnxYzjT.js","assets/AreaChart-DuaNwCcY.js","assets/badge-6dbaoSJl.js","assets/PodcasterStudioDashboard-AUo-cJOD.js","assets/BeatMakerStudio-2HRuU-gP.js","assets/save-CK_UFyiI.js","assets/NetworkRoomPanel-D8k_Noc_.js","assets/UnifiedTrackPlayer-B6IXFoND.js","assets/FanLibraryDashboard-BN5RaTcA.js","assets/compass-ChIeWnEA.js","assets/FanGenresCard-DfMucNRt.js","assets/onboardingSteps-DCsbHHYK.js","assets/circle-question-mark-DwZLL6ii.js","assets/NetworkRoomSection-BDddREbN.js","assets/moderation-submissions.functions-KFmo43di.js","assets/ReactionGoLiveCard-C3JRoYOM.js","assets/grip-vertical-CZYy6Uhb.js","assets/liveVerdict-CY4oWjff.js","assets/jspdf.es.min-DBVFAcnY.js","assets/useLiveRoomChannel-BVQIf4cA.js","assets/creator-video-import.functions-CokTA394.js","assets/shuffle-DL0EvDul.js","assets/SocialConnectCard-CGPIQpz7.js","assets/data-CtSRJiJO.js","assets/data-warehouse.functions-ChhcivSw.js","assets/discover-CWafbVUb.js","assets/discs-BOacs8R-.js","assets/DiscBrandLockup-C2-1e4VH.js","assets/DiscJukebox-D12w_wYM.js","assets/VaultItemCard-D96mLgVi.js","assets/vaultMixtapes-C7Kd3uiJ.js","assets/distribute-Q3FmeyKz.js","assets/KycGate-ClL9yrs0.js","assets/ReleaseWizard-CyVIJVcc.js","assets/releases.functions-D56b6xJx.js","assets/masterArchive-B78XToH0.js","assets/slider-CpLgEUbh.js","assets/image-BFD4NPbU.js","assets/follow-requests-Cto8tRV8.js","assets/ban-B4RrJuOs.js","assets/greenlist-anG3HJCa.js","assets/kyc-RDS0T0_D.js","assets/info-BRKP8n8_.js","assets/marketplace-Dddb3ubV.js","assets/messages-B-Q-SVX_.js","assets/AntiCaptureShield-DM16l3WB.js","assets/camera-off-mnEunqWO.js","assets/mostream
1s-watermark.png.asset-qdworuoU.js","assets/flag-Bf6y43jt.js","assets/moderation-pNEer5Hf.js","assets/my-collectibles-BRpCyQNd.js","assets/my-library-CFjPQOX9.js","assets/notifications-DaHpD9IJ.js","assets/onboarding-OgBctWil.js","assets/payouts-h_YrpW4E.js","assets/priority-pitch-D0lzI1Jm.js","assets/profile-defender-BiHyLspp.js","assets/promote-my-music-JjipdPHV.js","assets/publishing-administration-CO75a6j_.js","assets/release-links-7xAPxzWb.js","assets/release-schedule-DHhd0F_F.js","assets/table-Dk8irwvM.js","assets/reports-qzxjCBZ-.js","assets/rewards-DI75hogw.js","assets/rights-g-NBwQOb.js","assets/rooms-DVYp2wDq.js","assets/royalty-splits-B1Lq7FLy.js","assets/sales-CZDOM9Mt.js","assets/trending-down-FO_JX3x_.js","assets/social-usage-XUgPGtF7.js","assets/submit-BR4425gp.js","assets/usage-discovery-nQudDsSW.js","assets/vault-FsrkGcmE.js","assets/wallet-Gqr3uS4u.js","assets/AddFundsModal-DBvJdAwM.js","assets/paypal.functions-D7vw3O1a.js","assets/booking-escrow.functions-BHJtn788.js","assets/arrow-down-to-line-DPdwatxM.js","assets/advertise.index-BLwpCkIk.js","assets/rocket-B_B-KVTf.js","assets/adPricing.functions-RnvLgBcd.js","assets/layout-grid-uP3AYD93.js","assets/advertise.pricing-BZHczHyo.js","assets/artist._handle-DmrrqUkN.js","assets/LiveStatusBadge-DlAIcdWc.js","assets/FollowButton-D2NL7Yci.js","assets/user-check-lxjAkJox.js","assets/ShareButton-B7BSVPw3.js","assets/StoryRingAvatar-CZw0Gqbi.js","assets/AdEngagementStats-DbsZkBKy.js","assets/back._slug-CG7zqDKS.js","assets/minus-CbrkhhAh.js","assets/book-an-artist._listingId-DaxRUmU5.js","assets/booking-deposits.functions-LfIDXL3g.js","assets/book._handle-B0cbx7_x.js","assets/channel._handle-BSGzHzP7.js","assets/SubscribeButton-Dl-sqEPS.js","assets/channelMonetization-BtEbMiBz.js","assets/bell-ring-Dhxi4c1g.js","assets/AdminProfileBar-BkJa4aun.js","assets/user-cog-Oot22IvQ.js","assets/settings-MqQxANTz.js","assets/collect._slug-IaQMLuXc.js","assets/nft.perks.functions-sxOJA_60.js","assets/hash-DG7xUp5k.js","assets/VinylPreview-Cff-P-8w.js","assets/file-headphone-DT03bryF.js","assets/demo._role-HJQKszoo.js","assets/DemoBanner-B7d1Z5-3.js","assets/demo.advertising-BIck6prT.js","assets/demo.debug-traces-CQSD-n3N.js","assets/TraceViewer-wRpvOHV4.js","assets/demo.network-collab-CSami_ZQ.js","assets/demo.network-services-yRELquXU.js","assets/ServiceCard-BQYF209f.js","assets/demo.rooms-CqjDFSc5.js","assets/epk._handle-D90YBT6H.js","assets/CollabGraphCard-C2qYdbUx.js","assets/network-DNLV15N8.js","assets/events._slug-CzgbaG0a.js","assets/legal.dpa-DNxxp8qF.js","assets/live._handle-DXVnVnb0.js","assets/TipJar-COfN2kO7.js","assets/payments.functions-BgFXgzY7.js","assets/ReplayCard-nTdCxX8U.js","assets/login.index-BHhV0Z5Z.js","assets/login._role-So6kUFzy.js","assets/security.functions-BfAO6aUD.js","assets/mixtape._slug-o6vSG_xB.js","assets/modisc._slug-CGFVe_EJ.js","assets/radio.index-CI37gEPL.js","assets/power-DaHYFrwF.js","assets/release._slug-Akbuvl1o.js","assets/useSuspenseQuery-Cx8WIhyU.js","assets/services._slug-D8kkg57Q.js","assets/services._slug-B6pSVy3Q.js","assets/services._slug-BVGefsnq.js","assets/signup.check-email-Bt1VqaAj.js","assets/mail-check-CahsnZqu.js","assets/signup.pending-CDhzcsPb.js","assets/signup.trial-hold-DrXEOUMn.js","assets/store.index-AFz22Brm.js","assets/discStore.functions-vF7FSJAR.js","assets/store._handle-HrEYfMXe.js","assets/tip._handle-BluqGobI.js","assets/tools.link-preview-D2zkpxpr.js","assets/track-order._token-lExEcw66.js","assets/discOrders.functions-CL-PZXRz.js","assets/track._id-DfOdIQXB.js","assets/verify._hash-5AcsGJWl.js","assets/funnel-CitMf6iQ.js","assets/CartesianGrid-DJAgTSRh.js","assets/BarChart-D8t81Cr_.js","assets/shield-x-D1G9TnQI.js","assets/watch._videoId-DRRp4mwc.js","assets/VideoActionBar-BpGmCmur.js","assets/tv-DnzzjfN1.js","assets/minimize-2-Bjr6490i.js","assets/advertiser.apply-D6biZpEu.js","assets/advertiser.campaigns-MyasOTwg.js","assets/advertiser.dashboard-DuNbrySW.js","assets/advertiser.reports-E4XRWaL9.js","assets/billing.verify-BfEGq2Nb.js","assets/channel.settings-X8BJ8GNM.js","assets/dashboard.backers-DP4qlNnH.js","assets/dashboard.channel-monetization-wZMNypJ5.js","assets/dashboard.collectibles-CMteb8m0.js","assets/dashboard.disc-build-pyhUVOEp.js","assets/discPrintPdf-48qjwdmW.js","assets/dashboard.disc-orders-CEOmlvVX.js","assets/dashboard.disc-pressing-DhKrYBKk.js","assets/dashboard.gallery-DohppmUg.js","assets/image-plus-CzUe2ATw.js","assets/dashboard.geo-m6-9zTMs.js","assets/dashboard.import-track-DWurQHG7.js","assets/videoImport.functions-H4fJ03E_.js","assets/dashboard.import-video-DU_8eEdL.js","assets/cloud-upload-BZVz2Oij.js","assets/dashboard.live-replays-BDj0ypFe.js","assets/dashboard.merch-D7BiqYRr.js","assets/dashboard.profile-BqJE_IlP.js","assets/ProfileEditor-BeP0Z0Ja.js","assets/admin-users.functions-BX6Ps03V.js","assets/dashboard.seo-DVVSolQK.js","assets/dashboard.shorts-qC-FIBL0.js","assets/dashboard.social-dMDfa0TV.js","assets/dashboard.sound-chart-VvcH4wbC.js","assets/unitSales.functions-BRiKrrCS.js","assets/luminate.functions-CsVJ6z3d.js","assets/dashboard.uploads-D9Iej-UB.js","assets/dj.crate-DA0s-r4R.js","assets/marketplace._id-C2Y_Wvvv.js","assets/LikeButton-BxBcbFrN.js","assets/marketplace.upload-DQUijwnX.js","assets/mc-60e9ca6cf6.index-CTOiRtVo.js","assets/AdminShell-8RoFfhDZ.js","assets/file-spreadsheet-BFuTXcq1.js","assets/ApiHealthAlerts-B5naWrQM.js","assets/mc-60e9ca6cf6.account-approvals-Cz3z3R3C.js","assets/mc-60e9ca6cf6.ad-inquiries-DBDBpz1l.js","assets/AdminPageTabs-CbwbPisw.js","assets/mc-60e9ca6cf6.ad-partners-DJgHl78V.js","assets/mc-60e9ca6cf6.ad-pricing-DsB5Oqhd.js","assets/mc-60e9ca6cf6.ads-analytics-BYV-5NPQ.js","assets/mc-60e9ca6cf6.affiliate-ads-DKPEZXeF.js","assets/mc-60e9ca6cf6.ai-disclosures-CAl-fKnv.js","assets/trustsafety.functions-CK_-Kh1T.js","assets/mc-60e9ca6cf6.analytics-NJ4ef5s3.js","assets/mc-60e9ca6cf6.approvals-DK7f0EqA.js","assets/mc-60e9ca6cf6.audio-ads-D0MuuUuf.js","assets/mc-60e9ca6cf6.booking-deposits-pxhJvVj9.js","assets/mc-60e9ca6cf6.booking-questions-D2BZlm6r.js","assets/FaqInboxPanel-BIgEPh6y.js","assets/mc-60e9ca6cf6.booking-requests-BGIryH3C.js","assets/mc-60e9ca6cf6.booking-wallet-Bipkrz6O.js","assets/mc-60e9ca6cf6.boost-DL8RIlBO.js","assets/mc-60e9ca6cf6.catalog-import-C0h_O6eC.js","assets/mc-60e9ca6cf6.cohorts-BKh4ZUl7.js","assets/mc-60e9ca6cf6.collectibles-BFRBNCWV.js","assets/mc-60e9ca6cf6.comments-B63nZMf3.js","assets/mc-60e9ca6cf6.content-BdfBrGzQ.js","assets/storage-key-dbVDcJUt.js","assets/mc-60e9ca6cf6.create-account-BYGKK3R-.js","assets/mc-60e9ca6cf6.data-warehouse-D29hzbSM.js","assets/mc-60e9ca6cf6.ddex-M5sp4Z7Q.js","assets/mc-60e9ca6cf6.debug-traces-CXksH9aJ.js","assets/mc-60e9ca6cf6.demo-sessions-B899eNHh.js","assets/mc-60e9ca6cf6.disc-code-units-BP3Zxc4e.js","assets/mc-60e9ca6cf6.drm-DeQieSMw.js","assets/mc-60e9ca6cf6.engagement-Dy0IiZog.js","assets/mc-60e9ca6cf6.escrow-disputes-zIFqaMCw.js","assets/net
1work-escrow.functions-DYcPj6Je.js","assets/mc-60e9ca6cf6.featured-beats-C0sDZIOU.js","assets/mc-60e9ca6cf6.fingerprints-CSZ4EDw3.js","assets/mc-60e9ca6cf6.flags-BP7IC0wP.js","assets/mc-60e9ca6cf6.form-submissions-BYazNt_y.js","assets/mc-60e9ca6cf6.giveaway-codes-AdM8pEyu.js","assets/mc-60e9ca6cf6.growth-DJfqqLiI.js","assets/mc-60e9ca6cf6.infra-DPJmLMep.js","assets/mc-60e9ca6cf6.investor-report-J0dxzWwV.js","assets/mc-60e9ca6cf6.kyc-DkNZLSGs.js","assets/mc-60e9ca6cf6.local-pay-7OsXceTi.js","assets/mc-60e9ca6cf6.luminate-BHqCezw6.js","assets/mc-60e9ca6cf6.master-vault-CQ5g6Obj.js","assets/mc-60e9ca6cf6.merch-review-CPpu8R-P.js","assets/mc-60e9ca6cf6.messages-YIqqWEES.js","assets/mc-60e9ca6cf6.moderation-DZ5F_L2H.js","assets/mc-60e9ca6cf6.money-zEW1KMHC.js","assets/mc-60e9ca6cf6.music-upload-BHSeX-WO.js","assets/mc-60e9ca6cf6.paid-gig-roster-Bhm8-Fd0.js","assets/mc-60e9ca6cf6.payment-gateways-Cvr36Hxt.js","assets/mc-60e9ca6cf6.paypal-D-Au24Jx.js","assets/mc-60e9ca6cf6.people-VIeNYFQe.js","assets/mc-60e9ca6cf6.qc-NUw7Et8l.js","assets/mc-60e9ca6cf6.quick-ads-DAYFBYN1.js","assets/mc-60e9ca6cf6.reaction-live-DQEG3y_q.js","assets/mc-60e9ca6cf6.reconciliation-BQG9r6AZ.js","assets/mc-60e9ca6cf6.rights-D6Eb-ome.js","assets/mc-60e9ca6cf6.royalties-CG9c8nTq.js","assets/mc-60e9ca6cf6.royalty-admin-C8ujv4H8.js","assets/mc-60e9ca6cf6.security-BaSh_L0O.js","assets/mc-60e9ca6cf6.security-log-BMaff5o9.js","assets/mc-60e9ca6cf6.seo-JsRWKHVy.js","assets/mc-60e9ca6cf6.settings-CG3c0MUi.js","assets/mc-60e9ca6cf6.social-usage-BQpZJk_z.js","assets/mc-60e9ca6cf6.storage-CpbeGXJK.js","assets/mc-60e9ca6cf6.submissions-CjFIJyvI.js","assets/mc-60e9ca6cf6.submissions-queue-DJzInPCV.js","assets/mc-60e9ca6cf6.subscriptions-CJW9AzBk.js","assets/mc-60e9ca6cf6.system-debug-CuvT-EW2.js","assets/mc-60e9ca6cf6.takedowns-D-PAKIWU.js","assets/mc-60e9ca6cf6.team-BEGTanHI.js","assets/mc-60e9ca6cf6.toolost-CR8_7hSv.js","assets/mc-60e9ca6cf6.traffic-BRJH3Ojl.js","assets/mc-60e9ca6cf6.units-BrxzOQDA.js","assets/mc-60e9ca6cf6.wallet-master-CaHkfffS.js","assets/network.index-C2AKJTun.js","assets/hand-Ceh8g7Ww.js","assets/network.services-DSyJWP3f.js","assets/network-services.functions-8TlQAqXc.js","assets/playlists.index-Vhbb8PGA.js","assets/playlists._id-Ck28wJ8s.js","assets/releases.studio-DTzzrRKQ.js","assets/rooms._id-8pymTKPH.js","assets/settings.notifications-D-6vJQMt.js","assets/studio.hub-B3EwTsMq.js","assets/link-B-SVhR2z.js","assets/upload.index-D_KwLHPP.js","assets/upload.dj-mix-CmGQGCXK.js","assets/videos._id-x3sNQE4d.js","assets/wallet.history-4Qyb4UyQ.js","assets/demo.dashboard.channel-monetization-Bfh4otAV.js","assets/demo.dashboard.social-Dq253Y9m.js","assets/embed.track._id-BrXIMtmc.js","assets/store.album._slug-Cqt9wjzw.js","assets/store.artist._handle-9ggUr1SH.js","assets/advertiser.campaigns._id-BgFk_s8Q.js","assets/billing.paypal.cancel-DBfG77Fv.js","assets/billing.paypal.return-BjF2Vpmo.js","assets/dashboard.artist.booking-Dccj3U7b.js","assets/dashboard.artist.events-DdUaF66l.js","assets/dashboard.bookings.questions-oNSQUTX3.js","assets/dashboard.disc-studio.index-BvOpTIwB.js","assets/dashboard.mc-60e9ca6cf6.disc-print-BLxIP9I6.js","assets/printer-CxEWW4kl.js","assets/dashboard.modiscs._id-DatmRYyV.js","assets/dashboard.modiscs.new-CHPfGuAg.js","assets/dashboard.producer.beat-maker-Cz_ZPd_U.js","assets/dashboard.producer.studio-fullscreen-DBoUcrpG.js","assets/mc-60e9ca6cf6.dashboards.index-B-aJLVFM.js","assets/mc-60e9ca6cf6.dashboards._role-NtUt2y3g.js","assets/mc-60e9ca6cf6.releases.new-BNRW4Yox.js","assets/mc-60e9ca6cf6.submissions._id-BMs8Cmfg.js","assets/mc-60e9ca6cf6.videos._id-DKfY2jly.js","assets/network.channels._slug-zNKLJyvi.js","assets/network.collab.index-D-uB_WEp.js","assets/collab.functions-DW4BUtHK.js","assets/network.collab._id-CUlgo-oO.js","assets/network.dm._userId-CeRvLZLQ.js","assets/network.services.mine-CS1pSrUZ.js","assets/network.services.quotes-U0vfjDpR.js","assets/network.u._handle-r8a6zkgW.js","assets/tracks._id.edit-b7h_JoRP.js","assets/GenrePicker-Dkhpd1Le.js","assets/vault.artist._handle-DxjnvRnZ.js","assets/videos._id.edit-knELbVk6.js","assets/dashboard.artist.events._id-qWNRWFd7.js"])))=>i.map(i=>d[i]); 2function Mk(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var ece=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};
vendor: 5,774 bytes, line 2
2function SS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $p={exports:{}},Rc={};var d_;function Nk(){if(d_)return Rc;d_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,s,i){var l=null;if(i!==void 0&&(l=""+i),s.key!==void 0&&(l=""+s.key),"key"in s){i={};for(var d in s)d!=="key"&&(i[d]=s[d])}else i=s;return s=i.ref,{$$typeof:e,type:r,key:l,ref:s!==void 0?s:null,props:i}}return Rc.Fragment=t,Rc.jsx=n,Rc.jsxs=n,Rc}var h_;function jk(){return h_||(h_=1,$p.exports=Nk()),$p.exports}var p=jk(),Mp={exports:{}},Ge={};var f_;function Pk(){if(f_)return Ge;f_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function _(L){return L===null||typeof L!="object"?null:(L=b&&L[b]||L["@@iterator"],typeof L=="function"?L:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,x={};function k(L,ae,oe){this.props=L,this.context=ae,this.refs=x,this.updater=oe||S}k.prototype.isReactComponent={},k.prototype.setState=function(L,ae){if(typeof L!="object"&&typeof L!="function"&&L!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,L,ae,"setState")},k.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function M(){}M.prototype=k.prototype;function P(L,ae,oe){this.props=L,this.context=ae,this.refs=x,this.updater=oe||S}var I=P.prototype=new M;I.constructor=P,E(I,k.prototype),I.isPureReactComponent=!0;var F=Array.isArray;function G(){}var U={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function ne(L,ae,oe){var ce=oe.ref;return{$$typeof:e,type:L,key:ae,ref:ce!==void 0?ce:null,props:oe}}function W(L,ae){return ne(L.type,ae,L.props)}function pe(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function de(L){var ae={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(oe){return ae[oe]})}var $e=/\/+/g;function Ce(L,ae){return typeof L=="object"&&L!==null&&L.key!=null?de(""+L.key):ae.toString(36)}function ue(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status=="string"?L.then(G,G):(L.status="pending",L.then(function(ae){L.status==="pending"&&(L.status="fulfilled",L.value=ae)},function(ae){L.status==="pending"&&(L.status="rejected",L.reason=ae)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function z(L,ae,oe,ce,he){var Re=typeof L;(Re==="undefined"||Re==="boolean")&&(L=null);var Le=!1;if(L===null)Le=!0;else switch(Re){case"bigint":case"string":case"number":Le=!0;break;case"object":switch(L.$$typeof){case e:case t:Le=!0;break;case g:return Le=L._init,z(Le(L._payload),ae,oe,ce,he)}}if(Le)return he=he(L),Le=ce===""?"."+Ce(L,0):ce,F(he)?(oe="",Le!=null&&(oe=Le.replace($e,"$&/")+"/"),z(he,ae,oe,"",function(Et){return Et})):he!=null&&(pe(he)&&(he=W(he,oe+(he.key==null||L&&L.key===he.key?"":(""+he.key).replace($e,"$&/")+"/")+Le)),ae.push(he)),1;Le=0;var ve=ce===""?".":ce+":";if(F(L))for(var Se=0;Se<L.length;Se++)ce=L[Se],Re=ve+Ce(ce,Se),Le+=z(ce,ae,oe,Re,he);else if(Se=_(L),typeof Se=="function")for(L=Se.call(L),Se=0;!(ce=L.next()).done;)ce=ce.value,Re=ve+Ce(ce,Se++),Le+=z(ce,ae,oe,Re,he);else if(Re==="object"){if(typeof L.then=="function")return z(ue(L),ae,oe,ce,he);throw ae=String(L),Error("Objects are not valid as a React child (found: "+(ae==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":ae)+"). If you meant to render a collection of children, use an array instead.")}return Le}function te(L,ae,oe){if(L==null)return L;var ce=[],he=0;return z(L,ce,"","",function(Re){return ae.call(oe,Re,he++)}),ce}function we(L){if(L._status===-1){var ae=L._result;ae=ae(),ae.then(function(oe){(L._status===0||L._status===-1)&&(L._status=1,L._result=oe)},function(oe){(L._status===0||L._status===-1)&&(L._status=2,L._result=oe)}),L._status===-1&&(L._status=0,L._result=ae)}if(L._status===1)return L._result.default;throw L._result}var Pe=typeof reportError=="function"?reportError:function(L){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ae=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L=="object"&&L!==null&&typeof L.message=="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(ae))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)},ye={map:te,forEach:function(L,ae,oe){te(L,function(){ae.apply(this,arguments)},oe)},count:function(L){var ae=0;return te(L,function(){ae++}),ae},toArray:function(L){return te(L,function(ae){return ae})||[]},only:function(L){if(!pe(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};return Ge.Activity=y,Ge.Children=ye,Ge.Component=k,Ge.Fragment=n,Ge.Profiler=s,Ge.PureComponent=P,Ge.StrictMode=r,Ge.Suspense=h,Ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,Ge.__COMPILER_RUNTIME={__proto__:null,c:function(L){return U.H.useMemoCache(L)}},Ge.cache=function(L){return function(){return L.apply(null,arguments)}},Ge.cacheSignal=function(){return null},Ge.cloneElement=function(L,ae,oe){if(L==null)throw Error("The argument must be a React element, but you passed "+L+".");var ce=E({}
vendor: 11,220 bytes, line 2
2,L.props),he=L.key;if(ae!=null)for(Re in ae.key!==void 0&&(he=""+ae.key),ae)!V.call(ae,Re)||Re==="key"||Re==="__self"||Re==="__source"||Re==="ref"&&ae.ref===void 0||(ce[Re]=ae[Re]);var Re=arguments.length-2;if(Re===1)ce.children=oe;else if(1<Re){for(var Le=Array(Re),ve=0;ve<Re;ve++)Le[ve]=arguments[ve+2];ce.children=Le}return ne(L.type,he,ce)},Ge.createContext=function(L){return L={$$typeof:l,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null},L.Provider=L,L.Consumer={$$typeof:i,_context:L},L},Ge.createElement=function(L,ae,oe){var ce,he={},Re=null;if(ae!=null)for(ce in ae.key!==void 0&&(Re=""+ae.key),ae)V.call(ae,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(he[ce]=ae[ce]);var Le=arguments.length-2;if(Le===1)he.children=oe;else if(1<Le){for(var ve=Array(Le),Se=0;Se<Le;Se++)ve[Se]=arguments[Se+2];he.children=ve}if(L&&L.defaultProps)for(ce in Le=L.defaultProps,Le)he[ce]===void 0&&(he[ce]=Le[ce]);return ne(L,Re,he)},Ge.createRef=function(){return{current:null}},Ge.forwardRef=function(L){return{$$typeof:d,render:L}},Ge.isValidElement=pe,Ge.lazy=function(L){return{$$typeof:g,_payload:{_status:-1,_result:L},_init:we}},Ge.memo=function(L,ae){return{$$typeof:f,type:L,compare:ae===void 0?null:ae}},Ge.startTransition=function(L){var ae=U.T,oe={};U.T=oe;try{var ce=L(),he=U.S;he!==null&&he(oe,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(G,Pe)}catch(Re){Pe(Re)}finally{ae!==null&&oe.types!==null&&(ae.types=oe.types),U.T=ae}},Ge.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},Ge.use=function(L){return U.H.use(L)},Ge.useActionState=function(L,ae,oe){return U.H.useActionState(L,ae,oe)},Ge.useCallback=function(L,ae){return U.H.useCallback(L,ae)},Ge.useContext=function(L){return U.H.useContext(L)},Ge.useDebugValue=function(){},Ge.useDeferredValue=function(L,ae){return U.H.useDeferredValue(L,ae)},Ge.useEffect=function(L,ae){return U.H.useEffect(L,ae)},Ge.useEffectEvent=function(L){return U.H.useEffectEvent(L)},Ge.useId=function(){return U.H.useId()},Ge.useImperativeHandle=function(L,ae,oe){return U.H.useImperativeHandle(L,ae,oe)},Ge.useInsertionEffect=function(L,ae){return U.H.useInsertionEffect(L,ae)},Ge.useLayoutEffect=function(L,ae){return U.H.useLayoutEffect(L,ae)},Ge.useMemo=function(L,ae){return U.H.useMemo(L,ae)},Ge.useOptimistic=function(L,ae){return U.H.useOptimistic(L,ae)},Ge.useReducer=function(L,ae,oe){return U.H.useReducer(L,ae,oe)},Ge.useRef=function(L){return U.H.useRef(L)},Ge.useState=function(L){return U.H.useState(L)},Ge.useSyncExternalStore=function(L,ae,oe){return U.H.useSyncExternalStore(L,ae,oe)},Ge.useTransition=function(){return U.H.useTransition()},Ge.version="19.2.5",Ge}var p_;function fl(){return p_||(p_=1,Mp.exports=Pk()),Mp.exports}var T=fl();const _e=SS(T),mg=Mk({__proto__:null,default:_e},[T]);var Np={exports:{}},Ec={},jp={exports:{}},Pp={};var m_;function Dk(){return m_||(m_=1,(function(e){function t(z,te){var we=z.length;z.push(te);e:for(;0<we;){var Pe=we-1>>>1,ye=z[Pe];if(0<s(ye,te))z[Pe]=te,z[we]=ye,we=Pe;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var te=z[0],we=z.pop();if(we!==te){z[0]=we;e:for(var Pe=0,ye=z.length,L=ye>>>1;Pe<L;){var ae=2*(Pe+1)-1,oe=z[ae],ce=ae+1,he=z[ce];if(0>s(oe,we))ce<ye&&0>s(he,oe)?(z[Pe]=he,z[ce]=we,Pe=ce):(z[Pe]=oe,z[ae]=we,Pe=ae);else if(ce<ye&&0>s(he,we))z[Pe]=he,z[ce]=we,Pe=ce;else break e}}return te}function s(z,te){var we=z.sortIndex-te.sortIndex;return we!==0?we:z.id-te.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,d=l.now();e.unstable_now=function(){return l.now()-d}}var h=[],f=[],g=1,y=null,b=3,_=!1,S=!1,E=!1,x=!1,k=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function I(z){for(var te=n(f);te!==null;){if(te.callback===null)r(f);else if(te.startTime<=z)r(f),te.sortIndex=te.expirationTime,t(h,te);else break;te=n(f)}}function F(z){if(E=!1,I(z),!S)if(n(h)!==null)S=!0,G||(G=!0,de());else{var te=n(f);te!==null&&ue(F,te.startTime-z)}}var G=!1,U=-1,V=5,ne=-1;function W(){return x?!0:!(e.unstable_now()-ne<V)}function pe(){if(x=!1,G){var z=e.unstable_now();ne=z;var te=!0;try{e:{S=!1,E&&(E=!1,M(U),U=-1),_=!0;var we=b;try{t:{for(I(z),y=n(h);y!==null&&!(y.expirationTime>z&&W());){var Pe=y.callback;if(typeof Pe=="function"){y.callback=null,b=y.priorityLevel;var ye=Pe(y.expirationTime<=z);if(z=e.unstable_now(),typeof ye=="function"){y.callback=ye,I(z),te=!0;break t}y===n(h)&&r(h),I(z)}else r(h);y=n(h)}if(y!==null)te=!0;else{var L=n(f);L!==null&&ue(F,L.startTime-z),te=!1}}break e}finally{y=null,b=we,_=!1}te=void 0}}finally{te?de():G=!1}}}var de;if(typeof P=="function")de=function(){P(pe)};else if(typeof MessageChannel<"u"){var $e=new MessageChannel,Ce=$e.port2;$e.port1.onmessage=pe,de=function(){Ce.postMessage(null)}}else de=function(){k(pe,0)};function ue(z,te){U=k(function(){z(e.unstable_now())},te)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(z){switch(b){case 1:case 2:case 3:var te=3;break;default:te=b}var we=b;b=te;try{return z()}finally{b=we}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(z,te){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var we=b;b=z;try{return te()}finally{b=we}},e.unstable_scheduleCallback=function(z,te,we){var Pe=e.unstable_now();switch(typeof we=="object"&&we!==null?(we=we.delay,we=typeof we=="number"&&0<we?Pe+we:Pe):we=Pe,z){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=we+ye,z={id:g++,callback:te,priorityLevel:z,startTime:we,expirationTime:ye,sortIndex:-1},we>Pe?(z.sortIndex=we,t(f,z),n(h)===null&&z===n(f)&&(E?(M(U),U=-1):E=!0,ue(F,we-Pe))):(z.sortIndex=ye,t(h,z),S||_||(S=!0,G||(G=!0,de()))),z},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(z){var te=b;return function(){var we=b;b=te;try{return z.apply(this,arguments)}finally{b=we}}}})(Pp)),Pp}var g_;function Ik(){return g_||(g_=1,jp.exports=Dk()),jp.exports}var Dp={exports:{}},Sn={};var y_;function Lk(){if(y_)return Sn;y_=1;var e=fl();function t(h){var f="https://react.dev/errors/"+h;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)f+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},s=Symbol.for("react.portal");function i(h,f,g){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:y==null?null:""+y,children:h,containerInfo:f,implementation:g}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,f){if(h==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return Sn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Sn.createPortal=function(h,f){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return i(h,f,null,g)},Sn.flushSync=function(h){var f=l.T,g=r.p;try{if(l.T=null,r.p=2,h)return h()}finally{l.T=f,r.p=g,r.d.f()}},Sn.preconnect=function(h,f){typeof h=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(h,f))},Sn.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},Sn.preinit=function(h,f){if(typeof h=="string"&&f&&typeof f.as=="string"){var g=f.as,y=d(g,f.crossOrigin),b=typeof f.integrity=="string"?f.integrity:void 0,_=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;g==="style"?r.d.S(h,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:_}):g==="script"&&r.d.X(h,{crossOrigin:y,integrity:b,fetchPriority:_,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Sn.preinitModule=function(h,f){if(typeof h=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var g=d(f.as,f.crossOrigin);r.d.M(h,{crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(h)},Sn.preload=function(h,f){if(typeof h=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var g=f.as,y=d(g,f.crossOrigin);r.d.L(h,g,{crossOrigin:y,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},Sn.preloadModule=function(h,f){if(typeof h=="string")if(f){var g=d(f.as,f.crossOrigin);r.d.m(h,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(h)},Sn.requestFormReset=function(h){r.d.r(h)},Sn.unstable_batchedUpdates=function(h,f){return h(f)},Sn.useFormState=function(h,f,g){return l.H.useFormState(h,f,g)},Sn.useFormStatus=function(){return l.H.useHostTransitionStatus()},Sn.version="19.2.5",Sn}var v_;function xS(){if(v_)return Dp.exports;v_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Dp.exports=Lk(),Dp.exports}var b_;function zk(){if(b_)return Ec;b_=1;var e=Ik(),t=fl(),n=xS();function r(o){var a="https://react.dev/errors/"+o;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+o+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function i(o){var a=o,c=o;if(o.alternate)for(;a.return;)a=a.return;else{o=a;do a=o,(a.flags&4098)!==0&&(c=a.return),o=a.return;while(o)}return a.tag===3?c:null}function l(o){if(o.tag===13){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function d(o){if(o.tag===31){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}
vendor: 10,501 bytes, lines 2-9
2function h(o){if(i(o)!==o)throw Error(r(188))}function f(o){var a=o.alternate;if(!a){if(a=i(o),a===null)throw Error(r(188));return a!==o?null:o}for(var c=o,u=a;;){var m=c.return;if(m===null)break;var v=m.alternate;if(v===null){if(u=m.return,u!==null){c=u;continue}break}if(m.child===v.child){for(v=m.child;v;){if(v===c)return h(m),o;if(v===u)return h(m),a;v=v.sibling}throw Error(r(188))}if(c.return!==u.return)c=m,u=v;else{for(var A=!1,O=m.child;O;){if(O===c){A=!0,c=m,u=v;break}if(O===u){A=!0,u=m,c=v;break}O=O.sibling}if(!A){for(O=v.child;O;){if(O===c){A=!0,c=v,u=m;break}if(O===u){A=!0,u=v,c=m;break}O=O.sibling}if(!A)throw Error(r(189))}}if(c.alternate!==u)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?o:a}function g(o){var a=o.tag;if(a===5||a===26||a===27||a===6)return o;for(o=o.child;o!==null;){if(a=g(o),a!==null)return a;o=o.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),P=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),pe=Symbol.iterator;function de(o){return o===null||typeof o!="object"?null:(o=pe&&o[pe]||o["@@iterator"],typeof o=="function"?o:null)}var $e=Symbol.for("react.client.reference");function Ce(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===$e?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case E:return"Fragment";case k:return"Profiler";case x:return"StrictMode";case F:return"Suspense";case G:return"SuspenseList";case ne:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case S:return"Portal";case P:return o.displayName||"Context";case M:return(o._context.displayName||"Context")+".Consumer";case I:var a=o.render;return o=o.displayName,o||(o=a.displayName||a.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case U:return a=o.displayName||null,a!==null?a:Ce(o.type)||"Memo";case V:a=o._payload,o=o._init;try{return Ce(o(a))}catch{}}return null}var ue=Array.isArray,z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,we={pending:!1,data:null,method:null,action:null},Pe=[],ye=-1;function L(o){return{current:o}}function ae(o){0>ye||(o.current=Pe[ye],Pe[ye]=null,ye--)}function oe(o,a){ye++,Pe[ye]=o.current,o.current=a}var ce=L(null),he=L(null),Re=L(null),Le=L(null);function ve(o,a){switch(oe(Re,a),oe(he,o),oe(ce,null),a.nodeType){case 9:case 11:o=(o=a.documentElement)&&(o=o.namespaceURI)?jb(o):0;break;default:if(o=a.tagName,a=a.namespaceURI)a=jb(a),o=Pb(a,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}ae(ce),oe(ce,o)}function Se(){ae(ce),ae(he),ae(Re)}function Et(o){o.memoizedState!==null&&oe(Le,o);var a=ce.current,c=Pb(a,o.type);a!==c&&(oe(he,o),oe(ce,c))}function it(o){he.current===o&&(ae(ce),ae(he)),Le.current===o&&(ae(Le),_c._currentValue=we)}var ht,K;function Q(o){if(ht===void 0)try{throw Error()}catch(c){var a=c.stack.trim().match(/\n( *(at )?)/);ht=a&&a[1]||"",K=-1<c.stack.indexOf(` 3 at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return` 4`+ht+o+K}var be=!1;function Te(o,a){if(!o||be)return"";be=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(a){var me=function(){throw Error()};if(Object.defineProperty(me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(me,[])}catch(se){var ee=se}Reflect.construct(o,[],me)}else{try{me.call()}catch(se){ee=se}o.call(me.prototype)}}else{try{throw Error()}catch(se){ee=se}(me=o())&&typeof me.catch=="function"&&me.catch(function(){})}}catch(se){if(se&&ee&&typeof se.stack=="string")return[se.stack,ee.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=u.DetermineComponentFrameRoot(),A=v[0],O=v[1];if(A&&O){var B=A.split(` 5`),J=O.split(` 6`);for(m=u=0;u<B.length&&!B[u].includes("DetermineComponentFrameRoot");)u++;for(;m<J.length&&!J[m].includes("DetermineComponentFrameRoot");)m++;if(u===B.length||m===J.length)for(u=B.length-1,m=J.length-1;1<=u&&0<=m&&B[u]!==J[m];)m--;for(;1<=u&&0<=m;u--,m--)if(B[u]!==J[m]){if(u!==1||m!==1)do if(u--,m--,0>m||B[u]!==J[m]){var le=` 7`+B[u].replace(" at new "," at ");return o.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",o.displayName)),le}while(1<=u&&0<=m);break}}}finally{be=!1,Error.prepareStackTrace=c}return(c=o?o.displayName||o.name:"")?Q(c):""}function Qe(o,a){switch(o.tag){case 26:case 27:case 5:return Q(o.type);case 16:return Q("Lazy");case 13:return o.child!==a&&a!==null?Q("Suspense Fallback"):Q("Suspense");case 19:return Q("SuspenseList");case 0:case 15:return Te(o.type,!1);case 11:return Te(o.type.render,!1);case 1:return Te(o.type,!0);case 31:return Q("Activity");default:return""}}function yt(o){try{var a="",c=null;do a+=Qe(o,c),c=o,o=o.return;while(o);return a}catch(u){return` 8Error generating stack: `+u.message+` 9`+u.stack}}var ft=Object.prototype.hasOwnProperty,tn=e.unstable_scheduleCallback,mr=e.unstable_cancelCallback,Zt=e.unstable_shouldYield,qn=e.unstable_requestPaint,Pt=e.unstable_now,Ye=e.unstable_getCurrentPriorityLevel,At=e.unstable_ImmediatePriority,kn=e.unstable_UserBlockingPriority,an=e.unstable_NormalPriority,Sa=e.unstable_LowPriority,C=e.unstable_IdlePriority,w=e.log,R=e.unstable_setDisableYieldValue,D=null,H=null;function X(o){if(typeof w=="function"&&R(o),H&&typeof H.setStrictMode=="function")try{H.setStrictMode(D,o)}catch{}}var ie=Math.clz32?Math.clz32:rt,Ze=Math.log,vt=Math.LN2;function rt(o){return o>>>=0,o===0?32:31-(Ze(o)/vt|0)|0}var pt=256,at=262144,xa=4194304;function Tr(o){var a=o&42;if(a!==0)return a;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function He(o,a,c){var u=o.pendingLanes;if(u===0)return 0;var m=0,v=o.suspendedLanes,A=o.pingedLanes;o=o.warmLanes;var O=u&134217727;return O!==0?(u=O&~v,u!==0?m=Tr(u):(A&=O,A!==0?m=Tr(A):c||(c=O&~o,c!==0&&(m=Tr(c))))):(O=u&~v,O!==0?m=Tr(O):A!==0?m=Tr(A):c||(c=u&~o,c!==0&&(m=Tr(c)))),m===0?0:a!==0&&a!==m&&(a&v)===0&&(v=m&-m,c=a&-a,v>=c||v===32&&(c&4194048)!==0)?a:m}function Ot(o,a){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&a)===0}function sn(o,a){switch(o){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wn(){var o=xa;return xa<<=1,(xa&62914560)===0&&(xa=4194304),o}function Ro(o){for(var a=[],c=0;31>c;c++)a.push(o);return a}function Dt(o,a){o.pendingLanes|=a,a!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function Cn(o,a,c,u,m,v){var A=o.pendingLanes;o.pendingLanes=c,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=c,o.entangledLanes&=c,o.errorRecoveryDisabledLanes&=c,o.shellSuspendCounter=0;var O=o.entanglements,B=o.expirationTimes,J=o.hiddenUpdates;for(c=A&~c;0<c;){var le=31-ie(c),me=1<<le;O[le]=0,B[le]=-1;var ee=J[le];if(ee!==null)for(J[le]=null,le=0;le<ee.length;le++){var se=ee[le];se!==null&&(se.lane&=-536870913)}c&=~me}u!==0&&Ra(o,u,0),v!==0&&m===0&&o.tag!==0&&(o.suspendedLanes|=v&~(A&~a))}function Ra(o,a,c){o.pendingLanes|=a,o.suspendedLanes&=~a;var u=31-ie(a);o.entangledLanes|=a,o.entanglements[u]=o.entanglements[u]|1073741824|c&261930}function On(o,a){var c=o.entangledLanes|=a;for(o=o.entanglements;c;){var u=31-ie(c),m=1<<u;m&a|o[u]&a&&(o[u]|=a),c&=~m}}function $n(o,a){var c=a&-a;return c=(c&42)!==0?1:ms(c),(c&(o.suspendedLanes|a))!==0?0:c}function ms(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function gr(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function _h(){var o=te.p;return o!==0?o:(o=window.event,o===void 0?32:o_(o.type))}function _y(o,a){var c=te.p;try{return te.p=o,a()}finally{te.p=c}}var Eo=Math.random().toString(36).slice(2),hn="__reactFiber$"+Eo,Mn="__reactProps$"+Eo,gs="__reactContainer$"+Eo,wh="__reactEvents$"+Eo,wT="__reactListeners$"+Eo,ST="__reactHandles$"+Eo,wy="__reactResources$"+Eo,Pi="__reactMarker$"+Eo;function Sh(o){delete o[hn],delete o[Mn],delete o[wh],delete o[wT],delete o[ST]}function ys(o){var a=o[hn];if(a)return a;for(var c=o.parentNode;c;){if(a=c[gs]||c[hn]){if(c=a.alternate,a.child!==null||c!==null&&c.child!==null)for(o=Vb(o);o!==null;){if(c=o[hn])return c;o=Vb(o)}return a}o=c,c=o.parentNode}return null}function vs(o){if(o=o[hn]||o[gs]){var a=o.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return o}return null}function Di(o){var a=o.tag;if(a===5||a===26||a===27||a===6)return o.stateNode;throw Error(r(33))}function bs(o){var a=o[wy];return a||(a=o[wy]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function cn(o){o[Pi]=!0}var Sy=new Set,xy={};function Ea(o,a){_s(o,a),_s(o+"Capture",a)}function _s(o,a){for(xy[o]=a,o=0;o<a.length;o++)Sy.add(a[o])}var xT=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
vendor: 6,765 bytes, line 9
9037D\\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]*$"),Ry={},Ey={};function RT(o){return ft.call(Ey,o)?!0:ft.call(Ry,o)?!1:xT.test(o)?Ey[o]=!0:(Ry[o]=!0,!1)}function Sl(o,a,c){if(RT(a))if(c===null)o.removeAttribute(a);else{switch(typeof c){case"undefined":case"function":case"symbol":o.removeAttribute(a);return;case"boolean":var u=a.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){o.removeAttribute(a);return}}o.setAttribute(a,""+c)}}function xl(o,a,c){if(c===null)o.removeAttribute(a);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(a);return}o.setAttribute(a,""+c)}}function qr(o,a,c,u){if(u===null)o.removeAttribute(c);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(c);return}o.setAttributeNS(a,c,""+u)}}function tr(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Ay(o){var a=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function ET(o,a,c){var u=Object.getOwnPropertyDescriptor(o.constructor.prototype,a);if(!o.hasOwnProperty(a)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var m=u.get,v=u.set;return Object.defineProperty(o,a,{configurable:!0,get:function(){return m.call(this)},set:function(A){c=""+A,v.call(this,A)}}),Object.defineProperty(o,a,{enumerable:u.enumerable}),{getValue:function(){return c},setValue:function(A){c=""+A},stopTracking:function(){o._valueTracker=null,delete o[a]}}}}function xh(o){if(!o._valueTracker){var a=Ay(o)?"checked":"value";o._valueTracker=ET(o,a,""+o[a])}}function Ty(o){if(!o)return!1;var a=o._valueTracker;if(!a)return!0;var c=a.getValue(),u="";return o&&(u=Ay(o)?o.checked?"true":"false":o.value),o=u,o!==c?(a.setValue(o),!0):!1}function Rl(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}}var AT=/[\n"\\]/g;function nr(o){return o.replace(AT,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Rh(o,a,c,u,m,v,A,O){o.name="",A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?o.type=A:o.removeAttribute("type"),a!=null?A==="number"?(a===0&&o.value===""||o.value!=a)&&(o.value=""+tr(a)):o.value!==""+tr(a)&&(o.value=""+tr(a)):A!=="submit"&&A!=="reset"||o.removeAttribute("value"),a!=null?Eh(o,A,tr(a)):c!=null?Eh(o,A,tr(c)):u!=null&&o.removeAttribute("value"),m==null&&v!=null&&(o.defaultChecked=!!v),m!=null&&(o.checked=m&&typeof m!="function"&&typeof m!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?o.name=""+tr(O):o.removeAttribute("name")}function ky(o,a,c,u,m,v,A,O){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(o.type=v),a!=null||c!=null){if(!(v!=="submit"&&v!=="reset"||a!=null)){xh(o);return}c=c!=null?""+tr(c):"",a=a!=null?""+tr(a):c,O||a===o.value||(o.value=a),o.defaultValue=a}u=u??m,u=typeof u!="function"&&typeof u!="symbol"&&!!u,o.checked=O?o.checked:!!u,o.defaultChecked=!!u,A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(o.name=A),xh(o)}function Eh(o,a,c){a==="number"&&Rl(o.ownerDocument)===o||o.defaultValue===""+c||(o.defaultValue=""+c)}function ws(o,a,c,u){if(o=o.options,a){a={};for(var m=0;m<c.length;m++)a["$"+c[m]]=!0;for(c=0;c<o.length;c++)m=a.hasOwnProperty("$"+o[c].value),o[c].selected!==m&&(o[c].selected=m),m&&u&&(o[c].defaultSelected=!0)}else{for(c=""+tr(c),a=null,m=0;m<o.length;m++){if(o[m].value===c){o[m].selected=!0,u&&(o[m].defaultSelected=!0);return}a!==null||o[m].disabled||(a=o[m])}a!==null&&(a.selected=!0)}}function Cy(o,a,c){if(a!=null&&(a=""+tr(a),a!==o.value&&(o.value=a),c==null)){o.defaultValue!==a&&(o.defaultValue=a);return}o.defaultValue=c!=null?""+tr(c):""}function Oy(o,a,c,u){if(a==null){if(u!=null){if(c!=null)throw Error(r(92));if(ue(u)){if(1<u.length)throw Error(r(93));u=u[0]}c=u}c==null&&(c=""),a=c}c=tr(a),o.defaultValue=c,u=o.textContent,u===c&&u!==""&&u!==null&&(o.value=u),xh(o)}function Ss(o,a){if(a){var c=o.firstChild;if(c&&c===o.lastChild&&c.nodeType===3){c.nodeValue=a;return}}o.textContent=a}var TT=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function $y(o,a,c){var u=a.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?u?o.setProperty(a,""):a==="float"?o.cssFloat="":o[a]="":u?o.setProperty(a,c):typeof c!="number"||c===0||TT.has(a)?a==="float"?o.cssFloat=c:o[a]=(""+c).trim():o[a]=c+"px"}function My(o,a,c){if(a!=null&&typeof a!="object")throw Error(r(62));if(o=o.style,c!=null){for(var u in c)!c.hasOwnProperty(u)||a!=null&&a.hasOwnProperty(u)||(u.indexOf("--")===0?o.setProperty(u,""):u==="float"?o.cssFloat="":o[u]="");for(var m in a)u=a[m],a.hasOwnProperty(m)&&c[m]!==u&&$y(o,m,u)}else for(var v in a)a.hasOwnProperty(v)&&$y(o,v,a[v])}function Ah(o){if(o.indexOf("-")===-1)return!1;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}}var kT=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
9dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),CT=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function El(o){return CT.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function Hr(){}var Th=null;function kh(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var xs=null,Rs=null;function Ny(o){var a=vs(o);if(a&&(o=a.stateNode)){var c=o[Mn]||null;e:switch(o=a.stateNode,a.type){case"input":if(Rh(o,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),a=c.name,c.type==="radio"&&a!=null){for(c=o;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+nr(""+a)+'"][type="radio"]'),a=0;a<c.length;a++){var u=c[a];if(u!==o&&u.form===o.form){var m=u[Mn]||null;if(!m)throw Error(r(90));Rh(u,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(a=0;a<c.length;a++)u=c[a],u.form===o.form&&Ty(u)}break e;case"textarea":Cy(o,c.value,c.defaultValue);break e;case"select":a=c.value,a!=null&&ws(o,!!c.multiple,a,!1)}}}var Ch=!1;function jy(o,a,c){if(Ch)return o(a,c);Ch=!0;try{var u=o(a);return u}finally{if(Ch=!1,(xs!==null||Rs!==null)&&(hu(),xs&&(a=xs,o=Rs,Rs=xs=null,Ny(a),o)))for(a=0;a<o.length;a++)Ny(o[a])}}function Ii(o,a){var c=o.stateNode;if(c===null)return null;var u=c[Mn]||null;if(u===null)return null;c=u[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(o=o.type,u=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!u;break e;default:o=!1}if(o)return null;if(c&&typeof c!="function")throw Error(r(231,a,typeof c));return c}var Gr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oh=!1;if(Gr)try{var Li={};Object.defineProperty(Li,"passive",{get:function(){Oh=!0}}),window.addEventListener("test",Li,Li),window.removeEventListener("test",Li,Li)}catch{Oh=!1}var Ao=null,$h=null,Al=null;function Py(){if(Al)return Al;var o,a=$h,c=a.length,u,m="value"in Ao?Ao.value:Ao.textContent,v=m.length;for(o=0;o<c&&a[o]===m[o];o++);var A=c-o;for(u=1;u<=A&&a[c-u]===m[v-u];u++);return Al=m.slice(o,1<u?1-u:void 0)}function Tl(o){var a=o.keyCode;
vendor: 2,821 bytes, line 9
9return"charCode"in o?(o=o.charCode,o===0&&a===13&&(o=13)):o=a,o===10&&(o=13),32<=o||o===13?o:0}function kl(){return!0}function Dy(){return!1}function Nn(o){function a(c,u,m,v,A){this._reactName=c,this._targetInst=m,this.type=u,this.nativeEvent=v,this.target=A,this.currentTarget=null;for(var O in o)o.hasOwnProperty(O)&&(c=o[O],this[O]=c?c(v):v[O]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?kl:Dy,this.isPropagationStopped=Dy,this}return y(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=kl)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=kl)},persist:function(){},isPersistent:kl}),a}var Aa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cl=Nn(Aa),zi=y({},Aa,{view:0,detail:0}),OT=Nn(zi),Mh,Nh,Bi,Ol=y({},zi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ph,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!==Bi&&(Bi&&o.type==="mousemove"?(Mh=o.screenX-Bi.screenX,Nh=o.screenY-Bi.screenY):Nh=Mh=0,Bi=o),Mh)},movementY:function(o){return"movementY"in o?o.movementY:Nh}}),Iy=Nn(Ol),$T=y({},Ol,{dataTransfer:0}),MT=Nn($T),NT=y({},zi,{relatedTarget:0}),jh=Nn(NT),jT=y({},Aa,{animationName:0,elapsedTime:0,pseudoElement:0}),PT=Nn(jT),DT=y({},Aa,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),IT=Nn(DT),LT=y({},Aa,{data:0}),Ly=Nn(LT),zT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},BT={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"},UT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function VT(o){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(o):(o=UT[o])?!!a[o]:!1}function Ph(){return VT}var FT=y({},zi,{key:function(o){if(o.key){var a=zT[o.key]||o.key;if(a!=="Unidentified")return a}
vendor: 4,492 bytes, line 9
9return o.type==="keypress"?(o=Tl(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?BT[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ph,charCode:function(o){return o.type==="keypress"?Tl(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Tl(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),qT=Nn(FT),HT=y({},Ol,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zy=Nn(HT),GT=y({},zi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ph}),KT=Nn(GT),ZT=y({},Aa,{propertyName:0,elapsedTime:0,pseudoElement:0}),WT=Nn(ZT),YT=y({},Ol,{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}),JT=Nn(YT),QT=y({},Aa,{newState:0,oldState:0}),XT=Nn(QT),e2=[9,13,27,32],Dh=Gr&&"CompositionEvent"in window,Ui=null;Gr&&"documentMode"in document&&(Ui=document.documentMode);var t2=Gr&&"TextEvent"in window&&!Ui,By=Gr&&(!Dh||Ui&&8<Ui&&11>=Ui),Uy=" ",Vy=!1;function Fy(o,a){switch(o){case"keyup":return e2.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qy(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Es=!1;function n2(o,a){switch(o){case"compositionend":return qy(a);case"keypress":return a.which!==32?null:(Vy=!0,Uy);case"textInput":return o=a.data,o===Uy&&Vy?null:o;default:return null}}function r2(o,a){if(Es)return o==="compositionend"||!Dh&&Fy(o,a)?(o=Py(),Al=$h=Ao=null,Es=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return By&&a.locale!=="ko"?null:a.data;default:return null}}var o2={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 Hy(o){var a=o&&o.nodeName&&o.nodeName.toLowerCase();return a==="input"?!!o2[o.type]:a==="textarea"}function Gy(o,a,c,u){xs?Rs?Rs.push(u):Rs=[u]:xs=u,a=bu(a,"onChange"),0<a.length&&(c=new Cl("onChange","change",null,c,u),o.push({event:c,listeners:a}))}var Vi=null,Fi=null;function a2(o){kb(o,0)}function $l(o){var a=Di(o);if(Ty(a))return o}function Ky(o,a){if(o==="change")return a}var Zy=!1;if(Gr){var Ih;if(Gr){var Lh="oninput"in document;if(!Lh){var Wy=document.createElement("div");Wy.setAttribute("oninput","return;"),Lh=typeof Wy.oninput=="function"}Ih=Lh}else Ih=!1;Zy=Ih&&(!document.documentMode||9<document.documentMode)}function Yy(){Vi&&(Vi.detachEvent("onpropertychange",Jy),Fi=Vi=null)}function Jy(o){if(o.propertyName==="value"&&$l(Fi)){var a=[];Gy(a,Fi,o,kh(o)),jy(a2,a)}}function s2(o,a,c){o==="focusin"?(Yy(),Vi=a,Fi=c,Vi.attachEvent("onpropertychange",Jy)):o==="focusout"&&Yy()}function i2(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return $l(Fi)}function c2(o,a){if(o==="click")return $l(a)}function l2(o,a){if(o==="input"||o==="change")return $l(a)}function u2(o,a){return o===a&&(o!==0||1/o===1/a)||o!==o&&a!==a}var Hn=typeof Object.is=="function"?Object.is:u2;function qi(o,a){if(Hn(o,a))return!0;if(typeof o!="object"||o===null||typeof a!="object"||a===null)return!1;var c=Object.keys(o),u=Object.keys(a);if(c.length!==u.length)return!1;for(u=0;u<c.length;u++){var m=c[u];if(!ft.call(a,m)||!Hn(o[m],a[m]))return!1}return!0}function Qy(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Xy(o,a){var c=Qy(o);o=0;for(var u;c;){if(c.nodeType===3){if(u=o+c.textContent.length,o<=a&&u>=a)return{node:c,offset:a-o};o=u}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=Qy(c)}}function e0(o,a){return o&&a?o===a?!0:o&&o.nodeType===3?!1:a&&a.nodeType===3?e0(o,a.parentNode):"contains"in o?o.contains(a):o.compareDocumentPosition?!!(o.compareDocumentPosition(a)&16):!1:!1}function t0(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var a=Rl(o.document);a instanceof o.HTMLIFrameElement;){try{var c=typeof a.contentWindow.location.href=="string"}catch{c=!1}
vendor: 18,508 bytes, line 9
9if(c)o=a.contentWindow;else break;a=Rl(o.document)}return a}function zh(o){var a=o&&o.nodeName&&o.nodeName.toLowerCase();return a&&(a==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||a==="textarea"||o.contentEditable==="true")}var d2=Gr&&"documentMode"in document&&11>=document.documentMode,As=null,Bh=null,Hi=null,Uh=!1;function n0(o,a,c){var u=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;Uh||As==null||As!==Rl(u)||(u=As,"selectionStart"in u&&zh(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Hi&&qi(Hi,u)||(Hi=u,u=bu(Bh,"onSelect"),0<u.length&&(a=new Cl("onSelect","select",null,a,c),o.push({event:a,listeners:u}),a.target=As)))}function Ta(o,a){var c={};return c[o.toLowerCase()]=a.toLowerCase(),c["Webkit"+o]="webkit"+a,c["Moz"+o]="moz"+a,c}var Ts={animationend:Ta("Animation","AnimationEnd"),animationiteration:Ta("Animation","AnimationIteration"),animationstart:Ta("Animation","AnimationStart"),transitionrun:Ta("Transition","TransitionRun"),transitionstart:Ta("Transition","TransitionStart"),transitioncancel:Ta("Transition","TransitionCancel"),transitionend:Ta("Transition","TransitionEnd")},Vh={},r0={};Gr&&(r0=document.createElement("div").style,"AnimationEvent"in window||(delete Ts.animationend.animation,delete Ts.animationiteration.animation,delete Ts.animationstart.animation),"TransitionEvent"in window||delete Ts.transitionend.transition);function ka(o){if(Vh[o])return Vh[o];if(!Ts[o])return o;var a=Ts[o],c;for(c in a)if(a.hasOwnProperty(c)&&c in r0)return Vh[o]=a[c];return o}var o0=ka("animationend"),a0=ka("animationiteration"),s0=ka("animationstart"),h2=ka("transitionrun"),f2=ka("transitionstart"),p2=ka("transitioncancel"),i0=ka("transitionend"),c0=new Map,Fh="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Fh.push("scrollEnd");function yr(o,a){c0.set(o,a),Ea(a,[o])}var Ml=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},rr=[],ks=0,qh=0;function Nl(){for(var o=ks,a=qh=ks=0;a<o;){var c=rr[a];rr[a++]=null;var u=rr[a];rr[a++]=null;var m=rr[a];rr[a++]=null;var v=rr[a];if(rr[a++]=null,u!==null&&m!==null){var A=u.pending;A===null?m.next=m:(m.next=A.next,A.next=m),u.pending=m}v!==0&&l0(c,m,v)}}function jl(o,a,c,u){rr[ks++]=o,rr[ks++]=a,rr[ks++]=c,rr[ks++]=u,qh|=u,o.lanes|=u,o=o.alternate,o!==null&&(o.lanes|=u)}function Hh(o,a,c,u){return jl(o,a,c,u),Pl(o)}function Ca(o,a){return jl(o,null,null,a),Pl(o)}function l0(o,a,c){o.lanes|=c;var u=o.alternate;u!==null&&(u.lanes|=c);for(var m=!1,v=o.return;v!==null;)v.childLanes|=c,u=v.alternate,u!==null&&(u.childLanes|=c),v.tag===22&&(o=v.stateNode,o===null||o._visibility&1||(m=!0)),o=v,v=v.return;return o.tag===3?(v=o.stateNode,m&&a!==null&&(m=31-ie(c),o=v.hiddenUpdates,u=o[m],u===null?o[m]=[a]:u.push(a),a.lane=c|536870912),v):null}function Pl(o){if(50<fc)throw fc=0,tp=null,Error(r(185));for(var a=o.return;a!==null;)o=a,a=o.return;return o.tag===3?o.stateNode:null}var Cs={};function m2(o,a,c,u){this.tag=o,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gn(o,a,c,u){return new m2(o,a,c,u)}function Gh(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Kr(o,a){var c=o.alternate;return c===null?(c=Gn(o.tag,a,o.key,o.mode),c.elementType=o.elementType,c.type=o.type,c.stateNode=o.stateNode,c.alternate=o,o.alternate=c):(c.pendingProps=a,c.type=o.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=o.flags&65011712,c.childLanes=o.childLanes,c.lanes=o.lanes,c.child=o.child,c.memoizedProps=o.memoizedProps,c.memoizedState=o.memoizedState,c.updateQueue=o.updateQueue,a=o.dependencies,c.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},c.sibling=o.sibling,c.index=o.index,c.ref=o.ref,c.refCleanup=o.refCleanup,c}function u0(o,a){o.flags&=65011714;var c=o.alternate;return c===null?(o.childLanes=0,o.lanes=a,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=c.childLanes,o.lanes=c.lanes,o.child=c.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=c.memoizedProps,o.memoizedState=c.memoizedState,o.updateQueue=c.updateQueue,o.type=c.type,a=c.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),o}function Dl(o,a,c,u,m,v){var A=0;if(u=o,typeof o=="function")Gh(o)&&(A=1);else if(typeof o=="string")A=_k(o,c,ce.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case ne:return o=Gn(31,c,a,m),o.elementType=ne,o.lanes=v,o;case E:return Oa(c.children,m,v,a);case x:A=8,m|=24;break;case k:return o=Gn(12,c,a,m|2),o.elementType=k,o.lanes=v,o;case F:return o=Gn(13,c,a,m),o.elementType=F,o.lanes=v,o;case G:return o=Gn(19,c,a,m),o.elementType=G,o.lanes=v,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case P:A=10;break e;case M:A=9;break e;case I:A=11;break e;case U:A=14;break e;case V:A=16,u=null;break e}A=29,c=Error(r(130,o===null?"null":typeof o,"")),u=null}return a=Gn(A,c,a,m),a.elementType=o,a.type=u,a.lanes=v,a}function Oa(o,a,c,u){return o=Gn(7,o,u,a),o.lanes=c,o}function Kh(o,a,c){return o=Gn(6,o,null,a),o.lanes=c,o}function d0(o){var a=Gn(18,null,null,0);return a.stateNode=o,a}function Zh(o,a,c){return a=Gn(4,o.children!==null?o.children:[],o.key,a),a.lanes=c,a.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},a}var h0=new WeakMap;function or(o,a){if(typeof o=="object"&&o!==null){var c=h0.get(o);return c!==void 0?c:(a={value:o,source:a,stack:yt(a)},h0.set(o,a),a)}return{value:o,source:a,stack:yt(a)}}var Os=[],$s=0,Il=null,Gi=0,ar=[],sr=0,To=null,kr=1,Cr="";function Zr(o,a){Os[$s++]=Gi,Os[$s++]=Il,Il=o,Gi=a}function f0(o,a,c){ar[sr++]=kr,ar[sr++]=Cr,ar[sr++]=To,To=o;var u=kr;o=Cr;var m=32-ie(u)-1;u&=~(1<<m),c+=1;var v=32-ie(a)+m;if(30<v){var A=m-m%5;v=(u&(1<<A)-1).toString(32),u>>=A,m-=A,kr=1<<32-ie(a)+m|c<<m|u,Cr=v+o}else kr=1<<v|c<<m|u,Cr=o}function Wh(o){o.return!==null&&(Zr(o,1),f0(o,1,0))}function Yh(o){for(;o===Il;)Il=Os[--$s],Os[$s]=null,Gi=Os[--$s],Os[$s]=null;for(;o===To;)To=ar[--sr],ar[sr]=null,Cr=ar[--sr],ar[sr]=null,kr=ar[--sr],ar[sr]=null}function p0(o,a){ar[sr++]=kr,ar[sr++]=Cr,ar[sr++]=To,kr=a.id,Cr=a.overflow,To=o}var fn=null,kt=null,ot=!1,ko=null,ir=!1,Jh=Error(r(519));function Co(o){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ki(or(a,o)),Jh}function m0(o){var a=o.stateNode,c=o.type,u=o.memoizedProps;switch(a[hn]=o,a[Mn]=u,c){case"dialog":et("cancel",a),et("close",a);break;case"iframe":case"object":case"embed":et("load",a);break;case"video":case"audio":for(c=0;c<mc.length;c++)et(mc[c],a);break;case"source":et("error",a);break;case"img":case"image":case"link":et("error",a),et("load",a);break;case"details":et("toggle",a);break;case"input":et("invalid",a),ky(a,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":et("invalid",a);break;case"textarea":et("invalid",a),Oy(a,u.value,u.defaultValue,u.children)}c=u.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||a.textContent===""+c||u.suppressHydrationWarning===!0||Mb(a.textContent,c)?(u.popover!=null&&(et("beforetoggle",a),et("toggle",a)),u.onScroll!=null&&et("scroll",a),u.onScrollEnd!=null&&et("scrollend",a),u.onClick!=null&&(a.onclick=Hr),a=!0):a=!1,a||Co(o,!0)}function g0(o){for(fn=o.return;fn;)switch(fn.tag){case 5:case 31:case 13:ir=!1;return;case 27:case 3:ir=!0;return;default:fn=fn.return}}function Ms(o){if(o!==fn)return!1;if(!ot)return g0(o),ot=!0,!1;var a=o.tag,c;if((c=a!==3&&a!==27)&&((c=a===5)&&(c=o.type,c=!(c!=="form"&&c!=="button")||gp(o.type,o.memoizedProps)),c=!c),c&&kt&&Co(o),g0(o),a===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));kt=Ub(o)}else if(a===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));kt=Ub(o)}else a===27?(a=kt,Fo(o.type)?(o=wp,wp=null,kt=o):kt=a):kt=fn?lr(o.stateNode.nextSibling):null;return!0}function $a(){kt=fn=null,ot=!1}function Qh(){var o=ko;return o!==null&&(In===null?In=o:In.push.apply(In,o),ko=null),o}function Ki(o){ko===null?ko=[o]:ko.push(o)}var Xh=L(null),Ma=null,Wr=null;function Oo(o,a,c){oe(Xh,a._currentValue),a._currentValue=c}function Yr(o){o._currentValue=Xh.current,ae(Xh)}function ef(o,a,c){for(;o!==null;){var u=o.alternate;if((o.childLanes&a)!==a?(o.childLanes|=a,u!==null&&(u.childLanes|=a)):u!==null&&(u.childLanes&a)!==a&&(u.childLanes|=a),o===c)break;o=o.return}}function tf(o,a,c,u){var m=o.child;for(m!==null&&(m.return=o);m!==null;){var v=m.dependencies;if(v!==null){var A=m.child;v=v.firstContext;e:for(;v!==null;){var O=v;v=m;for(var B=0;B<a.length;B++)if(O.context===a[B]){v.lanes|=c,O=v.alternate,O!==null&&(O.lanes|=c),ef(v.return,c,o),u||(A=null);break e}v=O.next}}else if(m.tag===18){if(A=m.return,A===null)throw Error(r(341));A.lanes|=c,v=A.alternate,v!==null&&(v.lanes|=c),ef(A,c,o),A=null}else A=m.child;if(A!==null)A.return=m;else for(A=m;A!==null;){if(A===o){A=null;break}if(m=A.sibling,m!==null){m.return=A.return,A=m;break}A=A.return}m=A}}function Ns(o,a,c,u){o=null;for(var m=a,v=!1;m!==null;){if(!v){if((m.flags&524288)!==0)v=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var A=m.alternate;if(A===null)throw Error(r(387));if(A=A.memoizedProps,A!==null){var O=m.type;Hn(m.pendingProps.value,A.value)||(o!==null?o.push(O):o=[O])}}else if(m===Le.current){if(A=m.alternate,A===null)throw Error(r(387));A.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(o!==null?o.push(_c):o=[_c])}m=m.return}o!==null&&tf(a,o,c,u),a.flags|=262144}function Ll(o){for(o=o.firstContext;o!==null;){if(!Hn(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Na(o){Ma=o,Wr=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function pn(o){return y0(Ma,o)}function zl(o,a){return Ma===null&&Na(o),y0(o,a)}function y0(o,a){var c=a._currentValue;if(a={context:a,memoizedValue:c,next:null},Wr===null){if(o===null)throw Error(r(308));Wr=a,o.dependencies={lanes:0,firstContext:a},o.flags|=524288}else Wr=Wr.next=a;return c}var g2=typeof AbortController<"u"?AbortController:function(){var o=[],a=this.signal={aborted:!1,addEventListener:function(c,u){o.push(u)}};this.abort=function(){a.aborted=!0,o.forEach(function(c){return c()})}},y2=e.unstable_scheduleCallback,v2=e.unstable_NormalPriority,Wt={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function nf(){return{controller:new g2,data:new Map,refCount:0}}function Zi(o){o.refCount--,o.refCount===0&&y2(v2,function(){o.controller.abort()})}var Wi=null,rf=0,js=0,Ps=null;function b2(o,a){if(Wi===null){var c=Wi=[];rf=0,js=ip(),Ps={status:"pending",value:void 0,then:function(u){c.push(u)}}}return rf++,a.then(v0,v0),a}function v0(){if(--rf===0&&Wi!==null){Ps!==null&&(Ps.status="fulfilled");var o=Wi;Wi=null,js=0,Ps=null;for(var a=0;a<o.length;a++)(0,o[a])()}}function _2(o,a){var c=[],u={status:"pending",value:null,reason:null,then:function(m){c.push(m)}};return o.then(function(){u.status="fulfilled",u.value=a;for(var m=0;m<c.length;m++)(0,c[m])(a)},function(m){for(u.status="rejected",u.reason=m,m=0;m<c.length;m++)(0,c[m])(void 0)}),u}var b0=z.S;z.S=function(o,a){nb=Pt(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&b2(o,a),b0!==null&&b0(o,a)};var ja=L(null);function of(){var o=ja.current;return o!==null?o:xt.pooledCache}function Bl(o,a){a===null?oe(ja,ja.current):oe(ja,a.pool)}function _0(){var o=of();return o===null?null:{parent:Wt._currentValue,pool:o}}var Ds=Error(r(460)),af=Error(r(474)),Ul=Error(r(542)),Vl={then:function(){}};function w0(o){return o=o.status,o==="fulfilled"||o==="rejected"}function S0(o,a,c){switch(c=o[c],c===void 0?o.push(a):c!==a&&(a.then(Hr,Hr),a=c),a.status){case"fulfilled":return a.value;case"rejected":throw o=a.reason,R0(o),o;default:if(typeof a.status=="string")a.then(Hr,Hr);else{if(o=xt,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=a,o.status="pending",o.then(function(u){if(a.status==="pending"){var m=a;m.status="fulfilled",m.value=u}},function(u){if(a.status==="pending"){var m=a;m.status="rejected",m.reason=u}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw o=a.reason,R0(o),o}throw Da=a,Ds}}function Pa(o){try{var a=o._init;return a(o._payload)}catch(c){throw c!==null&&typeof c=="object"&&typeof c.then=="function"?(Da=c,Ds):c}}var Da=null;function x0(){if(Da===null)throw Error(r(459));var o=Da;return Da=null,o}function R0(o){if(o===Ds||o===Ul)throw Error(r(483))}var Is=null,Yi=0;function Fl(o){var a=Yi;return Yi+=1,Is===null&&(Is=[]),S0(Is,o,a)}function Ji(o,a){a=a.props.ref,o.ref=a!==void 0?a:null}function ql(o,a){throw a.$$typeof===b?Error(r(525)):(o=Object.prototype.toString.call(a),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":o)))}function E0(o){function a(Z,q){if(o){var Y=Z.deletions;Y===null?(Z.deletions=[q],Z.flags|=16):Y.push(q)}}function c(Z,q){if(!o)return null;for(;q!==null;)a(Z,q),q=q.sibling;return null}function u(Z){for(var q=new Map;Z!==null;)Z.key!==null?q.set(Z.key,Z):q.set(Z.index,Z),Z=Z.sibling;return q}function m(Z,q){return Z=Kr(Z,q),Z.index=0,Z.sibling=null,Z}function v(Z,q,Y){return Z.index=Y,o?(Y=Z.alternate,Y!==null?(Y=Y.index,Y<q?(Z.flags|=67108866,q):Y):(Z.flags|=67108866,q)):(Z.flags|=1048576,q)}function A(Z){return o&&Z.alternate===null&&(Z.flags|=67108866),Z}function O(Z,q,Y,fe){return q===null||q.tag!==6?(q=Kh(Y,Z.mode,fe),q.return=Z,q):(q=m(q,Y),q.return=Z,q)}function B(Z,q,Y,fe){var Be=Y.type;return Be===E?le(Z,q,Y.props.children,fe,Y.key):q!==null&&(q.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===V&&Pa(Be)===q.type)?(q=m(q,Y.props),Ji(q,Y),q.return=Z,q):(q=Dl(Y.type,Y.key,Y.props,null,Z.mode,fe),Ji(q,Y),q.return=Z,q)}function J(Z,q,Y,fe){return q===null||q.tag!==4||q.stateNode.containerInfo!==Y.containerInfo||q.stateNode.implementation!==Y.implementation?(q=Zh(Y,Z.mode,fe),q.return=Z,q):(q=m(q,Y.children||[]),q.return=Z,q)}function le(Z,q,Y,fe,Be){return q===null||q.tag!==7?(q=Oa(Y,Z.mode,fe,Be),q.return=Z,q):(q=m(q,Y),q.return=Z,q)}function me(Z,q,Y){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return q=Kh(""+q,Z.mode,Y),q.return=Z,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case _:return Y=Dl(q.type,q.key,q.props,null,Z.mode,Y),Ji(Y,q),Y.return=Z,Y;case S:return q=Zh(q,Z.mode,Y),q.return=Z,q;case V:return q=Pa(q),me(Z,q,Y)}if(ue(q)||de(q))return q=Oa(q,Z.mode,Y,null),q.return=Z,q;if(typeof q.then=="function")return me(Z,Fl(q),Y);if(q.$$typeof===P)return me(Z,zl(Z,q),Y);ql(Z,q)}return null}function ee(Z,q,Y,fe){var Be=q!==null?q.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Be!==null?null:O(Z,q,""+Y,fe);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case _:return Y.key===Be?B(Z,q,Y,fe):null;case S:return Y.key===Be?J(Z,q,Y,fe):null;case V:return Y=Pa(Y),ee(Z,q,Y,fe)}if(ue(Y)||de(Y))return Be!==null?null:le(Z,q,Y,fe,null);if(typeof Y.then=="function")return ee(Z,q,Fl(Y),fe);if(Y.$$typeof===P)return ee(Z,q,zl(Z,Y),fe);ql(Z,Y)}return null}function se(Z,q,Y,fe,Be){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return Z=Z.get(Y)||null,O(q,Z,""+fe,Be);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case _:return Z=Z.get(fe.key===null?Y:fe.key)||null,B(q,Z,fe,Be);case S:return Z=Z.get(fe.key===null?Y:fe.key)||null,J(q,Z,fe,Be);case V:return fe=Pa(fe),se(Z,q,Y,fe,Be)}if(ue(fe)||de(fe))return Z=Z.get(Y)||null,le(q,Z,fe,Be,null);if(typeof fe.then=="function")return se(Z,q,Y,Fl(fe),Be);if(fe.$$typeof===P)return se(Z,q,Y,zl(q,fe),Be);ql(q,fe)}return null}function Me(Z,q,Y,fe){for(var Be=null,lt=null,Ie=q,We=q=0,nt=null;Ie!==null&&We<Y.length;We++){Ie.index>We?(nt=Ie,Ie=null):nt=Ie.sibling;var ut=ee(Z,Ie,Y[We],fe);if(ut===null){Ie===null&&(Ie=nt);break}o&&Ie&&ut.alternate===null&&a(Z,Ie),q=v(ut,q,We),lt===null?Be=ut:lt.sibling=ut,lt=ut,Ie=nt}if(We===Y.length)return c(Z,Ie),ot&&Zr(Z,We),Be;if(Ie===null){for(;We<Y.length;We++)Ie=me(Z,Y[We],fe),Ie!==null&&(q=v(Ie,q,We),lt===null?Be=Ie:lt.sibling=Ie,lt=Ie);return ot&&Zr(Z,We),Be}for(Ie=u(Ie);We<Y.length;We++)nt=se(Ie,Z,We,Y[We],fe),nt!==null&&(o&&nt.alternate!==null&&Ie.delete(nt.key===null?We:nt.key),q=v(nt,q,We),lt===null?Be=nt:lt.sibling=nt,lt=nt);return o&&Ie.forEach(function(Zo){return a(Z,Zo)}),ot&&Zr(Z,We),Be}function Ve(Z,q,Y,fe){if(Y==null)throw Error(r(151));for(var Be=null,lt=null,Ie=q,We=q=0,nt=null,ut=Y.next();Ie!==null&&!ut.done;We++,ut=Y.next()){Ie.index>We?(nt=Ie,Ie=null):nt=Ie.sibling;var Zo=ee(Z,Ie,ut.value,fe);if(Zo===null){Ie===null&&(Ie=nt);break}o&&Ie&&Zo.alternate===null&&a(Z,Ie),q=v(Zo,q,We),lt===null?Be=Zo:lt.sibling=Zo,lt=Zo,Ie=nt}if(ut.done)return c(Z,Ie),ot&&Zr(Z,We),Be;if(Ie===null){for(;!ut.done;We++,ut=Y.next())ut=me(Z,ut.value,fe),ut!==null&&(q=v(ut,q,We),lt===null?Be=ut:lt.sibling=ut,lt=ut);return ot&&Zr(Z,We),Be}for(Ie=u(Ie);!ut.done;We++,ut=Y.next())ut=se(Ie,Z,We,ut.value,fe),ut!==null&&(o&&ut.alternate!==null&&Ie.delete(ut.key===null?We:ut.key),q=v(ut,q,We),lt===null?Be=ut:lt.sibling=ut,lt=ut);
vendor: 4,537 bytes, line 9
9return o&&Ie.forEach(function($k){return a(Z,$k)}),ot&&Zr(Z,We),Be}function wt(Z,q,Y,fe){if(typeof Y=="object"&&Y!==null&&Y.type===E&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case _:e:{for(var Be=Y.key;q!==null;){if(q.key===Be){if(Be=Y.type,Be===E){if(q.tag===7){c(Z,q.sibling),fe=m(q,Y.props.children),fe.return=Z,Z=fe;break e}}else if(q.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===V&&Pa(Be)===q.type){c(Z,q.sibling),fe=m(q,Y.props),Ji(fe,Y),fe.return=Z,Z=fe;break e}c(Z,q);break}else a(Z,q);q=q.sibling}Y.type===E?(fe=Oa(Y.props.children,Z.mode,fe,Y.key),fe.return=Z,Z=fe):(fe=Dl(Y.type,Y.key,Y.props,null,Z.mode,fe),Ji(fe,Y),fe.return=Z,Z=fe)}return A(Z);case S:e:{for(Be=Y.key;q!==null;){if(q.key===Be)if(q.tag===4&&q.stateNode.containerInfo===Y.containerInfo&&q.stateNode.implementation===Y.implementation){c(Z,q.sibling),fe=m(q,Y.children||[]),fe.return=Z,Z=fe;break e}else{c(Z,q);break}else a(Z,q);q=q.sibling}fe=Zh(Y,Z.mode,fe),fe.return=Z,Z=fe}return A(Z);case V:return Y=Pa(Y),wt(Z,q,Y,fe)}if(ue(Y))return Me(Z,q,Y,fe);if(de(Y)){if(Be=de(Y),typeof Be!="function")throw Error(r(150));return Y=Be.call(Y),Ve(Z,q,Y,fe)}if(typeof Y.then=="function")return wt(Z,q,Fl(Y),fe);if(Y.$$typeof===P)return wt(Z,q,zl(Z,Y),fe);ql(Z,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,q!==null&&q.tag===6?(c(Z,q.sibling),fe=m(q,Y),fe.return=Z,Z=fe):(c(Z,q),fe=Kh(Y,Z.mode,fe),fe.return=Z,Z=fe),A(Z)):c(Z,q)}return function(Z,q,Y,fe){try{Yi=0;var Be=wt(Z,q,Y,fe);return Is=null,Be}catch(Ie){if(Ie===Ds||Ie===Ul)throw Ie;var lt=Gn(29,Ie,null,Z.mode);return lt.lanes=fe,lt.return=Z,lt}}}var Ia=E0(!0),A0=E0(!1),$o=!1;function sf(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cf(o,a){o=o.updateQueue,a.updateQueue===o&&(a.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Mo(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function No(o,a,c){var u=o.updateQueue;if(u===null)return null;if(u=u.shared,(dt&2)!==0){var m=u.pending;return m===null?a.next=a:(a.next=m.next,m.next=a),u.pending=a,a=Pl(o),l0(o,null,c),a}return jl(o,u,a,c),Pl(o)}function Qi(o,a,c){if(a=a.updateQueue,a!==null&&(a=a.shared,(c&4194048)!==0)){var u=a.lanes;u&=o.pendingLanes,c|=u,a.lanes=c,On(o,c)}}function lf(o,a){var c=o.updateQueue,u=o.alternate;if(u!==null&&(u=u.updateQueue,c===u)){var m=null,v=null;if(c=c.firstBaseUpdate,c!==null){do{var A={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};v===null?m=v=A:v=v.next=A,c=c.next}while(c!==null);v===null?m=v=a:v=v.next=a}else m=v=a;c={baseState:u.baseState,firstBaseUpdate:m,lastBaseUpdate:v,shared:u.shared,callbacks:u.callbacks},o.updateQueue=c;return}o=c.lastBaseUpdate,o===null?c.firstBaseUpdate=a:o.next=a,c.lastBaseUpdate=a}var uf=!1;function Xi(){if(uf){var o=Ps;if(o!==null)throw o}}function ec(o,a,c,u){uf=!1;var m=o.updateQueue;$o=!1;var v=m.firstBaseUpdate,A=m.lastBaseUpdate,O=m.shared.pending;if(O!==null){m.shared.pending=null;var B=O,J=B.next;B.next=null,A===null?v=J:A.next=J,A=B;var le=o.alternate;le!==null&&(le=le.updateQueue,O=le.lastBaseUpdate,O!==A&&(O===null?le.firstBaseUpdate=J:O.next=J,le.lastBaseUpdate=B))}if(v!==null){var me=m.baseState;A=0,le=J=B=null,O=v;do{var ee=O.lane&-536870913,se=ee!==O.lane;if(se?(tt&ee)===ee:(u&ee)===ee){ee!==0&&ee===js&&(uf=!0),le!==null&&(le=le.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var Me=o,Ve=O;ee=a;var wt=c;switch(Ve.tag){case 1:if(Me=Ve.payload,typeof Me=="function"){me=Me.call(wt,me,ee);break e}me=Me;break e;case 3:Me.flags=Me.flags&-65537|128;case 0:if(Me=Ve.payload,ee=typeof Me=="function"?Me.call(wt,me,ee):Me,ee==null)break e;me=y({},me,ee);break e;case 2:$o=!0}}ee=O.callback,ee!==null&&(o.flags|=64,se&&(o.flags|=8192),se=m.callbacks,se===null?m.callbacks=[ee]:se.push(ee))}else se={lane:ee,tag:O.tag,payload:O.payload,callback:O.callback,next:null},le===null?(J=le=se,B=me):le=le.next=se,A|=ee;if(O=O.next,O===null){if(O=m.shared.pending,O===null)break;se=O,O=se.next,se.next=null,m.lastBaseUpdate=se,m.shared.pending=null}}while(!0);le===null&&(B=me),m.baseState=B,m.firstBaseUpdate=J,m.lastBaseUpdate=le,v===null&&(m.shared.lanes=0),Lo|=A,o.lanes=A,o.memoizedState=me}}function T0(o,a){if(typeof o!="function")throw Error(r(191,o));o.call(a)}function k0(o,a){var c=o.callbacks;
vendor: 4,101 bytes, line 9
9if(c!==null)for(o.callbacks=null,o=0;o<c.length;o++)T0(c[o],a)}var Ls=L(null),Hl=L(0);function C0(o,a){o=ao,oe(Hl,o),oe(Ls,a),ao=o|a.baseLanes}function df(){oe(Hl,ao),oe(Ls,Ls.current)}function hf(){ao=Hl.current,ae(Ls),ae(Hl)}var Kn=L(null),cr=null;function jo(o){var a=o.alternate;oe(Ft,Ft.current&1),oe(Kn,o),cr===null&&(a===null||Ls.current!==null||a.memoizedState!==null)&&(cr=o)}function ff(o){oe(Ft,Ft.current),oe(Kn,o),cr===null&&(cr=o)}function O0(o){o.tag===22?(oe(Ft,Ft.current),oe(Kn,o),cr===null&&(cr=o)):Po()}function Po(){oe(Ft,Ft.current),oe(Kn,Kn.current)}function Zn(o){ae(Kn),cr===o&&(cr=null),ae(Ft)}var Ft=L(0);function Gl(o){for(var a=o;a!==null;){if(a.tag===13){var c=a.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||bp(c)||_p(c)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(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 null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Jr=0,Ke=null,bt=null,Yt=null,Kl=!1,zs=!1,La=!1,Zl=0,tc=0,Bs=null,w2=0;function Bt(){throw Error(r(321))}function pf(o,a){if(a===null)return!1;for(var c=0;c<a.length&&c<o.length;c++)if(!Hn(o[c],a[c]))return!1;return!0}function mf(o,a,c,u,m,v){return Jr=v,Ke=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,z.H=o===null||o.memoizedState===null?fv:Of,La=!1,v=c(u,m),La=!1,zs&&(v=M0(a,c,u,m)),$0(o),v}function $0(o){z.H=oc;var a=bt!==null&&bt.next!==null;if(Jr=0,Yt=bt=Ke=null,Kl=!1,tc=0,Bs=null,a)throw Error(r(300));o===null||Jt||(o=o.dependencies,o!==null&&Ll(o)&&(Jt=!0))}function M0(o,a,c,u){Ke=o;var m=0;do{if(zs&&(Bs=null),tc=0,zs=!1,25<=m)throw Error(r(301));if(m+=1,Yt=bt=null,o.updateQueue!=null){var v=o.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}z.H=pv,v=a(c,u)}while(zs);return v}function S2(){var o=z.H,a=o.useState()[0];return a=typeof a.then=="function"?nc(a):a,o=o.useState()[0],(bt!==null?bt.memoizedState:null)!==o&&(Ke.flags|=1024),a}function gf(){var o=Zl!==0;return Zl=0,o}function yf(o,a,c){a.updateQueue=o.updateQueue,a.flags&=-2053,o.lanes&=~c}function vf(o){if(Kl){for(o=o.memoizedState;o!==null;){var a=o.queue;a!==null&&(a.pending=null),o=o.next}Kl=!1}Jr=0,Yt=bt=Ke=null,zs=!1,tc=Zl=0,Bs=null}function Rn(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?Ke.memoizedState=Yt=o:Yt=Yt.next=o,Yt}function qt(){if(bt===null){var o=Ke.alternate;o=o!==null?o.memoizedState:null}else o=bt.next;var a=Yt===null?Ke.memoizedState:Yt.next;if(a!==null)Yt=a,bt=o;else{if(o===null)throw Ke.alternate===null?Error(r(467)):Error(r(310));bt=o,o={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},Yt===null?Ke.memoizedState=Yt=o:Yt=Yt.next=o}return Yt}function Wl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nc(o){var a=tc;return tc+=1,Bs===null&&(Bs=[]),o=S0(Bs,o,a),a=Ke,(Yt===null?a.memoizedState:Yt.next)===null&&(a=a.alternate,z.H=a===null||a.memoizedState===null?fv:Of),o}function Yl(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return nc(o);if(o.$$typeof===P)return pn(o)}throw Error(r(438,String(o)))}function bf(o){var a=null,c=Ke.updateQueue;if(c!==null&&(a=c.memoCache),a==null){var u=Ke.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(a={data:u.data.map(function(m){return m.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),c===null&&(c=Wl(),Ke.updateQueue=c),c.memoCache=a,c=a.data[a.index],c===void 0)for(c=a.data[a.index]=Array(o),u=0;u<o;u++)c[u]=W;return a.index++,c}function Qr(o,a){return typeof a=="function"?a(o):a}function Jl(o){var a=qt();return _f(a,bt,o)}function _f(o,a,c){var u=o.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=c;var m=o.baseQueue,v=u.pending;if(v!==null){if(m!==null){var A=m.next;
vendor: 6,158 bytes, line 9
9m.next=v.next,v.next=A}a.baseQueue=m=v,u.pending=null}if(v=o.baseState,m===null)o.memoizedState=v;else{a=m.next;var O=A=null,B=null,J=a,le=!1;do{var me=J.lane&-536870913;if(me!==J.lane?(tt&me)===me:(Jr&me)===me){var ee=J.revertLane;if(ee===0)B!==null&&(B=B.next={lane:0,revertLane:0,gesture:null,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null}),me===js&&(le=!0);else if((Jr&ee)===ee){J=J.next,ee===js&&(le=!0);continue}else me={lane:0,revertLane:J.revertLane,gesture:null,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},B===null?(O=B=me,A=v):B=B.next=me,Ke.lanes|=ee,Lo|=ee;me=J.action,La&&c(v,me),v=J.hasEagerState?J.eagerState:c(v,me)}else ee={lane:me,revertLane:J.revertLane,gesture:J.gesture,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},B===null?(O=B=ee,A=v):B=B.next=ee,Ke.lanes|=me,Lo|=me;J=J.next}while(J!==null&&J!==a);if(B===null?A=v:B.next=O,!Hn(v,o.memoizedState)&&(Jt=!0,le&&(c=Ps,c!==null)))throw c;o.memoizedState=v,o.baseState=A,o.baseQueue=B,u.lastRenderedState=v}return m===null&&(u.lanes=0),[o.memoizedState,u.dispatch]}function wf(o){var a=qt(),c=a.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=o;var u=c.dispatch,m=c.pending,v=a.memoizedState;if(m!==null){c.pending=null;var A=m=m.next;do v=o(v,A.action),A=A.next;while(A!==m);Hn(v,a.memoizedState)||(Jt=!0),a.memoizedState=v,a.baseQueue===null&&(a.baseState=v),c.lastRenderedState=v}return[v,u]}function N0(o,a,c){var u=Ke,m=qt(),v=ot;if(v){if(c===void 0)throw Error(r(407));c=c()}else c=a();var A=!Hn((bt||m).memoizedState,c);if(A&&(m.memoizedState=c,Jt=!0),m=m.queue,Rf(D0.bind(null,u,m,o),[o]),m.getSnapshot!==a||A||Yt!==null&&Yt.memoizedState.tag&1){if(u.flags|=2048,Us(9,{destroy:void 0},P0.bind(null,u,m,c,a),null),xt===null)throw Error(r(349));v||(Jr&127)!==0||j0(u,a,c)}return c}function j0(o,a,c){o.flags|=16384,o={getSnapshot:a,value:c},a=Ke.updateQueue,a===null?(a=Wl(),Ke.updateQueue=a,a.stores=[o]):(c=a.stores,c===null?a.stores=[o]:c.push(o))}function P0(o,a,c,u){a.value=c,a.getSnapshot=u,I0(a)&&L0(o)}function D0(o,a,c){return c(function(){I0(a)&&L0(o)})}function I0(o){var a=o.getSnapshot;o=o.value;try{var c=a();return!Hn(o,c)}catch{return!0}}function L0(o){var a=Ca(o,2);a!==null&&Ln(a,o,2)}function Sf(o){var a=Rn();if(typeof o=="function"){var c=o;if(o=c(),La){X(!0);try{c()}finally{X(!1)}}}return a.memoizedState=a.baseState=o,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qr,lastRenderedState:o},a}function z0(o,a,c,u){return o.baseState=c,_f(o,bt,typeof u=="function"?u:Qr)}function x2(o,a,c,u,m){if(eu(o))throw Error(r(485));if(o=a.action,o!==null){var v={payload:m,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(A){v.listeners.push(A)}};z.T!==null?c(!0):v.isTransition=!1,u(v),c=a.pending,c===null?(v.next=a.pending=v,B0(a,v)):(v.next=c.next,a.pending=c.next=v)}}function B0(o,a){var c=a.action,u=a.payload,m=o.state;if(a.isTransition){var v=z.T,A={};z.T=A;try{var O=c(m,u),B=z.S;B!==null&&B(A,O),U0(o,a,O)}catch(J){xf(o,a,J)}finally{v!==null&&A.types!==null&&(v.types=A.types),z.T=v}}else try{v=c(m,u),U0(o,a,v)}catch(J){xf(o,a,J)}}function U0(o,a,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(u){V0(o,a,u)},function(u){return xf(o,a,u)}):V0(o,a,c)}function V0(o,a,c){a.status="fulfilled",a.value=c,F0(a),o.state=c,a=o.pending,a!==null&&(c=a.next,c===a?o.pending=null:(c=c.next,a.next=c,B0(o,c)))}function xf(o,a,c){var u=o.pending;if(o.pending=null,u!==null){u=u.next;do a.status="rejected",a.reason=c,F0(a),a=a.next;while(a!==u)}o.action=null}function F0(o){o=o.listeners;for(var a=0;a<o.length;a++)(0,o[a])()}function q0(o,a){return a}function H0(o,a){if(ot){var c=xt.formState;if(c!==null){e:{var u=Ke;if(ot){if(kt){t:{for(var m=kt,v=ir;m.nodeType!==8;){if(!v){m=null;break t}if(m=lr(m.nextSibling),m===null){m=null;break t}}v=m.data,m=v==="F!"||v==="F"?m:null}if(m){kt=lr(m.nextSibling),u=m.data==="F!";break e}}Co(u)}u=!1}u&&(a=c[0])}}return c=Rn(),c.memoizedState=c.baseState=a,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:q0,lastRenderedState:a},c.queue=u,c=uv.bind(null,Ke,u),u.dispatch=c,u=Sf(!1),v=Cf.bind(null,Ke,!1,u.queue),u=Rn(),m={state:a,dispatch:null,action:o,pending:null},u.queue=m,c=x2.bind(null,Ke,m,v,c),m.dispatch=c,u.memoizedState=o,[a,c,!1]}function G0(o){var a=qt();return K0(a,bt,o)}function K0(o,a,c){if(a=_f(o,a,q0)[0],o=Jl(Qr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var u=nc(a)}catch(A){throw A===Ds?Ul:A}else u=a;a=qt();var m=a.queue,v=m.dispatch;return c!==a.memoizedState&&(Ke.flags|=2048,Us(9,{destroy:void 0},R2.bind(null,m,c),null)),[u,v,o]}function R2(o,a){o.action=a}function Z0(o){var a=qt(),c=bt;if(c!==null)return K0(a,c,o);qt(),a=a.memoizedState,c=qt();var u=c.queue.dispatch;return c.memoizedState=o,[a,u,!1]}function Us(o,a,c,u){return o={tag:o,create:c,deps:u,inst:a,next:null},a=Ke.updateQueue,a===null&&(a=Wl(),Ke.updateQueue=a),c=a.lastEffect,c===null?a.lastEffect=o.next=o:(u=c.next,c.next=o,o.next=u,a.lastEffect=o),o}function W0(){return qt().memoizedState}function Ql(o,a,c,u){var m=Rn();Ke.flags|=o,m.memoizedState=Us(1|a,{destroy:void 0},c,u===void 0?null:u)}function Xl(o,a,c,u){var m=qt();u=u===void 0?null:u;var v=m.memoizedState.inst;bt!==null&&u!==null&&pf(u,bt.memoizedState.deps)?m.memoizedState=Us(a,v,c,u):(Ke.flags|=o,m.memoizedState=Us(1|a,v,c,u))}function Y0(o,a){Ql(8390656,8,o,a)}function Rf(o,a){Xl(2048,8,o,a)}function E2(o){Ke.flags|=4;var a=Ke.updateQueue;if(a===null)a=Wl(),Ke.updateQueue=a,a.events=[o];else{var c=a.events;c===null?a.events=[o]:c.push(o)}}function J0(o){var a=qt().memoizedState;return E2({ref:a,nextImpl:o}),function(){if((dt&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function Q0(o,a){return Xl(4,2,o,a)}function X0(o,a){return Xl(4,4,o,a)}function ev(o,a){if(typeof a=="function"){o=o();var c=a(o);return function(){typeof c=="function"?c():a(null)}}if(a!=null)return o=o(),a.current=o,function(){a.current=null}}function tv(o,a,c){c=c!=null?c.concat([o]):null,Xl(4,4,ev.bind(null,a,o),c
vendor: 4,256 bytes, line 9
9)}function Ef(){}function nv(o,a){var c=qt();a=a===void 0?null:a;var u=c.memoizedState;return a!==null&&pf(a,u[1])?u[0]:(c.memoizedState=[o,a],o)}function rv(o,a){var c=qt();a=a===void 0?null:a;var u=c.memoizedState;if(a!==null&&pf(a,u[1]))return u[0];if(u=o(),La){X(!0);try{o()}finally{X(!1)}}return c.memoizedState=[u,a],u}function Af(o,a,c){return c===void 0||(Jr&1073741824)!==0&&(tt&261930)===0?o.memoizedState=a:(o.memoizedState=c,o=ob(),Ke.lanes|=o,Lo|=o,c)}function ov(o,a,c,u){return Hn(c,a)?c:Ls.current!==null?(o=Af(o,c,u),Hn(o,a)||(Jt=!0),o):(Jr&42)===0||(Jr&1073741824)!==0&&(tt&261930)===0?(Jt=!0,o.memoizedState=c):(o=ob(),Ke.lanes|=o,Lo|=o,a)}function av(o,a,c,u,m){var v=te.p;te.p=v!==0&&8>v?v:8;var A=z.T,O={};z.T=O,Cf(o,!1,a,c);try{var B=m(),J=z.S;if(J!==null&&J(O,B),B!==null&&typeof B=="object"&&typeof B.then=="function"){var le=_2(B,u);rc(o,a,le,Jn(o))}else rc(o,a,u,Jn(o))}catch(me){rc(o,a,{then:function(){},status:"rejected",reason:me},Jn())}finally{te.p=v,A!==null&&O.types!==null&&(A.types=O.types),z.T=A}}function A2(){}function Tf(o,a,c,u){if(o.tag!==5)throw Error(r(476));var m=sv(o).queue;av(o,m,a,we,c===null?A2:function(){return iv(o),c(u)})}function sv(o){var a=o.memoizedState;if(a!==null)return a;a={memoizedState:we,baseState:we,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qr,lastRenderedState:we},next:null};var c={};return a.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qr,lastRenderedState:c},next:null},o.memoizedState=a,o=o.alternate,o!==null&&(o.memoizedState=a),a}function iv(o){var a=sv(o);a.next===null&&(a=o.alternate.memoizedState),rc(o,a.next.queue,{},Jn())}function kf(){return pn(_c)}function cv(){return qt().memoizedState}function lv(){return qt().memoizedState}function T2(o){for(var a=o.return;a!==null;){switch(a.tag){case 24:case 3:var c=Jn();o=Mo(c);var u=No(a,o,c);u!==null&&(Ln(u,a,c),Qi(u,a,c)),a={cache:nf()},o.payload=a;return}a=a.return}}function k2(o,a,c){var u=Jn();c={lane:u,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},eu(o)?dv(a,c):(c=Hh(o,a,c,u),c!==null&&(Ln(c,o,u),hv(c,a,u)))}function uv(o,a,c){var u=Jn();rc(o,a,c,u)}function rc(o,a,c,u){var m={lane:u,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null};if(eu(o))dv(a,m);else{var v=o.alternate;if(o.lanes===0&&(v===null||v.lanes===0)&&(v=a.lastRenderedReducer,v!==null))try{var A=a.lastRenderedState,O=v(A,c);if(m.hasEagerState=!0,m.eagerState=O,Hn(O,A))return jl(o,a,m,0),xt===null&&Nl(),!1}catch{}if(c=Hh(o,a,m,u),c!==null)return Ln(c,o,u),hv(c,a,u),!0}return!1}function Cf(o,a,c,u){if(u={lane:2,revertLane:ip(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},eu(o)){if(a)throw Error(r(479))}else a=Hh(o,c,u,2),a!==null&&Ln(a,o,2)}function eu(o){var a=o.alternate;return o===Ke||a!==null&&a===Ke}function dv(o,a){zs=Kl=!0;var c=o.pending;c===null?a.next=a:(a.next=c.next,c.next=a),o.pending=a}function hv(o,a,c){if((c&4194048)!==0){var u=a.lanes;u&=o.pendingLanes,c|=u,a.lanes=c,On(o,c)}}var oc={readContext:pn,use:Yl,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useLayoutEffect:Bt,useInsertionEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useSyncExternalStore:Bt,useId:Bt,useHostTransitionStatus:Bt,useFormState:Bt,useActionState:Bt,useOptimistic:Bt,useMemoCache:Bt,useCacheRefresh:Bt};oc.useEffectEvent=Bt;var fv={readContext:pn,use:Yl,useCallback:function(o,a){return Rn().memoizedState=[o,a===void 0?null:a],o},useContext:pn,useEffect:Y0,useImperativeHandle:function(o,a,c){c=c!=null?c.concat([o]):null,Ql(4194308,4,ev.bind(null,a,o),c)},useLayoutEffect:function(o,a){return Ql(4194308,4,o,a)},useInsertionEffect:function(o,a){Ql(4,2,o,a)},useMemo:function(o,a){var c=Rn();a=a===void 0?null:a;var u=o();if(La){X(!0);try{o()}finally{X(!1)}}return c.memoizedState=[u,a],u},useReducer:function(o,a,c){var u=Rn();if(c!==void 0){var m=c(a);if(La){X(!0);try{c(a)}finally{X(!1)}}}else m=a;return u.memoizedState=u.baseState=m,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:m},u.queue=o,o=o.dispatch=k2.bind(null,Ke,o),[u.memoizedState,o]}
vendor: 8,457 bytes, line 9
9,useRef:function(o){var a=Rn();return o={current:o},a.memoizedState=o},useState:function(o){o=Sf(o);var a=o.queue,c=uv.bind(null,Ke,a);return a.dispatch=c,[o.memoizedState,c]},useDebugValue:Ef,useDeferredValue:function(o,a){var c=Rn();return Af(c,o,a)},useTransition:function(){var o=Sf(!1);return o=av.bind(null,Ke,o.queue,!0,!1),Rn().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,a,c){var u=Ke,m=Rn();if(ot){if(c===void 0)throw Error(r(407));c=c()}else{if(c=a(),xt===null)throw Error(r(349));(tt&127)!==0||j0(u,a,c)}m.memoizedState=c;var v={value:c,getSnapshot:a};return m.queue=v,Y0(D0.bind(null,u,v,o),[o]),u.flags|=2048,Us(9,{destroy:void 0},P0.bind(null,u,v,c,a),null),c},useId:function(){var o=Rn(),a=xt.identifierPrefix;if(ot){var c=Cr,u=kr;c=(u&~(1<<32-ie(u)-1)).toString(32)+c,a="_"+a+"R_"+c,c=Zl++,0<c&&(a+="H"+c.toString(32)),a+="_"}else c=w2++,a="_"+a+"r_"+c.toString(32)+"_";return o.memoizedState=a},useHostTransitionStatus:kf,useFormState:H0,useActionState:H0,useOptimistic:function(o){var a=Rn();a.memoizedState=a.baseState=o;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=c,a=Cf.bind(null,Ke,!0,c),c.dispatch=a,[o,a]},useMemoCache:bf,useCacheRefresh:function(){return Rn().memoizedState=T2.bind(null,Ke)},useEffectEvent:function(o){var a=Rn(),c={impl:o};return a.memoizedState=c,function(){if((dt&2)!==0)throw Error(r(440));return c.impl.apply(void 0,arguments)}}},Of={readContext:pn,use:Yl,useCallback:nv,useContext:pn,useEffect:Rf,useImperativeHandle:tv,useInsertionEffect:Q0,useLayoutEffect:X0,useMemo:rv,useReducer:Jl,useRef:W0,useState:function(){return Jl(Qr)},useDebugValue:Ef,useDeferredValue:function(o,a){var c=qt();return ov(c,bt.memoizedState,o,a)},useTransition:function(){var o=Jl(Qr)[0],a=qt().memoizedState;return[typeof o=="boolean"?o:nc(o),a]},useSyncExternalStore:N0,useId:cv,useHostTransitionStatus:kf,useFormState:G0,useActionState:G0,useOptimistic:function(o,a){var c=qt();return z0(c,bt,o,a)},useMemoCache:bf,useCacheRefresh:lv};Of.useEffectEvent=J0;var pv={readContext:pn,use:Yl,useCallback:nv,useContext:pn,useEffect:Rf,useImperativeHandle:tv,useInsertionEffect:Q0,useLayoutEffect:X0,useMemo:rv,useReducer:wf,useRef:W0,useState:function(){return wf(Qr)},useDebugValue:Ef,useDeferredValue:function(o,a){var c=qt();return bt===null?Af(c,o,a):ov(c,bt.memoizedState,o,a)},useTransition:function(){var o=wf(Qr)[0],a=qt().memoizedState;return[typeof o=="boolean"?o:nc(o),a]},useSyncExternalStore:N0,useId:cv,useHostTransitionStatus:kf,useFormState:Z0,useActionState:Z0,useOptimistic:function(o,a){var c=qt();return bt!==null?z0(c,bt,o,a):(c.baseState=o,[o,c.queue.dispatch])},useMemoCache:bf,useCacheRefresh:lv};pv.useEffectEvent=J0;function $f(o,a,c,u){a=o.memoizedState,c=c(u,a),c=c==null?a:y({},a,c),o.memoizedState=c,o.lanes===0&&(o.updateQueue.baseState=c)}var Mf={enqueueSetState:function(o,a,c){o=o._reactInternals;var u=Jn(),m=Mo(u);m.payload=a,c!=null&&(m.callback=c),a=No(o,m,u),a!==null&&(Ln(a,o,u),Qi(a,o,u))},enqueueReplaceState:function(o,a,c){o=o._reactInternals;var u=Jn(),m=Mo(u);m.tag=1,m.payload=a,c!=null&&(m.callback=c),a=No(o,m,u),a!==null&&(Ln(a,o,u),Qi(a,o,u))},enqueueForceUpdate:function(o,a){o=o._reactInternals;var c=Jn(),u=Mo(c);u.tag=2,a!=null&&(u.callback=a),a=No(o,u,c),a!==null&&(Ln(a,o,c),Qi(a,o,c))}};function mv(o,a,c,u,m,v,A){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(u,v,A):a.prototype&&a.prototype.isPureReactComponent?!qi(c,u)||!qi(m,v):!0}function gv(o,a,c,u){o=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(c,u),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(c,u),a.state!==o&&Mf.enqueueReplaceState(a,a.state,null)}function za(o,a){var c=a;if("ref"in a){c={};for(var u in a)u!=="ref"&&(c[u]=a[u])}if(o=o.defaultProps){c===a&&(c=y({},c));for(var m in o)c[m]===void 0&&(c[m]=o[m])}return c}function yv(o){Ml(o)}function vv(o){console.error(o)}function bv(o){Ml(o)}function tu(o,a){try{var c=o.onUncaughtError;c(a.value,{componentStack:a.stack})}catch(u){setTimeout(function(){throw u})}}function _v(o,a,c){try{var u=o.onCaughtError;u(c.value,{componentStack:c.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Nf(o,a,c){return c=Mo(c),c.tag=3,c.payload={element:null},c.callback=function(){tu(o,a)},c}function wv(o){return o=Mo(o),o.tag=3,o}function Sv(o,a,c,u){var m=c.type.getDerivedStateFromError;if(typeof m=="function"){var v=u.value;o.payload=function(){return m(v)},o.callback=function(){_v(a,c,u)}}var A=c.stateNode;A!==null&&typeof A.componentDidCatch=="function"&&(o.callback=function(){_v(a,c,u),typeof m!="function"&&(zo===null?zo=new Set([this]):zo.add(this));var O=u.stack;this.componentDidCatch(u.value,{componentStack:O!==null?O:""})})}function C2(o,a,c,u,m){if(c.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(a=c.alternate,a!==null&&Ns(a,c,m,!0),c=Kn.current,c!==null){switch(c.tag){case 31:case 13:return cr===null?fu():c.alternate===null&&Ut===0&&(Ut=3),c.flags&=-257,c.flags|=65536,c.lanes=m,u===Vl?c.flags|=16384:(a=c.updateQueue,a===null?c.updateQueue=new Set([u]):a.add(u),op(o,u,m)),!1;case 22:return c.flags|=65536,u===Vl?c.flags|=16384:(a=c.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([u])},c.updateQueue=a):(c=a.retryQueue,c===null?a.retryQueue=new Set([u]):c.add(u)),op(o,u,m)),!1}throw Error(r(435,c.tag))}return op(o,u,m),fu(),!1}if(ot)return a=Kn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=m,u!==Jh&&(o=Error(r(422),{cause:u}),Ki(or(o,c)))):(u!==Jh&&(a=Error(r(423),{cause:u}),Ki(or(a,c))),o=o.current.alternate,o.flags|=65536,m&=-m,o.lanes|=m,u=or(u,c),m=Nf(o.stateNode,u,m),lf(o,m),Ut!==4&&(Ut=2)),!1;var v=Error(r(520),{cause:u});if(v=or(v,c),hc===null?hc=[v]:hc.push(v),Ut!==4&&(Ut=2),a===null)return!0;u=or(u,c),c=a;do{switch(c.tag){case 3:return c.flags|=65536,o=m&-m,c.lanes|=o,o=Nf(c.stateNode,u,o),lf(c,o),!1;case 1:if(a=c.type,v=c.stateNode,(c.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(zo===null||!zo.has(v))))return c.flags|=65536,m&=-m,c.lanes|=m,m=wv(m),Sv(m,o,c,u),lf(c,m),!1}c=c.return}while(c!==null);return!1}var jf=Error(r(461)),Jt=!1;function mn(o,a,c,u){a.child=o===null?A0(a,null,c,u):Ia(a,o.child,c,u)}function xv(o,a,c,u,m){c=c.render;var v=a.ref;if("ref"in u){var A={};for(var O in u)O!=="ref"&&(A[O]=u[O])}else A=u;return Na(a),u=mf(o,a,c,A,v,m),O=gf(),o!==null&&!Jt?(yf(o,a,m),Xr(o,a,m)):(ot&&O&&Wh(a),a.flags|=1,mn(o,a,u,m),a.child)}function Rv(o,a,c,u,m){if(o===null){var v=c.type;return typeof v=="function"&&!Gh(v)&&v.defaultProps===void 0&&c.compare===null?(a.tag=15,a.type=v,Ev(o,a,v,u,m)):(o=Dl(c.type,null,u,a,a.mode,m),o.ref=a.ref,o.return=a,a.child=o)}if(v=o.child,!Vf(o,m)){var A=v.memoizedProps;if(c=c.compare,c=c!==null?c:qi,c(A,u)&&o.ref===a.ref)return Xr(o,a,m)}return a.flags|=1,o=Kr(v,u),o.ref=a.ref,o.return=a,a.child=o}function Ev(o,a,c,u,m){if(o!==null){var v=o.memoizedProps;if(qi(v,u)&&o.ref===a.ref)if(Jt=!1,a.pendingProps=u=v,Vf(o,m))(o.flags&131072)!==0&&(Jt=!0);else return a.lanes=o.lanes,Xr(o,a,m)}return Pf(o,a,c,u,m)}function Av(o,a,c,u){var m=u.children,v=o!==null?o.memoizedState:null;if(o===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((a.flags&128)!==0){if(v=v!==null?v.baseLanes|c:c,o!==null){for(u=a.child=o.child,m=0;u!==null;)m=m|u.lanes|u.childLanes,u=u.sibling;u=m&~v}else u=0,a.child=null;return Tv(o,a,v,c,u)}if((c&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},o!==null&&Bl(a,v!==null?v.cachePool:null),v!==null?C0(a,v):df(),O0(a);else return u=a.lanes=536870912,Tv(o,a,v!==null?v.baseLanes|c:c,c,u)}else v!==null?(Bl(a,v.cachePool),C0(a,v),Po(),a.memoizedState=null):(o!==null&&Bl(a,null),df(),Po());return mn(o,a,m,c),a.child}function ac(o,a){return o!==null&&o.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Tv(o,a,c,u,m){var v=of();return v=v===null?null:{parent:Wt._currentValue,pool:v},a.memoizedState={baseLanes:c,cachePool:v},o!==null&&Bl(a,null),df(),O0(a),o!==null&&Ns(o,a,u,!0),a.childLanes=m,null}function nu(o,a){return a=ou({mode:a.mode,children:a.children}
vendor: 5,566 bytes, line 9
9,o.mode),a.ref=o.ref,o.child=a,a.return=o,a}function kv(o,a,c){return Ia(a,o.child,null,c),o=nu(a,a.pendingProps),o.flags|=2,Zn(a),a.memoizedState=null,o}function O2(o,a,c){var u=a.pendingProps,m=(a.flags&128)!==0;if(a.flags&=-129,o===null){if(ot){if(u.mode==="hidden")return o=nu(a,u),a.lanes=536870912,ac(null,o);if(ff(a),(o=kt)?(o=Bb(o,ir),o=o!==null&&o.data==="&"?o:null,o!==null&&(a.memoizedState={dehydrated:o,treeContext:To!==null?{id:kr,overflow:Cr}:null,retryLane:536870912,hydrationErrors:null},c=d0(o),c.return=a,a.child=c,fn=a,kt=null)):o=null,o===null)throw Co(a);return a.lanes=536870912,null}return nu(a,u)}var v=o.memoizedState;if(v!==null){var A=v.dehydrated;if(ff(a),m)if(a.flags&256)a.flags&=-257,a=kv(o,a,c);else if(a.memoizedState!==null)a.child=o.child,a.flags|=128,a=null;else throw Error(r(558));else if(Jt||Ns(o,a,c,!1),m=(c&o.childLanes)!==0,Jt||m){if(u=xt,u!==null&&(A=$n(u,c),A!==0&&A!==v.retryLane))throw v.retryLane=A,Ca(o,A),Ln(u,o,A),jf;fu(),a=kv(o,a,c)}else o=v.treeContext,kt=lr(A.nextSibling),fn=a,ot=!0,ko=null,ir=!1,o!==null&&p0(a,o),a=nu(a,u),a.flags|=4096;return a}return o=Kr(o.child,{mode:u.mode,children:u.children}),o.ref=a.ref,a.child=o,o.return=a,o}function ru(o,a){var c=a.ref;if(c===null)o!==null&&o.ref!==null&&(a.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(o===null||o.ref!==c)&&(a.flags|=4194816)}}function Pf(o,a,c,u,m){return Na(a),c=mf(o,a,c,u,void 0,m),u=gf(),o!==null&&!Jt?(yf(o,a,m),Xr(o,a,m)):(ot&&u&&Wh(a),a.flags|=1,mn(o,a,c,m),a.child)}function Cv(o,a,c,u,m,v){return Na(a),a.updateQueue=null,c=M0(a,u,c,m),$0(o),u=gf(),o!==null&&!Jt?(yf(o,a,v),Xr(o,a,v)):(ot&&u&&Wh(a),a.flags|=1,mn(o,a,c,v),a.child)}function Ov(o,a,c,u,m){if(Na(a),a.stateNode===null){var v=Cs,A=c.contextType;typeof A=="object"&&A!==null&&(v=pn(A)),v=new c(u,v),a.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=Mf,a.stateNode=v,v._reactInternals=a,v=a.stateNode,v.props=u,v.state=a.memoizedState,v.refs={},sf(a),A=c.contextType,v.context=typeof A=="object"&&A!==null?pn(A):Cs,v.state=a.memoizedState,A=c.getDerivedStateFromProps,typeof A=="function"&&($f(a,c,A,u),v.state=a.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(A=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),A!==v.state&&Mf.enqueueReplaceState(v,v.state,null),ec(a,u,v,m),Xi(),v.state=a.memoizedState),typeof v.componentDidMount=="function"&&(a.flags|=4194308),u=!0}else if(o===null){v=a.stateNode;var O=a.memoizedProps,B=za(c,O);v.props=B;var J=v.context,le=c.contextType;A=Cs,typeof le=="object"&&le!==null&&(A=pn(le));var me=c.getDerivedStateFromProps;le=typeof me=="function"||typeof v.getSnapshotBeforeUpdate=="function",O=a.pendingProps!==O,le||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(O||J!==A)&&gv(a,v,u,A),$o=!1;var ee=a.memoizedState;v.state=ee,ec(a,u,v,m),Xi(),J=a.memoizedState,O||ee!==J||$o?(typeof me=="function"&&($f(a,c,me,u),J=a.memoizedState),(B=$o||mv(a,c,B,u,ee,J,A))?(le||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(a.flags|=4194308)):(typeof v.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=u,a.memoizedState=J),v.props=u,v.state=J,v.context=A,u=B):(typeof v.componentDidMount=="function"&&(a.flags|=4194308),u=!1)}else{v=a.stateNode,cf(o,a),A=a.memoizedProps,le=za(c,A),v.props=le,me=a.pendingProps,ee=v.context,J=c.contextType,B=Cs,typeof J=="object"&&J!==null&&(B=pn(J)),O=c.getDerivedStateFromProps,(J=typeof O=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(A!==me||ee!==B)&&gv(a,v,u,B),$o=!1,ee=a.memoizedState,v.state=ee,ec(a,u,v,m),Xi();var se=a.memoizedState;A!==me||ee!==se||$o||o!==null&&o.dependencies!==null&&Ll(o.dependencies)?(typeof O=="function"&&($f(a,c,O,u),se=a.memoizedState),(le=$o||mv(a,c,le,u,ee,se,B)||o!==null&&o.dependencies!==null&&Ll(o.dependencies))?(J||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(u,se,B),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(u,se,B)),typeof v.componentDidUpdate=="function"&&(a.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof v.componentDidUpdate!="function"||A===o.memoizedProps&&ee===o.memoizedState||(a.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||A===o.memoizedProps&&ee===o.memoizedState||(a.flags|=1024),a.memoizedProps=u,a.memoizedState=se),v.props=u,v.state=se,v.context=B,u=le):(typeof v.componentDidUpdate!="function"||A===o.memoizedProps&&ee===o.memoizedState||(a.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||A===o.memoizedProps&&ee===o.memoizedState||(a.flags|=1024),u=!1)}return v=u,ru(o,a),u=(a.flags&128)!==0,v||u?(v=a.stateNode,c=u&&typeof c.getDerivedStateFromError!="function"?null:v.render(),a.flags|=1,o!==null&&u?(a.child=Ia(a,o.child,null,m),a.child=Ia(a,null,c,m)):mn(o,a,c,m),a.memoizedState=v.state,o=a.child):o=Xr(o,a,m),o}
vendor: 2,556 bytes, line 9
9function $v(o,a,c,u){return $a(),a.flags|=256,mn(o,a,c,u),a.child}var Df={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function If(o){return{baseLanes:o,cachePool:_0()}}function Lf(o,a,c){return o=o!==null?o.childLanes&~c:0,a&&(o|=Yn),o}function Mv(o,a,c){var u=a.pendingProps,m=!1,v=(a.flags&128)!==0,A;if((A=v)||(A=o!==null&&o.memoizedState===null?!1:(Ft.current&2)!==0),A&&(m=!0,a.flags&=-129),A=(a.flags&32)!==0,a.flags&=-33,o===null){if(ot){if(m?jo(a):Po(),(o=kt)?(o=Bb(o,ir),o=o!==null&&o.data!=="&"?o:null,o!==null&&(a.memoizedState={dehydrated:o,treeContext:To!==null?{id:kr,overflow:Cr}:null,retryLane:536870912,hydrationErrors:null},c=d0(o),c.return=a,a.child=c,fn=a,kt=null)):o=null,o===null)throw Co(a);return _p(o)?a.lanes=32:a.lanes=536870912,null}var O=u.children;return u=u.fallback,m?(Po(),m=a.mode,O=ou({mode:"hidden",children:O},m),u=Oa(u,m,c,null),O.return=a,u.return=a,O.sibling=u,a.child=O,u=a.child,u.memoizedState=If(c),u.childLanes=Lf(o,A,c),a.memoizedState=Df,ac(null,u)):(jo(a),zf(a,O))}var B=o.memoizedState;if(B!==null&&(O=B.dehydrated,O!==null)){if(v)a.flags&256?(jo(a),a.flags&=-257,a=Bf(o,a,c)):a.memoizedState!==null?(Po(),a.child=o.child,a.flags|=128,a=null):(Po(),O=u.fallback,m=a.mode,u=ou({mode:"visible",children:u.children},m),O=Oa(O,m,c,null),O.flags|=2,u.return=a,O.return=a,u.sibling=O,a.child=u,Ia(a,o.child,null,c),u=a.child,u.memoizedState=If(c),u.childLanes=Lf(o,A,c),a.memoizedState=Df,a=ac(null,u));else if(jo(a),_p(O)){if(A=O.nextSibling&&O.nextSibling.dataset,A)var J=A.dgst;A=J,u=Error(r(419)),u.stack="",u.digest=A,Ki({value:u,source:null,stack:null}),a=Bf(o,a,c)}else if(Jt||Ns(o,a,c,!1),A=(c&o.childLanes)!==0,Jt||A){if(A=xt,A!==null&&(u=$n(A,c),u!==0&&u!==B.retryLane))throw B.retryLane=u,Ca(o,u),Ln(A,o,u),jf;bp(O)||fu(),a=Bf(o,a,c)}else bp(O)?(a.flags|=192,a.child=o.child,a=null):(o=B.treeContext,kt=lr(O.nextSibling),fn=a,ot=!0,ko=null,ir=!1,o!==null&&p0(a,o),a=zf(a,u.children),a.flags|=4096);return a}return m?(Po(),O=u.fallback,m=a.mode,B=o.child,J=B.sibling,u=Kr(B,{mode:"hidden",children:u.children}),u.subtreeFlags=B.subtreeFlags&65011712,J!==null?O=Kr(J,O):(O=Oa(O,m,c,null),O.flags|=2),O.return=a,u.return=a,u.sibling=O,a.child=u,ac(null,u),u=a.child,O=o.child.memoizedState,O===null?O=If(c):(m=O.cachePool,m!==null?(B=Wt._currentValue,m=m.parent!==B?{parent:B,pool:B}:m):m=_0(),O={baseLanes:O.baseLanes|c,cachePool:m}),u.memoizedState=O,u.childLanes=Lf(o,A,c),a.memoizedState=Df,ac(o.child,u)):(jo(a),c=o.child,o=c.sibling,c=Kr(c,{mode:"visible",children:u.children}
vendor: 4,357 bytes, line 9
9),c.return=a,c.sibling=null,o!==null&&(A=a.deletions,A===null?(a.deletions=[o],a.flags|=16):A.push(o)),a.child=c,a.memoizedState=null,c)}function zf(o,a){return a=ou({mode:"visible",children:a},o.mode),a.return=o,o.child=a}function ou(o,a){return o=Gn(22,o,null,a),o.lanes=0,o}function Bf(o,a,c){return Ia(a,o.child,null,c),o=zf(a,a.pendingProps.children),o.flags|=2,a.memoizedState=null,o}function Nv(o,a,c){o.lanes|=a;var u=o.alternate;u!==null&&(u.lanes|=a),ef(o.return,a,c)}function Uf(o,a,c,u,m,v){var A=o.memoizedState;A===null?o.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:u,tail:c,tailMode:m,treeForkCount:v}:(A.isBackwards=a,A.rendering=null,A.renderingStartTime=0,A.last=u,A.tail=c,A.tailMode=m,A.treeForkCount=v)}function jv(o,a,c){var u=a.pendingProps,m=u.revealOrder,v=u.tail;u=u.children;var A=Ft.current,O=(A&2)!==0;if(O?(A=A&1|2,a.flags|=128):A&=1,oe(Ft,A),mn(o,a,u,c),u=ot?Gi:0,!O&&o!==null&&(o.flags&128)!==0)e:for(o=a.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Nv(o,c,a);else if(o.tag===19)Nv(o,c,a);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break e;for(;o.sibling===null;){if(o.return===null||o.return===a)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(m){case"forwards":for(c=a.child,m=null;c!==null;)o=c.alternate,o!==null&&Gl(o)===null&&(m=c),c=c.sibling;c=m,c===null?(m=a.child,a.child=null):(m=c.sibling,c.sibling=null),Uf(a,!1,m,c,v,u);break;case"backwards":case"unstable_legacy-backwards":for(c=null,m=a.child,a.child=null;m!==null;){if(o=m.alternate,o!==null&&Gl(o)===null){a.child=m;break}o=m.sibling,m.sibling=c,c=m,m=o}Uf(a,!0,c,null,v,u);break;case"together":Uf(a,!1,null,null,void 0,u);break;default:a.memoizedState=null}return a.child}function Xr(o,a,c){if(o!==null&&(a.dependencies=o.dependencies),Lo|=a.lanes,(c&a.childLanes)===0)if(o!==null){if(Ns(o,a,c,!1),(c&a.childLanes)===0)return null}else return null;if(o!==null&&a.child!==o.child)throw Error(r(153));if(a.child!==null){for(o=a.child,c=Kr(o,o.pendingProps),a.child=c,c.return=a;o.sibling!==null;)o=o.sibling,c=c.sibling=Kr(o,o.pendingProps),c.return=a;c.sibling=null}return a.child}function Vf(o,a){return(o.lanes&a)!==0?!0:(o=o.dependencies,!!(o!==null&&Ll(o)))}function $2(o,a,c){switch(a.tag){case 3:ve(a,a.stateNode.containerInfo),Oo(a,Wt,o.memoizedState.cache),$a();break;case 27:case 5:Et(a);break;case 4:ve(a,a.stateNode.containerInfo);break;case 10:Oo(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,ff(a),null;break;case 13:var u=a.memoizedState;if(u!==null)return u.dehydrated!==null?(jo(a),a.flags|=128,null):(c&a.child.childLanes)!==0?Mv(o,a,c):(jo(a),o=Xr(o,a,c),o!==null?o.sibling:null);jo(a);break;case 19:var m=(o.flags&128)!==0;if(u=(c&a.childLanes)!==0,u||(Ns(o,a,c,!1),u=(c&a.childLanes)!==0),m){if(u)return jv(o,a,c);a.flags|=128}if(m=a.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),oe(Ft,Ft.current),u)break;return null;case 22:return a.lanes=0,Av(o,a,c,a.pendingProps);case 24:Oo(a,Wt,o.memoizedState.cache)}return Xr(o,a,c)}function Pv(o,a,c){if(o!==null)if(o.memoizedProps!==a.pendingProps)Jt=!0;else{if(!Vf(o,c)&&(a.flags&128)===0)return Jt=!1,$2(o,a,c);Jt=(o.flags&131072)!==0}else Jt=!1,ot&&(a.flags&1048576)!==0&&f0(a,Gi,a.index);switch(a.lanes=0,a.tag){case 16:e:{var u=a.pendingProps;if(o=Pa(a.elementType),a.type=o,typeof o=="function")Gh(o)?(u=za(o,u),a.tag=1,a=Ov(null,a,o,u,c)):(a.tag=0,a=Pf(null,a,o,u,c));else{if(o!=null){var m=o.$$typeof;if(m===I){a.tag=11,a=xv(null,a,o,u,c);break e}else if(m===U){a.tag=14,a=Rv(null,a,o,u,c);break e}}throw a=Ce(o)||o,Error(r(306,a,""))}}return a;case 0:return Pf(o,a,a.type,a.pendingProps,c);case 1:return u=a.type,m=za(u,a.pendingProps),Ov(o,a,u,m,c);case 3:e:{if(ve(a,a.stateNode.containerInfo),o===null)throw Error(r(387));u=a.pendingProps;var v=a.memoizedState;m=v.element,cf(o,a),ec(a,u,null,c);var A=a.memoizedState;if(u=A.cache,Oo(a,Wt,u),u!==v.cache&&tf(a,[Wt],c,!0),Xi(),u=A.element,v.isDehydrated)if(v={element:u,isDehydrated:!1,cache:A.cache},a.updateQueue.baseState=v,a.memoizedState=v,a.flags&256){a=$v(o,a,u,c);break e}else if(u!==m){m=or(Error(r(424)),a),Ki(m),a=$v(o,a,u,c);break e}else for(o=a.stateNode.containerInfo,o.nodeType===9?o=o.body:o=o.nodeName==="HTML"?o.ownerDocument.body:o,kt=lr(o.firstChild),fn=a,ot=!0,k
vendor: 5,218 bytes, line 9
9o=null,ir=!0,c=A0(a,null,u,c),a.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if($a(),u===m){a=Xr(o,a,c);break e}mn(o,a,u,c)}a=a.child}return a;case 26:return ru(o,a),o===null?(c=Gb(a.type,null,a.pendingProps,null))?a.memoizedState=c:ot||(c=a.type,o=a.pendingProps,u=_u(Re.current).createElement(c),u[hn]=a,u[Mn]=o,gn(u,c,o),cn(u),a.stateNode=u):a.memoizedState=Gb(a.type,o.memoizedProps,a.pendingProps,o.memoizedState),null;case 27:return Et(a),o===null&&ot&&(u=a.stateNode=Fb(a.type,a.pendingProps,Re.current),fn=a,ir=!0,m=kt,Fo(a.type)?(wp=m,kt=lr(u.firstChild)):kt=m),mn(o,a,a.pendingProps.children,c),ru(o,a),o===null&&(a.flags|=4194304),a.child;case 5:return o===null&&ot&&((m=u=kt)&&(u=ik(u,a.type,a.pendingProps,ir),u!==null?(a.stateNode=u,fn=a,kt=lr(u.firstChild),ir=!1,m=!0):m=!1),m||Co(a)),Et(a),m=a.type,v=a.pendingProps,A=o!==null?o.memoizedProps:null,u=v.children,gp(m,v)?u=null:A!==null&&gp(m,A)&&(a.flags|=32),a.memoizedState!==null&&(m=mf(o,a,S2,null,null,c),_c._currentValue=m),ru(o,a),mn(o,a,u,c),a.child;case 6:return o===null&&ot&&((o=c=kt)&&(c=ck(c,a.pendingProps,ir),c!==null?(a.stateNode=c,fn=a,kt=null,o=!0):o=!1),o||Co(a)),null;case 13:return Mv(o,a,c);case 4:return ve(a,a.stateNode.containerInfo),u=a.pendingProps,o===null?a.child=Ia(a,null,u,c):mn(o,a,u,c),a.child;case 11:return xv(o,a,a.type,a.pendingProps,c);case 7:return mn(o,a,a.pendingProps,c),a.child;case 8:return mn(o,a,a.pendingProps.children,c),a.child;case 12:return mn(o,a,a.pendingProps.children,c),a.child;case 10:return u=a.pendingProps,Oo(a,a.type,u.value),mn(o,a,u.children,c),a.child;case 9:return m=a.type._context,u=a.pendingProps.children,Na(a),m=pn(m),u=u(m),a.flags|=1,mn(o,a,u,c),a.child;case 14:return Rv(o,a,a.type,a.pendingProps,c);case 15:return Ev(o,a,a.type,a.pendingProps,c);case 19:return jv(o,a,c);case 31:return O2(o,a,c);case 22:return Av(o,a,c,a.pendingProps);case 24:return Na(a),u=pn(Wt),o===null?(m=of(),m===null&&(m=xt,v=nf(),m.pooledCache=v,v.refCount++,v!==null&&(m.pooledCacheLanes|=c),m=v),a.memoizedState={parent:u,cache:m},sf(a),Oo(a,Wt,m)):((o.lanes&c)!==0&&(cf(o,a),ec(a,null,null,c),Xi()),m=o.memoizedState,v=a.memoizedState,m.parent!==u?(m={parent:u,cache:u},a.memoizedState=m,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=m),Oo(a,Wt,u)):(u=v.cache,Oo(a,Wt,u),u!==m.cache&&tf(a,[Wt],c,!0))),mn(o,a,a.pendingProps.children,c),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function eo(o){o.flags|=4}function Ff(o,a,c,u,m){if((a=(o.mode&32)!==0)&&(a=!1),a){if(o.flags|=16777216,(m&335544128)===m)if(o.stateNode.complete)o.flags|=8192;else if(cb())o.flags|=8192;else throw Da=Vl,af}else o.flags&=-16777217}function Dv(o,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!Jb(a))if(cb())o.flags|=8192;else throw Da=Vl,af}function au(o,a){a!==null&&(o.flags|=4),o.flags&16384&&(a=o.tag!==22?wn():536870912,o.lanes|=a,Hs|=a)}function sc(o,a){if(!ot)switch(o.tailMode){case"hidden":a=o.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?o.tail=null:c.sibling=null;break;case"collapsed":c=o.tail;for(var u=null;c!==null;)c.alternate!==null&&(u=c),c=c.sibling;u===null?a||o.tail===null?o.tail=null:o.tail.sibling=null:u.sibling=null}}function Ct(o){var a=o.alternate!==null&&o.alternate.child===o.child,c=0,u=0;if(a)for(var m=o.child;m!==null;)c|=m.lanes|m.childLanes,u|=m.subtreeFlags&65011712,u|=m.flags&65011712,m.return=o,m=m.sibling;else for(m=o.child;m!==null;)c|=m.lanes|m.childLanes,u|=m.subtreeFlags,u|=m.flags,m.return=o,m=m.sibling;return o.subtreeFlags|=u,o.childLanes=c,a}function M2(o,a,c){var u=a.pendingProps;switch(Yh(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ct(a),null;case 1:return Ct(a),null;case 3:return c=a.stateNode,u=null,o!==null&&(u=o.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),Yr(Wt),Se(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(o===null||o.child===null)&&(Ms(a)?eo(a):o===null||o.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Qh())),Ct(a),null;case 26:var m=a.type,v=a.memoizedState;return o===null?(eo(a),v!==null?(Ct(a),Dv(a,v)):(Ct(a),Ff(a,m,null,u,c))):v?v!==o.memoizedState?(eo(a),Ct(a),Dv(a,v)):(Ct(a),a.flags&=-16777217):(o=o.memoizedProps,o!==u&&eo(a),Ct(a),Ff(a,m,o,u,c)),null;case 27:if(it(a),c=Re.current,m=a.type,o!==null&&a.stateNode!=null)o.memoizedProps!==u&&eo(a);else{if(!u){if(a.stateNode===null)throw Error(r(166));return Ct(a),null}o=ce.current,Ms(a)?m0(a):(o=Fb(m,u,c),a.stateNode=o,eo(a))}return Ct(a),null;case 5:if(it(a),m=a.type,o!==null&&a.stateNode!=null)o.memoizedProps!==u&&eo(a);else{if(!u){if(a.stateNode===null)throw Error(r(166));return Ct(a),null}if(v=ce.current,Ms(a))m0(a);else{var A=_u(Re.current);switch(v){case 1:v=A.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:v=A.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":v=A.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":v=A.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":v=A.createElement("div"),v.innerHTML="<script><\/script>",v=v.removeChild(v.firstChild);break;
vendor: 23,023 bytes, line 9
9case"select":v=typeof u.is=="string"?A.createElement("select",{is:u.is}):A.createElement("select"),u.multiple?v.multiple=!0:u.size&&(v.size=u.size);break;default:v=typeof u.is=="string"?A.createElement(m,{is:u.is}):A.createElement(m)}}v[hn]=a,v[Mn]=u;e:for(A=a.child;A!==null;){if(A.tag===5||A.tag===6)v.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===a)break e;for(;A.sibling===null;){if(A.return===null||A.return===a)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}a.stateNode=v;e:switch(gn(v,m,u),m){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&eo(a)}}return Ct(a),Ff(a,a.type,o===null?null:o.memoizedProps,a.pendingProps,c),null;case 6:if(o&&a.stateNode!=null)o.memoizedProps!==u&&eo(a);else{if(typeof u!="string"&&a.stateNode===null)throw Error(r(166));if(o=Re.current,Ms(a)){if(o=a.stateNode,c=a.memoizedProps,u=null,m=fn,m!==null)switch(m.tag){case 27:case 5:u=m.memoizedProps}o[hn]=a,o=!!(o.nodeValue===c||u!==null&&u.suppressHydrationWarning===!0||Mb(o.nodeValue,c)),o||Co(a,!0)}else o=_u(o).createTextNode(u),o[hn]=a,a.stateNode=o}return Ct(a),null;case 31:if(c=a.memoizedState,o===null||o.memoizedState!==null){if(u=Ms(a),c!==null){if(o===null){if(!u)throw Error(r(318));if(o=a.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[hn]=a}else $a(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Ct(a),o=!1}else c=Qh(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=c),o=!0;if(!o)return a.flags&256?(Zn(a),a):(Zn(a),null);if((a.flags&128)!==0)throw Error(r(558))}return Ct(a),null;case 13:if(u=a.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(m=Ms(a),u!==null&&u.dehydrated!==null){if(o===null){if(!m)throw Error(r(318));if(m=a.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(r(317));m[hn]=a}else $a(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Ct(a),m=!1}else m=Qh(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=m),m=!0;if(!m)return a.flags&256?(Zn(a),a):(Zn(a),null)}return Zn(a),(a.flags&128)!==0?(a.lanes=c,a):(c=u!==null,o=o!==null&&o.memoizedState!==null,c&&(u=a.child,m=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(m=u.alternate.memoizedState.cachePool.pool),v=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(v=u.memoizedState.cachePool.pool),v!==m&&(u.flags|=2048)),c!==o&&c&&(a.child.flags|=8192),au(a,a.updateQueue),Ct(a),null);case 4:return Se(),o===null&&dp(a.stateNode.containerInfo),Ct(a),null;case 10:return Yr(a.type),Ct(a),null;case 19:if(ae(Ft),u=a.memoizedState,u===null)return Ct(a),null;if(m=(a.flags&128)!==0,v=u.rendering,v===null)if(m)sc(u,!1);else{if(Ut!==0||o!==null&&(o.flags&128)!==0)for(o=a.child;o!==null;){if(v=Gl(o),v!==null){for(a.flags|=128,sc(u,!1),o=v.updateQueue,a.updateQueue=o,au(a,o),a.subtreeFlags=0,o=c,c=a.child;c!==null;)u0(c,o),c=c.sibling;return oe(Ft,Ft.current&1|2),ot&&Zr(a,u.treeForkCount),a.child}o=o.sibling}u.tail!==null&&Pt()>uu&&(a.flags|=128,m=!0,sc(u,!1),a.lanes=4194304)}else{if(!m)if(o=Gl(v),o!==null){if(a.flags|=128,m=!0,o=o.updateQueue,a.updateQueue=o,au(a,o),sc(u,!0),u.tail===null&&u.tailMode==="hidden"&&!v.alternate&&!ot)return Ct(a),null}else 2*Pt()-u.renderingStartTime>uu&&c!==536870912&&(a.flags|=128,m=!0,sc(u,!1),a.lanes=4194304);u.isBackwards?(v.sibling=a.child,a.child=v):(o=u.last,o!==null?o.sibling=v:a.child=v,u.last=v)}return u.tail!==null?(o=u.tail,u.rendering=o,u.tail=o.sibling,u.renderingStartTime=Pt(),o.sibling=null,c=Ft.current,oe(Ft,m?c&1|2:c&1),ot&&Zr(a,u.treeForkCount),o):(Ct(a),null);case 22:case 23:return Zn(a),hf(),u=a.memoizedState!==null,o!==null?o.memoizedState!==null!==u&&(a.flags|=8192):u&&(a.flags|=8192),u?(c&536870912)!==0&&(a.flags&128)===0&&(Ct(a),a.subtreeFlags&6&&(a.flags|=8192)):Ct(a),c=a.updateQueue,c!==null&&au(a,c.retryQueue),c=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(c=o.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==c&&(a.flags|=2048),o!==null&&ae(ja),null;case 24:return c=null,o!==null&&(c=o.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),Yr(Wt),Ct(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function N2(o,a){switch(Yh(a),a.tag){case 1:return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 3:return Yr(Wt),Se(),o=a.flags,(o&65536)!==0&&(o&128)===0?(a.flags=o&-65537|128,a):null;case 26:case 27:case 5:return it(a),null;case 31:if(a.memoizedState!==null){if(Zn(a),a.alternate===null)throw Error(r(340));$a()}return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 13:if(Zn(a),o=a.memoizedState,o!==null&&o.dehydrated!==null){if(a.alternate===null)throw Error(r(340));$a()}return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 19:return ae(Ft),null;case 4:return Se(),null;case 10:return Yr(a.type),null;case 22:case 23:return Zn(a),hf(),o!==null&&ae(ja),o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 24:return Yr(Wt),null;case 25:return null;default:return null}}function Iv(o,a){switch(Yh(a),a.tag){case 3:Yr(Wt),Se();break;case 26:case 27:case 5:it(a);break;case 4:Se();break;case 31:a.memoizedState!==null&&Zn(a);break;case 13:Zn(a);break;case 19:ae(Ft);break;case 10:Yr(a.type);break;case 22:case 23:Zn(a),hf(),o!==null&&ae(ja);break;case 24:Yr(Wt)}}function ic(o,a){try{var c=a.updateQueue,u=c!==null?c.lastEffect:null;if(u!==null){var m=u.next;c=m;do{if((c.tag&o)===o){u=void 0;var v=c.create,A=c.inst;u=v(),A.destroy=u}c=c.next}while(c!==m)}}catch(O){gt(a,a.return,O)}}function Do(o,a,c){try{var u=a.updateQueue,m=u!==null?u.lastEffect:null;if(m!==null){var v=m.next;u=v;do{if((u.tag&o)===o){var A=u.inst,O=A.destroy;if(O!==void 0){A.destroy=void 0,m=a;var B=c,J=O;try{J()}catch(le){gt(m,B,le)}}}u=u.next}while(u!==v)}}catch(le){gt(a,a.return,le)}}function Lv(o){var a=o.updateQueue;if(a!==null){var c=o.stateNode;try{k0(a,c)}catch(u){gt(o,o.return,u)}}}function zv(o,a,c){c.props=za(o.type,o.memoizedProps),c.state=o.memoizedState;try{c.componentWillUnmount()}catch(u){gt(o,a,u)}}function cc(o,a){try{var c=o.ref;if(c!==null){switch(o.tag){case 26:case 27:case 5:var u=o.stateNode;break;case 30:u=o.stateNode;break;default:u=o.stateNode}typeof c=="function"?o.refCleanup=c(u):c.current=u}}catch(m){gt(o,a,m)}}function Or(o,a){var c=o.ref,u=o.refCleanup;if(c!==null)if(typeof u=="function")try{u()}catch(m){gt(o,a,m)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(m){gt(o,a,m)}else c.current=null}function Bv(o){var a=o.type,c=o.memoizedProps,u=o.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":c.autoFocus&&u.focus();break e;case"img":c.src?u.src=c.src:c.srcSet&&(u.srcset=c.srcSet)}}catch(m){gt(o,o.return,m)}}function qf(o,a,c){try{var u=o.stateNode;tk(u,o.type,c,a),u[Mn]=a}catch(m){gt(o,o.return,m)}}function Uv(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Fo(o.type)||o.tag===4}function Hf(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Uv(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Fo(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Gf(o,a,c){var u=o.tag;if(u===5||u===6)o=o.stateNode,a?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(o,a):(a=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,a.appendChild(o),c=c._reactRootContainer,c!=null||a.onclick!==null||(a.onclick=Hr));else if(u!==4&&(u===27&&Fo(o.type)&&(c=o.stateNode,a=null),o=o.child,o!==null))for(Gf(o,a,c),o=o.sibling;o!==null;)Gf(o,a,c),o=o.sibling}function su(o,a,c){var u=o.tag;if(u===5||u===6)o=o.stateNode,a?c.insertBefore(o,a):c.appendChild(o);else if(u!==4&&(u===27&&Fo(o.type)&&(c=o.stateNode),o=o.child,o!==null))for(su(o,a,c),o=o.sibling;o!==null;)su(o,a,c),o=o.sibling}function Vv(o){var a=o.stateNode,c=o.memoizedProps;try{for(var u=o.type,m=a.attributes;m.length;)a.removeAttributeNode(m[0]);gn(a,u,c),a[hn]=o,a[Mn]=c}catch(v){gt(o,o.return,v)}}var to=!1,Qt=!1,Kf=!1,Fv=typeof WeakSet=="function"?WeakSet:Set,ln=null;function j2(o,a){if(o=o.containerInfo,pp=Tu,o=t0(o),zh(o)){if("selectionStart"in o)var c={start:o.selectionStart,end:o.selectionEnd};else e:{c=(c=o.ownerDocument)&&c.defaultView||window;var u=c.getSelection&&c.getSelection();if(u&&u.rangeCount!==0){c=u.anchorNode;var m=u.anchorOffset,v=u.focusNode;u=u.focusOffset;try{c.nodeType,v.nodeType}catch{c=null;break e}var A=0,O=-1,B=-1,J=0,le=0,me=o,ee=null;t:for(;;){for(var se;me!==c||m!==0&&me.nodeType!==3||(O=A+m),me!==v||u!==0&&me.nodeType!==3||(B=A+u),me.nodeType===3&&(A+=me.nodeValue.length),(se=me.firstChild)!==null;)ee=me,me=se;for(;;){if(me===o)break t;if(ee===c&&++J===m&&(O=A),ee===v&&++le===u&&(B=A),(se=me.nextSibling)!==null)break;me=ee,ee=me.parentNode}me=se}c=O===-1||B===-1?null:{start:O,end:B}}else c=null}c=c||{start:0,end:0}}else c=null;for(mp={focusedElem:o,selectionRange:c},Tu=!1,ln=a;ln!==null;)if(a=ln,o=a.child,(a.subtreeFlags&1028)!==0&&o!==null)o.return=a,ln=o;else for(;ln!==null;){switch(a=ln,v=a.alternate,o=a.flags,a.tag){case 0:if((o&4)!==0&&(o=a.updateQueue,o=o!==null?o.events:null,o!==null))for(c=0;c<o.length;c++)m=o[c],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&v!==null){o=void 0,c=a,m=v.memoizedProps,v=v.memoizedState,u=c.stateNode;try{var Me=za(c.type,m);o=u.getSnapshotBeforeUpdate(Me,v),u.__reactInternalSnapshotBeforeUpdate=o}catch(Ve){gt(c,c.return,Ve)}}break;case 3:if((o&1024)!==0){if(o=a.stateNode.containerInfo,c=o.nodeType,c===9)vp(o);else if(c===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":vp(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=a.sibling,o!==null){o.return=a.return,ln=o;break}ln=a.return}}function qv(o,a,c){var u=c.flags;switch(c.tag){case 0:case 11:case 15:ro(o,c),u&4&&ic(5,c);break;case 1:if(ro(o,c),u&4)if(o=c.stateNode,a===null)try{o.componentDidMount()}catch(A){gt(c,c.return,A)}else{var m=za(c.type,a.memoizedProps);a=a.memoizedState;try{o.componentDidUpdate(m,a,o.__reactInternalSnapshotBeforeUpdate)}catch(A){gt(c,c.return,A)}}u&64&&Lv(c),u&512&&cc(c,c.return);break;case 3:if(ro(o,c),u&64&&(o=c.updateQueue,o!==null)){if(a=null,c.child!==null)switch(c.child.tag){case 27:case 5:a=c.child.stateNode;break;case 1:a=c.child.stateNode}try{k0(o,a)}catch(A){gt(c,c.return,A)}}break;case 27:a===null&&u&4&&Vv(c);case 26:case 5:ro(o,c),a===null&&u&4&&Bv(c),u&512&&cc(c,c.return);break;case 12:ro(o,c);break;case 31:ro(o,c),u&4&&Kv(o,c);break;case 13:ro(o,c),u&4&&Zv(o,c),u&64&&(o=c.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(c=F2.bind(null,c),lk(o,c))));break;case 22:if(u=c.memoizedState!==null||to,!u){a=a!==null&&a.memoizedState!==null||Qt,m=to;var v=Qt;to=u,(Qt=a)&&!v?oo(o,c,(c.subtreeFlags&8772)!==0):ro(o,c),to=m,Qt=v}break;case 30:break;default:ro(o,c)}}function Hv(o){var a=o.alternate;a!==null&&(o.alternate=null,Hv(a)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(a=o.stateNode,a!==null&&Sh(a)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var $t=null,jn=!1;function no(o,a,c){for(c=c.child;c!==null;)Gv(o,a,c),c=c.sibling}function Gv(o,a,c){if(H&&typeof H.onCommitFiberUnmount=="function")try{H.onCommitFiberUnmount(D,c)}catch{}switch(c.tag){case 26:Qt||Or(c,a),no(o,a,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:Qt||Or(c,a);var u=$t,m=jn;Fo(c.type)&&($t=c.stateNode,jn=!1),no(o,a,c),yc(c.stateNode),$t=u,jn=m;break;case 5:Qt||Or(c,a);case 6:if(u=$t,m=jn,$t=null,no(o,a,c),$t=u,jn=m,$t!==null)if(jn)try{($t.nodeType===9?$t.body:$t.nodeName==="HTML"?$t.ownerDocument.body:$t).removeChild(c.stateNode)}catch(v){gt(c,a,v)}else try{$t.removeChild(c.stateNode)}catch(v){gt(c,a,v)}break;case 18:$t!==null&&(jn?(o=$t,Lb(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,c.stateNode),Xs(o)):Lb($t,c.stateNode));break;case 4:u=$t,m=jn,$t=c.stateNode.containerInfo,jn=!0,no(o,a,c),$t=u,jn=m;break;case 0:case 11:case 14:case 15:Do(2,c,a),Qt||Do(4,c,a),no(o,a,c);break;case 1:Qt||(Or(c,a),u=c.stateNode,typeof u.componentWillUnmount=="function"&&zv(c,a,u)),no(o,a,c);break;case 21:no(o,a,c);break;case 22:Qt=(u=Qt)||c.memoizedState!==null,no(o,a,c),Qt=u;break;default:no(o,a,c)}}function Kv(o,a){if(a.memoizedState===null&&(o=a.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{Xs(o)}catch(c){gt(a,a.return,c)}}}function Zv(o,a){if(a.memoizedState===null&&(o=a.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Xs(o)}catch(c){gt(a,a.return,c)}}function P2(o){switch(o.tag){case 31:case 13:case 19:var a=o.stateNode;return a===null&&(a=o.stateNode=new Fv),a;case 22:return o=o.stateNode,a=o._retryCache,a===null&&(a=o._retryCache=new Fv),a;default:throw Error(r(435,o.tag))}}function iu(o,a){var c=P2(o);a.forEach(function(u){if(!c.has(u)){c.add(u);var m=q2.bind(null,o,u);u.then(m,m)}})}function Pn(o,a){var c=a.deletions;if(c!==null)for(var u=0;u<c.length;u++){var m=c[u],v=o,A=a,O=A;e:for(;O!==null;){switch(O.tag){case 27:if(Fo(O.type)){$t=O.stateNode,jn=!1;break e}break;case 5:$t=O.stateNode,jn=!1;break e;case 3:case 4:$t=O.stateNode.containerInfo,jn=!0;break e}O=O.return}if($t===null)throw Error(r(160));Gv(v,A,m),$t=null,jn=!1,v=m.alternate,v!==null&&(v.return=null),m.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)Wv(a,o),a=a.sibling}var vr=null;function Wv(o,a){var c=o.alternate,u=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Pn(a,o),Dn(o),u&4&&(Do(3,o,o.return),ic(3,o),Do(5,o,o.return));break;case 1:Pn(a,o),Dn(o),u&512&&(Qt||c===null||Or(c,c.return)),u&64&&to&&(o=o.updateQueue,o!==null&&(u=o.callbacks,u!==null&&(c=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=c===null?u:c.concat(u))));break;case 26:var m=vr;if(Pn(a,o),Dn(o),u&512&&(Qt||c===null||Or(c,c.return)),u&4){var v=c!==null?c.memoizedState:null;if(u=o.memoizedState,c===null)if(u===null)if(o.stateNode===null){e:{u=o.type,c=o.memoizedProps,m=m.ownerDocument||m;t:switch(u){case"title":v=m.getElementsByTagName("title")[0],(!v||v[Pi]||v[hn]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=m.createElement(u),m.head.insertBefore(v,m.querySelector("head > title"))),gn(v,u,c),v[hn]=o,cn(v),u=v;break e;case"link":var A=Wb("link","href",m).get(u+(c.href||""));if(A){for(var O=0;O<A.length;O++)if(v=A[O],v.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&v.getAttribute("rel")===(c.rel==null?null:c.rel)&&v.getAttribute("title")===(c.title==null?null:c.title)&&v.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){A.splice(O,1);break t}}v=m.createElement(u),gn(v,u,c),m.head.appendChild(v);break;case"meta":if(A=Wb("meta","content",m).get(u+(c.content||""))){for(O=0;O<A.length;O++)if(v=A[O],v.getAttribute("content")===(c.content==null?null:""+c.content)&&v.getAttribute("name")===(c.name==null?null:c.name)&&v.getAttribute("property")===(c.property==null?null:c.property)&&v.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&v.getAttribute("charset")===(c.charSet==null?null:c.charSet)){A.splice(O,1);break t}}v=m.createElement(u),gn(v,u,c),m.head.appendChild(v);break;default:throw Error(r(468,u))}v[hn]=o,cn(v),u=v}o.stateNode=u}else Yb(m,o.type,o.stateNode);else o.stateNode=Zb(m,u,o.memoizedProps);else v!==u?(v===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):v.count--,u===null?Yb(m,o.type,o.stateNode):Zb(m,u,o.memoizedProps)):u===null&&o.stateNode!==null&&qf(o,o.memoizedProps,c.memoizedProps)}break;case 27:Pn(a,o),Dn(o),u&512&&(Qt||c===null||Or(c,c.return)),c!==null&&u&4&&qf(o,o.memoizedProps,c.memoizedProps);break;case 5:if(Pn(a,o),Dn(o),u&512&&(Qt||c===null||Or(c,c.return)),o.flags&32){m=o.stateNode;try{Ss(m,"")}catch(Me){gt(o,o.return,Me)}}u&4&&o.stateNode!=null&&(m=o.memoizedProps,qf(o,m,c!==null?c.memoizedProps:m)),u&1024&&(Kf=!0);break;case 6:if(Pn(a,o),Dn(o),u&4){if(o.stateNode===null)throw Error(r(162));u=o.memoizedProps,c=o.stateNode;try{c.nodeValue=u}catch(Me){gt(o,o.return,Me)}}break;case 3:if(xu=null,m=vr,vr=wu(a.containerInfo),Pn(a,o),vr=m,Dn(o),u&4&&c!==null&&c.memoizedState.isDehydrated)try{Xs(a.containerInfo)}catch(Me){gt(o,o.return,Me)}Kf&&(Kf=!1,Yv(o));break;case 4:u=vr,vr=wu(o.stateNode.containerInfo),Pn(a,o),Dn(o),vr=u;break;case 12:Pn(a,o),Dn(o);break;case 31:Pn(a,o),Dn(o),u&4&&(u=o.updateQueue,u!==null&&(o.updateQueue=null,iu(o,u)));break;case 13:Pn(a,o),Dn(o),o.child.flags&8192&&o.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(lu=Pt()),u&4&&(u=o.updateQueue,u!==null&&(o.updateQueue=null,iu(o,u)));break;case 22:m=o.memoizedState!==null;var B=c!==null&&c.memoizedState!==null,J=to,le=Qt;if(to=J||m,Qt=le||B,Pn(a,o),Qt=le,to=J,Dn(o),u&8192)e:for(a=o.stateNode,a._visibility=m?a._visibility&-2:a._visibility|1,m&&(c===null||B||to||Qt||Ba(o)),c=null,a=o;;){if(a.tag===5||a.tag===26){if(c===null){B=c=a;try{if(v=B.stateNode,m)A=v.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none";else{O=B.stateNode;var me=B.memoizedProps.style,ee=me!=null&&me.hasOwnProperty("display")?me.display:null;O.style.display=ee==null||typeof ee=="boolean"?"":(""+ee).trim()}}catch(Me){gt(B,B.return,Me)}}}else if(a.tag===6){if(c===null){B=a;try{B.stateNode.nodeValue=m?"":B.memoizedProps}catch(Me){gt(B,B.return,Me)}}}else if(a.tag===18){if(c===null){B=a;try{var se=B.stateNode;m?zb(se,!0):zb(B.stateNode,!1)}catch(Me){gt(B,B.return,Me)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===o)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;c===a&&(c=null),a=a.return}c===a&&(c=null),a.sibling.return=a.return,a=a.sibling}u&4&&(u=o.updateQueue,u!==null&&(c=u.retryQueue,c!==null&&(u.retryQueue=null,iu(o,c))));break;case 19:Pn(a,o),Dn(o),u&4&&(u=o.updateQueue,u!==null&&(o.updateQueue=null,iu(o,u)));break;case 30:break;case 21:break;default:Pn(a,o),Dn(o)}}function Dn(o){var a=o.flags;if(a&2){try{for(var c,u=o.return;u!==null;){if(Uv(u)){c=u;break}u=u.return}if(c==null)throw Error(r(160));switch(c.tag){case 27:var m=c.stateNode,v=Hf(o);su(o,v,m);break;case 5:var A=c.stateNode;c.flags&32&&(Ss(A,""),c.flags&=-33);var O=Hf(o);su(o,O,A);break;case 3:case 4:var B=c.stateNode.containerInfo,J=Hf(o);Gf(o,J,B);break;default:throw Error(r(161))}}catch(le){gt(o,o.return,le)}o.flags&=-3}a&4096&&(o.flags&=-4097)}function Yv(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var a=o;Yv(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),o=o.sibling}}function ro(o,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)qv(o,a.alternate,a),a=a.sibling}function Ba(o){for(o=o.child;o!==null;){var a=o;switch(a.tag){case 0:case 11:case 14:case 15:Do(4,a,a.return),Ba(a);break;case 1:Or(a,a.return);var c=a.stateNode;typeof c.componentWillUnmount=="function"&&zv(a,a.return,c),Ba(a);break;case 27:yc(a.stateNode);case 26:case 5:Or(a,a.return),Ba(a);break;case 22:a.memoizedState===null&&Ba(a);break;case 30:Ba(a);break;default:Ba(a)}o=o.sibling}}function oo(o,a,c){for(c=c&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var u=a.alternate,m=o,v=a,A=v.flags;switch(v.tag){case 0:case 11:case 15:oo(m,v,c),ic(4,v);break;case 1:if(oo(m,v,c),u=v,m=u.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(J){gt(u,u.return,J)}if(u=v,m=u.updateQueue,m!==null){var O=u.stateNode;try{var B=m.shared.hiddenCallbacks;if(B!==null)for(m.shared.hiddenCallbacks=null,m=0;m<B.length;m++)T0(B[m],O)}catch(J){gt(u,u.return,J)}}c&&A&64&&Lv(v),cc(v,v.return);break;case 27:Vv(v);case 26:case 5:oo(m,v,c),c&&u===null&&A&4&&Bv(v),cc(v,v.return);break;case 12:oo(m,v,c);break;case 31:oo(m,v,c),c&&A&4&&Kv(m,v);break;case 13:oo(m,v,c),c&&A&4&&Zv(m,v);break;case 22:v.memoizedState===null&&oo(m,v,c),cc(v,v.return);break;case 30:break;default:oo(m,v,c)}a=a.sibling}}function Zf(o,a){var c=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(c=o.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==c&&(o!=null&&o.refCount++,c!=null&&Zi(c))}function Wf(o,a){o=null,a.alternate!==null&&(o=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==o&&(a.refCount++,o!=null&&Zi(o))}function br(o,a,c,u){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Jv(o,a,c,u),a=a.sibling}function Jv(o,a,c,u){var m=a.flags;switch(a.tag){case 0:case 11:case 15:br(o,a,c,u),m&2048&&ic(9,a);break;case 1:br(o,a,c,u);break;case 3:br(o,a,c,u),m&2048&&(o=null,a.alternate!==null&&(o=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==o&&(a.refCount++,o!=null&&Zi(o)));break;case 12:if(m&2048){br(o,a,c,u),o=a.stateNode;try{var v=a.memoizedProps,A=v.id,O=v.onPostCommit;typeof O=="function"&&O(A,a.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(B){gt(a,a.return,B)}}else br(o,a,c,u);break;case 31:br(o,a,c,u);break;case 13:br(o,a,c,u);break;case 23:break;case 22:v=a.stateNode,A=a.alternate,a.memoizedState!==null?v._visibility&2?br(o,a,c,u):lc(o,a):v._visibility&2?br(o,a,c,u):(v._visibility|=2,Vs(o,a,c,u,(a.subtreeFlags&10256)!==0||!1)),m&2048&&Zf(A,a);break;case 24:br(o,a,c,u),m&2048&&Wf(a.alternate,a);break;default:br(o,a,c,u)}}function Vs(o,a,c,u,m){for(m=m&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var v=o,A=a,O=c,B=u,J=A.flags;switch(A.tag){case 0:case 11:case 15:Vs(v,A,O,B,m),ic(8,A);break;case 23:break;case 22:var le=A.stateNode;A.memoizedState!==null?le._visibility&2?Vs(v,A,O,B,m):lc(v,A):(le._visibility|=2,Vs(v,A,O,B,m)),m&&J&2048&&Zf(A.alternate,A);break;case 24:Vs(v,A,O,B,m),m&&J&2048&&Wf(A.alternate,A);break;default:Vs(v,A,O,B,m)}a=a.sibling}}function lc(o,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var c=o,u=a,m=u.flags;switch(u.tag){case 22:lc(c,u),m&2048&&Zf(u.alternate,u);break;case 24:lc(c,u),m&2048&&Wf(u.alternate,u);break;default:lc(c,u)}a=a.sibling}}var uc=8192;function Fs(o,a,c){if(o.subtreeFlags&uc)for(o=o.child;o!==null;)Qv(o,a,c),o=o.sibling}function Qv(o,a,c){switch(o.tag){case 26:Fs(o,a,c),o.flags&uc&&o.memoizedState!==null&&wk(c,vr,o.memoizedState,o.memoizedProps);break;case 5:Fs(o,a,c);break;case 3:case 4:var u=vr;vr=wu(o.stateNode.containerInfo),Fs(o,a,c),vr=u;break;case 22:o.memoizedState===null&&(u=o.alternate,u!==null&&u.memoizedState!==null?(u=uc,uc=16777216,Fs(o,a,c),uc=u):Fs(o,a,c));break;default:Fs(o,a,c)}}function Xv(o){var a=o.alternate;if(a!==null&&(o=a.child,o!==null)){a.child=null;do a=o.sibling,o.sibling=null,o=a;while(o!==null)}}
vendor: 5,063 bytes, line 9
9function dc(o){var a=o.deletions;if((o.flags&16)!==0){if(a!==null)for(var c=0;c<a.length;c++){var u=a[c];ln=u,tb(u,o)}Xv(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)eb(o),o=o.sibling}function eb(o){switch(o.tag){case 0:case 11:case 15:dc(o),o.flags&2048&&Do(9,o,o.return);break;case 3:dc(o);break;case 12:dc(o);break;case 22:var a=o.stateNode;o.memoizedState!==null&&a._visibility&2&&(o.return===null||o.return.tag!==13)?(a._visibility&=-3,cu(o)):dc(o);break;default:dc(o)}}function cu(o){var a=o.deletions;if((o.flags&16)!==0){if(a!==null)for(var c=0;c<a.length;c++){var u=a[c];ln=u,tb(u,o)}Xv(o)}for(o=o.child;o!==null;){switch(a=o,a.tag){case 0:case 11:case 15:Do(8,a,a.return),cu(a);break;case 22:c=a.stateNode,c._visibility&2&&(c._visibility&=-3,cu(a));break;default:cu(a)}o=o.sibling}}function tb(o,a){for(;ln!==null;){var c=ln;switch(c.tag){case 0:case 11:case 15:Do(8,c,a);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var u=c.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Zi(c.memoizedState.cache)}if(u=c.child,u!==null)u.return=c,ln=u;else e:for(c=o;ln!==null;){u=ln;var m=u.sibling,v=u.return;if(Hv(u),u===c){ln=null;break e}if(m!==null){m.return=v,ln=m;break e}ln=v}}}var D2={getCacheForType:function(o){var a=pn(Wt),c=a.data.get(o);return c===void 0&&(c=o(),a.data.set(o,c)),c},cacheSignal:function(){return pn(Wt).controller.signal}},I2=typeof WeakMap=="function"?WeakMap:Map,dt=0,xt=null,Xe=null,tt=0,mt=0,Wn=null,Io=!1,qs=!1,Yf=!1,ao=0,Ut=0,Lo=0,Ua=0,Jf=0,Yn=0,Hs=0,hc=null,In=null,Qf=!1,lu=0,nb=0,uu=1/0,du=null,zo=null,nn=0,Bo=null,Gs=null,so=0,Xf=0,ep=null,rb=null,fc=0,tp=null;function Jn(){return(dt&2)!==0&&tt!==0?tt&-tt:z.T!==null?ip():_h()}function ob(){if(Yn===0)if((tt&536870912)===0||ot){var o=at;at<<=1,(at&3932160)===0&&(at=262144),Yn=o}else Yn=536870912;return o=Kn.current,o!==null&&(o.flags|=32),Yn}function Ln(o,a,c){(o===xt&&(mt===2||mt===9)||o.cancelPendingCommit!==null)&&(Ks(o,0),Uo(o,tt,Yn,!1)),Dt(o,c),((dt&2)===0||o!==xt)&&(o===xt&&((dt&2)===0&&(Ua|=c),Ut===4&&Uo(o,tt,Yn,!1)),$r(o))}function ab(o,a,c){if((dt&6)!==0)throw Error(r(327));var u=!c&&(a&127)===0&&(a&o.expiredLanes)===0||Ot(o,a),m=u?B2(o,a):rp(o,a,!0),v=u;do{if(m===0){qs&&!u&&Uo(o,a,0,!1);break}else{if(c=o.current.alternate,v&&!L2(c)){m=rp(o,a,!1),v=!1;continue}if(m===2){if(v=a,o.errorRecoveryDisabledLanes&v)var A=0;else A=o.pendingLanes&-536870913,A=A!==0?A:A&536870912?536870912:0;if(A!==0){a=A;e:{var O=o;m=hc;var B=O.current.memoizedState.isDehydrated;if(B&&(Ks(O,A).flags|=256),A=rp(O,A,!1),A!==2){if(Yf&&!B){O.errorRecoveryDisabledLanes|=v,Ua|=v,m=4;break e}v=In,In=m,v!==null&&(In===null?In=v:In.push.apply(In,v))}m=A}if(v=!1,m!==2)continue}}if(m===1){Ks(o,0),Uo(o,a,0,!0);break}e:{switch(u=o,v=m,v){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:Uo(u,a,Yn,!Io);break e;case 2:In=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(m=lu+300-Pt(),10<m)){if(Uo(u,a,Yn,!Io),He(u,0,!0)!==0)break e;so=a,u.timeoutHandle=Db(sb.bind(null,u,c,In,du,Qf,a,Yn,Ua,Hs,Io,v,"Throttled",-0,0),m);break e}sb(u,c,In,du,Qf,a,Yn,Ua,Hs,Io,v,null,-0,0)}}break}while(!0);$r(o)}function sb(o,a,c,u,m,v,A,O,B,J,le,me,ee,se){if(o.timeoutHandle=-1,me=a.subtreeFlags,me&8192||(me&16785408)===16785408){me={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Hr},Qv(a,v,me);var Me=(v&62914560)===v?lu-Pt():(v&4194048)===v?nb-Pt():0;if(Me=Sk(me,Me),Me!==null){so=v,o.cancelPendingCommit=Me(pb.bind(null,o,a,v,c,u,m,A,O,B,le,me,null,ee,se)),Uo(o,v,A,!J);return}}pb(o,a,v,c,u,m,A,O,B)}function L2(o){for(var a=o;;){var c=a.tag;if((c===0||c===11||c===15)&&a.flags&16384&&(c=a.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var u=0;u<c.length;u++){var m=c[u],v=m.getSnapshot;m=m.value;try{if(!Hn(v(),m))return!1}catch{return!1}}if(c=a.child,a.subtreeFlags&16384&&c!==null)c.return=a,a=c;else{if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Uo(o,a,c,u){a&=~Jf,a&=~Ua,o.suspendedLanes|=a,o.pingedLanes&=~a,u&&(o.warmLanes|=a),u=o.expirationTimes;for(var m=a;0<m;){var v=31-ie(m),A=1<<v;u[v]=-1,m&=~A}c!==0&&Ra(o,c,a)}function hu(){return(dt&6)===0?(pc(0),!1):!0}function np(){if(Xe!==null){if(mt===0)var o=Xe.return;else o=Xe,Wr=Ma=null,vf(o),Is=null,Yi=0,o=Xe;for(;o!==null;)Iv(o.alternate,o),o=o.return;Xe=null}}function Ks(o,a){var c=o.timeoutHandle;c!==-1&&(o.timeoutHandle=-1,ok(c)),c=o.cancelPendingCommit,c!==null&&(o.cancelPendingCommit=null,c()),so=0,np(),xt=o,Xe=c=Kr(o.current,null),tt=a,mt=0,Wn=null,Io=!1,qs=Ot(o,a),Yf=!1,Hs=Yn=Jf=Ua=Lo=Ut=0,In=hc=null,Qf=!1,(a&8)!==0&&(a|=a&32);var u=o.entangledLanes;if(u!==0)for(o=o.entanglements,u&=a;0<u;){var m=31-ie(u),v=1<<m;a|=o[m],u&=~v}return ao=a,Nl(),c}function ib(o,a){Ke=null,z.H=oc,a===Ds||a===Ul?(a=x0(),mt=3):a===af?(a=x0(),mt=4):mt=a===jf?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Wn=a,Xe===null&&(Ut=1,tu
vendor: 2,922 bytes, line 9
9(o,or(a,o.current)))}function cb(){var o=Kn.current;return o===null?!0:(tt&4194048)===tt?cr===null:(tt&62914560)===tt||(tt&536870912)!==0?o===cr:!1}function lb(){var o=z.H;return z.H=oc,o===null?oc:o}function ub(){var o=z.A;return z.A=D2,o}function fu(){Ut=4,Io||(tt&4194048)!==tt&&Kn.current!==null||(qs=!0),(Lo&134217727)===0&&(Ua&134217727)===0||xt===null||Uo(xt,tt,Yn,!1)}function rp(o,a,c){var u=dt;dt|=2;var m=lb(),v=ub();(xt!==o||tt!==a)&&(du=null,Ks(o,a)),a=!1;var A=Ut;e:do try{if(mt!==0&&Xe!==null){var O=Xe,B=Wn;switch(mt){case 8:np(),A=6;break e;case 3:case 2:case 9:case 6:Kn.current===null&&(a=!0);var J=mt;if(mt=0,Wn=null,Zs(o,O,B,J),c&&qs){A=0;break e}break;default:J=mt,mt=0,Wn=null,Zs(o,O,B,J)}}z2(),A=Ut;break}catch(le){ib(o,le)}while(!0);return a&&o.shellSuspendCounter++,Wr=Ma=null,dt=u,z.H=m,z.A=v,Xe===null&&(xt=null,tt=0,Nl()),A}function z2(){for(;Xe!==null;)db(Xe)}function B2(o,a){var c=dt;dt|=2;var u=lb(),m=ub();xt!==o||tt!==a?(du=null,uu=Pt()+500,Ks(o,a)):qs=Ot(o,a);e:do try{if(mt!==0&&Xe!==null){a=Xe;var v=Wn;t:switch(mt){case 1:mt=0,Wn=null,Zs(o,a,v,1);break;case 2:case 9:if(w0(v)){mt=0,Wn=null,hb(a);break}a=function(){mt!==2&&mt!==9||xt!==o||(mt=7),$r(o)},v.then(a,a);break e;case 3:mt=7;break e;case 4:mt=5;break e;case 7:w0(v)?(mt=0,Wn=null,hb(a)):(mt=0,Wn=null,Zs(o,a,v,7));break;case 5:var A=null;switch(Xe.tag){case 26:A=Xe.memoizedState;case 5:case 27:var O=Xe;if(A?Jb(A):O.stateNode.complete){mt=0,Wn=null;var B=O.sibling;if(B!==null)Xe=B;else{var J=O.return;J!==null?(Xe=J,pu(J)):Xe=null}break t}}mt=0,Wn=null,Zs(o,a,v,5);break;case 6:mt=0,Wn=null,Zs(o,a,v,6);break;case 8:np(),Ut=6;break e;default:throw Error(r(462))}}U2();break}catch(le){ib(o,le)}while(!0);return Wr=Ma=null,z.H=u,z.A=m,dt=c,Xe!==null?0:(xt=null,tt=0,Nl(),Ut)}function U2(){for(;Xe!==null&&!Zt();)db(Xe)}function db(o){var a=Pv(o.alternate,o,ao);o.memoizedProps=o.pendingProps,a===null?pu(o):Xe=a}function hb(o){var a=o,c=a.alternate;switch(a.tag){case 15:case 0:a=Cv(c,a,a.pendingProps,a.type,void 0,tt);break;case 11:a=Cv(c,a,a.pendingProps,a.type.render,a.ref,tt);break;case 5:vf(a);default:Iv(c,a),a=Xe=u0(a,ao),a=Pv(c,a,ao)}o.memoizedProps=o.pendingProps,a===null?pu(o):Xe=a}function Zs(o,a,c,u){Wr=Ma=null,vf(a),Is=null,Yi=0;var m=a.return;try{if(C2(o,m,a,c,tt)){Ut=1,tu(o,or(c,o.current)),Xe=null;return}}catch(v){if(m!==null)throw Xe=m,v;Ut=1,tu(o,or(c,o.current)),Xe=null;return}a.flags&32768?(ot||u===1?o=!0:qs||(tt&536870912)!==0?o=!1:(Io=o=!0,(u===2||u===9||u===3||u===6)&&(u=Kn.current,u!==null&&u.tag===13&&(u.flags|=16384))),fb(a,o)):pu(a)}function pu(o){var a=o;do{if((a.flags&32768)!==0){fb(a,Io);return}o=a.return;var c=M2(a.alternate,a,ao);if(c!==null){Xe=c;return}if(a=a.sibling,a!==null){Xe=a;return}Xe=a=o}while(a!==null);Ut===0&&(Ut=5)}function fb(o,a){do{var c=N2(o.alternate,o);if(c!==null){c.flags&=32767,Xe=c;return}if(c=o.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deleti
vendor: 8,324 bytes, line 9
9ons=null),!a&&(o=o.sibling,o!==null)){Xe=o;return}Xe=o=c}while(o!==null);Ut=6,Xe=null}function pb(o,a,c,u,m,v,A,O,B){o.cancelPendingCommit=null;do mu();while(nn!==0);if((dt&6)!==0)throw Error(r(327));if(a!==null){if(a===o.current)throw Error(r(177));if(v=a.lanes|a.childLanes,v|=qh,Cn(o,c,v,A,O,B),o===xt&&(Xe=xt=null,tt=0),Gs=a,Bo=o,so=c,Xf=v,ep=m,rb=u,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,H2(an,function(){return bb(),null})):(o.callbackNode=null,o.callbackPriority=0),u=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||u){u=z.T,z.T=null,m=te.p,te.p=2,A=dt,dt|=4;try{j2(o,a,c)}finally{dt=A,te.p=m,z.T=u}}nn=1,mb(),gb(),yb()}}function mb(){if(nn===1){nn=0;var o=Bo,a=Gs,c=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||c){c=z.T,z.T=null;var u=te.p;te.p=2;var m=dt;dt|=4;try{Wv(a,o);var v=mp,A=t0(o.containerInfo),O=v.focusedElem,B=v.selectionRange;if(A!==O&&O&&O.ownerDocument&&e0(O.ownerDocument.documentElement,O)){if(B!==null&&zh(O)){var J=B.start,le=B.end;if(le===void 0&&(le=J),"selectionStart"in O)O.selectionStart=J,O.selectionEnd=Math.min(le,O.value.length);else{var me=O.ownerDocument||document,ee=me&&me.defaultView||window;if(ee.getSelection){var se=ee.getSelection(),Me=O.textContent.length,Ve=Math.min(B.start,Me),wt=B.end===void 0?Ve:Math.min(B.end,Me);!se.extend&&Ve>wt&&(A=wt,wt=Ve,Ve=A);var Z=Xy(O,Ve),q=Xy(O,wt);if(Z&&q&&(se.rangeCount!==1||se.anchorNode!==Z.node||se.anchorOffset!==Z.offset||se.focusNode!==q.node||se.focusOffset!==q.offset)){var Y=me.createRange();Y.setStart(Z.node,Z.offset),se.removeAllRanges(),Ve>wt?(se.addRange(Y),se.extend(q.node,q.offset)):(Y.setEnd(q.node,q.offset),se.addRange(Y))}}}}for(me=[],se=O;se=se.parentNode;)se.nodeType===1&&me.push({element:se,left:se.scrollLeft,top:se.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<me.length;O++){var fe=me[O];fe.element.scrollLeft=fe.left,fe.element.scrollTop=fe.top}}Tu=!!pp,mp=pp=null}finally{dt=m,te.p=u,z.T=c}}o.current=a,nn=2}}function gb(){if(nn===2){nn=0;var o=Bo,a=Gs,c=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||c){c=z.T,z.T=null;var u=te.p;te.p=2;var m=dt;dt|=4;try{qv(o,a.alternate,a)}finally{dt=m,te.p=u,z.T=c}}nn=3}}function yb(){if(nn===4||nn===3){nn=0,qn();var o=Bo,a=Gs,c=so,u=rb;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?nn=5:(nn=0,Gs=Bo=null,vb(o,o.pendingLanes));var m=o.pendingLanes;if(m===0&&(zo=null),gr(c),a=a.stateNode,H&&typeof H.onCommitFiberRoot=="function")try{H.onCommitFiberRoot(D,a,void 0,(a.current.flags&128)===128)}catch{}if(u!==null){a=z.T,m=te.p,te.p=2,z.T=null;try{for(var v=o.onRecoverableError,A=0;A<u.length;A++){var O=u[A];v(O.value,{componentStack:O.stack})}}finally{z.T=a,te.p=m}}(so&3)!==0&&mu(),$r(o),m=o.pendingLanes,(c&261930)!==0&&(m&42)!==0?o===tp?fc++:(fc=0,tp=o):fc=0,pc(0)}}function vb(o,a){(o.pooledCacheLanes&=a)===0&&(a=o.pooledCache,a!=null&&(o.pooledCache=null,Zi(a)))}function mu(){return mb(),gb(),yb(),bb()}function bb(){if(nn!==5)return!1;var o=Bo,a=Xf;Xf=0;var c=gr(so),u=z.T,m=te.p;try{te.p=32>c?32:c,z.T=null,c=ep,ep=null;var v=Bo,A=so;if(nn=0,Gs=Bo=null,so=0,(dt&6)!==0)throw Error(r(331));var O=dt;if(dt|=4,eb(v.current),Jv(v,v.current,A,c),dt=O,pc(0,!1),H&&typeof H.onPostCommitFiberRoot=="function")try{H.onPostCommitFiberRoot(D,v)}catch{}return!0}finally{te.p=m,z.T=u,vb(o,a)}}function _b(o,a,c){a=or(c,a),a=Nf(o.stateNode,a,2),o=No(o,a,2),o!==null&&(Dt(o,2),$r(o))}function gt(o,a,c){if(o.tag===3)_b(o,o,c);else for(;a!==null;){if(a.tag===3){_b(a,o,c);break}else if(a.tag===1){var u=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(zo===null||!zo.has(u))){o=or(c,o),c=wv(2),u=No(a,c,2),u!==null&&(Sv(c,u,a,o),Dt(u,2),$r(u));break}}a=a.return}}function op(o,a,c){var u=o.pingCache;if(u===null){u=o.pingCache=new I2;var m=new Set;u.set(a,m)}else m=u.get(a),m===void 0&&(m=new Set,u.set(a,m));m.has(c)||(Yf=!0,m.add(c),o=V2.bind(null,o,a,c),a.then(o,o))}function V2(o,a,c){var u=o.pingCache;u!==null&&u.delete(a),o.pingedLanes|=o.suspendedLanes&c,o.warmLanes&=~c,xt===o&&(tt&c)===c&&(Ut===4||Ut===3&&(tt&62914560)===tt&&300>Pt()-lu?(dt&2)===0&&Ks(o,0):Jf|=c,Hs===tt&&(Hs=0)),$r(o)}function wb(o,a){a===0&&(a=wn()),o=Ca(o,a),o!==null&&(Dt(o,a),$r(o))}function F2(o){var a=o.memoizedState,c=0;a!==null&&(c=a.retryLane),wb(o,c)}function q2(o,a){var c=0;switch(o.tag){case 31:case 13:var u=o.stateNode,m=o.memoizedState;m!==null&&(c=m.retryLane);break;case 19:u=o.stateNode;break;case 22:u=o.stateNode._retryCache;break;default:throw Error(r(314))}u!==null&&u.delete(a),wb(o,c)}function H2(o,a){return tn(o,a)}var gu=null,Ws=null,ap=!1,yu=!1,sp=!1,Vo=0;function $r(o){o!==Ws&&o.next===null&&(Ws===null?gu=Ws=o:Ws=Ws.next=o),yu=!0,ap||(ap=!0,K2())}function pc(o,a){if(!sp&&yu){sp=!0;do for(var c=!1,u=gu;u!==null;){if(o!==0){var m=u.pendingLanes;if(m===0)var v=0;else{var A=u.suspendedLanes,O=u.pingedLanes;v=(1<<31-ie(42|o)+1)-1,v&=m&~(A&~O),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(c=!0,Eb(u,v))}else v=tt,v=He(u,u===xt?v:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(v&3)===0||Ot(u,v)||(c=!0,Eb(u,v));u=u.next}while(c);sp=!1}}function G2(){Sb()}function Sb(){yu=ap=!1;var o=0;Vo!==0&&rk()&&(o=Vo);for(var a=Pt(),c=null,u=gu;u!==null;){var m=u.next,v=xb(u,a);v===0?(u.next=null,c===null?gu=m:c.next=m,m===null&&(Ws=c)):(c=u,(o!==0||(v&3)!==0)&&(yu=!0)),u=m}nn!==0&&nn!==5||pc(o),Vo!==0&&(Vo=0)}function xb(o,a){for(var c=o.suspendedLanes,u=o.pingedLanes,m=o.expirationTimes,v=o.pendingLanes&-62914561;0<v;){var A=31-ie(v),O=1<<A,B=m[A];B===-1?((O&c)===0||(O&u)!==0)&&(m[A]=sn(O,a)):B<=a&&(o.expiredLanes|=O),v&=~O}if(a=xt,c=tt,c=He(o,o===a?c:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),u=o.callbackNode,c===0||o===a&&(mt===2||mt===9)||o.cancelPendingCommit!==null)return u!==null&&u!==null&&mr(u),o.callbackNode=null,o.callbackPriority=0;if((c&3)===0||Ot(o,c)){if(a=c&-c,a===o.callbackPriority)return a;switch(u!==null&&mr(u),gr(c)){case 2:case 8:c=kn;break;case 32:c=an;break;case 268435456:c=C;break;default:c=an}return u=Rb.bind(null,o),c=tn(c,u),o.callbackPriority=a,o.callbackNode=c,a}return u!==null&&u!==null&&mr(u),o.callbackPriority=2,o.callbackNode=null,2}function Rb(o,a){if(nn!==0&&nn!==5)return o.callbackNode=null,o.callbackPriority=0,null;var c=o.callbackNode;if(mu()&&o.callbackNode!==c)return null;var u=tt;return u=He(o,o===xt?u:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),u===0?null:(ab(o,u,a),xb(o,Pt()),o.callbackNode!=null&&o.callbackNode===c?Rb.bind(null,o):null)}function Eb(o,a){if(mu())return null;ab(o,a,!0)}function K2(){ak(function(){(dt&6)!==0?tn(At,G2):Sb()})}function ip(){if(Vo===0){var o=js;o===0&&(o=pt,pt<<=1,(pt&261888)===0&&(pt=256)),Vo=o}return Vo}function Ab(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:El(""+o)}function Tb(o,a){var c=a.ownerDocument.createElement("input");return c.name=a.name,c.value=a.value,o.id&&c.setAttribute("form",o.id),a.parentNode.insertBefore(c,a),o=new FormData(o),c.parentNode.removeChild(c),o}function Z2(o,a,c,u,m){if(a==="submit"&&c&&c.stateNode===m){var v=Ab((m[Mn]||null).action),A=u.submitter;A&&(a=(a=A[Mn]||null)?Ab(a.formAction):A.getAttribute("formAction"),a!==null&&(v=a,A=null));var O=new Cl("action","action",null,u,m);o.push({event:O,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Vo!==0){var B=A?Tb(m,A):new FormData(m);Tf(c,{pending:!0,data:B,method:m.method,action:v},null,B)}}else typeof v=="function"&&(O.preventDefault(),B=A?Tb(m,A):new FormData(m),Tf(c,{pending:!0,data:B,method:m.method,action:v},v,B))},currentTarget:m}]})}}for(var cp=0;cp<Fh.length;cp++){var lp=Fh[cp],W2=lp.toLowerCase(),Y2=lp[0].toUpperCase()+lp.slice(1);yr(W2,"on"+Y2)}yr(o0,"onAnimationEnd"),yr(a0,"onAnimationIteration"),yr(s0,"onAnimationStart"),yr("dblclick","onDoubleClick"),yr("focusin","onFocus"),yr("focusout","onBlur"),yr(h2,"onTransitionRun"),yr(f2,"onTransitionStart"),yr(p2,"onTransitionCancel"),yr(i0,"onTransitionEnd"),_s("onMouseEnter",["mouseout","mouseover"]),_s("onMouseLeave",["mouseout","mouseover"]),_s("onPointerEnter",["pointerout","pointerover"]),_s("onPointerLeave",["pointerout","pointerover"]),Ea("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ea("onSelect","focusout contextmenu dragend focu
9sin keydown keyup mousedown mouseup selectionchange".split(" ")),Ea("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ea("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ea("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ea("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),J2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mc));function kb(o,a){a=(a&4)!==0;for(var c=0;c<o.length;c++){var u=o[c],m=u.event;u=u.listeners;e:{var v=void 0;if(a)for(var A=u.length-1;0<=A;A--){var O=u[A],B=O.instance,J=O.currentTarget;if(O=O.listener,B!==v&&m.isPropagationStopped())break e;v=O,m.currentTarget=J;try{v(m)}catch(le){Ml(le)}m.currentTarget=null,v=B}else for(A=0;A<u.length;A++){if(O=u[A],B=O.instance,J=O.currentTarget,O=O.listener,B!==v&&m.isPropagationStopped())break e;v=O,m.currentTarget=J;try{v(m)}catch(le){Ml(le)}m.currentTarget=null,v=B}}}}function et(o,a){var c=a[wh];c===void 0&&(c=a[wh]=new Set);var u=o+"__bubble";c.has(u)||(Cb(a,o,2,!1),c.add(u))}function up(o,a,c){var u=0;a&&(u|=4),Cb(c,o,u,a)}var vu="_reactListening"+Math.random().toString(36).slice(2);function dp(o){if(!o[vu]){o[vu]=!0,Sy.forEach(function(c){c!=="selectionchange"&&(J2.has(c)||up(c,!1,o),up(c,!0,o))});var a=o.nodeType===9?o:o.ownerDocument;a===null||a[vu]||(a[vu]=!0,up("selectionchange",!1,a))}}function Cb(o,a,c,u){switch(o_(a)){case 2:var m=Ek;break;case 8:m=Ak;break;default:m=Ap}c=m.bind(null,a,c,o),m=void 0,!Oh||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(m=!0),u?m!==void 0?o.addEventListener(a,c,{capture:!0,passive:m}):o.addEventListener(a,c,!0):m!==void 0?o.addEventListener(a,c,{passive:m}):o.addEventListener(a,c,!1)}function hp(o,a,c,u,m){var v=u;if((a&1)===0&&(a&2)===0&&u!==null)e:for(;;){if(u===null)return;var A=u.tag;if(A===3||A===4){var O=u.stateNode.containerInfo;if(O===m)break;if(A===4)for(A=u.return;A!==null;){var B=A.tag;if((B===3||B===4)&&A.stateNode.containerInfo===m)return;A=A.return}for(;O!==null;){if(A=ys(O),A===null)return;if(B=A.tag,B===5||B===6||B===26||B===27){u=v=A;continue e}O=O.parentNode}}u=u.return}jy(function(){var J=v,le=kh(c),me=[];e:{var ee=c0.get(o);if(ee!==void 0){var se=Cl,Me=o;switch(o){case"keypress":if(Tl(c)===0)break e;case"keydown":case"keyup":se=qT;break;case"focusin":Me="focus",se=jh;break;case"focusout":Me="blur",se=jh;break;case"beforeblur":case"afterblur":se=jh;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":se=Iy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":se=MT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":se=KT;break;case o0:case a0:case s0:se=PT;break;case i0:se=WT;break;case"scroll":case"scrollend":se=OT;break;case"wheel":se=JT;break;case"copy":case"cut":case"paste":se=IT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":se=zy;break;case"toggle":case"beforetoggle":se=XT}var Ve=(a&4)!==0,wt=!Ve&&(o==="scroll"||o==="scrollend"),Z=Ve?ee!==null?ee+"Capture":null:ee;Ve=[];for(var q=J,Y;q!==null;){var fe=q;if(Y=fe.stateNode,fe=fe.tag,fe!==5&&fe!==26&&fe!==27||Y===null||Z===null||(fe=Ii(q,Z),fe!=null&&Ve.push(gc(q,fe,Y))),wt)break;q=q.return}0<Ve.length&&(ee=new se(ee,Me,null,c,le),me.push({event:ee,listeners:Ve}))}}if((a&7)===0){e:{if(ee=o==="mouseover"||o==="pointerover",se=o==="mouseout"||o==="pointerout",ee&&c!==Th&&(Me=c.relatedTarget||c.fromElement)&&(ys(Me)||Me[gs]))break e;if((se||ee)&&(ee=le.window===le?le:(ee=le.ownerDocument)?ee.defaultView||ee.parentWindow:window,se?(Me=c.relatedTarget||c.toElement,se=J,Me=Me?ys(Me):null,Me!==null&&(wt=i(Me),Ve=Me.tag,Me!==wt||Ve!==5&&Ve!==27&&Ve!==6)&&(Me=null)):(se=null,Me=J),se!==Me)){if(Ve=Iy,fe="onMouseLeave",Z="onMouseEnter",q="mouse",(o==="pointerout"||o==="pointerover")&&(Ve=zy,fe="onPointerLeave",Z="onPointerEnter",q="pointer"),wt=se==null?ee:Di(se),Y=Me==null?ee:Di(Me),ee=new Ve(fe,q+"leave",se,c,le),ee.target=wt,ee.relatedTarget=Y,fe=null,ys(le)===J&&(Ve=new Ve(Z,q+"enter",Me,c,le),Ve.target=Y,Ve.relatedTarget=wt,fe=Ve),wt=fe,se&&Me)t:{for(Ve=Q2,Z=se,q=Me,Y=0,fe=Z;fe;fe=Ve(fe))Y++;fe=0;for(var Be=q;Be;Be=Ve(Be))fe++;for(;0<Y-fe;)Z=Ve(Z),Y--;for(;0<fe-Y;)q=Ve(q),fe--;for(;Y--;){if(Z===q||q!==null&&Z===q.alternate){Ve=Z;break t}Z=Ve(Z),q=Ve(q)}Ve=null}else Ve=null;se!==null&&Ob(me,ee,se,Ve,!1),Me!==null&&wt!==null&&Ob(me,wt,Me,Ve,!0)}}
vendor: 2,644 bytes, lines 9-10
9e:{if(ee=J?Di(J):window,se=ee.nodeName&&ee.nodeName.toLowerCase(),se==="select"||se==="input"&&ee.type==="file")var lt=Ky;else if(Hy(ee))if(Zy)lt=l2;else{lt=i2;var Ie=s2}else se=ee.nodeName,!se||se.toLowerCase()!=="input"||ee.type!=="checkbox"&&ee.type!=="radio"?J&&Ah(J.elementType)&&(lt=Ky):lt=c2;if(lt&&(lt=lt(o,J))){Gy(me,lt,c,le);break e}Ie&&Ie(o,ee,J),o==="focusout"&&J&&ee.type==="number"&&J.memoizedProps.value!=null&&Eh(ee,"number",ee.value)}switch(Ie=J?Di(J):window,o){case"focusin":(Hy(Ie)||Ie.contentEditable==="true")&&(As=Ie,Bh=J,Hi=null);break;case"focusout":Hi=Bh=As=null;break;case"mousedown":Uh=!0;break;case"contextmenu":case"mouseup":case"dragend":Uh=!1,n0(me,c,le);break;case"selectionchange":if(d2)break;case"keydown":case"keyup":n0(me,c,le)}var We;if(Dh)e:{switch(o){case"compositionstart":var nt="onCompositionStart";break e;case"compositionend":nt="onCompositionEnd";break e;case"compositionupdate":nt="onCompositionUpdate";break e}nt=void 0}else Es?Fy(o,c)&&(nt="onCompositionEnd"):o==="keydown"&&c.keyCode===229&&(nt="onCompositionStart");nt&&(By&&c.locale!=="ko"&&(Es||nt!=="onCompositionStart"?nt==="onCompositionEnd"&&Es&&(We=Py()):(Ao=le,$h="value"in Ao?Ao.value:Ao.textContent,Es=!0)),Ie=bu(J,nt),0<Ie.length&&(nt=new Ly(nt,o,null,c,le),me.push({event:nt,listeners:Ie}),We?nt.data=We:(We=qy(c),We!==null&&(nt.data=We)))),(We=t2?n2(o,c):r2(o,c))&&(nt=bu(J,"onBeforeInput"),0<nt.length&&(Ie=new Ly("onBeforeInput","beforeinput",null,c,le),me.push({event:Ie,listeners:nt}),Ie.data=We)),Z2(me,o,J,c,le)}kb(me,a)})}function gc(o,a,c){return{instance:o,listener:a,currentTarget:c}}function bu(o,a){for(var c=a+"Capture",u=[];o!==null;){var m=o,v=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||v===null||(m=Ii(o,c),m!=null&&u.unshift(gc(o,m,v)),m=Ii(o,a),m!=null&&u.push(gc(o,m,v))),o.tag===3)return u;o=o.return}return[]}function Q2(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function Ob(o,a,c,u,m){for(var v=a._reactName,A=[];c!==null&&c!==u;){var O=c,B=O.alternate,J=O.stateNode;if(O=O.tag,B!==null&&B===u)break;O!==5&&O!==26&&O!==27||J===null||(B=J,m?(J=Ii(c,v),J!=null&&A.unshift(gc(c,J,B))):m||(J=Ii(c,v),J!=null&&A.push(gc(c,J,B)))),c=c.return}A.length!==0&&o.push({event:a,listeners:A})}var X2=/\r\n?/g,ek=/\u0000|\uFFFD/g;function $b(o){return(typeof o=="string"?o:""+o).replace(X2,` 10`).replace(ek,"")}function Mb(o,a){return a=$b(a),$b(o)===a}function _t(o,a,c,u,m,v){switch(c){case"children":typeof u=="string"?a==="body"||a==="textarea"&&u===""||Ss(o,u):(typeof u=="number"||typeof u=="bigint")&&a!=="body"&&Ss(o,""+u);break;case"className":xl(o,"class",u);break;
vendor: 11,247 bytes, line 10
10case"tabIndex":xl(o,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":xl(o,c,u);break;case"style":My(o,u,v);break;case"data":if(a!=="object"){xl(o,"data",u);break}case"src":case"href":if(u===""&&(a!=="a"||c!=="href")){o.removeAttribute(c);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){o.removeAttribute(c);break}u=El(""+u),o.setAttribute(c,u);break;case"action":case"formAction":if(typeof u=="function"){o.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof v=="function"&&(c==="formAction"?(a!=="input"&&_t(o,a,"name",m.name,m,null),_t(o,a,"formEncType",m.formEncType,m,null),_t(o,a,"formMethod",m.formMethod,m,null),_t(o,a,"formTarget",m.formTarget,m,null)):(_t(o,a,"encType",m.encType,m,null),_t(o,a,"method",m.method,m,null),_t(o,a,"target",m.target,m,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){o.removeAttribute(c);break}u=El(""+u),o.setAttribute(c,u);break;case"onClick":u!=null&&(o.onclick=Hr);break;case"onScroll":u!=null&&et("scroll",o);break;case"onScrollEnd":u!=null&&et("scrollend",o);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(c=u.__html,c!=null){if(m.children!=null)throw Error(r(60));o.innerHTML=c}}break;case"multiple":o.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":o.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){o.removeAttribute("xlink:href");break}c=El(""+u),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?o.setAttribute(c,""+u):o.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?o.setAttribute(c,""):o.removeAttribute(c);break;case"capture":case"download":u===!0?o.setAttribute(c,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?o.setAttribute(c,u):o.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?o.setAttribute(c,u):o.removeAttribute(c);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?o.removeAttribute(c):o.setAttribute(c,u);break;case"popover":et("beforetoggle",o),et("toggle",o),Sl(o,"popover",u);break;case"xlinkActuate":qr(o,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":qr(o,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":qr(o,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":qr(o,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":qr(o,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":qr(o,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":qr(o,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":qr(o,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":qr(o,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Sl(o,"is",u);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=kT.get(c)||c,Sl(o,c,u))}}function fp(o,a,c,u,m,v){switch(c){case"style":My(o,u,v);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(c=u.__html,c!=null){if(m.children!=null)throw Error(r(60));o.innerHTML=c}}break;case"children":typeof u=="string"?Ss(o,u):(typeof u=="number"||typeof u=="bigint")&&Ss(o,""+u);break;case"onScroll":u!=null&&et("scroll",o);break;case"onScrollEnd":u!=null&&et("scrollend",o);break;case"onClick":u!=null&&(o.onclick=Hr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!xy.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(m=c.endsWith("Capture"),a=c.slice(2,m?c.length-7:void 0),v=o[Mn]||null,v=v!=null?v[c]:null,typeof v=="function"&&o.removeEventListener(a,v,m),typeof u=="function")){typeof v!="function"&&v!==null&&(c in o?o[c]=null:o.hasAttribute(c)&&o.removeAttribute(c)),o.addEventListener(a,u,m);break e}c in o?o[c]=u:u===!0?o.setAttribute(c,""):Sl(o,c,u)}}}function gn(o,a,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":et("error",o),et("load",o);var u=!1,m=!1,v;for(v in c)if(c.hasOwnProperty(v)){var A=c[v];if(A!=null)switch(v){case"src":u=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:_t(o,a,v,A,c,null)}}m&&_t(o,a,"srcSet",c.srcSet,c,null),u&&_t(o,a,"src",c.src,c,null);return;case"input":et("invalid",o);var O=v=A=m=null,B=null,J=null;for(u in c)if(c.hasOwnProperty(u)){var le=c[u];if(le!=null)switch(u){case"name":m=le;break;case"type":A=le;break;case"checked":B=le;break;case"defaultChecked":J=le;break;case"value":v=le;break;case"defaultValue":O=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(r(137,a));break;default:_t(o,a,u,le,c,null)}}ky(o,v,O,B,J,A,m,!1);return;case"select":et("invalid",o),u=A=v=null;for(m in c)if(c.hasOwnProperty(m)&&(O=c[m],O!=null))switch(m){case"value":v=O;break;case"defaultValue":A=O;break;case"multiple":u=O;default:_t(o,a,m,O,c,null)}a=v,c=A,o.multiple=!!u,a!=null?ws(o,!!u,a,!1):c!=null&&ws(o,!!u,c,!0);return;case"textarea":et("invalid",o),v=m=u=null;for(A in c)if(c.hasOwnProperty(A)&&(O=c[A],O!=null))switch(A){case"value":u=O;break;case"defaultValue":m=O;break;case"children":v=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(91));break;default:_t(o,a,A,O,c,null)}Oy(o,u,m,v);return;case"option":for(B in c)c.hasOwnProperty(B)&&(u=c[B],u!=null)&&(B==="selected"?o.selected=u&&typeof u!="function"&&typeof u!="symbol":_t(o,a,B,u,c,null));return;case"dialog":et("beforetoggle",o),et("toggle",o),et("cancel",o),et("close",o);break;case"iframe":case"object":et("load",o);break;case"video":case"audio":for(u=0;u<mc.length;u++)et(mc[u],o);break;case"image":et("error",o),et("load",o);break;case"details":et("toggle",o);break;case"embed":case"source":case"link":et("error",o),et("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(J in c)if(c.hasOwnProperty(J)&&(u=c[J],u!=null))switch(J){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:_t(o,a,J,u,c,null)}return;default:if(Ah(a)){for(le in c)c.hasOwnProperty(le)&&(u=c[le],u!==void 0&&fp(o,a,le,u,c,void 0));return}}for(O in c)c.hasOwnProperty(O)&&(u=c[O],u!=null&&_t(o,a,O,u,c,null))}function tk(o,a,c,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,v=null,A=null,O=null,B=null,J=null,le=null;for(se in c){var me=c[se];if(c.hasOwnProperty(se)&&me!=null)switch(se){case"checked":break;case"value":break;case"defaultValue":B=me;default:u.hasOwnProperty(se)||_t(o,a,se,null,u,me)}}for(var ee in u){var se=u[ee];if(me=c[ee],u.hasOwnProperty(ee)&&(se!=null||me!=null))switch(ee){case"type":v=se;break;case"name":m=se;break;case"checked":J=se;break;case"defaultChecked":le=se;break;case"value":A=se;break;case"defaultValue":O=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(r(137,a));break;default:se!==me&&_t(o,a,ee,se,u,me)}}Rh(o,A,O,B,J,le,v,m);return;case"select":se=A=O=ee=null;for(v in c)if(B=c[v],c.hasOwnProperty(v)&&B!=null)switch(v){case"value":break;case"multiple":se=B;default:u.hasOwnProperty(v)||_t(o,a,v,null,u,B)}for(m in u)if(v=u[m],B=c[m],u.hasOwnProperty(m)&&(v!=null||B!=null))switch(m){case"value":ee=v;break;case"defaultValue":O=v;break;case"multiple":A=v;default:v!==B&&_t(o,a,m,v,u,B)}a=O,c=A,u=se,ee!=null?ws(o,!!c,ee,!1):!!u!=!!c&&(a!=null?ws(o,!!c,a,!0):ws(o,!!c,c?[]:"",!1));return;case"textarea":se=ee=null;for(O in c)if(m=c[O],c.hasOwnProperty(O)&&m!=null&&!u.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:_t(o,a,O,null,u,m)}for(A in u)if(m=u[A],v=c[A],u.hasOwnProperty(A)&&(m!=null||v!=null))switch(A){case"value":ee=m;break;case"defaultValue":se=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(r(91));break;default:m!==v&&_t(o,a,A,m,u,v)}Cy(o,ee,se);return;case"option":for(var Me in c)ee=c[Me],c.hasOwnProperty(Me)&&ee!=null&&!u.hasOwnProperty(Me)&&(Me==="selected"?o.selected=!1:_t(o,a,Me,null,u,ee));for(B in u)ee=u[B],se=c[B],u.hasOwnProperty(B)&&ee!==se&&(ee!=null||se!=null)&&(B==="selected"?o.selected=ee&&typeof ee!="function"&&typeof ee!="symbol":_t(o,a,B,ee,u,se));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ve in c)ee=c[Ve],c.hasOwnProperty(Ve)&&ee!=null&&!u.hasOwnProperty(Ve)&&_t(o,a,Ve,null,u,ee);for(J in u)if(ee=u[J],se=c[J],u.hasOwnProperty(J)&&ee!==se&&(ee!=null||se!=null))switch(J){case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(137,a));break;default:_t(o,a,J,ee,u,se)}return;default:if(Ah(a)){for(var wt in c)ee=c[wt],c.hasOwnProperty(wt)&&ee!==void 0&&!u.hasOwnProperty(wt)&&fp(o,a,wt,void 0,u,ee);for(le in u)ee=u[le],se=c[le],!u.hasOwnProperty(le)||ee===se||ee===void 0&&se===void 0||fp(o,a,le,ee,u,se);return}}for(var Z in c)ee=c[Z],c.hasOwnProperty(Z)&&ee!=null&&!u.hasOwnProperty(Z)&&_t(o,a,Z,null,u,ee);for(me in u)ee=u[me],se=c[me],!u.hasOwnProperty(me)||ee===se||ee==null&&se==null||_t(o,a,me,ee,u,se)}function Nb(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function nk(){if(typeof performance.getEntriesByType=="function"){for(var o=0,a=0,c=performance.getEntriesByType("resource"),u=0;u<c.length;u++){var m=c[u],v=m.transferSize,A=m.initiatorType,O=m.duration;if(v&&O&&Nb(A)){for(A=0,O=m.responseEnd,u+=1;u<c.length;u++){var B=c[u],J=B.startTime;if(J>O)break;var le=B.transferSize,me=B.initiatorType;le&&Nb(me)&&(B=B.responseEnd,A+=le*(B<O?1:(O-J)/(B-J)))}if(--u,a+=8*(v+A)/(m.duration/1e3),o++,10<o)break}}if(0<o)return a/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var pp=null,mp=null;function _u(o){return o.nodeType===9?o:o.ownerDocument}
vendor: 8,973 bytes, line 10
10function jb(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Pb(o,a){if(o===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&a==="foreignObject"?0:o}function gp(o,a){return o==="textarea"||o==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var yp=null;function rk(){var o=window.event;return o&&o.type==="popstate"?o===yp?!1:(yp=o,!0):(yp=null,!1)}var Db=typeof setTimeout=="function"?setTimeout:void 0,ok=typeof clearTimeout=="function"?clearTimeout:void 0,Ib=typeof Promise=="function"?Promise:void 0,ak=typeof queueMicrotask=="function"?queueMicrotask:typeof Ib<"u"?function(o){return Ib.resolve(null).then(o).catch(sk)}:Db;function sk(o){setTimeout(function(){throw o})}function Fo(o){return o==="head"}function Lb(o,a){var c=a,u=0;do{var m=c.nextSibling;if(o.removeChild(c),m&&m.nodeType===8)if(c=m.data,c==="/$"||c==="/&"){if(u===0){o.removeChild(m),Xs(a);return}u--}else if(c==="$"||c==="$?"||c==="$~"||c==="$!"||c==="&")u++;else if(c==="html")yc(o.ownerDocument.documentElement);else if(c==="head"){c=o.ownerDocument.head,yc(c);for(var v=c.firstChild;v;){var A=v.nextSibling,O=v.nodeName;v[Pi]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&v.rel.toLowerCase()==="stylesheet"||c.removeChild(v),v=A}}else c==="body"&&yc(o.ownerDocument.body);c=m}while(c);Xs(a)}function zb(o,a){var c=o;o=0;do{var u=c.nextSibling;if(c.nodeType===1?a?(c._stashedDisplay=c.style.display,c.style.display="none"):(c.style.display=c._stashedDisplay||"",c.getAttribute("style")===""&&c.removeAttribute("style")):c.nodeType===3&&(a?(c._stashedText=c.nodeValue,c.nodeValue=""):c.nodeValue=c._stashedText||""),u&&u.nodeType===8)if(c=u.data,c==="/$"){if(o===0)break;o--}else c!=="$"&&c!=="$?"&&c!=="$~"&&c!=="$!"||o++;c=u}while(c)}function vp(o){var a=o.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var c=a;switch(a=a.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":vp(c),Sh(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}o.removeChild(c)}}function ik(o,a,c,u){for(;o.nodeType===1;){var m=c;if(o.nodeName.toLowerCase()!==a.toLowerCase()){if(!u&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(u){if(!o[Pi])switch(a){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(v=o.getAttribute("rel"),v==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(v!==m.rel||o.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||o.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||o.getAttribute("title")!==(m.title==null?null:m.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(v=o.getAttribute("src"),(v!==(m.src==null?null:m.src)||o.getAttribute("type")!==(m.type==null?null:m.type)||o.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&v&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(a==="input"&&o.type==="hidden"){var v=m.name==null?null:""+m.name;if(m.type==="hidden"&&o.getAttribute("name")===v)return o}else return o;if(o=lr(o.nextSibling),o===null)break}return null}function ck(o,a,c){if(a==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!c||(o=lr(o.nextSibling),o===null))return null;return o}function Bb(o,a){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!a||(o=lr(o.nextSibling),o===null))return null;return o}function bp(o){return o.data==="$?"||o.data==="$~"}function _p(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function lk(o,a){var c=o.ownerDocument;if(o.data==="$~")o._reactRetry=a;else if(o.data!=="$?"||c.readyState!=="loading")a();else{var u=function(){a(),c.removeEventListener("DOMContentLoaded",u)};c.addEventListener("DOMContentLoaded",u),o._reactRetry=u}}function lr(o){for(;o!=null;o=o.nextSibling){var a=o.nodeType;if(a===1||a===3)break;if(a===8){if(a=o.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return o}var wp=null;function Ub(o){o=o.nextSibling;for(var a=0;o;){if(o.nodeType===8){var c=o.data;if(c==="/$"||c==="/&"){if(a===0)return lr(o.nextSibling);a--}else c!=="$"&&c!=="$!"&&c!=="$?"&&c!=="$~"&&c!=="&"||a++}o=o.nextSibling}return null}function Vb(o){o=o.previousSibling;for(var a=0;o;){if(o.nodeType===8){var c=o.data;if(c==="$"||c==="$!"||c==="$?"||c==="$~"||c==="&"){if(a===0)return o;a--}else c!=="/$"&&c!=="/&"||a++}o=o.previousSibling}return null}function Fb(o,a,c){switch(a=_u(c),o){case"html":if(o=a.documentElement,!o)throw Error(r(452));return o;case"head":if(o=a.head,!o)throw Error(r(453));return o;case"body":if(o=a.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function yc(o){for(var a=o.attributes;a.length;)o.removeAttributeNode(a[0]);Sh(o)}var ur=new Map,qb=new Set;function wu(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var io=te.d;te.d={f:uk,r:dk,D:hk,C:fk,L:pk,m:mk,X:yk,S:gk,M:vk};function uk(){var o=io.f(),a=hu();return o||a}function dk(o){var a=vs(o);a!==null&&a.tag===5&&a.type==="form"?iv(a):io.r(o)}var Ys=typeof document>"u"?null:document;function Hb(o,a,c){var u=Ys;if(u&&typeof a=="string"&&a){var m=nr(a);m='link[rel="'+o+'"][href="'+m+'"]',typeof c=="string"&&(m+='[crossorigin="'+c+'"]'),qb.has(m)||(qb.add(m),o={rel:o,crossOrigin:c,href:a},u.querySelector(m)===null&&(a=u.createElement("link"),gn(a,"link",o),cn(a),u.head.appendChild(a)))}}function hk(o){io.D(o),Hb("dns-prefetch",o,null)}function fk(o,a){io.C(o,a),Hb("preconnect",o,a)}function pk(o,a,c){io.L(o,a,c);var u=Ys;if(u&&o&&a){var m='link[rel="preload"][as="'+nr(a)+'"]';a==="image"&&c&&c.imageSrcSet?(m+='[imagesrcset="'+nr(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(m+='[imagesizes="'+nr(c.imageSizes)+'"]')):m+='[href="'+nr(o)+'"]';var v=m;switch(a){case"style":v=Js(o);break;case"script":v=Qs(o)}ur.has(v)||(o=y({rel:"preload",href:a==="image"&&c&&c.imageSrcSet?void 0:o,as:a},c),ur.set(v,o),u.querySelector(m)!==null||a==="style"&&u.querySelector(vc(v))||a==="script"&&u.querySelector(bc(v))||(a=u.createElement("link"),gn(a,"link",o),cn(a),u.head.appendChild(a)))}}function mk(o,a){io.m(o,a);var c=Ys;if(c&&o){var u=a&&typeof a.as=="string"?a.as:"script",m='link[rel="modulepreload"][as="'+nr(u)+'"][href="'+nr(o)+'"]',v=m;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Qs(o)}if(!ur.has(v)&&(o=y({rel:"modulepreload",href:o},a),ur.set(v,o),c.querySelector(m)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(bc(v)))return}u=c.createElement("link"),gn(u,"link",o),cn(u),c.head.appendChild(u)}}}function gk(o,a,c){io.S(o,a,c);var u=Ys;if(u&&o){var m=bs(u).hoistableStyles,v=Js(o);a=a||"default";var A=m.get(v);if(!A){var O={loading:0,preload:null};if(A=u.querySelector(vc(v)))O.loading=5;else{o=y({rel:"stylesheet",href:o,"data-precedence":a},c),(c=ur.get(v))&&Sp(o,c);var B=A=u.createElement("link");cn(B),gn(B,"link",o),B._p=new Promise(function(J,le){B.onload=J,B.onerror=le}),B.addEventListener("load",function(){O.loading|=1}),B.addEventListener("error",function(){O.loading|=2}),O.loading|=4,Su(A,a,u)}A={type:"stylesheet",instance:A,count:1,state:O},m.set(v,A)}}}function yk(o,a){io.X(o,a);var c=Ys;if(c&&o){var u=bs(c).hoistableScripts,m=Qs(o),v=u.get(m);v||(v=c.querySelector(bc(m)),v||(o=y({src:o,async:!0},a),(a=ur.get(m))&&xp(o,a),v=c.createElement("script"),cn(v),gn(v,"link",o),c.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(m,v))}}function vk(o,a){io.M(o,a);var c=Ys;if(c&&o){var u=bs(c).hoistableScripts,m=Qs(o),v=u.get(m);v||(v=c.querySelector(bc(m)),v||(o=y({src:o,async:!0,type:"module"},a),(a=ur.get(m))&&xp(o,a),v=c.createElement("script"),cn(v),gn(v,"link",o),c.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(m,v))}}function Gb(o,a,c,u){var m=(m=Re.current)?wu(m):null;if(!m)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(a=Js(c.href),c=bs(m).hoistableStyles,u=c.get(a),u||(u={type:"style",instance:null,count:0,state:null},c.set(a,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){o=Js(c.href);var v=bs(m).hoistableStyles,A=v.get(o);if(A||(m=m.ownerDocument||m,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(o,A),(v=m.querySelector(vc(o)))&&!v._p&&(A.instance=v,A.state.loading=5),ur.has(o)||
vendor: 4,121 bytes, line 10
10(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},ur.set(o,c),v||bk(m,o,c,A.state))),a&&u===null)throw Error(r(528,""));return A}if(a&&u!==null)throw Error(r(529,""));return null;case"script":return a=c.async,c=c.src,typeof c=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Qs(c),c=bs(m).hoistableScripts,u=c.get(a),u||(u={type:"script",instance:null,count:0,state:null},c.set(a,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function Js(o){return'href="'+nr(o)+'"'}function vc(o){return'link[rel="stylesheet"]['+o+"]"}function Kb(o){return y({},o,{"data-precedence":o.precedence,precedence:null})}function bk(o,a,c,u){o.querySelector('link[rel="preload"][as="style"]['+a+"]")?u.loading=1:(a=o.createElement("link"),u.preload=a,a.addEventListener("load",function(){return u.loading|=1}),a.addEventListener("error",function(){return u.loading|=2}),gn(a,"link",c),cn(a),o.head.appendChild(a))}function Qs(o){return'[src="'+nr(o)+'"]'}function bc(o){return"script[async]"+o}function Zb(o,a,c){if(a.count++,a.instance===null)switch(a.type){case"style":var u=o.querySelector('style[data-href~="'+nr(c.href)+'"]');if(u)return a.instance=u,cn(u),u;var m=y({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return u=(o.ownerDocument||o).createElement("style"),cn(u),gn(u,"style",m),Su(u,c.precedence,o),a.instance=u;case"stylesheet":m=Js(c.href);var v=o.querySelector(vc(m));if(v)return a.state.loading|=4,a.instance=v,cn(v),v;u=Kb(c),(m=ur.get(m))&&Sp(u,m),v=(o.ownerDocument||o).createElement("link"),cn(v);var A=v;return A._p=new Promise(function(O,B){A.onload=O,A.onerror=B}),gn(v,"link",u),a.state.loading|=4,Su(v,c.precedence,o),a.instance=v;case"script":return v=Qs(c.src),(m=o.querySelector(bc(v)))?(a.instance=m,cn(m),m):(u=c,(m=ur.get(v))&&(u=y({},c),xp(u,m)),o=o.ownerDocument||o,m=o.createElement("script"),cn(m),gn(m,"link",u),o.head.appendChild(m),a.instance=m);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(u=a.instance,a.state.loading|=4,Su(u,c.precedence,o));return a.instance}function Su(o,a,c){for(var u=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=u.length?u[u.length-1]:null,v=m,A=0;A<u.length;A++){var O=u[A];if(O.dataset.precedence===a)v=O;else if(v!==m)break}v?v.parentNode.insertBefore(o,v.nextSibling):(a=c.nodeType===9?c.head:c,a.insertBefore(o,a.firstChild))}function Sp(o,a){o.crossOrigin==null&&(o.crossOrigin=a.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=a.referrerPolicy),o.title==null&&(o.title=a.title)}function xp(o,a){o.crossOrigin==null&&(o.crossOrigin=a.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=a.referrerPolicy),o.integrity==null&&(o.integrity=a.integrity)}var xu=null;function Wb(o,a,c){if(xu===null){var u=new Map,m=xu=new Map;m.set(c,u)}else m=xu,u=m.get(c),u||(u=new Map,m.set(c,u));if(u.has(o))return u;for(u.set(o,null),c=c.getElementsByTagName(o),m=0;m<c.length;m++){var v=c[m];if(!(v[Pi]||v[hn]||o==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var A=v.getAttribute(a)||"";A=o+A;var O=u.get(A);O?O.push(v):u.set(A,[v])}}return u}function Yb(o,a,c){o=o.ownerDocument||o,o.head.insertBefore(c,a==="title"?o.querySelector("head > title"):null)}function _k(o,a,c){if(c===1||a.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(o=a.disabled,typeof a.precedence=="string"&&o==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Jb(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function wk(o,a,c,u){if(c.type==="stylesheet"&&(typeof u.media!="str
10ing"||matchMedia(u.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var m=Js(u.href),v=a.querySelector(vc(m));if(v){a=v._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(o.count++,o=Ru.bind(o),a.then(o,o)),c.state.loading|=4,c.instance=v,cn(v);return}v=a.ownerDocument||a,u=Kb(u),(m=ur.get(m))&&Sp(u,m),v=v.createElement("link"),cn(v);var A=v;A._p=new Promise(function(O,B){A.onload=O,A.onerror=B}),gn(v,"link",u),c.instance=v}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(c,a),(a=c.state.preload)&&(c.state.loading&3)===0&&(o.count++,c=Ru.bind(o),a.addEventListener("load",c),a.addEventListener("error",c))}}var Rp=0;function Sk(o,a){return o.stylesheets&&o.count===0&&Au(o,o.stylesheets),0<o.count||0<o.imgCount?function(c){var u=setTimeout(function(){if(o.stylesheets&&Au(o,o.stylesheets),o.unsuspend){var v=o.unsuspend;o.unsuspend=null,v()}},6e4+a);0<o.imgBytes&&Rp===0&&(Rp=62500*nk());var m=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&Au(o,o.stylesheets),o.unsuspend)){var v=o.unsuspend;o.unsuspend=null,v()}},(o.imgBytes>Rp?50:800)+a);return o.unsuspend=c,function(){o.unsuspend=null,clearTimeout(u),clearTimeout(m)}}:null}function Ru(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Au(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Eu=null;function Au(o,a){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Eu=new Map,a.forEach(xk,o),Eu=null,Ru.call(o))}function xk(o,a){if(!(a.state.loading&4)){var c=Eu.get(o);if(c)var u=c.get(null);else{c=new Map,Eu.set(o,c);for(var m=o.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<m.length;v++){var A=m[v];(A.nodeName==="LINK"||A.getAttribute("media")!=="not all")&&(c.set(A.dataset.precedence,A),u=A)}u&&c.set(null,u)}m=a.instance,A=m.getAttribute("data-precedence"),v=c.get(A)||u,v===u&&c.set(null,m),c.set(A,m),this.count++,u=Ru.bind(this),m.addEventListener("load",u),m.addEventListener("error",u),v?v.parentNode.insertBefore(m,v.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(m,o.firstChild)),a.state.loading|=4}}var _c={$$typeof:P,Provider:null,Consumer:null,_currentValue:we,_currentValue2:we,_threadCount:0};function Rk(o,a,c,u,m,v,A,O,B){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ro(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ro(0),this.hiddenUpdates=Ro(null),this.identifierPrefix=u,this.onUncaughtError=m,this.onCaughtError=v,this.onRecoverableError=A,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=B,this.incompleteTransitions=new Map}function Qb(o,a,c,u,m,v,A,O,B,J,le,me){return o=new Rk(o,a,c,A,B,J,le,me,O),a=1,v===!0&&(a|=24),v=Gn(3,null,null,a),o.current=v,v.stateNode=o,a=nf(),a.refCount++,o.pooledCache=a,a.refCount++,v.memoizedState={element:u,isDehydrated:c,cache:a},sf(v),o}function Xb(o){return o?(o=Cs,o):Cs}function e_(o,a,c,u,m,v){m=Xb(m),u.context===null?u.context=m:u.pendingContext=m,u=Mo(a),u.payload={element:c},v=v===void 0?null:v,v!==null&&(u.callback=v),c=No(o,u,a),c!==null&&(Ln(c,o,a),Qi(c,o,a))}function t_(o,a){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var c=o.retryLane;o.retryLane=c!==0&&c<a?c:a}}function Ep(o,a){t_(o,a),(o=o.alternate)&&t_(o,a)}function n_(o){if(o.tag===13||o.tag===31){var a=Ca(o,67108864);a!==null&&Ln(a,o,67108864),Ep(o,67108864)}}function r_(o){if(o.tag===13||o.tag===31){var a=Jn();a=ms(a);var c=Ca(o,a);c!==null&&Ln(c,o,a),Ep(o,a)}}var Tu=!0;function Ek(o,a,c,u){var m=z.T;z.T=null;var v=te.p;try{te.p=2,Ap(o,a,c,u)}finally{te.p=v,z.T=m}}function Ak(o,a,c,u){var m=z.T;z.T=null;var v=te.p;try{te.p=8,Ap(o,a,c,u)}finally{te.p=v,z.T=m}}function Ap(o,a,c,u){if(Tu){var m=Tp(u);if(m===null)hp(o,a,u,ku,c),a_(o,u);else if(kk(m,o,a,c,u))u.stopPropagation();else if(a_(o,u),a&4&&-1<Tk.indexOf(o)){for(;m!==null;){var v=vs(m);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var A=Tr(v.pendingLanes);if(A!==0){var O=v;for(O.pendingLanes|=2,O.entangledLanes|=2;A;){var B=1<<31-ie(A);O.entanglements[1]|=B,A&=~B}$r(v),(dt&6)===0&&(uu=Pt()+500,pc(0))}}break;case 31:case 13:O=Ca(v,2),O!==null&&Ln(O,v,2),hu(),Ep(v,2)}if(v=Tp(u),v===null&&hp(o,a,u,ku,c),v===m)break;m=v}m!==null&&u.stopPropagation()}else hp(o,a,u,null,c)}}function Tp(o){return o=kh(o),kp(o)}var ku=null;function kp(o){if(ku=null,o=ys(o),o!==null){var a=i(o);if(a===null)o=null;else{var c=a.tag;if(c===13){if(o=l(a),o!==null)return o;o=null}else if(c===31){if(o=d(a),o!==null)return o;o=null}else if(c===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;o=null}else a!==o&&(o=null)}}return ku=o,null}function o_(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 4,129 bytes, line 10
10:case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ye()){case At:return 2;case kn:return 8;case an:case Sa:return 32;case C:return 268435456;default:return 32}default:return 32}}var Cp=!1,qo=null,Ho=null,Go=null,wc=new Map,Sc=new Map,Ko=[],Tk="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".split(" ");function a_(o,a){switch(o){case"focusin":case"focusout":qo=null;break;case"dragenter":case"dragleave":Ho=null;break;case"mouseover":case"mouseout":Go=null;break;case"pointerover":case"pointerout":wc.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sc.delete(a.pointerId)}}function xc(o,a,c,u,m,v){return o===null||o.nativeEvent!==v?(o={blockedOn:a,domEventName:c,eventSystemFlags:u,nativeEvent:v,targetContainers:[m]},a!==null&&(a=vs(a),a!==null&&n_(a)),o):(o.eventSystemFlags|=u,a=o.targetContainers,m!==null&&a.indexOf(m)===-1&&a.push(m),o)}function kk(o,a,c,u,m){switch(a){case"focusin":return qo=xc(qo,o,a,c,u,m),!0;case"dragenter":return Ho=xc(Ho,o,a,c,u,m),!0;case"mouseover":return Go=xc(Go,o,a,c,u,m),!0;case"pointerover":var v=m.pointerId;return wc.set(v,xc(wc.get(v)||null,o,a,c,u,m)),!0;case"gotpointercapture":return v=m.pointerId,Sc.set(v,xc(Sc.get(v)||null,o,a,c,u,m)),!0}return!1}function s_(o){var a=ys(o.target);if(a!==null){var c=i(a);if(c!==null){if(a=c.tag,a===13){if(a=l(c),a!==null){o.blockedOn=a,_y(o.priority,function(){r_(c)});return}}else if(a===31){if(a=d(c),a!==null){o.blockedOn=a,_y(o.priority,function(){r_(c)});return}}else if(a===3&&c.stateNode.current.memoizedState.isDehydrated){o.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Cu(o){if(o.blockedOn!==null)return!1;for(var a=o.targetContainers;0<a.length;){var c=Tp(o.nativeEvent);if(c===null){c=o.nativeEvent;var u=new c.constructor(c.type,c);Th=u,c.target.dispatchEvent(u),Th=null}else return a=vs(c),a!==null&&n_(a),o.blockedOn=c,!1;a.shift()}return!0}function i_(o,a,c){Cu(o)&&c.delete(a)}function Ck(){Cp=!1,qo!==null&&Cu(qo)&&(qo=null),Ho!==null&&Cu(Ho)&&(Ho=null),Go!==null&&Cu(Go)&&(Go=null),wc.forEach(i_),Sc.forEach(i_)}function Ou(o,a){o.blockedOn===a&&(o.blockedOn=null,Cp||(Cp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ck)))}var $u=null;function c_(o){$u!==o&&($u=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){$u===o&&($u=null);for(var a=0;a<o.length;a+=3){var c=o[a],u=o[a+1],m=o[a+2];if(typeof u!="function"){if(kp(u||c)===null)continue;break}var v=vs(c);v!==null&&(o.splice(a,3),a-=3,Tf(v,{pending:!0,data:m,method:c.method,action:u},u,m))}}))}function Xs(o){function a(B){return Ou(B,o)}qo!==null&&Ou(qo,o),Ho!==null&&Ou(Ho,o),Go!==null&&Ou(Go,o),wc.forEach(a),Sc.forEach(a);for(var c=0;c<Ko.length;c++){var u=Ko[c];u.blockedOn===o&&(u.blockedOn=null)}for(;0<Ko.length&&(c=Ko[0],c.blockedOn===null);)s_(c),c.blockedOn===null&&Ko.shift();if(c=(o.ownerDocument||o).$$reactFormReplay,c!=null)for(u=0;
10u<c.length;u+=3){var m=c[u],v=c[u+1],A=m[Mn]||null;if(typeof v=="function")A||c_(c);else if(A){var O=null;if(v&&v.hasAttribute("formAction")){if(m=v,A=v[Mn]||null)O=A.formAction;else if(kp(m)!==null)continue}else O=A.action;typeof O=="function"?c[u+1]=O:(c.splice(u,3),u-=3),c_(c)}}}function l_(){function o(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(A){return m=A})},focusReset:"manual",scroll:"manual"})}function a(){m!==null&&(m(),m=null),u||setTimeout(c,20)}function c(){if(!u&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,m=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(c,100),function(){u=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),m!==null&&(m(),m=null)}}}function Op(o){this._internalRoot=o}Mu.prototype.render=Op.prototype.render=function(o){var a=this._internalRoot;if(a===null)throw Error(r(409));var c=a.current,u=Jn();e_(c,u,o,a,null,null)},Mu.prototype.unmount=Op.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var a=o.containerInfo;e_(o.current,2,null,o,null,null),hu(),a[gs]=null}};function Mu(o){this._internalRoot=o}Mu.prototype.unstable_scheduleHydration=function(o){if(o){var a=_h();o={blockedOn:null,target:o,priority:a};for(var c=0;c<Ko.length&&a!==0&&a<Ko[c].priority;c++);Ko.splice(c,0,o),c===0&&s_(o)}};var u_=t.version;if(u_!=="19.2.5")throw Error(r(527,u_,"19.2.5"));te.findDOMNode=function(o){var a=o._reactInternals;if(a===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=f(a),o=o!==null?g(o):null,o=o===null?null:o.stateNode,o};var Ok={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nu.isDisabled&&Nu.supportsFiber)try{D=Nu.inject(Ok),H=Nu}catch{}}return Ec.createRoot=function(o,a){if(!s(o))throw Error(r(299));var c=!1,u="",m=yv,v=vv,A=bv;return a!=null&&(a.unstable_strictMode===!0&&(c=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(m=a.onUncaughtError),a.onCaughtError!==void 0&&(v=a.onCaughtError),a.onRecoverableError!==void 0&&(A=a.onRecoverableError)),a=Qb(o,1,!1,null,null,c,u,null,m,v,A,l_),o[gs]=a.current,dp(o),new Op(a)},Ec.hydrateRoot=function(o,a,c){if(!s(o))throw Error(r(299));var u=!1,m="",v=yv,A=vv,O=bv,B=null;return c!=null&&(c.unstable_strictMode===!0&&(u=!0),c.identifierPrefix!==void 0&&(m=c.identifierPrefix),c.onUncaughtError!==void 0&&(v=c.onUncaughtError),c.onCaughtError!==void 0&&(A=c.onCaughtError),c.onRecoverableError!==void 0&&(O=c.onRecoverableError),c.formState!==void 0&&(B=c.formState)),a=Qb(o,1,!0,a,c??null,u,m,B,v,A,O,l_),a.context=Xb(null),c=a.current,u=Jn(),u=ms(u),m=Mo(u),m.callback=null,No(c,m,u),c=u,a.current.lanes=c,Dt(a,c),$r(a),o[gs]=a.current,dp(o),new Mu(a)},Ec.version="19.2.5",Ec}var __;function Bk(){if(__)return Np.exports;__=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Np.exports=zk(),Np.exports}var Uk=Bk(),Vk="__TSS_CONTEXT",Em=Symbol.for("TSS_SERVER_FUNCTION"),w_=Symbol.for("TSS_SERVER_FUNCTION_FACTORY"),Fk="application/x-tss-framed",co={JSON:0,CHUNK:1,END:2,ERROR:3},qk=/;\s*v=(\d+)/;function Hk(e){const t=e.match(qk);return t?parseInt(t[1],10):void 0}function Gk(e){const t=Hk(e);if(t!==void 0&&t!==1)throw new Error(`Incompatible framed protocol version: server=${t}, client=1. Please ensure client and server are using compatible versions.`)}var gg=()=>window.__TSS_START_OPTIONS__;const RS=!1;function qc(e){return e[e.length-1]}function Kk(e){return typeof e=="function"}function Ya(e,t){return Kk(e)?e(t):e}const ES=Object.prototype.hasOwnProperty,S_=Object.prototype.propertyIsEnumerable;function AS(e){for(const t in e)if(ES.call(e,t))return!0;return!1}const Zk=()=>Object.create(null),Va=(e,t)=>Ja(e,t,Zk);function Ja(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;const s=t,i=E_(e)&&E_(s);if(!i&&!(Sd(e)&&Sd(s)))return s;const l=i?e:x_(e);if(!l)return s;const d=i?s:x_(s);if(!d)return s;const h=l.length,f=d.length,g=i?new Array(f):n();let y=0;for(let b=0;b<f;b++){const _=i?b:d[b],S=e[_],E=s[_];if(S===E){g[_]=S,(i?b<h:ES.call(e,_))&&y++;continue}if(S===null||E===null||typeof S!="object"||typeof E!="object"){g[_]=E;continue}const x=Ja(S,E,n,r+1);g[_]=x,x===S&&y++}return h===f&&y===h?e:g}function x_(e){const t=Object.getOwnPropertyNames(e);for(const s of t)if(!S_.call(e,s))return!1;const n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;const r=t;for(const s of n){if(!S_.call(e,s))return!1;r.push(s)}return r}function Sd(e){if(!R_(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!R_(n)||!n.hasOwnProperty("isPrototypeOf"))}function R_(e){return Object.prototype.toString.call(e)==="[object Object]"}function E_(e){return Array.isArray(e)&&e.length===Object.keys(e).length}
10function Tn(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,s=e.length;r<s;r++)if(!Tn(e[r],t[r],n))return!1;return!0}if(Sd(e)&&Sd(t)){const r=n?.ignoreUndefined??!0;if(n?.partial){for(const l in t)if((!r||t[l]!==void 0)&&!Tn(e[l],t[l],n))return!1;return!0}let s=0;if(!r)s=Object.keys(e).length;else for(const l in e)e[l]!==void 0&&s++;let i=0;for(const l in t)if((!r||t[l]!==void 0)&&(i++,i>s||!Tn(e[l],t[l],n)))return!1;return s===i}return!1}function ss(e){let t,n;const r=new Promise((s,i)=>{t=s,n=i});return r.status="pending",r.resolve=s=>{r.status="resolved",r.value=s,t(s),e?.(s)},r.reject=s=>{r.status="rejected",n(s)},r}function Wk(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function Hc(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}const Yk=/[\x00-\x1f\x7f"<>`{}]/g;function Jk(e){return e.replace(Yk,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function A_(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return Jk(t)}const Qk=["http:","https:","mailto:","tel:"];function xd(e,t){if(!e)return!1;try{const n=new URL(e);return!t.has(n.protocol)}catch{return!1}}const Xk={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},eC=/[&><\u2028\u2029]/g;function tC(e){return e.replace(eC,t=>Xk[t])}function Ac(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let n=0,r="",s;for(;(s=t.exec(e))!==null;)r+=A_(e.slice(n,s.index))+s[0],n=t.lastIndex;r=r+A_(n?e.slice(n):e);let i=!1;return r.startsWith("//")&&(i=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:i}}function nC(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function rC(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Vn(){throw new Error("Invariant failed")}function Gc(e){const t=new Map;let n,r;const s=i=>{i.next&&(i.prev?(i.prev.next=i.next,i.next.prev=i.prev,i.next=void 0,r&&(r.next=i,i.prev=r)):(i.next.prev=void 0,n=i.next,i.next=void 0,r&&(i.prev=r,r.next=i)),r=i)};return{get(i){const l=t.get(i);if(l)return s(l),l.value},set(i,l){if(t.size>=e&&n){const h=n;t.delete(h.key),h.next&&(n=h.next,h.next.prev=void 0),h===r&&(r=void 0)}const d=t.get(i);if(d)d.value=l,s(d);else{const h={key:i,value:l,prev:r};r&&(r.next=h),r=h,n||(n=h),t.set(i,h)}},clear(){t.clear(),n=void 0,r=void 0}}}const sa=4,TS=5;function oC(e){const t=e.indexOf("{");if(t===-1)return null;const n=e.indexOf("}",t);return n===-1||t+1>=e.length?null:[t,n]}function kS(e,t,n=new Uint16Array(6)){const r=e.indexOf("/",t),s=r===-1?e.length:r,i=e.substring(t,s);if(!i||!i.includes("$"))return n[0]=0,n[1]=t,n[2]=t,n[3]=s,n[4]=s,n[5]=s,n;if(i==="$"){const d=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=d,n[4]=d,n[5]=d,n}if(i.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=s,n[4]=s,n[5]=s,n;const l=oC(i);if(l){const[d,h]=l,f=i.charCodeAt(d+1);if(f===45){if(d+2<i.length&&i.charCodeAt(d+2)===36){const g=d+3,y=h;if(g<y)return n[0]=3,n[1]=t+d,n[2]=t+g,n[3]=t+y,n[4]=t+h+1,n[5]=s,n}}else if(f===36){const g=d+1,y=d+2;return y===h?(n[0]=2,n[1]=t+d,n[2]=t+g,n[3]=t+y,n[4]=t+h+1,n[5]=e.length,n):(n[0]=1,n[1]=t+d,n[2]=t+y,n[3]=t+h,n[4]=t+h+1,n[5]=s,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=s,n[4]=s,n[5]=s,n}function Jd(e,t,n,r,s,i,l){l?.(n);let d=r;{const h=n.fullPath??n.from,f=h.length,g=n.options?.caseSensitive??e,y=n.options?.params?.parse??n.options?.parseParams;for(;d<f;){const _=kS(h,d,t);let S;const E=d,x=_[5];switch(d=x+1,i++,_[0]){case 0:{const k=h.substring(_[2],_[3]);if(g){const M=s.static?.get(k);if(M)S=M;else{s.static??=new Map;const P=Qa(n.fullPath??n.from);P.parent=s,P.depth=i,S=P,s.static.set(k,P)}}else{const M=k.toLowerCase(),P=s.staticInsensitive?.get(M);if(P)S=P;else{s.staticInsensitive??=new Map;const I=Qa(n.fullPath??n.from);I.parent=s,I.depth=i,S=I,s.staticInsensitive.set(M,I)}}break}case 1:{const k=h.substring(E,_[1]),M=h.substring(_[4],x),P=g&&!!(k||M),I=k?P?k:k.toLowerCase():void 0,F=M?P?M:M.toLowerCase():void 0,G=!y&&s.dynamic?.find(U=>!U.parse&&U.caseSensitive===P&&U.prefix===I&&U.suffix===F);if(G)S=G;else{const U=Lp(1,n.fullPath??n.from,P,I,F);S=U,U.depth=i,U.parent=s,s.dynamic??=[],s.dynamic.push(U)}break}case 3:{const k=h.substring(E,_[1]),M=h.substring(_[4],x),P=g&&!!(k||M),I=k?P?k:k.toLowerCase():void 0,F=M?P?M:M.toLowerCase():void 0,G=!y&&s.optional?.find(U=>!U.parse&&U.caseSensitive===P&&U.prefix===I&&U.suffix===F);if(G)S=G;else{const U=Lp(3,n.fullPath??n.from,P,I,F);
10S=U,U.parent=s,U.depth=i,s.optional??=[],s.optional.push(U)}break}case 2:{const k=h.substring(E,_[1]),M=h.substring(_[4],x),P=g&&!!(k||M),I=k?P?k:k.toLowerCase():void 0,F=M?P?M:M.toLowerCase():void 0,G=Lp(2,n.fullPath??n.from,P,I,F);S=G,G.parent=s,G.depth=i,s.wildcard??=[],s.wildcard.push(G)}}s=S}if(y&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const _=Qa(n.fullPath??n.from);_.kind=TS,_.parent=s,i++,_.depth=i,s.pathless??=[],s.pathless.push(_),s=_}const b=(n.path||!n.children)&&!n.isRoot;if(b&&h.endsWith("/")){const _=Qa(n.fullPath??n.from);_.kind=sa,_.parent=s,i++,_.depth=i,s.index=_,s=_}s.parse=y??null,s.priority=n.options?.params?.priority??0,b&&!s.route&&(s.route=n,s.fullPath=n.fullPath??n.from)}if(n.children)for(const h of n.children)Jd(e,t,h,d,s,i,l)}function Ip(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function na(e){if(e.pathless)for(const t of e.pathless)na(t);if(e.static)for(const t of e.static.values())na(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())na(t);if(e.dynamic?.length){e.dynamic.sort(Ip);for(const t of e.dynamic)na(t)}if(e.optional?.length){e.optional.sort(Ip);for(const t of e.optional)na(t)}if(e.wildcard?.length){e.wildcard.sort(Ip);for(const t of e.wildcard)na(t)}}function Qa(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function Lp(e,t,n,r,s){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:s}}function aC(e,t){const n=Qa("/"),r=new Uint16Array(6);for(const s of e)Jd(!1,r,s,1,n,0);na(n),t.masksTree=n,t.flatCache=Gc(1e3)}function sC(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const r=yg(e,t.masksTree);return t.flatCache.set(e,r),r}function iC(e,t,n,r,s){e||="/",r||="/";const i=t?`case\0${e}`:e;let l=s.singleCache.get(i);return l||(l=Qa("/"),Jd(t,new Uint16Array(6),{from:e},1,l,0),s.singleCache.set(i,l)),yg(r,l,n)}function cC(e,t,n=!1){const r=n?e:`nofuzz\0${e}`,s=t.matchCache.get(r);if(s!==void 0)return s;e||="/";let i;try{i=yg(e,t.segmentTree,n)}catch(l){if(l instanceof URIError)i=null;else throw l}return i&&(i.branch=OS(i.route)),t.matchCache.set(r,i),i}function lC(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function uC(e,t=!1,n){const r=Qa(e.fullPath),s=new Uint16Array(6),i={},l={};let d=0;return Jd(t,s,e,1,r,0,h=>{if(n?.(h,d),h.id in i&&Vn(),i[h.id]=h,d!==0&&h.path){const f=lC(h.fullPath);(!l[f]||h.fullPath.endsWith("/"))&&(l[f]=h)}d++}),na(r),{processedTree:{segmentTree:r,singleCache:Gc(1e3),matchCache:Gc(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:l}}function yg(e,t,n=!1){const r=e.split("/"),s=hC(e,r,t,n);if(!s)return null;const[i]=CS(e,r,s);return{route:s.node.route,rawParams:i}}function CS(e,t,n){const r=dC(n.node);let s=null;const i=Object.create(null);let l=n.extract?.part??0,d=n.extract?.node??0,h=n.extract?.path??0,f=n.extract?.segment??0;for(;d<r.length;l++,d++,h++,f++){const g=r[d];if(g.kind===sa)break;if(g.kind===TS){f--,l--,h--;continue}const y=t[l],b=h;if(y&&(h+=y.length),g.kind===1){s??=n.node.fullPath.split("/");const _=s[f],S=g.prefix?.length??0;if(_.charCodeAt(S)===123){const E=g.suffix?.length??0,x=_.substring(S+2,_.length-E-1),k=y.substring(S,y.length-E);i[x]=decodeURIComponent(k)}else{const E=_.substring(1);i[E]=decodeURIComponent(y)}}else if(g.kind===3){if(n.skipped&1<<d){l--,h=b-1;continue}s??=n.node.fullPath.split("/");const _=s[f],S=g.prefix?.length??0,E=g.suffix?.length??0,x=_.substring(S+3,_.length-E-1),k=g.suffix||g.prefix?y.substring(S,y.length-E):y;k&&(i[x]=decodeURIComponent(k))}else if(g.kind===2){const _=g,S=e.substring(b+(_.prefix?.length??0),e.length-(_.suffix?.length??0)),E=decodeURIComponent(S);i["*"]=E,i._splat=E;break}}return n.rawParams&&Object.assign(i,n.rawParams),[i,{part:l,node:d,path:h,segment:f}]}function OS(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function dC(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function hC(e,t,n,r){if(e==="/"&&n.index)return{node:n.index,skipped:0};const s=!qc(t),i=s&&e!=="/",l=t.length-(s?1:0),d=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let h=null,f=null;for(;d.length;){const g=d.pop(),{node:y,index:b,skipped:_,depth:S,statics:E,dynamics:x,optionals:k}=g;let{extract:M,rawParams:P}=g;if(y.kind===2&&y.route&&!Pu(f,g))continue;if(y.parse){if(!T_(e,t,g))continue;P=g.rawParams,M=g.extract}r&&y.route&&y.kind!==sa&&Pu(h,g)&&(h=g);const I=b===l;if(I&&(y.route&&(!i||y.kind===sa||y.kind===2)&&Pu(f,g)&&(f=g),!y.optional&&!y.wildcard&&!y.index&&!y.pathless))continue;const F=I?void 0:t[b];let G;if(I&&y.index){const U={node:y.index,index:b,skipped:_,depth:S+1,statics:E,dynamics:x,optionals:k,extract:M,rawParams:P};let V=!0;if(y.index.parse&&(T_(e,t,U)||(V=!1)),V){if(!x&&!k&&!_&&fC(E,l))return U;Pu(f,U)&&(f=U)}}if(y.wildcard)for(let U=y.wildcard.length-1;U>=0;U--){const V=y.wildcard[U],{prefix:ne,suffix:W}=V;if(!(ne&&(I||!(V.caseSensitive?F:G??=F.toLowerCase()).startsWith(ne)))){if(W){if(I)continue;const pe=t.slice(b).join("/").slice(-W.length);if((V.caseSensitive?pe:pe.toLowerCase())!==W)continue}d.push({node:V,index:l,skipped:_,depth:S+1,statics:E,dynamics:x,optionals:k,extract:M,rawParams:P})}}if(y.optional){const U=_|1<<S,V=S+1;for(let ne=y.optional.length-1;ne>=0;ne--){const W=y.optional[ne];d.push({node:W,index:b,skipped:U,depth:V,statics:E,dynamics:x,optionals:k,extract:M,rawParams:P})}if(!I)for(let ne=y.optional.length-1;ne>=0;ne--){const W=y.optional[ne],{prefix:pe,suffix:de}=W;if(pe||de){const $e=W.caseSensitive?F:G??=F.toLowerCase();if(pe&&!$e.startsWith(pe)||de&&!$e.endsWith(de))continue}d.push({node:W,index:b+1,skipped:_,depth:V,statics:E,dynamics:x,optionals:k+ju(l,b),extract:M,rawParams:P})}}if(!I&&y.dynamic&&F)for(let U=y.dynamic.length-1;U>=0;U--){const V=y.dynamic[U],{prefix:ne,suffix:W}=V;if(ne||W){const pe=V.caseSensitive?F:G??=F.toLowerCase();if(ne&&!pe.startsWith(ne)||W&&!pe.endsWith(W))continue}d.push({node:V,index:b+1,skipped:_,depth:S+1,statics:E,dynamics:x+ju(l,b),optionals:k,extract:M,rawParams:P})}if(!I&&y.staticInsensitive){const U=y.staticInsensitive.get(G??=F.toLowerCase());U&&d.push({node:U,index:b+1,skipped:_,depth:S+1,statics:E+ju(l,b),dynamics:x,optionals:k,extract:M,rawParams:P})}if(!I&&y.static){const U=y.static.get(F);U&&d.push({node:U,index:b+1,skipped:_,depth:S+1,statics:E+ju(l,b),dynamics:x,optionals:k,extract:M,rawParams:P})}if(y.pathless){const U=S+1;for(let V=y.pathless.length-1;V>=0;V--){const ne=y.pathless[V];d.push({node:ne,index:b,skipped:_,depth:U,statics:E,dynamics:x,optionals:k,extract:M,rawParams:P})}}}if(f)return f;if(r&&h){let g=h.index;for(let b=0;b<h.index;b++)g+=t[b].length;const y=g===e.length?"/":e.slice(g);return h.rawParams??=Object.create(null),h.rawParams["**"]=decodeURIComponent(y),h}return null}function ju(e,t){return 2**(e-t-1)}function fC(e,t){return e===2**(t-1)-1}function T_(e,t,n){let r,s;try{[r,s]=CS(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=s,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Pu(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===sa)>(e.node.kind===sa)||t.node.kind===sa==(e.node.kind===sa)&&t.depth>e.depth))):!0}function cd(e){return vg(e.filter(t=>t!==void 0).join("/"))}function vg(e){return e.replace(/\/{2,}/g,"/")}function $S(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function mo(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function MS(e){return mo($S(e))}function Rd(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}
10function pC(e,t,n){return Rd(e,n)===Rd(t,n)}function mC({base:e,to:t,trailingSlash:n="never",cache:r}){const s=t.startsWith("/"),i=!s&&t===".";let l;if(r){l=s?t:i?e:e+"\0"+t;const f=r.get(l);if(f)return f}let d;if(i)d=e.split("/");else if(s)d=t.split("/");else{for(d=e.split("/");d.length>1&&qc(d)==="";)d.pop();const f=t.split("/");for(let g=0,y=f.length;g<y;g++){const b=f[g];b===""?g?g===y-1&&d.push(b):d=[b]:b===".."?d.pop():b==="."||d.push(b)}}d.length>1&&(qc(d)===""?n==="never"&&d.pop():n==="always"&&d.push(""));const h=vg(d.join("/"))||"/";return l&&r&&r.set(l,h),h}function gC(e){const t=new Map(e.map(s=>[encodeURIComponent(s),s])),n=Array.from(t.keys()).map(s=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(n,"g");return s=>s.replace(r,i=>t.get(i)??i)}function zp(e,t,n){const r=t[e];return typeof r!="string"?r:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(s=>C_(s,n)).join("/"):C_(r,n)}function k_({path:e,params:t,decoder:n,...r}){let s=!1;const i=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:i,isMissingParams:s};if(!e.includes("$"))return{interpolatedPath:e,usedParams:i,isMissingParams:s};const l=e.length;let d=0,h,f="";for(;d<l;){const g=d;h=kS(e,g,h);const y=h[5];if(d=y+1,g===y)continue;const b=h[0];if(b===0){f+="/"+e.substring(g,y);continue}if(b===2){const _=t._splat;i._splat=_,i["*"]=_;const S=e.substring(g,h[1]),E=e.substring(h[4],y);if(!_){s=!0,(S||E)&&(f+="/"+S+E);continue}const x=zp("_splat",t,n);f+="/"+S+x+E;continue}if(b===1){const _=e.substring(h[2],h[3]);!s&&!(_ in t)&&(s=!0),i[_]=t[_];const S=e.substring(g,h[1]),E=e.substring(h[4],y),x=zp(_,t,n)??"undefined";f+="/"+S+x+E;continue}if(b===3){const _=e.substring(h[2],h[3]),S=t[_];if(S==null)continue;i[_]=S;const E=e.substring(g,h[1]),x=e.substring(h[4],y),k=zp(_,t,n)??"";f+="/"+E+k+x;continue}}return e.endsWith("/")&&(f+="/"),{usedParams:i,interpolatedPath:f||"/",isMissingParams:s}}function C_(e,t){const n=encodeURIComponent(e);return t?.(n)??n}function zr(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function dn(e){return e?.isNotFound===!0}function yC(){try{return sessionStorage}catch{return}}const vC="tsr-scroll-restoration-v1_3",NS=yC();function bC(){try{return JSON.parse(NS?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function _C(){try{NS?.setItem(vC,JSON.stringify(di))}catch{}}const di=bC(),O_="data-scroll-restoration-id",wC=e=>e.state.__TSR_key||e.href;function SC(e){const t=e.getAttribute(O_);if(t)return`[${O_}="${t}"]`;let n="",r=e,s;for(;s=r.parentNode;){let i=1,l=r;for(;l=l.previousElementSibling;)i++;const d=`${r.localName}:nth-child(${i})`;n=n?`${d} > ${n}`:d,r=s}return n}let Du=!1;const ld="window";function Am(e){try{return typeof e=="function"?e():document.querySelector(e)}catch{}}function $_(e){const t=new Set;for(const n of e){if(n===ld)continue;const r=Am(n);r&&t.add(r)}return t}function xC(e,t){const n=e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);const s=e.options.getScrollRestorationKey||wC,i=new Set,l=d=>{const h=di[d]||={};for(const f of i)f===document?h[ld]={scrollX,scrollY}:f.isConnected&&(h[SC(f)]={scrollX:f.scrollLeft,scrollY:f.scrollTop})};n&&!r.restoration&&(r.restoration=!0,Du=!1,history.scrollRestoration="manual",document.addEventListener("scroll",d=>{Du||i.add(d.target)},!0),e.subscribe("onBeforeLoad",d=>{d.fromLocation&&l(s(d.fromLocation)),i.clear()}),addEventListener("pagehide",()=>{l(s(e.stores.resolvedLocation.get()??e.stores.location.get())),_C()})),!r.reset&&(r.reset=!0,e.subscribe("onRendered",d=>{const h=e.options.scrollRestorationBehavior,f=e.options.scrollToTopSelectors,g=r.next,y=r.hash;let b;if(i.clear(),r.next=!0,r.hash=!1,typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return;const _=s(d.toLocation),S=d.fromLocation&&s(d.fromLocation);if(r.restoring&&S&&S!==_){const E=di[S];if(E){let x=di[_];for(const k in E){if(k===ld){if(g)continue}else{const M=Am(k);if(!M||g&&f&&(b??=$_(f),b.has(M)))continue}x||(x=di[_]={}),x[k]??=E[k]}}}Du=!0;try{const E=d.toLocation.hash,x=d.toLocation.state.__hashScrollIntoViewOptions??!0;let k=!1;if(g){!E&&f&&(b??=$_(f));const M=E&&x&&y,P=r.restoring?di[_]:void 0;if(P)for(const I in P){const{scrollX:F,scrollY:G}=P[I];
10if(I===ld){if(M)continue;scrollTo({top:G,left:F,behavior:h}),k=!0}else{const U=Am(I);U&&(U.scrollLeft=F,U.scrollTop=G,b?.delete(U))}}if(!E){const I={top:0,left:0,behavior:h};if(k||scrollTo(I),b)for(const F of b)F.scrollTo(I)}}!k&&E&&x&&document.getElementById(E)?.scrollIntoView(x)}finally{Du=!1}}))}function jS(e,t=String){const n=new URLSearchParams;for(const r in e){const s=e[r];s!==void 0&&n.set(r,t(s))}return n.toString()}function Bp(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function RC(e){const t=new URLSearchParams(e),n=Object.create(null);for(const[r,s]of t.entries()){const i=n[r];i==null?n[r]=Bp(s):Array.isArray(i)?i.push(Bp(s)):n[r]=[i,Bp(s)]}return n}const EC=TC(JSON.parse),AC=kC(JSON.stringify,JSON.parse);function TC(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=RC(t);for(const r in n){const s=n[r];if(typeof s=="string")try{n[r]=e(s)}catch{}}return n}}function kC(e,t){const n=typeof t=="function";function r(s){if(typeof s=="object"&&s!==null)try{return e(s)}catch{}else if(n&&typeof s=="string")try{return t(s),e(s)}catch{}return s}return s=>{const i=jS(s,r);return i?`?${i}`:""}}const ns="__root__";function Nt(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function vn(e){return e instanceof Response&&!!e.options}function PS(e){if(e!==null&&typeof e=="object"&&e.isSerializedRedirect)return Nt(e)}function CC(e){return{input:({url:t})=>{for(const n of e)t=Tm(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=DS(e[n],t);return t}}}function OC(e){const t=MS(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),s=`${r}/`;return{input:({url:i})=>{const l=e.caseSensitive?i.pathname:i.pathname.toLowerCase();return l===r?i.pathname="/":l.startsWith(s)&&(i.pathname=i.pathname.slice(n.length)),i},output:({url:i})=>(i.pathname=cd(["/",t,i.pathname]),i)}}function Tm(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function DS(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function $C(e,t){const{createMutableStore:n,createReadonlyStore:r,batch:s,init:i}=t,l=new Map,d=new Map,h=new Map,f=n(e.status),g=n(e.loadedAt),y=n(e.isLoading),b=n(e.isTransitioning),_=n(e.location),S=n(e.resolvedLocation),E=n(e.statusCode),x=n(e.redirect),k=n([]),M=n([]),P=n([]),I=r(()=>Up(l,k.get())),F=r(()=>Up(d,M.get())),G=r(()=>Up(h,P.get())),U=r(()=>k.get()[0]),V=r(()=>k.get().some(te=>l.get(te)?.get().status==="pending")),ne=r(()=>({locationHref:_.get().href,resolvedLocationHref:S.get()?.href,status:f.get()})),W=r(()=>({status:f.get(),loadedAt:g.get(),isLoading:y.get(),isTransitioning:b.get(),matches:I.get(),location:_.get(),resolvedLocation:S.get(),statusCode:E.get(),redirect:x.get()})),pe=Gc(64);function de(te){let we=pe.get(te);return we||(we=r(()=>{const Pe=k.get();for(const ye of Pe){const L=l.get(ye);if(L&&L.routeId===te)return L.get()}}),pe.set(te,we)),we}const $e={status:f,loadedAt:g,isLoading:y,isTransitioning:b,location:_,resolvedLocation:S,statusCode:E,redirect:x,matchesId:k,pendingIds:M,cachedIds:P,matches:I,pendingMatches:F,cachedMatches:G,firstId:U,hasPending:V,matchRouteDeps:ne,matchStores:l,pendingMatchStores:d,cachedMatchStores:h,__store:W,getRouteMatchStore:de,setMatches:Ce,setPending:ue,setCached:z};Ce(e.matches),i?.($e);function Ce(te){Vp(te,l,k,n,s)}function ue(te){Vp(te,d,M,n,s)}function z(te){Vp(te,h,P,n,s)}return $e}function Up(e,t){const n=[];for(const r of t){const s=e.get(r);s&&n.push(s.get())}return n}function Vp(e,t,n,r,s){const i=e.map(d=>d.id),l=new Set(i);s(()=>{for(const d of t.keys())l.has(d)||t.delete(d);for(const d of e){const h=t.get(d.id);if(!h){const f=r(d);f.routeId=d.routeId,t.set(d.id,f);continue}h.routeId=d.routeId,h.get()!==d&&h.set(d)}rC(n.get(),i)||n.set(i)})}const km=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},MC=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Qd=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),rs=(e,t,n=!0)=>{const r={...e.router.options.context??{}},s=n?t:t-1;for(let i=0;i<=s;i++){const l=e.matches[i];if(!l)continue;const d=e.router.getMatch(l.id);
10d&&Object.assign(r,d.__routeContext,d.__beforeLoadContext)}return r},M_=(e,t)=>{if(!e.matches.length)return;const n=t.routeId,r=e.matches.findIndex(l=>l.routeId===e.router.routeTree.id),s=r>=0?r:0;let i=n?e.matches.findIndex(l=>l.routeId===n):e.firstBadMatchIndex??e.matches.length-1;i<0&&(i=s);for(let l=i;l>=0;l--){const d=e.matches[l];if(e.router.looseRoutesById[d.routeId].options.notFoundComponent)return l}return n?i:s},ia=(e,t,n)=>{if(!(!vn(n)&&!dn(n)))throw vn(n)&&n.redirectHandled&&!n.options.reloadDocument||(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:vn(n)?"redirected":dn(n)?"notFound":r.status==="pending"?"success":r.status,context:rs(e,t.index),isFetching:!1,error:n})),dn(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),vn(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n))),n},IS=(e,t)=>{const n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},N_=(e,t,n)=>{const r=rs(e,n);e.updateMatch(t,s=>({...s,context:r}))},Tc=(e,t,n)=>{const{id:r,routeId:s}=e.matches[t],i=e.router.looseRoutesById[s];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,ia(e,e.router.getMatch(r),n);try{i.options.onError?.(n)}catch(l){n=l,ia(e,e.router.getMatch(r),n)}e.updateMatch(r,l=>(l._nonReactive.beforeLoadPromise?.resolve(),l._nonReactive.beforeLoadPromise=void 0,l._nonReactive.loadPromise?.resolve(),{...l,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!vn(n)&&!dn(n)&&(e.serialError??=n)},LS=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;const s=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Qd(e,t)&&(n.options.loader||n.options.beforeLoad||BS(n))&&typeof s=="number"&&s!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){const i=setTimeout(()=>{km(e)},s);r._nonReactive.pendingTimeout=i}},NC=(e,t,n)=>{const r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;LS(e,t,n,r);const s=()=>{const i=e.router.getMatch(t);i.preload&&(i.status==="redirected"||i.status==="notFound")&&ia(e,i,i.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(s):s()},jC=(e,t,n,r)=>{const s=e.router.getMatch(t);let i=s._nonReactive.loadPromise;s._nonReactive.loadPromise=ss(()=>{i?.resolve(),i=void 0});const{paramsError:l,searchError:d}=s;l&&Tc(e,n,l),d&&Tc(e,n,d),LS(e,t,r,s);const h=new AbortController;let f=!1;const g=()=>{f||(f=!0,e.updateMatch(t,I=>({...I,isFetching:"beforeLoad",fetchCount:I.fetchCount+1,abortController:h})))},y=()=>{s._nonReactive.beforeLoadPromise?.resolve(),s._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,I=>({...I,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{g(),y()});return}s._nonReactive.beforeLoadPromise=ss();const b={...rs(e,n,!1),...s.__routeContext},{search:_,params:S,cause:E}=s,x=Qd(e,t),k={search:_,abortController:h,params:S,preload:x,context:b,location:e.location,navigate:I=>e.router.navigate({...I,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:x?"preload":E,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},M=I=>{if(I===void 0){e.router.batch(()=>{g(),y()});return}(vn(I)||dn(I))&&(g(),Tc(e,n,I)),e.router.batch(()=>{g(),e.updateMatch(t,F=>({...F,__beforeLoadContext:I})),y()})};let P;try{if(P=r.options.beforeLoad(k),Hc(P))return g(),P.catch(I=>{Tc(e,n,I)}).then(M)}catch(I){g(),Tc(e,n,I)}M(P)},PC=(e,t)=>{const{id:n,routeId:r}=e.matches[t],s=e.router.looseRoutesById[r],i=()=>d(),l=()=>jC(e,n,t,s),d=()=>{if(IS(e,n))return;const h=NC(e,n,s);return Hc(h)?h.then(l):l()};return i()},DC=(e,t,n)=>{const r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const s={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(s),n.options.scripts?.(s),n.options.headers?.(s)]).then(([i,l,d])=>({meta:i?.meta,links:i?.links,headScripts:i?.scripts,headers:d,scripts:l,styles:i?.styles}))}
10,zS=(e,t,n,r,s)=>{const i=t[r-1],{params:l,loaderDeps:d,abortController:h,cause:f}=e.router.getMatch(n),g=rs(e,r),y=Qd(e,n);return{params:l,deps:d,preload:!!y,parentMatchPromise:i,abortController:h,context:g,location:e.location,navigate:b=>e.router.navigate({...b,_fromLocation:e.location}),cause:y?"preload":f,route:s,...e.router.options.additionalContext}},j_=async(e,t,n,r,s)=>{try{const i=e.router.getMatch(n);try{(!(RS??e.router.isServer)||i.ssr===!0)&&Kc(s);const l=s.options.loader,d=typeof l=="function"?l:l?.handler,h=d?.(zS(e,t,n,r,s)),f=!!d&&Hc(h);if((f||s._lazyPromise||s._componentsPromise||s.options.head||s.options.scripts||s.options.headers||i._nonReactive.minPendingPromise)&&e.updateMatch(n,y=>({...y,isFetching:"loader"})),d){const y=f?await h:h;ia(e,e.router.getMatch(n),y),y!==void 0&&e.updateMatch(n,b=>({...b,loaderData:y}))}s._lazyPromise&&await s._lazyPromise;const g=i._nonReactive.minPendingPromise;g&&await g,s._componentsPromise&&await s._componentsPromise,e.updateMatch(n,y=>({...y,error:void 0,context:rs(e,r),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(l){let d=l;if(d?.name==="AbortError"){if(i.abortController.signal.aborted){i._nonReactive.loaderPromise?.resolve(),i._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,f=>({...f,status:f.status==="pending"?"success":f.status,isFetching:!1,context:rs(e,r)}));return}const h=i._nonReactive.minPendingPromise;h&&await h,dn(l)&&await s.options.notFoundComponent?.preload?.(),ia(e,e.router.getMatch(n),l);try{s.options.onError?.(l)}catch(f){d=f,ia(e,e.router.getMatch(n),f)}!vn(d)&&!dn(d)&&await Kc(s,["errorComponent"]),e.updateMatch(n,f=>({...f,error:d,context:rs(e,r),status:"error",isFetching:!1}))}}catch(i){const l=e.router.getMatch(n);l&&(l._nonReactive.loaderPromise=void 0),ia(e,l,i)}},IC=async(e,t,n)=>{async function r(_,S,E,x,k){const M=Date.now()-S.updatedAt,P=_?k.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:k.options.staleTime??e.router.options.defaultStaleTime??0,I=k.options.shouldReload,F=typeof I=="function"?I(zS(e,t,s,n,k)):I,{status:G,invalid:U}=x,V=M>=P&&(!!e.forceStaleReload||x.cause==="enter"||E!==void 0&&E!==x.id);l=G==="success"&&(U||(F??V)),_&&k.options.preload===!1||(l&&!e.sync&&g?(d=!0,(async()=>{try{await j_(e,t,s,n,k);const ne=e.router.getMatch(s);ne._nonReactive.loaderPromise?.resolve(),ne._nonReactive.loadPromise?.resolve(),ne._nonReactive.loaderPromise=void 0,ne._nonReactive.loadPromise=void 0}catch(ne){vn(ne)&&await e.router.navigate(ne.options)}})()):G!=="success"||l?await j_(e,t,s,n,k):N_(e,s,n))}const{id:s,routeId:i}=e.matches[n];let l=!1,d=!1;const h=e.router.looseRoutesById[i],f=h.options.loader,g=((typeof f=="function"?void 0:f?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(IS(e,s)){if(!e.router.getMatch(s))return e.matches[n];N_(e,s,n)}else{const _=e.router.getMatch(s),S=e.router.stores.matchesId.get()[n],E=(S&&e.router.stores.matchStores.get(S)||null)?.routeId===i?S:e.router.stores.matches.get().find(k=>k.routeId===i)?.id,x=Qd(e,s);if(_._nonReactive.loaderPromise){if(_.status==="success"&&!e.sync&&!_.preload&&g)return _;await _._nonReactive.loaderPromise;const k=e.router.getMatch(s),M=k._nonReactive.error||k.error;M&&ia(e,k,M),k.status==="pending"&&await r(x,_,E,k,h)}else{const k=x&&!e.router.stores.matchStores.has(s),M=e.router.getMatch(s);M._nonReactive.loaderPromise=ss(),k!==M.preload&&e.updateMatch(s,P=>({...P,preload:k})),await r(x,_,E,M,h)}}const y=e.router.getMatch(s);d||(y._nonReactive.loaderPromise?.resolve(),y._nonReactive.loadPromise?.resolve(),y._nonReactive.loadPromise=void 0),clearTimeout(y._nonReactive.pendingTimeout),y._nonReactive.pendingTimeout=void 0,d||(y._nonReactive.loaderPromise=void 0),y._nonReactive.dehydrated=void 0;const b=d?y.isFetching:!1;return b!==y.isFetching||y.invalid!==!1?(e.updateMatch(s,_=>({..._,isFetching:b,invalid:!1})),e.router.getMatch(s)):y};async function P_(e){const t=e,n=[];MC(t.router)&&km(t);let r;for(let b=0;b<t.matches.length;b++){try{const _=PC(t,b);Hc(_)&&await _}catch(_){if(vn(_))throw _;if(dn(_))r=_;else if(!t.preload)throw _;break}if(t.serialError||t.firstBadMatchIndex!=null)break}const s=t.firstBadMatchIndex??t.matches.length,i=r&&!t.preload?M_(t,r):void 0,l=r&&t.preload?0:i!==void 0?Math.min(i+1,s):s;let d,h;for(let b=0;b<l;b++)n.push(IC(t,n,b));try{await Promise.all(n)}catch{const b=await Promise.allSettled(n);for(const _ of b){if(_.status!=="rejected")continue;const S=_.reason;if(vn(S))throw S;dn(S)?d??=S:h??=S}if(h!==void 0)throw h}const f=d??(r&&!t.preload?r:void 0);let g=t.firstBadMatchIndex!==void 0?t.firstBadMatchIndex:t.matches.length-1;if(!f&&r&&t.preload)return t.matches;if(f){const b=M_(t,f);b===void 0&&Vn();const _=t.matches[b],S=t.router.looseRoutesById[_.routeId],E=t.router.options?.defaultNotFoundComponent;!S.options.notFoundComponent&&E&&(S.options.notFoundComponent=E),f.routeId=_.routeId;const x=_.routeId===t.router.routeTree.id;t.updateMatch(_.id,k=>({...k,...x?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:f},isFetching:!1})),g=b,await Kc(S,["notFoundComponent"])}else if(!t.preload){const b=t.matches[0];b.globalNotFound||t.router.getMatch(b.id)?.globalNotFound&&t.updateMatch(b.id,_=>({..._,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const b=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Kc(b,["errorComponent"])}for(let b=0;b<=g;b++){const{id:_,routeId:S}=t.matches[b],E=t.router.looseRoutesById[S];try{const x=DC(t,_,E);if(x){const k=await x;t.updateMatch(_,M=>
10({...M,...k}))}}catch(x){console.error(`Error executing head for route ${S}:`,x)}}const y=km(t);if(Hc(y)&&await y,f)throw f;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function D_(e,t){const n=t.map(r=>e.options[r]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Kc(e,t=ud){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(r=>{const{id:s,...i}=r.options;Object.assign(e.options,i),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);const n=()=>e._componentsLoaded?void 0:t===ud?(()=>{if(e._componentsPromise===void 0){const r=D_(e,ud);r?e._componentsPromise=r.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():D_(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function BS(e){for(const t of ud)if(e.options[t]?.preload)return!0;return!1}const ud=["component","errorComponent","pendingComponent","notFoundComponent"];var la="__TSR_index",I_="popstate",L_="beforeunload";function LC(e){let t=e.getLocation();const n=new Set,r=l=>{t=e.getLocation(),n.forEach(d=>d({location:t,action:l}))},s=l=>{e.notifyOnIndexChange??!0?r(l):t=e.getLocation()},i=async({task:l,navigateOpts:d,...h})=>{if(d?.ignoreBlocker??!1){l();return}const f=e.getBlockers?.()??[],g=h.type==="PUSH"||h.type==="REPLACE";if(typeof document<"u"&&f.length&&g)for(const y of f){const b=Ed(h.path,h.state);if(await y.blockerFn({currentLocation:t,nextLocation:b,action:h.type})){e.onBlocked?.();return}}l()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:l=>(n.add(l),()=>{n.delete(l)}),push:(l,d,h)=>{const f=t.state[la];d=z_(f+1,d),i({task:()=>{e.pushState(l,d),r({type:"PUSH"})},navigateOpts:h,type:"PUSH",path:l,state:d})},replace:(l,d,h)=>{const f=t.state[la];d=z_(f,d),i({task:()=>{e.replaceState(l,d),r({type:"REPLACE"})},navigateOpts:h,type:"REPLACE",path:l,state:d})},go:(l,d)=>{i({task:()=>{e.go(l),s({type:"GO",index:l})},navigateOpts:d,type:"GO"})},back:l=>{i({task:()=>{e.back(l?.ignoreBlocker??!1),s({type:"BACK"})},navigateOpts:l,type:"BACK"})},forward:l=>{i({task:()=>{e.forward(l?.ignoreBlocker??!1),s({type:"FORWARD"})},navigateOpts:l,type:"FORWARD"})},canGoBack:()=>t.state[la]!==0,createHref:l=>e.createHref(l),block:l=>{if(!e.setBlockers)return()=>{};const d=e.getBlockers?.()??[];return e.setBlockers([...d,l]),()=>{const h=e.getBlockers?.()??[];e.setBlockers?.(h.filter(f=>f!==l))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function z_(e,t){t||(t={});const n=bg();return{...t,key:n,__TSR_key:n,[la]:e}}function zC(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState;let s=[];const i=()=>s,l=V=>s=V,d=(V=>V),h=(()=>Ed(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const V=bg();t.history.replaceState({[la]:0,key:V,__TSR_key:V},"")}let f=h(),g,y=!1,b=!1,_=!1,S=!1;const E=()=>f;let x,k;const M=()=>{x&&(U._ignoreSubscribers=!0,(x.isPush?t.history.pushState:t.history.replaceState)(x.state,"",x.href),U._ignoreSubscribers=!1,x=void 0,k=void 0,g=void 0)},P=(V,ne,W)=>{const pe=d(ne);k||(g=f),f=Ed(ne,W),x={href:pe,state:W,isPush:x?.isPush||V==="push"},k||(k=Promise.resolve().then(()=>M()))},I=V=>{f=h(),U.notify({type:V})},F=async()=>{if(b){b=!1;return}const V=h(),ne=V.state[la]-f.state[la],W=ne===1,pe=ne===-1,de=!W&&!pe||y;y=!1;const $e=de?"GO":pe?"BACK":"FORWARD",Ce=de?{type:"GO",index:ne}:{type:pe?"BACK":"FORWARD"};if(_)_=!1;else{const ue=i();if(typeof document<"u"&&ue.length){for(const z of ue)if(await z.blockerFn({currentLocation:f,nextLocation:V,action:$e})){b=!0,t.history.go(1),U.notify(Ce);return}}}f=h(),U.notify(Ce)},G=V=>{if(S){S=!1;return}let ne=!1;const W=i();if(typeof document<"u"&&W.length)for(const pe of W){const de=pe.enableBeforeUnload??!0;if(de===!0){ne=!0;break}if(typeof de=="function"&&de()===!0){ne=!0;break}}if(ne)return V.preventDefault(),V.returnValue=""},U=LC({getLocation:E,getLength:()=>t.history.length,pushState:(V,ne)=>P("push",V,ne),replaceState:(V,ne)=>P("replace",V,ne),back:V=>(V&&(_=!0),S=!0,t.history.back()),forward:V=>{V&&(_=!0),S=!0,t.history.forward()},go:V=>{y=!0,t.history.go(V)},createHref:V=>d(V),flush:M,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(L_,G,{capture:!0}),t.removeEventListener(I_,F)},onBlocked:()=>{g&&f!==g&&(f=g)},getBlockers:i,setBlockers:l,notifyOnIndexChange:!1});return t.addEventListener(L_,G,{capture:!0}),t.addEventListener(I_,F),t.history.pushState=function(...V){const ne=n.apply(t.history,V);return U._ignoreSubscribers||I("PUSH"),ne},t.history.replaceState=function(...V){const ne=r.apply(t.history,V);return U._ignoreSubscribers||I("REPLACE"),ne},U}function BC(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function Ed(e,t){const n=BC(e),r=n.indexOf("#"),s=n.indexOf("?"),i=bg();return{href:n,pathname:n.substring(0,r>0?s>0?Math.min(r,s):r:s>0?s:n.length),hash:r>-1?n.substring(r):"",search:s>-1?n.slice(s,r===-1?void 0:r):"",state:t||{[la]:0,key:i,__TSR_key:i}}}function bg(){return(Math.random()+1).toString(36).substring(7)}function UC(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function Si(e,t){const n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var VC=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=n=>
10n(),this.update=n=>{const r=this.options,s=this.basepath??r?.basepath??"/",i=this.basepath===void 0,l=r?.rewrite;if(this.options={...r,...n},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=gC(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=zC()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let g;this.resolvePathCache=Gc(1e3),g=this.buildRouteTree(),this.setRoutes(g)}if(!this.stores&&this.latestLocation){const g=this.getStoreConfig(this);this.batch=g.batch,this.stores=$C(qC(this.latestLocation),g),xC(this)}let d=!1;const h=this.options.basepath??"/",f=this.options.rewrite;if(i||s!==h||l!==f){this.basepath=h;const g=[],y=MS(h);y&&y!=="/"&&g.push(OC({basepath:h})),f&&g.push(f),this.rewrite=g.length===0?void 0:g.length===1?g[0]:CC(g),this.history&&this.updateLatestLocation(),d=!0}d&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=uC(this.routeTree,this.options.caseSensitive,(r,s)=>{r.init({originalIndex:s})});return this.options.routeMasks&&aC(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,r)=>{const s={eventType:n,fn:r};return this.subscribers.add(s),()=>{this.subscribers.delete(s)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=(n,r)=>{const s=({pathname:h,search:f,hash:g,href:y,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(h)){const k=this.options.parseSearch(f),M=this.options.stringifySearch(k);return{href:h+M+g,publicHref:h+M+g,pathname:Ac(h).path,external:!1,searchStr:M,search:Va(r?.search,k),hash:Ac(g.slice(1)).path,state:Ja(r?.state,b)}}const _=new URL(y,this.origin),S=Tm(this.rewrite,_),E=this.options.parseSearch(S.search),x=this.options.stringifySearch(E);return S.search=x,{href:S.href.replace(S.origin,""),publicHref:y,pathname:Ac(S.pathname).path,external:!!this.rewrite&&S.origin!==this.origin,searchStr:x,search:Va(r?.search,E),hash:Ac(S.hash.slice(1)).path,state:Ja(r?.state,b)}},i=s(n),{__tempLocation:l,__tempKey:d}=i.state;if(l&&(!d||d===this.tempLocationKey)){const h=s(l);return h.state.key=i.state.key,h.state.__TSR_key=i.state.__TSR_key,delete h.state.__tempLocation,{...h,maskedLocation:i}}return i},this.resolvePathWithBase=(n,r)=>mC({base:n,to:r.includes("//")?vg(r):r,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,r,s)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:r},s):this.matchRoutesInternal(n,r),this.getMatchedRoutes=n=>HC({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(n=>{this.cancelMatch(n)}),this.stores.matchesId.get().forEach(n=>{if(this.stores.pendingMatchStores.has(n))return;const r=this.stores.matchStores.get(n)?.get();r&&(r.status==="pending"||r.isFetching==="loader")&&this.cancelMatch(n)})},this.buildLocation=n=>{const r=(i={})=>{const l=i._fromLocation||this.pendingBuiltLocation||this.latestLocation,d=this.matchRoutesLightweight(l);i.from;const h=i.unsafeRelative==="path"?l.pathname:i.from??d.fullPath,f=i.to?`${i.to}`:void 0,g=d.search,y=Object.assign(Object.create(null),d.params),b=f?.charCodeAt(0)===47?"/":this.resolvePathWithBase(h,"."),_=f?this.resolvePathWithBase(b,f):b,S=i.params===!1||i.params===null?Ob
10ject.create(null):(i.params??!0)===!0?y:Object.assign(y,Ya(i.params,y)),E=this.routesByPath[mo(_)];let x;if(E)x=this.getRouteBranch(E);else if(_.includes("$"))x=[];else{const pe=this.getMatchedRoutes(_);x=pe.matchedRoutes,this.options.notFoundRoute&&(!pe.foundRoute||pe.foundRoute.path!=="/"&&pe.routeParams["**"])&&(x=[...x,this.options.notFoundRoute])}if(x.length&&AS(S))for(const pe of x){const de=pe.options.params?.stringify??pe.options.stringifyParams;if(de)try{Object.assign(S,de(S))}catch{}}const k=n.leaveParams?_:Ac(k_({path:_,params:S,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let M=g;if(n._includeValidateSearch&&this.options.search?.strict){const pe={};x.forEach(de=>{if(de.options.validateSearch)try{Object.assign(pe,dd(de.options.validateSearch,{...pe,...M}))}catch{}}),M=pe}M=GC({search:M,dest:i,destRoutes:x,_includeValidateSearch:n._includeValidateSearch}),M=Va(g,M);const P=this.options.stringifySearch(M),I=i.hash===!0?l.hash:i.hash?Ya(i.hash,l.hash):void 0,F=I?`#${I}`:"";let G=i.state===!0?l.state:i.state?Ya(i.state,l.state):{};G=Ja(l.state,G);const U=`${k}${P}${F}`;let V,ne,W=!1;if(this.rewrite){const pe=new URL(U,this.origin),de=DS(this.rewrite,pe);V=pe.href.replace(pe.origin,""),de.origin!==this.origin?(ne=de.href,W=!0):ne=de.pathname+de.search+de.hash}else V=nC(U),ne=V;return{publicHref:ne,href:V,pathname:k,search:M,searchStr:P,state:G,hash:I??"",external:W,unmaskOnReload:i.unmaskOnReload}},s=(i={},l)=>{const d=r(i);let h=l?r(l):void 0;if(!h){const f=Object.create(null);if(this.options.routeMasks){const g=sC(d.pathname,this.processedTree);if(g){Object.assign(f,g.rawParams);const{from:y,params:b,..._}=g.route,S=b===!1||b===null?Object.create(null):(b??!0)===!0?f:Object.assign(f,Ya(b,f));l={from:n.from,..._,params:S},h=r(l)}}}return h&&(d.maskedLocation=h),d};return n.mask?s(n,{from:n.from,...n.mask}):s(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:r,...s})=>{let i;const l=()=>{const f=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];f.forEach(y=>{s.state[y]=this.latestLocation.state[y]});const g=Tn(s.state,this.latestLocation.state);return f.forEach(y=>{delete s.state[y]}),g},d=mo(this.latestLocation.href)===mo(s.href);let h=this.commitLocationPromise;if(this.commitLocationPromise=ss(()=>{h?.resolve(),h=void 0}),d&&l())this.load();else{let{maskedLocation:f,hashScrollIntoView:g,...y}=s;f&&(y={...f,state:{...f.state,__tempKey:void 0,__tempLocation:{...y,search:y.searchStr,state:{...y.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(y.unmaskOnReload??this.options.unmaskOnReload??!1)&&(y.state.__tempKey=this.tempLocationKey)),y.state.__hashScrollIntoViewOptions=g??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,i=s.replace?"REPLACE":"PUSH",this.history[i==="REPLACE"?"replace":"push"](y.publicHref,y.state,{ignoreBlocker:r})}return this._scroll.next=s.resetScroll??!0,this.history.subscribers.size||this.load(i?{action:{type:i}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:s,viewTransition:i,ignoreBlocker:l,href:d,...h}={})=>{if(d){const y=this.history.location.state.__TSR_index,b=Ed(d,{__TSR_index:n?y:y+1}),_=new URL(b.pathname,this.origin);h.to=Tm(this.rewrite,_).pathname,h.search=this.options.parseSearch(b.search),h.hash=b.hash.slice(1)}const f=this.buildLocation({...h,_includeValidateSearch:!0});this.pendingBuiltLocation=f;const g=this.commitLocation({...f,viewTransition:i,replace:n,resetScroll:r,hashScrollIntoView:s,ignoreBlocker:l});return queueMicrotask(()=>{this.pendingBuiltLocation===f&&(this.pendingBuiltLocation=void 0)}),g},this.navigate=async({to:n,reloadDocument:r,href:s,publicHref:i,...l})=>{let d=!1;if(s)try{new URL(`${s}`),d=!0}catch{}if(d&&!r&&(r=!0),r){if(n!==void 0||!s){const f=this.buildLocation({to:n,...l});s=s??f.publicHref,i=i??f.publicHref}const h=!d&&i?i:s;if(xd(h,this.protocolAllowlist))return;if(!l.ignoreBlocker){const f=this.history.getBlockers?.()??[];for(const g of f)if(g?.blockerFn&&await g.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return}l.replace?window.location.replace(h):window.location.href=h;return}return this.buildAndCommitLocation({...l,href:s,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const n=this.matchRoutes(this.latestLocation),r=this.stores.cachedMatches.get().filter(s=>!n.some(i=>i.id===s.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(n),this.stores.setCached(r)})},this.load=async n=>{const r=n?.action?.type;let s,i,l;const d=this.stores.resolvedLocation.get()??this.stores.location.get();for(l=new Promise(f=>{this.startTransition(async()=>
10{try{this.beforeLoad(),r&&(this._scroll.hash=r==="PUSH"||r==="REPLACE");const g=this.latestLocation,y=Si(g,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...y}),this.emit({type:"onBeforeLoad",...y}),await P_({router:this,sync:n?.sync,forceStaleReload:d.href===g.href,matches:this.stores.pendingMatches.get(),location:g,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let b=null,_=null,S=null,E=null;this.batch(()=>{const x=this.stores.pendingMatches.get(),k=x.length,M=this.stores.matches.get();b=k?M.filter(F=>!this.stores.pendingMatchStores.has(F.id)):null;const P=new Set;for(const F of this.stores.pendingMatchStores.values())F.routeId&&P.add(F.routeId);const I=new Set;for(const F of this.stores.matchStores.values())F.routeId&&I.add(F.routeId);_=k?M.filter(F=>!P.has(F.routeId)):null,S=k?x.filter(F=>!I.has(F.routeId)):null,E=k?x.filter(F=>I.has(F.routeId)):M,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),k&&(this.stores.setMatches(x),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...b.filter(F=>F.status!=="error"&&F.status!=="notFound"&&F.status!=="redirected")]),this.clearExpiredCache())});for(const[x,k]of[[_,"onLeave"],[S,"onEnter"],[E,"onStay"]])if(x)for(const M of x)this.looseRoutesById[M.routeId].options[k]?.(M)})})}})}catch(g){vn(g)?(s=g,this.navigate({...s.options,replace:!0,ignoreBlocker:!0})):dn(g)&&(i=g);const y=s?s.status:i?404:this.stores.matches.get().some(b=>b.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(y),this.stores.redirect.set(s)})}this.latestLoadPromise===l&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),f()})}),this.latestLoadPromise=l,await l;this.latestLoadPromise&&l!==this.latestLoadPromise;)await this.latestLoadPromise;let h;this.hasNotFoundMatch()?h=404:this.stores.matches.get().some(f=>f.status==="error")&&(h=500),h!==void 0&&this.stores.statusCode.set(h)},this.startViewTransition=n=>
10{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let s;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const i=this.latestLocation,l=this.stores.resolvedLocation.get(),d=typeof r.types=="function"?r.types(Si(i,l)):r.types;if(d===!1){n();return}s={update:n,types:d}}else s=n;document.startViewTransition(s)}else n()},this.updateMatch=(n,r)=>{this.startTransition(()=>{const s=this.stores.pendingMatchStores.get(n);if(s){s.set(r);return}const i=this.stores.matchStores.get(n);if(i){i.set(r);return}const l=this.stores.cachedMatchStores.get(n);if(l){const d=r(l.get());d.status==="redirected"?this.stores.cachedMatchStores.delete(n)&&this.stores.cachedIds.set(h=>h.filter(f=>f!==n)):l.set(d)}})},this.getMatch=n=>this.stores.cachedMatchStores.get(n)?.get()??this.stores.pendingMatchStores.get(n)?.get()??this.stores.matchStores.get(n)?.get(),this.invalidate=n=>{const r=s=>n?.filter?.(s)??!0?{...s,invalid:!0,...n?.forcePending||s.status==="error"||s.status==="notFound"?{status:"pending",error:void 0}:void 0}:s;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(r)),this.stores.setCached(this.stores.cachedMatches.get().map(r)),this.stores.setPending(this.stores.pendingMatches.get().map(r))}),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.getParsedLocationHref=n=>n.publicHref||"/",this.resolveRedirect=n=>{const r=n.headers.get("Location");if(!n.options.href||n.options._builtLocation){const s=n.options._builtLocation??this.buildLocation(n.options),i=this.getParsedLocationHref(s);n.options.href=i,n.headers.set("Location",i)}else if(r)try{const s=new URL(r);if(this.origin&&s.origin===this.origin){const i=s.pathname+s.search+s.hash;n.options.href=i,n.headers.set("Location",i)}}catch{}if(n.options.href&&!n.options._builtLocation&&xd(n.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const r=n?.filter;r!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(s=>!r(s))):this.stores.setCached([])},this.clearExpiredCache=()=>{const n=Date.now(),r=s=>{const i=this.looseRoutesById[s.routeId];if(!i.options.loader)return!0;const l=(s.preload?i.options.preloadGcTime??this.options.defaultPreloadGcTime:i.options.gcTime??this.options.defaultGcTime)??300*1e3;return s.status==="error"?!0:n-s.updatedAt>=l};this.clearCache({filter:r})},this.loadRouteChunk=Kc,this.preloadRoute=async n=>{const r=n._builtLocation??this.buildLocation(n);let s=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:n});const i=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),l=new Set([...i,...this.stores.cachedIds.get()]),d=s.filter(h=>!l.has(h.id));if(d.length){const h=this.stores.cachedMatches.get();this.stores.setCached([...h,...d])}try{return s=await P_({router:this,matches:s,location:r,preload:!0,updateMatch:(h,f)=>{i.has(h)?s=s.map(g=>g.id===h?f(g):g):this.updateMatch(h,f)}}),s}catch(h){if(vn(h))return h.options.reloadDocument?void 0:await this.preloadRoute({...h.options,_fromLocation:r});dn(h)||console.error(h);return}},this.matchRoute=(n,r)=>{const s={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},i=this.buildLocation(s);if(r?.pending&&this.stores.status.get()!=="pending")return!1;const l=(r?.pending===void 0?!this.stores.isLoading.get():r.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),d=iC(i.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,l.pathname,this.processedTree);return!d||n.params&&!Tn(d.rawParams,n.params,{partial:!0})?!1:r?.includeSearch??!0?Tn(l.search,i.search,{partial:!0})?d.rawParams:!1:d.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(n=>n.status==="notFound"||n.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??AC,parseSearch:e.parseSearch??EC,protocolAllowlist:e.protocolAllowlist??Qk}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}
10isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=OS(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){const n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:s}=n;let{matchedRoutes:i}=n,l=!1;(r?r.path!=="/"&&s["**"]:mo(e.pathname))&&(this.options.notFoundRoute?i=[...i,this.options.notFoundRoute]:l=!0);const d=l?ZC(this.options.notFoundMode,i):void 0,h=new Array(i.length),f=new Map;for(const g of this.stores.matchStores.values())g.routeId&&f.set(g.routeId,g.get());for(let g=0;g<i.length;g++){const y=i[g],b=h[g-1];let _,S,E;{const de=b?.search??e.search,$e=b?._strictSearch??void 0;try{const Ce=dd(y.options.validateSearch,{...de})??void 0;_={...de,...Ce},S={...$e,...Ce},E=void 0}catch(Ce){let ue=Ce;if(Ce instanceof Ad||(ue=new Ad(Ce.message,{cause:Ce})),t?.throwOnError)throw ue;_=de,S={},E=ue}}const x=y.options.loaderDeps?.({search:_})??"",k=x?JSON.stringify(x):"",{interpolatedPath:M,usedParams:P}=k_({path:y.fullPath,params:s,decoder:this.pathParamsDecoder,server:this.isServer}),I=y.id+M+k,F=this.getMatch(I),G=f.get(y.id),U=F?._strictParams??P;let V;if(!F)try{B_(y,U)}catch(de){if(dn(de)||vn(de)?V=de:V=new FC(de.message,{cause:de}),t?.throwOnError)throw V}Object.assign(s,U);const ne=G?"stay":"enter";let W;if(F)W={...F,cause:ne,params:G?.params??s,_strictParams:U,search:Va(G?G.search:F.search,_),_strictSearch:S};else{const de=y.options.loader||y.options.beforeLoad||y.lazyFn||BS(y)?"pending":"success";W={id:I,ssr:y.options.ssr,index:g,routeId:y.id,params:G?.params??s,_strictParams:U,pathname:M,updatedAt:Date.now(),search:G?Va(G.search,_):_,_strictSearch:S,searchError:void 0,status:de,isFetching:!1,error:void 0,paramsError:V,__routeContext:void 0,_nonReactive:{loadPromise:ss()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:ne,loaderDeps:G?Ja(G.loaderDeps,x):x,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:y.options.staticData||{},fullPath:y.fullPath}}t?.preload||(W.globalNotFound=d===y.id),W.searchError=E;const pe=this.getParentContext(b);W.context={...pe,...W.__routeContext,...W.__beforeLoadContext},h[g]=W}for(let g=0;g<h.length;g++){const y=h[g],b=this.looseRoutesById[y.routeId],_=this.getMatch(y.id),S=f.get(y.routeId);if(y.params=S?Va(S.params,s):s,!_){const E=h[g-1],x=this.getParentContext(E);if(b.options.context){const k={deps:y.loaderDeps,params:y.params,context:x??{},location:e,navigate:M=>this.navigate({...M,_fromLocation:e}),buildLocation:this.buildLocation,cause:y.cause,abortController:y.abortController,preload:!!y.preload,matches:h,routeId:b.id};
10y.__routeContext=b.options.context(k)??void 0}y.context={...x,...y.__routeContext,...y.__beforeLoadContext}}}return h}matchRoutesLightweight(e){const t=qc(this.stores.matchesId.get()),n=this.lightweightCache.get(e);if(n&&n[0]===t)return n[1];const{matchedRoutes:r,routeParams:s}=this.getMatchedRoutes(e.pathname),i=qc(r),l={...e.search};for(const y of r)try{Object.assign(l,dd(y.options.validateSearch,l))}catch{}const d=t&&this.stores.matchStores.get(t)?.get(),h=d&&d.routeId===i.id&&d.pathname===e.pathname;let f;if(h)f=d.params;else{const y=Object.assign(Object.create(null),s);for(const b of r)try{B_(b,y)}catch{}f=y}const g={matchedRoutes:r,fullPath:i.fullPath,search:l,params:f};return this.lightweightCache.set(e,[t,g]),g}},Ad=class extends Error{},FC=class extends Error{};function qC(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function dd(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Ad("Async validation not supported");if(n.issues)throw new Ad(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function HC({pathname:e,routesById:t,processedTree:n}){const r=Object.create(null),s=mo(e);let i;const l=cC(s,n,!0);return l&&(i=l.route,Object.assign(r,l.rawParams)),{matchedRoutes:l?.branch||[t.__root__],routeParams:r,foundRoute:i}}function GC({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return KC(n)(e,t,r??!1)}function KC(e){let t,n;const r=[];for(const i of e){const l=i.options;if("search"in l)l.search?.middlewares&&r.push(...l.search.middlewares);else if(l.preSearchFilters||l.postSearchFilters){const h=({search:f,next:g})=>{const y=g(l.preSearchFilters?l.preSearchFilters.reduce((b,_)=>_(b),f):f);return l.postSearchFilters?l.postSearchFilters.reduce((b,_)=>_(b),y):y};r.push(h)}const d=l.validateSearch;if(d){const h=({search:f,next:g,meta:y})=>{const b=g(f);if(n)try{const _=dd(d,b);if(y&&_)for(const S in _)S in b||(y.defaulted||=new Map).set(S,_[S]);return{...b,..._}}catch{}return b};r.push(h)}}const s=(i,l,d)=>{if(i>=r.length){if(!t.search)return{};if(t.search===!0)return l;const f=Ya(t.search,l);return d&&(d.explicit=f),f}const h=(f,g)=>{if(g){const y=d||{};return{search:s(i+1,f,y),meta:y}}return s(i+1,f,d)};return r[i]({search:l,next:h,meta:d})};return function(l,d,h){return t=d,n=h,s(0,l)}}function ZC(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const r=t[n];if(r.children)return r.id}return ns}function B_(e,t){const n=e.options.params?.parse??e.options.parseParams;if(n){const r=n(t);if(r===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(t,r)}}const Pr=Symbol.for("TSR_DEFERRED_PROMISE");function WC(e,t){const n=e;return n[Pr]||(n[Pr]={status:"pending"},n.then(r=>{n[Pr].status="success",n[Pr].data=r}).catch(r=>{n[Pr].status="error",n[Pr].error={data:UC(r),__isServerError:!0}})),n}const YC="Error preloading route! âï¸";function US(e,t){if(e)return typeof e=="string"?e:e[t]}function JC(e){return e?.scriptFormat??"module"}function QC(e,t,n){const r=XC(t),s=US(n,"script")??r.crossOrigin;return{...JC(e)==="iife"?{rel:"preload",as:"script"}:{rel:"modulepreload"},href:r.href,...s?{crossOrigin:s}:{}}}function XC(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}function Iu(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}const n=new Set;for(const r of t){const s=JSON.stringify(r);n.has(s)||(n.add(s),e.push(r))}}function eO(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}var VS=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t.originalIndex;const n=this.options,r=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=ns:this.parentRoute||Vn();let s=r?ns:n?.path;s&&s!=="/"&&(s=$S(s));const i=n?.id||s;let l=r?ns:cd([this.parentRoute.id==="__root__"?"":this.parentRoute.id,i]);s==="__root__"&&(s="/"),l!=="__root__"&&(l=cd(["/",l]));const d=l==="__root__"?"/":cd([this.parentRoute.fullPath,s]);this._path=s,this._id=l,this._fullPath=d,this._to=mo(d)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>Nt({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},tO=class extends VS{constructor(e){super(e)}};const Td=globalThis||void 0||self,vo=Symbol.asyncIterator,FS=Symbol.hasInstance,xi=Symbol.isConcatSpreadable,bo=Symbol.iterator,qS=Symbol.match,HS=Symbol.matchAll,GS=Symbol.replace,KS=Symbol.search,ZS=Symbol.species,WS=Symbol.split,YS=Symbol.toPrimitive,Ri=Symbol.toStringTag,JS=Symbol.unscopables,QS={[vo]:0,[FS]:1,[xi]:2,[bo]:3,[qS]:4,[HS]:5,[GS]:6,[KS]:7,[ZS]:8,[WS]:9,[YS]:10,[Ri]:11,[JS]:12},nO={0:vo,1:FS,2:xi,3:bo,4:qS,5:HS,6:GS,7:KS,8:ZS,9:WS,10:YS,11:Ri,12:JS},rO={2:!0,3:!1,1:void 0,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:NaN},oO={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},aO={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function ct(e,t,n,r,s,i,l,d,h,f,g,y){return{t:e,i:t,s:n,c:r,m:s,p:i,e:l,a:d,f:h,b:f,o:g,l:y}}function pa(e){return ct(2,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}
10const XS=pa(2),ex=pa(3),sO=pa(1),iO=pa(0),cO=pa(4),lO=pa(5),uO=pa(6),dO=pa(7);function hO(e){switch(e){case'"':return'\\"';case"\\":return"\\\\";case` 11`:return"\\n";case"\r":return"\\r";case"\b":return"\\b";case" ":return"\\t";case"\f":return"\\f";case"<":return"\\x3C";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return}}function ma(e){let t="",n=0,r;for(let s=0,i=e.length;s<i;s++)r=hO(e[s]),r&&(t+=e.slice(n,s)+r,n=s+1);return n===0?t=e:t+=e.slice(n),t}function fO(e){switch(e){case"\\\\":return"\\";case'\\"':return'"';case"\\n":return` 12`;case"\\r":return"\r";case"\\b":return"\b";case"\\t":return" ";case"\\f":return"\f";case"\\x3C":return"<";case"\\u2028":return"\u2028";case"\\u2029":return"\u2029";default:return e}}function ga(e){return e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,fO)}const Lu="__SEROVAL_REFS__",tx=new Map,yi=new Map;function nx(e){return tx.has(e)}function pO(e){return yi.has(e)}function mO(e){if(nx(e))return tx.get(e);throw new GO(e)}function gO(e){if(pO(e))return yi.get(e);throw new KO(e)}typeof globalThis<"u"?Object.defineProperty(globalThis,Lu,{value:yi,configurable:!0,writable:!1,enumerable:!1}):typeof window<"u"?Object.defineProperty(window,Lu,{value:yi,configurable:!0,writable:!1,enumerable:!1}):typeof self<"u"?Object.defineProperty(self,Lu,{value:yi,configurable:!0,writable:!1,enumerable:!1}):typeof Td<"u"&&Object.defineProperty(Td,Lu,{value:yi,configurable:!0,writable:!1,enumerable:!1});function _g(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function yO(e){const t=oO[_g(e)];return e.name!==t?{name:e.name}:e.constructor.name!==t?{name:e.constructor.name}:{}}function rx(e,t){let n=yO(e);const r=Object.getOwnPropertyNames(e);for(let s=0,i=r.length,l;s<i;s++)l=r[s],l!=="name"&&l!=="message"&&(l==="stack"?t&4&&(n=n||{},n[l]=e[l]):(n=n||{},n[l]=e[l]));return n}function ox(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:Object.isExtensible(e)?0:1}function vO(e){switch(e){case Number.POSITIVE_INFINITY:return lO;case Number.NEGATIVE_INFINITY:return uO}return e!==e?dO:Object.is(e,-0)?cO:ct(0,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function ax(e){return ct(1,void 0,ma(e),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function bO(e){return ct(3,void 0,""+e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function _O(e){return ct(4,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function wO(e,t){const n=t.valueOf();return ct(5,e,n!==n?"":t.toISOString(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Wo(e,t,n){return ct(36,e,n.toString(),t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function SO(e,t){return ct(6,e,void 0,ma(t.source),t.flags,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function xO(e,t){return ct(17,e,QS[t],void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function RO(e,t){return ct(18,e,ma(mO(t)),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function EO(e,t,n){return ct(25,e,n,ma(t),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function AO(e,t,n){return ct(9,e,void 0,void 0,void 0,void 0,void 0,n,void 0,void 0,ox(t),void 0)}function TO(e,t){return ct(21,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function kO(e,t,n){return ct(15,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.length)}function CO(e,t,n){return ct(16,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.length)}function OO(e,t,n){return ct(20,e,void 0,void 0,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.byteLength)}function $O(e,t,n){return ct(13,e,_g(t),void 0,ma(t.message),n,void 0,void 0,void 0,void 0,void 0,void 0)}function MO(e,t,n){return ct(14,e,_g(t),void 0,ma(t.message),n,void 0,void 0,void 0,void 0,void 0,void 0)}function NO(e,t){return ct(7,e,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,void 0)}function jO(e,t){return ct(28,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function PO(e,t){return ct(30,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function DO(e,t,n){return ct(31,e,void 0,void 0,void 0,void 0,void 0,n,t,void 0,void 0,void 0)}function IO(e,t){return ct(32,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function LO(e,t){return ct(33,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function zO(e,t){return ct(34,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function BO(e,t,n,r){return ct(35,e,n,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,r)}
12const UO={parsing:1,serialization:2,deserialization:3};function VO(e){return`Seroval Error (step: ${UO[e]})`}const FO=(e,t)=>VO(e);var sx=class extends Error{constructor(e,t){super(FO(e)),this.cause=t}},U_=class extends sx{constructor(e){super("parsing",e)}},qO=class extends sx{constructor(e){super("deserialization",e)}};function wo(e){return`Seroval Error (specific: ${e})`}var Xd=class extends Error{constructor(e){super(wo(1)),this.value=e}},wg=class extends Error{constructor(e){super(wo(2))}},HO=class extends Error{constructor(e){super(wo(3))}},pl=class extends Error{constructor(e){super(wo(4))}},GO=class extends Error{constructor(e){super(wo(5)),this.value=e}},KO=class extends Error{constructor(e){super(wo(6))}},ZO=class extends Error{constructor(e){super(wo(7))}},Ur=class extends Error{constructor(e){super(wo(8))}},ix=class extends Error{constructor(e){super(wo(9))}},WO=class{constructor(e,t){this.value=e,this.replacement=t}};const Sg=()=>{const e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e},YO=()=>{const e=[],t=[];let n=!0,r=!1,s=0;const i={flush(l,d,h){for(h=0;h<s;h++)t[h]&&t[h][d](l)},up(l,d,h,f){for(d=0,h=e.length;d<h;d++)f=e[d],!n&&d===h-1?l[r?"return":"throw"](f):l.next(f)},on(l,d){return n&&(d=s++,t[d]=l),i.up(l),()=>{n&&(t[d]=t[s],t[s--]=void 0)}}};return{__SEROVAL_STREAM__:!0,on(l){return i.on(l)},next(l){n&&(e.push(l),i.flush(l,"next"))},throw(l){n&&(e.push(l),i.flush(l,"throw"),n=!1,r=!1,t.length=0)},return(l){n&&(e.push(l),i.flush(l,"return"),n=!1,r=!0,t.length=0)}}},JO=e=>t=>()=>{let n=0;const r={[e](){return r},next(){if(n>t.d)return{done:!0,value:void 0};const s=n++,i=t.v[s];if(s===t.t)throw i;return{done:s===t.d,value:i}}};return r},QO=(e,t)=>n=>()=>{let r=0,s=-1,i=!1;const l=[],d=[],h={finalize(g=0,y=d.length){for(;g<y;g++)d[g].s({done:!0,value:void 0})}};n.on({next(g){const y=d.shift();y&&y.s({done:!1,value:g}),l.push(g)},throw(g){const y=d.shift();y&&y.f(g),h.finalize(),s=l.length,i=!0,l.push(g)},return(g){const y=d.shift();y&&y.s({done:!0,value:g}),h.finalize(),s=l.length,l.push(g)}});const f={[e](){return f},next(){if(s===-1){const b=r++;if(b>=l.length){const _=t();return d.push(_),_.p}return{done:!1,value:l[b]}}if(r>s)return{done:!0,value:void 0};const g=r++,y=l[g];if(g!==s)return{done:!1,value:y};if(i)throw y;return{done:!0,value:y}}};return f},XO=e=>{const t=atob(e),n=t.length,r=new Uint8Array(n);for(let s=0;s<n;s++)r[s]=t.charCodeAt(s);return r.buffer};function e6(e){return"__SEROVAL_SEQUENCE__"in e}function cx(e,t,n){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:n}}function t6(e){const t=[];let n=-1,r=-1;const s=e[bo]();for(;;)try{const i=s.next();if(t.push(i.value),i.done){r=t.length-1;break}}catch(i){n=t.length,t.push(i)}return cx(t,n,r)}const n6=JO(bo);function r6(e){return n6(e)}const o6={},a6={},s6={0:{},1:{},2:{},3:{},4:{},5:{}};function i6(e){return"__SEROVAL_STREAM__"in e}function us(){return YO()}function c6(e){const t=us(),n=e[vo]();async function r(){try{const s=await n.next();s.done?t.return(s.value):(t.next(s.value),await r())}catch(s){t.throw(s)}}return r().catch(()=>{}),t}const l6=QO(vo,Sg);function u6(e){return l6(e)}async function d6(e){try{return[1,await e]}catch(t){return[0,t]}}function h6(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:127^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function hd(e,t){e.marked.add(t)}function f6(e,t){const n=e.refs.size;return e.refs.set(t,n),n}function eh(e,t){const n=e.refs.get(t);return n!=null?(hd(e,n),{type:1,value:_O(n)}):{type:0,value:f6(e,t)}}function xg(e,t){const n=eh(e,t);return n.type===1?n:nx(t)?{type:2,value:RO(n.value,t)}:n}function Xa(e,t){const n=xg(e,t);if(n.type!==0)return n.value;if(t in QS)return xO(n.value,t);throw new Xd(t)}function th(e,t){const n=eh(e,s6[t]);return n.type===1?n.value:ct(26,n.value,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function p6(e){const t=eh(e,o6);return t.type===1?t.value:ct(27,t.value,void 0,void 0,void 0,void 0,void 0,void 0,Xa(e,bo),void 0,void 0,void 0)}function m6(e){const t=eh(e,a6);return t.type===1?t.value:ct(29,t.value,void 0,void 0,void 0,void 0,void 0,[th(e,1),Xa(e,vo)],void 0,void 0,void 0,void 0)}function g6(e,t,n,r){return ct(n?11:10,e,void 0,void 0,void 0,r,void 0,void 0,void 0,void 0,ox(t),void 0)}function y6(e,t,n,r){return ct(8,t,void 0,void 0,void 0,void 0,{k:n,v:r},void 0,th(e,0),void 0,void 0,void 0)}
12function v6(e,t,n){const r=new Uint8Array(n);let s="";for(let i=0,l=r.length;i<l;i++)s+=String.fromCharCode(r[i]);return ct(19,t,ma(btoa(s)),void 0,void 0,void 0,void 0,void 0,th(e,5),void 0,void 0,void 0)}function b6(e,t){return{base:h6(e,t),child:void 0}}var _6=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return on(this._p,this.depth,e)}};async function w6(e,t,n){const r=[];for(let s=0,i=n.length;s<i;s++)s in n?r[s]=await on(e,t,n[s]):r[s]=0;return r}async function S6(e,t,n,r){return AO(n,r,await w6(e,t,r))}async function Rg(e,t,n){const r=Object.entries(n),s=[],i=[];for(let l=0,d=r.length;l<d;l++)s.push(ma(r[l][0])),i.push(await on(e,t,r[l][1]));return bo in n&&(s.push(Xa(e.base,bo)),i.push(jO(p6(e.base),await on(e,t,t6(n))))),vo in n&&(s.push(Xa(e.base,vo)),i.push(PO(m6(e.base),await on(e,t,c6(n))))),Ri in n&&(s.push(Xa(e.base,Ri)),i.push(ax(n[Ri]))),xi in n&&(s.push(Xa(e.base,xi)),i.push(n[xi]?XS:ex)),{k:s,v:i}}async function Fp(e,t,n,r,s){return g6(n,r,s,await Rg(e,t,r))}async function x6(e,t,n,r){return TO(n,await on(e,t,r.valueOf()))}async function R6(e,t,n,r){return kO(n,r,await on(e,t,r.buffer))}async function E6(e,t,n,r){return CO(n,r,await on(e,t,r.buffer))}async function A6(e,t,n,r){return OO(n,r,await on(e,t,r.buffer))}async function V_(e,t,n,r){const s=rx(r,e.base.features);return $O(n,r,s?await Rg(e,t,s):void 0)}async function T6(e,t,n,r){const s=rx(r,e.base.features);return MO(n,r,s?await Rg(e,t,s):void 0)}async function k6(e,t,n,r){const s=[],i=[];for(const[l,d]of r.entries())s.push(await on(e,t,l)),i.push(await on(e,t,d));return y6(e.base,n,s,i)}async function C6(e,t,n,r){const s=[];for(const i of r.keys())s.push(await on(e,t,i));return NO(n,s)}async function lx(e,t,n,r){const s=e.base.plugins;if(s)for(let i=0,l=s.length;i<l;i++){const d=s[i];if(d.parse.async&&d.test(r))return EO(n,d.tag,await d.parse.async(r,new _6(e,t),{id:n}))}}async function O6(e,t,n,r){const[s,i]=await d6(r);return ct(12,n,s,void 0,void 0,void 0,void 0,void 0,await on(e,t,i),void 0,void 0,void 0)}function $6(e,t,n,r,s){const i=[],l=n.on({next:d=>{hd(this.base,t),on(this,e,d).then(h=>{i.push(IO(t,h))},h=>{s(h),l()})},throw:d=>{hd(this.base,t),on(this,e,d).then(h=>{i.push(LO(t,h)),r(i),l()},h=>{s(h),l()})},return:d=>{hd(this.base,t),on(this,e,d).then(h=>{i.push(zO(t,h)),r(i),l()},h=>{s(h),l()})}})}async function M6(e,t,n,r){return DO(n,th(e.base,4),await new Promise($6.bind(e,t,n,r)))}async function N6(e,t,n,r){const s=[];for(let i=0,l=r.v.length;i<l;i++)s[i]=await on(e,t,r.v[i]);return BO(n,s,r.t,r.d)}async function j6(e,t,n,r){if(Array.isArray(r))return S6(e,t,n,r);if(i6(r))return M6(e,t,n,r);if(e6(r))return N6(e,t,n,r);let s=r.constructor;if(s!==void 0&&typeof s!="function"){const d=Object.getPrototypeOf(r);s=d===null?void 0:d.constructor}if(s===WO)return on(e,t,r.replacement);const i=await lx(e,t,n,r);if(i)return i;switch(s){case Object:return Fp(e,t,n,r,!1);case void 0:return Fp(e,t,n,r,!0);case Date:return wO(n,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return V_(e,t,n,r);case Number:case Boolean:case String:case BigInt:return x6(e,t,n,r);case ArrayBuffer:return v6(e.base,n,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return R6(e,t,n,r);case DataView:return A6(e,t,n,r);case Map:return k6(e,t,n,r);case Set:return C6(e,t,n,r)}if(s===Promise||r instanceof Promise)return O6(e,t,n,r);const l=e.base.features;if(l&32&&s===RegExp)return SO(n,r);if(l&16)switch(s){case BigInt64Array:case BigUint64Array:return E6(e,t,n,r)}if(l&1&&typeof AggregateError<"u"&&(s===AggregateError||r instanceof AggregateError))return T6(e,t,n,r);if(l&64&&typeof Temporal<"u")switch(s){case Temporal.Instant:return Wo(n,0,r);case Temporal.Duration:return Wo(n,1,r);case Temporal.PlainDate:return Wo(n,2,r);case Temporal.PlainDateTime:return Wo(n,3,r);case Temporal.PlainMonthDay:return Wo(n,4,r);case Temporal.PlainTime:return Wo(n,5,r);case Temporal.PlainYearMonth:return Wo(n,6,r);case Temporal.ZonedDateTime:return Wo(n,7,r)}if(r instanceof Error)return V_(e,t,n,r);
12if(bo in r||vo in r)return Fp(e,t,n,r,!!s);throw new Xd(r)}async function P6(e,t,n){const r=xg(e.base,n);if(r.type!==0)return r.value;const s=await lx(e,t,r.value,n);if(s)return s;throw new Xd(n)}async function on(e,t,n){if(t>=e.base.depthLimit)throw new ix(e.base.depthLimit);switch(typeof n){case"boolean":return n?XS:ex;case"undefined":return sO;case"string":return ax(n);case"number":return vO(n);case"bigint":return bO(n);case"object":if(n){const r=xg(e.base,n);return r.type===0?await j6(e,t+1,r.value,n):r.value}return iO;case"symbol":return Xa(e.base,n);case"function":return P6(e,t,n);default:throw new Xd(n)}}async function D6(e,t){try{return await on(e,0,t)}catch(n){throw n instanceof U_?n:new U_(n)}}function ux(e,t){for(let n=0,r=t.length;n<r;n++){const s=t[n];e.has(s)||(e.add(s),s.extends&&ux(e,s.extends))}}function dx(e){if(e){const t=new Set;return ux(t,e),[...t]}}function I6(e){switch(e){case"Int8Array":return Int8Array;case"Int16Array":return Int16Array;case"Int32Array":return Int32Array;case"Uint8Array":return Uint8Array;case"Uint16Array":return Uint16Array;case"Uint32Array":return Uint32Array;case"Uint8ClampedArray":return Uint8ClampedArray;case"Float32Array":return Float32Array;case"Float64Array":return Float64Array;case"BigInt64Array":return BigInt64Array;case"BigUint64Array":return BigUint64Array;default:throw new ZO(e)}}function L6(e){switch(e){case"constructor":case"__proto__":case"prototype":case"__defineGetter__":case"__defineSetter__":case"__lookupGetter__":case"__lookupSetter__":return!1;default:return!0}}function z6(e){switch(e){case vo:case xi:case Ri:case bo:return!0;default:return!1}}const B6=1e6,U6=1e4,V6=2e4;function hx(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}const F6=1e3;function q6(e,t){var n;const r=t.refs||new Map;return"types"in r||Object.assign(r,{types:new Map}),{mode:e,plugins:t.plugins,refs:r,features:(n=t.features)!==null&&n!==void 0?n:127^(t.disabledFeatures||0),depthLimit:t.depthLimit||F6}}function H6(e){return{mode:2,base:q6(2,e),child:void 0}}var G6=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return Rt(this._p,this.depth,e)}};function fx(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new Ur({t:4,i:t});if(e.refs.has(t))throw new Error("Conflicted ref id: "+t)}function K6(e,t,n){return fx(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,n),n}function Z6(e,t,n){return fx(e.base,t),e.base.refs.set(t,n),n}function en(e,t,n){return e.mode===1?K6(e,t,n):Z6(e,t,n)}function Cm(e,t,n){if(Object.hasOwn(t,n))return t[n];throw new Ur(e)}function W6(e,t){return en(e,t.i,gO(ga(t.s)))}function Y6(e,t,n){const r=n.a,s=r.length,i=en(e,n.i,new Array(s));for(let l=0,d;l<s;l++)d=r[l],d&&(i[l]=Rt(e,t,d));return hx(i,n.o),i}function F_(e,t,n){L6(t)?e[t]=n:Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!0,writable:!0})}function J6(e,t,n,r,s){if(typeof r=="string")F_(n,ga(r),Rt(e,t,s));else{const i=Rt(e,t,r);switch(typeof i){case"string":F_(n,i,Rt(e,t,s));break;case"symbol":z6(i)&&(n[i]=Rt(e,t,s));break;default:throw new Ur(r)}}}function px(e,t,n){e.base.refs.types.set(t,n)}function ml(e,t,n,r){if(e.base.refs.types.get(n)!==r)throw new Ur(t)}function mx(e,t,n,r){const s=n.k;if(s.length>0)for(let i=0,l=n.v,d=s.length;i<d;i++)J6(e,t,r,s[i],l[i]);return r}function Q6(e,t,n){const r=en(e,n.i,n.t===10?{}:Object.create(null));return mx(e,t,n.p,r),hx(r,n.o),r}function X6(e,t){return en(e,t.i,new Date(t.s))}function e$(e,t){if(!(e.base.features&64))throw new wg(t);let n;switch(t.c){case 0:n=Temporal.Instant.from(t.s);break;case 1:n=Temporal.Duration.from(t.s);break;case 2:n=Temporal.PlainDate.from(t.s);break;case 3:n=Temporal.PlainDateTime.from(t.s);break;case 4:n=Temporal.PlainMonthDay.from(t.s);break;case 5:n=Temporal.PlainTime.from(t.s);break;case 6:n=Temporal.PlainYearMonth.from(t.s);break;case 7:n=Temporal.ZonedDateTime.from(t.s);break;default:throw new Ur(t)}return en(e,t.i,n)}function t$(e,t){if(e.base.features&32){const n=ga(t.c);if(n.length>V6)throw new Ur(t);return en(e,t.i,new RegExp(n,t.m))}throw new wg(t)}function n$(e,t,n){const r=en(e,n.i,new Set);for(let s=0,i=n.a,l=i.length;s<l;s++)r.add(Rt(e,t,i[s]));return r}function r$(e,t,n){const r=en(e,n.i,new Map);for(let s=0,i=n.e.k,l=n.e.v,d=i.length;s<d;s++)r.set(Rt(e,t,i[s]),Rt(e,t,l[s]));return r}function o$(e,t){if(t.s.length>B6)throw new Ur(t);return en(e,t.i,XO(ga(t.s)))}function a$(e,t,n){var r;const s=I6(n.c),i=Rt(e,t,n.f),l=(r=n.b)!==null&&r!==void 0?r:0;if(l<0||l>i.byteLength)throw new Ur(n);return en(e,n.i,new s(i,l,n.l))}function s$(e,t,n){var r;const s=Rt(e,t,n.f),i=(r=n.b)!==null&&r!==void 0?r:0;if(i<0||i>s.byteLength)throw new Ur(n);return en(e,n.i,new DataView(s,i,n.l))}function gx(e,t,n,r){if(n.p){const s=mx(e,t,n.p,{});Object.defineProperties(r,Object.getOwnPropertyDescriptors(s))}return r}function i$(e,t,n){return gx(e,t,n,en(e,n.i,new AggregateError([],ga(n.m))))}function c$(e,t,n){const r=Cm(n,aO,n.s);return gx(e,t,n,en(e,n.i,new r(ga(n.m))))}function l$(e,t,n){const r=Sg(),s=en(e,n.i,r.p),i=Rt(e,t,n.f);return n.s?r.s(i):r.f(i),s}
12function u$(e,t,n){return en(e,n.i,Object(Rt(e,t,n.f)))}function d$(e,t,n){const r=e.base.plugins;if(r){const s=ga(n.c);for(let i=0,l=r.length;i<l;i++){const d=r[i];if(d.tag===s)return en(e,n.i,d.deserialize(n.s,new G6(e,t),{id:n.i}))}}throw new HO(n.c)}function h$(e,t){const n=en(e,t.i,en(e,t.s,Sg()).p);return px(e,t.s,22),n}function f$(e,t,n){const r=e.base.refs.get(n.i);if(r){ml(e,n,n.i,22),r.s(Rt(e,t,n.a[1]));return}throw new pl("Promise")}function p$(e,t,n){const r=e.base.refs.get(n.i);if(r){ml(e,n,n.i,22),r.f(Rt(e,t,n.a[1]));return}throw new pl("Promise")}function m$(e,t,n){return Rt(e,t,n.a[0]),r6(Rt(e,t,n.a[1]))}function g$(e,t,n){return Rt(e,t,n.a[0]),u6(Rt(e,t,n.a[1]))}function y$(e,t,n){const r=en(e,n.i,us());px(e,n.i,31);const s=n.a,i=s.length;if(i)for(let l=0;l<i;l++)Rt(e,t,s[l]);return r}function v$(e,t,n){const r=e.base.refs.get(n.i);if(r){ml(e,n,n.i,31),r.next(Rt(e,t,n.f));return}throw new pl("Stream")}function b$(e,t,n){const r=e.base.refs.get(n.i);if(r){ml(e,n,n.i,31),r.throw(Rt(e,t,n.f));return}throw new pl("Stream")}function _$(e,t,n){const r=e.base.refs.get(n.i);if(r){ml(e,n,n.i,31),r.return(Rt(e,t,n.f));return}throw new pl("Stream")}function w$(e,t,n){Rt(e,t,n.f)}function S$(e,t,n){Rt(e,t,n.a[1])}function x$(e,t,n){const r=en(e,n.i,cx([],n.s,n.l));for(let s=0,i=n.a.length;s<i;s++)r.v[s]=Rt(e,t,n.a[s]);return r}function Rt(e,t,n){if(t>e.base.depthLimit)throw new ix(e.base.depthLimit);switch(t+=1,n.t){case 2:return Cm(n,rO,n.s);case 0:return Number(n.s);case 1:return ga(String(n.s));case 3:if(String(n.s).length>U6)throw new Ur(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return W6(e,n);case 9:return Y6(e,t,n);case 10:case 11:return Q6(e,t,n);case 5:return X6(e,n);case 6:return t$(e,n);case 7:return n$(e,t,n);case 8:return r$(e,t,n);case 19:return o$(e,n);case 16:case 15:return a$(e,t,n);case 20:return s$(e,t,n);case 14:return i$(e,t,n);case 13:return c$(e,t,n);case 12:return l$(e,t,n);case 17:return Cm(n,nO,n.s);case 21:return u$(e,t,n);case 25:return d$(e,t,n);case 22:return h$(e,n);case 23:return f$(e,t,n);case 24:return p$(e,t,n);case 28:return m$(e,t,n);case 30:return g$(e,t,n);case 31:return y$(e,t,n);case 32:return v$(e,t,n);case 33:return b$(e,t,n);case 34:return _$(e,t,n);case 27:return w$(e,t,n);case 29:return S$(e,t,n);case 35:return x$(e,t,n);case 36:return e$(e,n);default:throw new wg(n)}}function R$(e,t){try{return Rt(e,0,t)}catch(n){throw new qO(n)}}function q_(e,t){return R$(H6({plugins:dx(t.plugins),refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function E$(e,t={}){const n=b6(1,{plugins:dx(t.plugins),disabledFeatures:t.disabledFeatures});return{t:await D6(n,e),f:n.base.features,m:Array.from(n.base.marked)}}function A$(e){return{tag:"$TSR/t/"+e.key,test:e.test,parse:{sync(t,n,r){return{v:n.parse(e.toSerializable(t))}},async async(t,n,r){return{v:await n.parse(e.toSerializable(t))}},stream(t,n,r){return{v:n.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,n,r){return e.fromSerializable(n.deserialize(t.v))}}}var T$=class{constructor(e,t){this.stream=e,this.hint=t?.hint??"binary"}};const kd=globalThis.Buffer,yx=!!kd&&typeof kd.from=="function";function vx(e){if(e.length===0)return"";if(yx)return kd.from(e).toString("base64");const t=32768,n=[];for(let r=0;r<e.length;r+=t){const s=e.subarray(r,r+t);n.push(String.fromCharCode.apply(null,s))}return btoa(n.join(""))}function bx(e){if(e.length===0)return new Uint8Array(0);if(yx){const r=kd.from(e,"base64");return new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const kc=Object.create(null),Cc=Object.create(null),k$=e=>new ReadableStream({start(t){e.on({next(n){try{t.enqueue(bx(n))}catch{}},throw(n){t.error(n)},return(){try{t.close()}catch{}}})}}),C$=new TextEncoder,O$=e=>new ReadableStream({start(t){e.on({next(n){try{typeof n=="string"?t.enqueue(C$.encode(n)):t.enqueue(bx(n.$b64))}catch{}},throw(n){t.error(n)},return(){try{t.close()}catch{}}})}}),$$="(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;
12i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))",M$="(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})";function H_(e){const t=us(),n=e.getReader();return(async()=>{try{for(;;){const{done:r,value:s}=await n.read();if(r){t.return(void 0);break}t.next(vx(s))}}catch(r){t.throw(r)}finally{n.releaseLock()}})(),t}function G_(e){const t=us(),n=e.getReader(),r=new TextDecoder("utf-8",{fatal:!0});return(async()=>{try{for(;;){const{done:s,value:i}=await n.read();if(s){try{const l=r.decode();l.length>0&&t.next(l)}catch{}t.return(void 0);break}try{const l=r.decode(i,{stream:!0});l.length>0&&t.next(l)}catch{t.next({$b64:vx(i)})}}}catch(s){t.throw(s)}finally{n.releaseLock()}})(),t}const N$={tag:"tss/RawStream",extends:[{tag:"tss/RawStreamFactory",test(e){return e===kc},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return $$},deserialize(e,t,n){return kc}},{tag:"tss/RawStreamFactoryText",test(e){return e===Cc},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return M$},deserialize(e,t,n){return Cc}}],test(e){return e instanceof T$},parse:{sync(e,t,n){const r=e.hint==="text"?Cc:kc;return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(us())}},async async(e,t,n){const r=e.hint==="text"?Cc:kc,s=e.hint==="text"?G_(e.stream):H_(e.stream);return{hint:await t.parse(e.hint),factory:await t.parse(r),stream:await t.parse(s)}},stream(e,t,n){const r=e.hint==="text"?Cc:kc,s=e.hint==="text"?G_(e.stream):H_(e.stream);return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(s)}}},serialize(e,t,n){return"("+t.serialize(e.factory)+")("+t.serialize(e.stream)+")"},deserialize(e,t,n){const r=t.deserialize(e.stream);return t.deserialize(e.hint)==="text"?O$(r):k$(r)}};function j$(e){return{tag:"tss/RawStream",test:()=>!1,parse:{},serialize(){throw new Error("RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.")},deserialize(t,n,r){return e(typeof n?.deserialize=="function"?n.deserialize(t.streamId):t.streamId)}}}const P$={tag:"$TSR/Error",test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return"new Error("+t.serialize(e.message)+")"},deserialize(e,t){return new Error(t.deserialize(e.message))}},ra={},_x=e=>new ReadableStream({start(t){e.on({next(n){try{t.enqueue(n)}catch{}},throw(n){t.error(n)},return(){try{t.close()}catch{}}})}}),D$={tag:"seroval-plugins/web/ReadableStreamFactory",test(e){return e===ra},parse:{sync(){return ra},async async(){return await Promise.resolve(ra)},stream(){return ra}},serialize(){return _x.toString()},deserialize(){return ra}};async function wx(e,t){try{const n=await t.read();n.done?(e.return(n.value),t.releaseLock()):(e.next(n.value),await wx(e,t))}catch(n){e.throw(n)}}function I$(e){e.cancel().catch(()=>{}),e.releaseLock()}function K_(e){const t=us(),n=e.getReader(),r=I$.bind(null,n);return wx(t,n).catch(r),[t,r]}const L$={tag:"seroval/plugins/web/ReadableStream",extends:[D$],test(e){return typeof ReadableStream>"u"?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(ra),stream:t.parse(us())}},async async(e,t){return{factory:await t.parse(ra),stream:await t.parse(K_(e)[0])}},stream(e,t){const[n,r]=K_(e);return t.addCleanup(r),{factory:t.parse(ra),stream:t.parse(n)}}},serialize(e,t){return"("+t.serialize(e.factory)+")("+t.serialize(e.stream)+")"},deserialize(e,t){const n=t.deserialize(e.stream);return _x(n)}},z$=[P$,N$,L$];function B$(){return[...gg()?.serializationAdapters?.map(A$)??[],...z$]}var Z_=new TextDecoder,U$=new Uint8Array(0),W_=16*1024*1024,Y_=32*1024*1024,J_=1024,Q_=1e5;function V$(e){const t=new Map,n=new Map,r=new Set;let s=!1,i=null,l=0,d;const h=new ReadableStream({start(y){d=y},cancel(){s=!0;try{i?.cancel()}catch{}t.forEach(y=>{try{y.error(new Error("Framed response cancelled"))}catch{}}),t.clear(),n.clear(),r.clear()}});function f(y){const b=n.get(y);if(b)return b;if(r.has(y))return new ReadableStream({start(S){S.close()}});if(n.size>
12=J_)throw new Error(`Too many raw streams in framed response (max ${J_})`);const _=new ReadableStream({start(S){t.set(y,S)},cancel(){r.add(y),t.delete(y),n.delete(y)}});return n.set(y,_),_}function g(y){return f(y),t.get(y)}return(async()=>{const y=e.getReader();i=y;const b=[];let _=0;function S(){if(_<9)return null;const x=b[0];if(x.length>=9)return{type:x[0],streamId:(x[1]<<24|x[2]<<16|x[3]<<8|x[4])>>>0,length:(x[5]<<24|x[6]<<16|x[7]<<8|x[8])>>>0};const k=new Uint8Array(9);let M=0,P=9;for(let I=0;I<b.length&&P>0;I++){const F=b[I],G=Math.min(F.length,P);k.set(F.subarray(0,G),M),M+=G,P-=G}return{type:k[0],streamId:(k[1]<<24|k[2]<<16|k[3]<<8|k[4])>>>0,length:(k[5]<<24|k[6]<<16|k[7]<<8|k[8])>>>0}}function E(x){if(x===0)return U$;const k=b[0];if(k&&k.length>=x){const F=k.subarray(0,x);return k.length===x?b.shift():b[0]=k.subarray(x),_-=x,F}const M=new Uint8Array(x);let P=0,I=x;for(;I>0&&b.length>0;){const F=b[0];if(!F)break;const G=Math.min(F.length,I);M.set(F.subarray(0,G),P),P+=G,I-=G,G===F.length?b.shift():b[0]=F.subarray(G)}return _-=x,M}try{for(;;){const{done:x,value:k}=await y.read();if(s||x)break;if(k){if(_+k.length>Y_)throw new Error(`Framed response buffer exceeded ${Y_} bytes`);for(b.push(k),_+=k.length;;){const M=S();if(!M)break;const{type:P,streamId:I,length:F}=M;if(P!==co.JSON&&P!==co.CHUNK&&P!==co.END&&P!==co.ERROR)throw new Error(`Unknown frame type: ${P}`);if(P===co.JSON){if(I!==0)throw new Error("Invalid JSON frame streamId (expected 0)")}else if(I===0)throw new Error("Invalid raw frame streamId (expected non-zero)");if(F>W_)throw new Error(`Frame payload too large: ${F} bytes (max ${W_})`);const G=9+F;if(_<G)break;if(++l>Q_)throw new Error(`Too many frames in framed response (max ${Q_})`);E(9);const U=E(F);switch(P){case co.JSON:try{d.enqueue(Z_.decode(U))}catch{}break;case co.CHUNK:{const V=g(I);V&&V.enqueue(U);break}case co.END:{const V=g(I);if(r.add(I),V){try{V.close()}catch{}t.delete(I)}break}case co.ERROR:{const V=g(I);if(r.add(I),V){const ne=Z_.decode(U);V.error(new Error(ne)),t.delete(I)}break}}}}}if(_!==0)throw new Error("Incomplete frame at end of framed response");try{d.close()}catch{}t.forEach(x=>{try{x.close()}catch{}}),t.clear()}catch(x){try{d.error(x)}catch{}t.forEach(k=>{try{k.error(x)}catch{}}),t.clear()}finally{try{y.releaseLock()}catch{}i=null}})(),{getOrCreateStream:f,jsonChunks:h}}var Zc=null;async function Om(e){e.length>0&&await Promise.allSettled(e)}var F$=Object.prototype.hasOwnProperty;function Sx(e){for(const t in e)if(F$.call(e,t))return!0;return!1}async function q$(e,t,n){Zc||(Zc=B$());const r=t[0],s=r.fetch??n,i=r.data instanceof FormData?"formData":"payload",l=r.headers?new Headers(r.headers):new Headers;if(l.set("x-tsr-serverFn","true"),i==="payload"&&l.set("accept",`${Fk}, application/x-ndjson, application/json`),r.method==="GET"){if(i==="formData")throw new Error("FormData is not supported with GET requests");const h=await xx(r);if(h!==void 0){const f=jS({payload:h});e.includes("?")?e+=`&${f}`:e+=`?${f}`}}let d;if(r.method==="POST"){const h=await H$(r);h?.contentType&&l.set("content-type",h.contentType),d=h?.body}return await G$(async()=>s(e,{method:r.method,headers:l,signal:r.signal,body:d}))}async function xx(e){let t=!1;const n={};if(e.data!==void 0&&(t=!0,n.data=e.data),e.context&&Sx(e.context)&&(t=!0,n.context=e.context),t)return Rx(n)}async function Rx(e){return JSON.stringify(await Promise.resolve(E$(e,{plugins:Zc})))}async function H$(e){if(e.data instanceof FormData){let n;return e.context&&Sx(e.context)&&(n=await Rx(e.context)),n!==void 0&&e.data.set(Vk,n),{body:e.data}}const t=await xx(e);if(t)return{body:t,contentType:"application/json"}}async function G$(e){let t;try{t=await e()}catch(r){if(r instanceof Response)t=r;else throw console.log(r),r}if(t.headers.get("x-tss-raw")==="true")return t;const n=t.headers.get("content-type");if(n||Vn(),t.headers.get("x-tss-serialized")){let r;if(n.includes("application/x-tss-framed")){if(Gk(n),!t.body)throw new Error("No response body for framed response");const{getOrCreateStream:s,jsonChunks:i}=V$(t.body),l=[j$(s),...Zc||[]],d=new Map;r=await K$({jsonStream:i,onMessage:h=>q_(h,{refs:d,plugins:l}),onError(h,f){console.error(h,f)}})}else if(n.includes("application/json")){const s=await t.json(),i=[];r=q_(s,{plugins:Zc}),await Om(i)}if(r||Vn(),r instanceof Error)throw r;return r}if(n.includes("application/json")){const r=await t.json(),s=PS(r);if(s)throw s;if(dn(r))throw r;return r}if(!t.ok)throw new Error(await t.text());return t}async function K$({jsonStream:e,onMessage:t,onError:n}){const r=e.getReader(),{value:s,done:i}=await r.read();if(i||!s)throw new Error("Stream ended before first object");const l=JSON.parse(s);let d=!1;const h=(async()=>{try{for(;;){const{value:y,done:b}=await r.read();if(b)break;
12if(y)try{const _=[];try{t(JSON.parse(y))}finally{}await Om(_)}catch(_){n?.(`Invalid JSON: ${y}`,_)}}}catch(y){d||n?.("Stream processing error:",y)}})();let f;const g=[];try{f=t(l)}catch(y){throw d=!0,r.cancel().catch(()=>{}),y}return await Om(g),Promise.resolve(f).catch(()=>{d=!0,r.cancel().catch(()=>{})}),h.finally(()=>{try{r.releaseLock()}catch{}}),f}function Oe(e){const t="/_serverFn/"+e;return Object.assign((...s)=>{const i=gg()?.serverFns?.fetch;return q$(t,s,i??fetch)},{url:t,serverFnMeta:{id:e},[Em]:!0})}var Z$={key:"$TSS/serverfn",test:e=>typeof e!="function"||!(Em in e)?!1:!!e[Em],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>Oe(e)};function Ex(e){if(Array.isArray(e))return e.flatMap(g=>Ex(g));if(typeof e!="string")return[];const t=[];let n=0,r,s,i,l,d;const h=()=>{for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length},f=()=>(s=e.charAt(n),s!=="="&&s!==";"&&s!==",");for(;n<e.length;){for(r=n,d=!1;h();)if(s=e.charAt(n),s===","){for(i=n,n+=1,h(),l=n;n<e.length&&f();)n+=1;n<e.length&&e.charAt(n)==="="?(d=!0,n=l,t.push(e.slice(r,i)),r=n):n=i+1}else n+=1;(!d||n>=e.length)&&t.push(e.slice(r))}return t}function W$(e){return e instanceof Headers?e:Array.isArray(e)?new Headers(e):typeof e=="object"?new Headers(e):null}function Y$(...e){return e.reduce((t,n)=>{const r=W$(n);if(!r)return t;for(const[s,i]of r.entries())s==="set-cookie"?Ex(i).forEach(l=>t.append("set-cookie",l)):t.set(s,i);return t},new Headers)}function X_(e){return e.replaceAll("\0","/").replaceAll("�","/")}function J$(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e,t.g!==void 0&&(e.globalNotFound=t.g)}async function Q$(e){window.$_TSR||Vn();const t=e.options.serializationAdapters;if(t?.length){const x=new Map;t.forEach(k=>{x.set(k.key,k.fromSerializable)}),window.$_TSR.t=x,window.$_TSR.buffer.forEach(k=>k())}window.$_TSR.initialized=!0,window.$_TSR.router||Vn();const n=window.$_TSR.router;n.matches.forEach(x=>{x.i=X_(x.i)}),n.lastMatchId&&(n.lastMatchId=X_(n.lastMatchId));const{manifest:r,dehydratedData:s,lastMatchId:i}=n;e.ssr={manifest:r};const l=document.querySelector('meta[property="csp-nonce"]')?.content;e.options.ssr={nonce:l},await e.options.hydrate?.(s);const d=e.matchRoutes(e.stores.location.get()),h=Promise.all(d.map(x=>e.loadRouteChunk(e.looseRoutesById[x.routeId])));function f(x){const k=e.looseRoutesById[x.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(k){const M=ss();x._nonReactive.minPendingPromise=M,x._forcePending=!0,setTimeout(()=>{M.resolve(),e.updateMatch(x.id,P=>(P._nonReactive.minPendingPromise=void 0,{...P,_forcePending:void 0}))},k)}}function g(x){const k=e.looseRoutesById[x.routeId];k&&(k.options.ssr=x.ssr)}let y;d.forEach(x=>{const k=n.matches.find(M=>M.i===x.id);if(!k){x._nonReactive.dehydrated=!1,x.ssr=!1,g(x);return}J$(x,k),g(x),x._nonReactive.dehydrated=x.ssr!==!1,(x.ssr==="data-only"||x.ssr===!1)&&y===void 0&&(y=x.index,f(x))}),e.stores.setMatches(d);const b=e.stores.matches.get(),_=e.stores.location.get();await Promise.all(b.map(async x=>{try{const k=e.looseRoutesById[x.routeId],M=b[x.index-1]?.context??e.options.context;if(k.options.context){const G={deps:x.loaderDeps,params:x.params,context:M??{},location:_,navigate:U=>e.navigate({...U,_fromLocation:_}),buildLocation:e.buildLocation,cause:x.cause,abortController:x.abortController,preload:!1,matches:d,routeId:k.id};x.__routeContext=k.options.context(G)??void 0}x.context={...M,...x.__routeContext,...x.__beforeLoadContext};const P={ssr:e.options.ssr,matches:b,match:x,params:x.params,loaderData:x.loaderData},I=await k.options.head?.(P),F=await k.options.scripts?.(P);x.meta=I?.meta,x.links=I?.links,x.headScripts=I?.scripts,x.styles=I?.styles,x.scripts=F}catch(k){if(dn(k))x.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${x.routeId}`,k);else throw x.error=k,console.error(`Error during hydration for route ${x.routeId}:`,k),k}}));const S=d[d.length-1].id!==i;if(!d.some(x=>x.ssr===!1)&&!S)return d.forEach(x=>{x._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),h;const E=Promise.resolve().then(()=>e.load()).catch(x=>{console.error("Error during router hydration:",x)});if(S){const x=d[1];x||Vn(),f(x),x._displayPending=!0,x._nonReactive.displayPendingPromise=E,E.then(()=>{e.batch(()=>{e.stores.status.get()==="pending"&&(e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())),e.updateMatch(x.id,k=>({...k,_displayPending:void 0,displayPendingPromise:void 0}))})})}return h}var Cd=T.use,vi=typeof window<"u"?T.useLayoutEffect:T.useEffect;function qp(e){const t=T.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}
12function X$(e,t,n={},r={}){T.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!="function")return;const s=new IntersectionObserver(([i])=>{t(i)},n);return s.observe(e.current),()=>{s.disconnect()}},[t,n,r.disabled,e])}function eM(e){const t=T.useRef(null);return T.useImperativeHandle(e,()=>t.current,[]),t}function tM({promise:e}){if(Cd)return Cd(e);const t=WC(e);if(t[Pr].status==="pending")throw t;if(t[Pr].status==="error")throw t[Pr].error;return t[Pr].data}function nM(e){const t=p.jsx(rM,{...e});return e.fallback?p.jsx(T.Suspense,{fallback:e.fallback,children:t}):t}function rM(e){const t=tM(e);return e.children(t)}function Eg(e){const t=e.errorComponent??Ag;return p.jsx(oM,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?T.createElement(t,{error:n,reset:r}):e.children})}var oM=class extends T.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){const n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Ag({error:e}){const[t,n]=T.useState(!1);return p.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[p.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),p.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:t?"Hide Error":"Show Error"})]}),p.jsx("div",{style:{height:".25rem"}}),t?p.jsx("div",{children:p.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?p.jsx("code",{children:e.message}):null})}):null]})}function aM({children:e,fallback:t=null}){return Tg()?p.jsx(_e.Fragment,{children:e}):p.jsx(_e.Fragment,{children:t})}function Tg(){return _e.useSyncExternalStore(sM,()=>!0,()=>!1)}function sM(){return()=>{}}var Ax=T.createContext(null);function Lt(e){return T.useContext(Ax)}var nh=T.createContext(void 0),iM=T.createContext(void 0),Mt=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(Mt||{});function cM({update:e,notify:t,unwatched:n}){return{link:r,unlink:s,propagate:i,checkDirty:l,shallowPropagate:d};function r(f,g,y){const b=g.depsTail;if(b!==void 0&&b.dep===f)return;const _=b!==void 0?b.nextDep:g.deps;if(_!==void 0&&_.dep===f){_.version=y,g.depsTail=_;return}const S=f.subsTail;if(S!==void 0&&S.version===y&&S.sub===g)return;const E=g.depsTail=f.subsTail={version:y,dep:f,sub:g,prevDep:b,nextDep:_,prevSub:S,nextSub:void 0};_!==void 0&&(_.prevDep=E),b!==void 0?b.nextDep=E:g.deps=E,S!==void 0?S.nextSub=E:f.subs=E}function s(f,g=f.sub){const y=f.dep,b=f.prevDep,_=f.nextDep,S=f.nextSub,E=f.prevSub;return _!==void 0?_.prevDep=b:g.depsTail=b,b!==void 0?b.nextDep=_:g.deps=_,S!==void 0?S.prevSub=E:y.subsTail=E,E!==void 0?E.nextSub=S:(y.subs=S)===void 0&&n(y),_}function i(f){let g=f.nextSub,y;e:do{const b=f.sub;let _=b.flags;if(_&60?_&12?_&4?!(_&48)&&h(f,b)?(b.flags=_|40,_&=1):_=0:b.flags=_&-9|32:_=0:b.flags=_|32,_&2&&t(b),_&1){const S=b.subs;if(S!==void 0){const E=(f=S).nextSub;E!==void 0&&(y={value:g,prev:y},g=E);continue}}if((f=g)!==void 0){g=f.nextSub;continue}for(;y!==void 0;)if(f=y.value,y=y.prev,f!==void 0){g=f.nextSub;continue e}break}while(!0)}function l(f,g){let y,b=0,_=!1;e:do{const S=f.dep,E=S.flags;if(g.flags&16)_=!0;else if((E&17)===17){if(e(S)){const x=S.subs;x.nextSub!==void 0&&d(x),_=!0}}else if((E&33)===33){(f.nextSub!==void 0||f.prevSub!==void 0)&&(y={value:f,prev:y}),f=S.deps,g=S,++b;continue}if(!_){const x=f.nextDep;if(x!==void 0){f=x;continue}}for(;b--;){const x=g.subs,k=x.nextSub!==void 0;if(k?(f=y.value,y=y.prev):f=x,_){if(e(g)){k&&d(x),g=f.sub;continue}_=!1}else g.flags&=-33;g=f.sub;const M=f.nextDep;if(M!==void 0){f=M;continue e}}return _}while(!0)}function d(f){do{const g=f.sub,y=g.flags;(y&48)===32&&(g.flags=y|16,(y&6)===2&&t(g))}while((f=f.nextSub)!==void 0)}function h(f,g){let y=g.depsTail;for(;y!==void 0;){if(y===f)return!0;y=y.prevDep}return!1}}function lM(e,t,n){const r=typeof e=="object",s=r?e:void 0;return{next:(r?e.next:e)?.bind(s),error:(r?e.error:t)?.bind(s),complete:(r?e.complete:n)?.bind(s)}}const $m=[];let fd=0;const{link:ew,unlink:uM,propagate:dM,checkDirty:Tx,shallowPropagate:tw}=cM({update(e){return e._update()},notify(e){$m[Mm++]=e,e.flags&=~Mt.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Mt.Mutable|Mt.Dirty,Od(e))}});let zu=0,Mm=0,Nr,Nm=0;function kx(e){try{++Nm,e()}finally{--Nm||Cx()}}function Od(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=uM(n,e)}function Cx(){if(!(Nm>0)){for(;zu<Mm;){const e=$m[zu];$m[zu++]=void 0,e.notify()}zu=0,Mm=0}}function nw(e,t){const n=typeof e=="function",r=e,s={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?Mt.None:Mt.Mutable,get(){return Nr!==void 0&&ew(s,Nr,fd),s._snapshot},subscribe(i){const l=lM(i),d={current:!1}
12,h=hM(()=>{s.get(),d.current?l.next?.(s._snapshot):d.current=!0});return{unsubscribe:()=>{h.stop()}}},_update(i){const l=Nr,d=t?.compare??Object.is;if(n)Nr=s,++fd,s.depsTail=void 0;else if(i===void 0)return!1;n&&(s.flags=Mt.Mutable|Mt.RecursedCheck);try{const h=s._snapshot,f=typeof i=="function"?i(h):i===void 0&&n?r(h):i;return h===void 0||!d(h,f)?(s._snapshot=f,!0):!1}finally{Nr=l,n&&(s.flags&=~Mt.RecursedCheck),Od(s)}}};return n?(s.flags=Mt.Mutable|Mt.Dirty,s.get=function(){const i=s.flags;if(i&Mt.Dirty||i&Mt.Pending&&Tx(s.deps,s)){if(s._update()){const l=s.subs;l!==void 0&&tw(l)}}else i&Mt.Pending&&(s.flags=i&~Mt.Pending);return Nr!==void 0&&ew(s,Nr,fd),s._snapshot}):s.set=function(i){if(s._update(i)){const l=s.subs;l!==void 0&&(dM(l),tw(l),Cx())}},s}function hM(e){const t=()=>{const r=Nr;Nr=n,++fd,n.depsTail=void 0,n.flags=Mt.Watching|Mt.RecursedCheck;try{return e()}finally{Nr=r,n.flags&=~Mt.RecursedCheck,Od(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Mt.Watching|Mt.RecursedCheck,notify(){const r=this.flags;r&Mt.Dirty||r&Mt.Pending&&Tx(this.deps,this)?t():this.flags=Mt.Watching},stop(){this.flags=Mt.None,this.depsTail=void 0,Od(this)}};return t(),n}var Hp={exports:{}},Gp={},Kp={exports:{}},Zp={};var rw;function fM(){if(rw)return Zp;rw=1;var e=fl();function t(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,s=e.useEffect,i=e.useLayoutEffect,l=e.useDebugValue;function d(y,b){var _=b(),S=r({inst:{value:_,getSnapshot:b}}),E=S[0].inst,x=S[1];return i(function(){E.value=_,E.getSnapshot=b,h(E)&&x({inst:E})},[y,_,b]),s(function(){return h(E)&&x({inst:E}),y(function(){h(E)&&x({inst:E})})},[y]),l(_),_}function h(y){var b=y.getSnapshot;y=y.value;try{var _=b();return!n(y,_)}catch{return!0}}function f(y,b){return b()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:d;return Zp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,Zp}var ow;function pM(){return ow||(ow=1,Kp.exports=fM()),Kp.exports}var aw;function mM(){if(aw)return Gp;aw=1;var e=fl(),t=pM();function n(f,g){return f===g&&(f!==0||1/f===1/g)||f!==f&&g!==g}var r=typeof Object.is=="function"?Object.is:n,s=t.useSyncExternalStore,i=e.useRef,l=e.useEffect,d=e.useMemo,h=e.useDebugValue;return Gp.useSyncExternalStoreWithSelector=function(f,g,y,b,_){var S=i(null);if(S.current===null){var E={hasValue:!1,value:null};S.current=E}else E=S.current;S=d(function(){function k(G){if(!M){if(M=!0,P=G,G=b(G),_!==void 0&&E.hasValue){var U=E.value;if(_(U,G))return I=U}return I=G}if(U=I,r(P,G))return U;var V=b(G);return _!==void 0&&_(U,V)?(P=G,U):(P=G,I=V)}var M=!1,P,I,F=y===void 0?null:y;return[function(){return k(g())},F===null?void 0:function(){return k(F())}]},[g,y,b,_]);var x=s(f,S[0],S[1]);return l(function(){E.hasValue=!0,E.value=x},[x]),h(x),x},Gp}var sw;function gM(){return sw||(sw=1,Hp.exports=mM()),Hp.exports}var yM=gM();function vM(e,t){return e===t}function It(e,t,n=vM){const r=T.useCallback(l=>{if(!e)return()=>{};const{unsubscribe:d}=e.subscribe(l);return d},[e]),s=T.useCallback(()=>e?.get(),[e]);return yM.useSyncExternalStoreWithSelector(r,s,s,t,n)}var Wp={get(){},subscribe(){return{unsubscribe(){}}}};function Ox(e,t){const n=T.useRef();return r=>{const s=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=Ja(n.current,s):s}}function ds(e){const t=Lt(),n=T.useContext(e.from?iM:nh),r=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),s=Ox(e,t),i=It(r??Wp,l=>l?s(l):Wp);if(i!==Wp)return i;(e.shouldThrow??!0)&&Vn()}function $x(e){return ds({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Mx(e){const{select:t,...n}=e;return ds({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function Nx(e){return ds({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function jx(e){return ds({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function gl(e){const t=Lt();return T.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function tce(e){const t=Lt(),n=gl(),r=T.useRef(null);return vi(()=>{r.current!==e&&(n(e),r.current=e)},[t,e,n]),null}function Px(e){return ds({...e,select:t=>e.select?e.select(t.context):t.context})}var kg=xS();const Dx=SS(kg);function bM(e,t){const n=Lt(),r=eM(t),{activeProps:s,inactiveProps:i,activeOptions:l,to:d,preload:h,preloadDelay:f,preloadIntentProximity:g,hashScrollIntoView:y,replace:b,startTransition:_,resetScroll:S,viewTransition:E,children:x,target:k,disabled:M,style:P,className:I,onClick:F,onBlur:G,onFocus:U,onMouseEnter:V,onMouseLeave:ne,onTouchStart:W,ignoreBlocker:pe,params:de,search:$e,hash:Ce,state:ue,mask:z,reloadDocument:te,unsafeRelative:we,from:Pe,_fromLocation:ye,...L}=e,ae=Tg(),oe=T.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),ce=It(n.stores.location,Ye=>Ye,(Ye,At)=>Ye.href===At.href),he=T.useMemo(()=>{const Ye={_fromLocation:ce,...oe};return n.buildLocation(Ye)},[n,ce,oe]),Re=he.maskedLocation?he.maskedLocation.publicHref:he.publicHref,Le=he.maskedLocation?he.maskedLocation.external:he.external,ve=T.useMemo(()=>EM(Re,Le,n.history,M),[M,Le,Re,n.history]),Se=T.useMemo(()=>
12{if(ve?.external)return xd(ve.href,n.protocolAllowlist)?void 0:ve.href;if(!AM(d)&&!(typeof d!="string"||d.indexOf(":")===-1))try{return new URL(d),xd(d,n.protocolAllowlist)?void 0:d}catch{}},[d,ve,n.protocolAllowlist]),Et=T.useMemo(()=>{if(Se)return!1;if(l?.exact){if(!pC(ce.pathname,he.pathname,n.basepath))return!1}else{const Ye=Rd(ce.pathname,n.basepath),At=Rd(he.pathname,n.basepath);if(!(Ye.startsWith(At)&&(Ye.length===At.length||Ye[At.length]==="/")))return!1}return(l?.includeSearch??!0)&&!Tn(ce.search,he.search,{partial:!l?.exact,ignoreUndefined:!l?.explicitUndefined})?!1:l?.includeHash?ae&&ce.hash===he.hash:!0},[l?.exact,l?.explicitUndefined,l?.includeHash,l?.includeSearch,ce,Se,ae,he.hash,he.pathname,he.search,n.basepath]),it=Et?Ya(s,{})??_M:Yp,ht=Et?Yp:Ya(i,{})??Yp,K=[I,it.className,ht.className].filter(Boolean).join(" "),Q=(P||it.style||ht.style)&&{...P,...it.style,...ht.style},[be,Te]=T.useState(!1),Qe=T.useRef(!1),yt=e.reloadDocument||Se?!1:h??n.options.defaultPreload,ft=f??n.options.defaultPreloadDelay??0,tn=T.useCallback(()=>{n.preloadRoute({...oe,_builtLocation:he}).catch(Ye=>{console.warn(Ye),console.warn(YC)})},[n,oe,he]);X$(r,T.useCallback(Ye=>{Ye?.isIntersecting&&tn()},[tn]),RM,{disabled:!!M||yt!=="viewport"}),T.useEffect(()=>{Qe.current||!M&&yt==="render"&&(tn(),Qe.current=!0)},[M,tn,yt]);const mr=Ye=>{const At=Ye.currentTarget.getAttribute("target"),kn=k!==void 0?k:At;if(!M&&!TM(Ye)&&!Ye.defaultPrevented&&(!kn||kn==="_self")&&Ye.button===0){Ye.preventDefault(),kg.flushSync(()=>{Te(!0)});const an=n.subscribe("onResolved",()=>{an(),Te(!1)});n.navigate({...oe,replace:b,resetScroll:S,hashScrollIntoView:y,startTransition:_,viewTransition:E,ignoreBlocker:pe})}};if(Se)return{...L,ref:r,href:Se,...x&&{children:x},...k&&{target:k},...M&&{disabled:M},...P&&{style:P},...I&&{className:I},...F&&{onClick:F},...G&&{onBlur:G},...U&&{onFocus:U},...V&&{onMouseEnter:V},...ne&&{onMouseLeave:ne},...W&&{onTouchStart:W}};const Zt=Ye=>{if(M||yt!=="intent")return;if(!ft){tn();return}const At=Ye.currentTarget;if(Oc.has(At))return;const kn=setTimeout(()=>{Oc.delete(At),tn()},ft);Oc.set(At,kn)},qn=Ye=>{M||yt!=="intent"||tn()},Pt=Ye=>{if(M||!yt||!ft)return;const At=Ye.currentTarget,kn=Oc.get(At);kn&&(clearTimeout(kn),Oc.delete(At))};return{...L,...it,...ht,href:ve?.href,ref:r,onClick:ei([F,mr]),onBlur:ei([G,Pt]),onFocus:ei([U,Zt]),onMouseEnter:ei([V,Zt]),onMouseLeave:ei([ne,Pt]),onTouchStart:ei([W,qn]),disabled:!!M,target:k,...Q&&{style:Q},...K&&{className:K},...M&&wM,...Et&&SM,...ae&&be&&xM}}var Yp={},_M={className:"active"},wM={role:"link","aria-disabled":!0},SM={"data-status":"active","aria-current":"page"},xM={"data-transitioning":"transitioning"},Oc=new WeakMap,RM={rootMargin:"100px"},ei=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function EM(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function AM(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var An=T.forwardRef((e,t)=>{const{_asChild:n,...r}=e,{type:s,...i}=bM(r,t),l=typeof r.children=="function"?r.children({isActive:i["data-status"]==="active"}):r.children;if(!n){const{disabled:d,...h}=i;return T.createElement("a",h,l)}return T.createElement(n,i,l)});function TM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var kM=class extends VS{constructor(t){super(t),this.useMatch=n=>ds({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Px({...n,from:this.id}),this.useSearch=n=>jx({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>Nx({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>Mx({...n,from:this.id}),this.useLoaderData=n=>$x({...n,from:this.id}),this.useNavigate=()=>gl({from:this.fullPath}),this.Link=_e.forwardRef((n,r)=>p.jsx(An,{ref:r,from:this.fullPath,...n}))}};function CM(e){return new kM(e)}function OM(){return e=>MM(e)}var $M=class extends tO{constructor(e){super(e),this.useMatch=t=>ds({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>Px({...t,from:this.id}),this.useSearch=t=>jx({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>Nx({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>Mx({...t,from:this.id}),this.useLoaderData=t=>$x({...t,from:this.id}),this.useNavigate=()=>gl({from:this.fullPath}
12),this.Link=_e.forwardRef((t,n)=>p.jsx(An,{ref:n,from:this.fullPath,...t}))}};function MM(e){return new $M(e)}function j(e){return new NM(e,{silent:!0}).createRoute}var NM=class{constructor(e,t){this.path=e,this.createRoute=n=>{const r=CM(n);return r.isRoot=!1,r},this.silent=t?.silent}};function N(e,t){let n,r,s,i;const l=()=>(n||(n=e().then(h=>{n=void 0,r=h[t??"default"]}).catch(h=>{if(s=h,Wk(s)&&s instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const f=`tanstack_router_reload:${s.message}`;sessionStorage.getItem(f)||(sessionStorage.setItem(f,"1"),i=!0)}})),n),d=function(f){if(i)throw window.location.reload(),new Promise(()=>{});if(s)throw s;if(!r)if(Cd)Cd(l());else throw l();return T.createElement(r,f)};return d.preload=l,d}function jM(e){const t=Lt(),n=`not-found-${It(t.stores.location,r=>r.pathname)}-${It(t.stores.status,r=>r)}`;return p.jsx(Eg,{getResetKey:()=>n,onCatch:(r,s)=>{if(dn(r))e.onCatch?.(r,s);else throw r},errorComponent:({error:r})=>{if(dn(r))return e.fallback?.(r);throw r},children:e.children})}function PM(){return p.jsx("p",{children:"Not Found"})}function hi(e){return p.jsx(p.Fragment,{children:e.children})}function Ix(e,t,n){return t.options.notFoundComponent?p.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?p.jsx(e.options.defaultNotFoundComponent,{...n}):p.jsx(PM,{})}function DM(e){return null}function IM(){return DM(Lt()),null}var LM=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,zM=(e,t)=>e[0]===t[0]&&e[1]===t[1],Lx=T.memo(function({matchId:t}){const n=Lt(),r=n.stores.matchStores.get(t);r||Vn();const s=It(n.stores.loadedAt,l=>l),i=It(r,l=>l,LM);return p.jsx(BM,{router:n,matchId:t,resetKey:s,matchState:T.useMemo(()=>{const l=i.routeId,d=n.routesById[l].parentRoute?.id;return{routeId:l,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:d}},[i._displayPending,i.routeId,i.ssr,n.routesById])})});function BM({router:e,matchId:t,resetKey:n,matchState:r}){const s=e.routesById[r.routeId],i=s.options.pendingComponent??e.options.defaultPendingComponent,l=i?p.jsx(i,{}):null,d=s.options.errorComponent??e.options.defaultErrorComponent,h=s.options.onCatch??e.options.defaultOnCatch,f=s.isRoot?s.options.notFoundComponent??e.options.notFoundRoute?.options.component:s.options.notFoundComponent,g=r.ssr===!1||r.ssr==="data-only",y=(!s.isRoot||s.options.wrapInSuspense||g)&&(s.options.wrapInSuspense??i??(s.options.errorComponent?.preload||g))?T.Suspense:hi,b=d?Eg:hi,_=f?jM:hi;return p.jsxs(s.isRoot?s.options.shellComponent??hi:hi,{children:[p.jsx(nh.Provider,{value:t,children:p.jsx(y,{fallback:l,children:p.jsx(b,{getResetKey:()=>n,errorComponent:d||Ag,onCatch:(S,E)=>{if(dn(S))throw S.routeId??=r.routeId,S;h?.(S,E)},children:p.jsx(_,{fallback:S=>{if(S.routeId??=r.routeId,!f||S.routeId&&S.routeId!==r.routeId||!S.routeId&&
12!s.isRoot)throw S;return T.createElement(f,S)},children:g||r._displayPending?p.jsx(aM,{fallback:l,children:p.jsx(iw,{matchId:t})}):p.jsx(iw,{matchId:t})})})})}),r.parentRouteId===ns?p.jsxs(p.Fragment,{children:[p.jsx(UM,{}),e.options.scrollRestoration&&RS?p.jsx(IM,{}):null]}):null]})}function UM(){const e=Lt(),t=T.useRef();return vi(()=>{const n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:"onRendered",...Si(e.stores.location.get(),r??n)}),t.current=n},[It(e.stores.resolvedLocation,n=>n?.state.__TSR_key),e]),null}var iw=T.memo(function({matchId:t}){const n=Lt(),r=(g,y)=>n.getMatch(g.id)?._nonReactive[y]??g._nonReactive[y],s=n.stores.matchStores.get(t);s||Vn();const i=It(s,g=>g),l=i.routeId,d=n.routesById[l],h=T.useMemo(()=>{const g=(n.routesById[l].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:l,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return g?JSON.stringify(g):void 0},[l,i.loaderDeps,i._strictParams,i._strictSearch,n.options.defaultRemountDeps,n.routesById]),f=T.useMemo(()=>{const g=d.options.component??n.options.defaultComponent;return g?p.jsx(g,{},h):p.jsx(zx,{})},[h,d.options.component,n.options.defaultComponent]);if(i._displayPending)throw r(i,"displayPendingPromise");if(i._forcePending)throw r(i,"minPendingPromise");if(i.status==="pending"){const g=d.options.pendingMinMs??n.options.defaultPendingMinMs;if(g){const y=n.getMatch(i.id);if(y&&!y._nonReactive.minPendingPromise){const b=ss();y._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),y._nonReactive.minPendingPromise=void 0},g)}}throw r(i,"loadPromise")}if(i.status==="notFound")return dn(i.error)||Vn(),Ix(n,d,i.error);if(i.status==="redirected")throw vn(i.error)||Vn(),r(i,"loadPromise");if(i.status==="error")throw i.error;return f}),zx=T.memo(function(){const t=Lt(),n=T.useContext(nh);let r,s=!1,i;{const f=n?t.stores.matchStores.get(n):void 0;[r,s]=It(f,g=>[g?.routeId,g?.globalNotFound??!1],zM),i=It(t.stores.matchesId,g=>g[g.findIndex(y=>y===n)+1])}const l=r?t.routesById[r]:void 0,d=t.options.defaultPendingComponent?p.jsx(t.options.defaultPendingComponent,{}):null;if(s)return l||Vn(),Ix(t,l,void 0);if(!i)return null;const h=p.jsx(Lx,{matchId:i});return r===ns?p.jsx(T.Suspense,{fallback:d,children:h}):h});function VM(){const e=Lt(),t=T.useRef({router:e,mounted:!1}),[n,r]=T.useState(!1),s=It(e.stores.isLoading,y=>y),i=It(e.stores.hasPending,y=>y),l=qp(s),d=s||n||i,h=qp(d),f=s||i,g=qp(f);return e.startTransition=y=>{r(!0),T.startTransition(()=>{y(),r(!1)})},T.useEffect(()=>{const y=e.history.subscribe(e.load),b=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return mo(e.latestLocation.publicHref)!==mo(b.publicHref)&&e.commitLocation({...b,replace:!0}),()=>{y()}},[e,e.history]),vi(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(b){console.error(b)}})()},[e]),vi(()=>{l&&!s&&e.emit({type:"onLoad",...Si(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,e,s]),vi(()=>{g&&!f&&e.emit({type:"onBeforeRouteMount",...Si(e.stores.location.get(),e.stores.resolvedLocation.get())})},[f,g,e]),vi(()=>{if(h&&!d){const y=Si(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:"onResolved",...y}),kx(()=>{e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())})}},[d,h,e]),null}function FM(){const e=Lt(),t=e.routesById[ns].options.pendingComponent??e.options.defaultPendingComponent,n=t?p.jsx(t,{}):null,r=p.jsxs(typeof document<"u"&&e.ssr?hi:T.Suspense,{fallback:n,children:[p.jsx(VM,{}),p.jsx(qM,{})]});return e.options.InnerWrap?p.jsx(e.options.InnerWrap,{children:r}):r}function qM(){const e=Lt(),t=It(e.stores.firstId,s=>s),n=It(e.stores.loadedAt,s=>s),r=t?p.jsx(Lx,{matchId:t}):null;return p.jsx(nh.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:p.jsx(Eg,{getResetKey:()=>n,errorComponent:Ag,onCatch:void 0,children:r})})}var HM=e=>({createMutableStore:nw,createReadonlyStore:nw,batch:kx}),GM=e=>new KM(e),KM=class extends VC{constructor(e){super(e,HM)}};function ZM({router:e,children:t,...n}
12){AS(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const r=p.jsx(Ax.Provider,{value:e,children:t});return e.options.Wrap?p.jsx(e.options.Wrap,{children:r}):r}function WM({router:e,...t}){return p.jsx(ZM,{router:e,...t,children:p.jsx(FM,{})})}function Bx(e){const t=Lt({warn:e?.router===void 0}),n=e?.router||t;return It(n.stores.__store,Ox(e,n))}function cw(e,t){if(t)for(const[n,r]of Object.entries(t))n!=="suppressHydrationWarning"&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r=="boolean"?"":String(r))}function Ux(e){const{attrs:t,children:n,nonce:r,preventScriptHoist:s}=e;switch(e.tag){case"title":return p.jsx("title",{...t,suppressHydrationWarning:!0,children:n});case"meta":return p.jsx("meta",{...t,suppressHydrationWarning:!0});case"link":return p.jsx("link",{...t,precedence:t?.precedence??(t?.rel==="stylesheet"?"default":void 0),nonce:r,suppressHydrationWarning:!0});case"style":return e.inlineCss,p.jsx("style",{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case"script":return p.jsx(YM,{attrs:t,preventScriptHoist:s,children:n});default:return null}}function YM({attrs:e,children:t,preventScriptHoist:n}){Lt();const r=Tg(),s=typeof e?.type=="string"&&e.type!==""&&e.type!=="text/javascript"&&e.type!=="module";if(T.useEffect(()=>{if(!s){if(e?.src){const i=(()=>{try{const d=document.baseURI||window.location.href;return new URL(e.src,d).href}catch{return e.src}})();for(const d of document.querySelectorAll("script[src]"))if(d.src===i)return;const l=document.createElement("script");return cw(l,e),document.head.appendChild(l),()=>l.remove()}if(typeof t=="string"){const i=typeof e?.type=="string"?e.type:"text/javascript",l=typeof e?.nonce=="string"?e.nonce:void 0;for(const h of document.querySelectorAll("script:not([src])")){if(!(h instanceof HTMLScriptElement))continue;const f=h.getAttribute("type")??"text/javascript",g=h.getAttribute("nonce")??void 0;if(h.textContent===t&&f===i&&g===l)return}const d=document.createElement("script");return d.textContent=t,cw(d,e),document.head.appendChild(d),()=>d.remove()}}},[e,t,s]),s&&typeof t=="string")return p.jsx("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return p.jsx("script",{...e,suppressHydrationWarning:!0});if(typeof t=="string")return p.jsx("script",{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var JM=e=>{const t=Lt(),n=t.options.ssr?.nonce,r=It(t.stores.matches,y=>y.map(b=>b.meta).filter(b=>b!==void 0),Tn),s=T.useMemo(()=>{const y=[],b={};let _;for(let S=r.length-1;S>=0;S--){const E=r[S];for(let x=E.length-1;x>=0;x--){const k=E[x];if(k)if(k.title)_||(_={tag:"title",children:k.title});else if("script:ld+json"in k)try{const M=JSON.stringify(k["script:ld+json"]);y.push({tag:"script",attrs:{type:"application/ld+json"},children:tC(M)})}catch{}else{const M=k.name??k.property;if(M){if(b[M])continue;b[M]=!0}y.push({tag:"meta",attrs:{...k,nonce:n}})}}}return _&&y.push(_),n&&y.push({tag:"meta",attrs:{property:"csp-nonce",content:n}}),y.reverse(),y},[r,n]),i=It(t.stores.matches,y=>y.flatMap(b=>b.links??[]).filter(b=>b!==void 0).map(b=>({tag:"link",attrs:{...b,nonce:n}})),Tn),l=It(t.stores.matches,y=>{const b=t.ssr?.manifest,_=[];return b&&(y.forEach(S=>{b.routes[S.routeId]?.css?.forEach(E=>{const x=eO(E);_.push({tag:"link",attrs:{rel:"stylesheet",...x,crossOrigin:US(e,"stylesheet")??x.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),b.inlineStyle&&_.push({tag:"style",attrs:{...b.inlineStyle.attrs,nonce:n},children:b.inlineStyle.children,inlineCss:!0})),_},Tn),d=It(t.stores.matches,y=>{const b=[],_=t.ssr?.manifest;return _&&y.forEach(S=>{_.routes[S.routeId]?.preloads?.forEach(E=>{b.push({tag:"link",attrs:{...QC(_,E,e),nonce:n}})})}),b},Tn),h=It(t.stores.matches,y=>y.flatMap(b=>b.styles??[]).filter(b=>b!==void 0).map(({children:b,..._})=>({tag:"style",attrs:{..._,nonce:n},children:b})),Tn),f=It(t.stores.matches,y=>y.flatMap(b=>b.headScripts??[]).filter(b=>b!==void 0).map(({children:b,..._})=>({tag:"script",attrs:{..._,nonce:n},children:b})),Tn),g=[];return Iu(g,s),g.push(...d),Iu(g,i),g.push(...l),Iu(g,h),Iu(g,f),g};function QM(e){const t=JM(e.assetCrossOrigin),n=Lt().options.ssr?.nonce;return p.jsx(p.Fragment,{children:t.map(r=>T.createElement(Ux,{...r,key:`tsr-meta-${JSON.stringify(r)}`,nonce:n}))})}var XM=()=>{const e=Lt(),t=e.options.ssr?.nonce,n=i=>{const l=[],d=e.ssr?.manifest;if(!d)return[];for(const h of i){const f=d.routes[h.routeId]?.scripts;if(f)for(const g of f)l.push({tag:"script",attrs:{...g.attrs,nonce:t},children:g.children,...typeof g.attrs?.src=="string"?{preventScriptHoist:!0}:{}})}return l},r=i=>i.map(l=>
12l.scripts).flat(1).filter(Boolean).map(({children:l,...d})=>({tag:"script",attrs:{...d,suppressHydrationWarning:!0,nonce:t},children:l})),s=It(e.stores.matches,n,Tn);return eN(e,It(e.stores.matches,r,Tn),s)};function eN(e,t,n){const r=[...t,...n];return p.jsx(p.Fragment,{children:r.map((s,i)=>T.createElement(Ux,{...s,key:`tsr-scripts-${s.tag}-${i}`}))})}function pd(e){const t=Lt();return T.useCallback(async(...n)=>{try{const r=await e(...n);if(vn(r))throw r;return r}catch(r){if(vn(r))return r.options._fromLocation=t.stores.location.get(),t.navigate(t.resolveRedirect(r).options);throw r}},[t,e])}function lw(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}function jm(e,t){const n=Object.create(null);if(e)for(const r of Object.keys(e))lw(r)&&(n[r]=e[r]);if(t&&typeof t=="object")for(const r of Object.keys(t))lw(r)&&(n[r]=t[r]);return n}function Vx(e){return Object.create(null)}var Fx=()=>{throw new Error("createServerOnlyFn() functions can only be called on the server!")},ke=(e,t)=>{const n=t||e||{};typeof n.method>"u"&&(n.method="GET");const r=l=>ke(void 0,{...n,validator:l,inputValidator:l});return Object.assign(l=>ke(void 0,{...n,...l}),{options:n,middleware:l=>{const d=[...n.middleware||[]];l.map(f=>{w_ in f?f.options.middleware&&d.push(...f.options.middleware):d.push(f)});const h=ke(void 0,{...n,middleware:d});return h[w_]=!0,h},validator:r,inputValidator:r,handler:(...l)=>{const[d,h]=l,f={...n,extractedFn:d,serverFn:h},g=[...f.middleware||[],rN(f)];return d.method=n.method,Object.assign(async y=>{const b=await uw(g,"client",{...d,...f,data:y?.data,headers:y?.headers,signal:y?.signal,fetch:y?.fetch,context:Vx()}),_=PS(b.error);if(_)throw _;if(b.error)throw b.error;return b.result},{...d,method:n.method,__executeServer:async y=>{const b=Fx(),_=b.contextAfterGlobalMiddlewares;return await uw(g,"server",{...d,...y,serverFnMeta:d.serverFnMeta,context:jm(y.context,_),request:b.request}).then(S=>({result:S.result,error:S.error,context:S.sendContext}))}})}})};async function uw(e,t,n){let r=tN([...gg()?.functionMiddleware||[],...e]);if(t==="server"){const i=Fx();i?.executedRequestMiddlewares&&(r=r.filter(l=>!i.executedRequestMiddlewares.has(l)))}const s=async i=>{const l=r.shift();if(!l)return i;try{let d="validator"in l.options?l.options.validator:void 0;!d&&"inputValidator"in l.options&&(d=l.options.inputValidator),d&&t==="server"&&(i.data=await nN(d,i.data));let h;if(t==="client"?"client"in l.options&&(h=l.options.client):"server"in l.options&&(h=l.options.server),h){const g=await h({...i,next:async(y={})=>{const b=await s({...i,...y,context:jm(i.context,y.context),sendContext:jm(i.sendContext,y.sendContext),headers:Y$(i.headers,y.headers),_callSiteFetch:i._callSiteFetch,fetch:i._callSiteFetch??y.fetch??i.fetch,result:y.result!==void 0?y.result:y instanceof Response?y:i.result,error:y.error??i.error});if(b.error)throw b.error;return b}});if(vn(g))return{...i,error:g};if(g instanceof Response)return{...i,result:g};if(!g)throw new Error("User middleware returned undefined. You must call next() or return a result in your middlewares.");return g}return s(i)}catch(d){return{...i,error:d}}};return s({...n,headers:n.headers||{},sendContext:n.sendContext||{},context:n.context||Vx(),_callSiteFetch:n.fetch})}function tN(e,t=100){const n=new Set,r=[],s=(i,l)=>{if(l>t)throw new Error(`Middleware nesting depth exceeded maximum of ${t}. Check for circular references.`);i.forEach(d=>{d.options.middleware&&s(d.options.middleware,l+1),n.has(d)||(n.add(d),r.push(d))})};return s(e,0),r}async function nN(e,t){if(e==null)return{};if("~standard"in e){const n=await e["~standard"].validate(t);if(n.issues)throw new Error(JSON.stringify(n.issues,void 0,2));return n.value}if("parse"in e)return e.parse(t);if(typeof e=="function")return e(t);throw new Error("Invalid validator type!")}function rN(e){return{"~types":void 0,options:{inputValidator:e.validator??e.inputValidator,client:async({next:t,sendContext:n,fetch:r,...s})=>{const i={...s,context:n,fetch:r};return t(await e.extractedFn?.(i))},server:async({next:t,...n})=>{const r=await e.serverFn?.(n);return t({...n,result:r})}}}}var ca=(e,t)=>{const n={type:"request",...t||e},r=s=>ca({},Object.assign(n,{validator:s,inputValidator:s}));return{options:n,middleware:s=>ca({},Object.assign(n,{middleware:s})),validator:r,inputValidator:r,client:s=>ca({},Object.assign(n,{client:s})),server:s=>ca({},Object.assign(n,{server:s}))}};function qx(e,t){for(let n=0,r=t.length;n<r;n++){const s=t[n];e.has(s)||(e.add(s),s.extends&&qx(e,s.extends))}}var oN=e=>({getOptions:async()=>{const t=await e();if(t.serializationAdapters){const n=new Set;qx(n,t.serializationAdapters),t.serializationAdapters=Array.from(n)}return t},createMiddleware:ca}),Ir=function(){return Ir=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ir.apply(this,arguments)};function Mi(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function aN(e,t,n,r){function s(i){return i instanceof n?i:new n(function(l){l(i)})}
12return new(n||(n=Promise))(function(i,l){function d(g){try{f(r.next(g))}catch(y){l(y)}}function h(g){try{f(r.throw(g))}catch(y){l(y)}}function f(g){g.done?i(g.value):s(g.value).then(d,h)}f((r=r.apply(e,t||[])).next())})}function sN(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}const iN=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Cg extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class cN extends Cg{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class dw extends Cg{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class hw extends Cg{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Pm;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(Pm||(Pm={}));class lN{constructor(t,{headers:n={},customFetch:r,region:s=Pm.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=iN(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return aN(this,arguments,void 0,function*(n,r={}){var s;let i,l;try{const{headers:d,method:h,body:f,signal:g,timeout:y}=r;let b={},{region:_}=r;_||(_=this.region);const S=new URL(`${this.url}/${n}`);_&&_!=="any"&&(b["x-region"]=_,S.searchParams.set("forceFunctionRegion",_));let E;f&&(d&&!Object.prototype.hasOwnProperty.call(d,"Content-Type")||!d)?typeof Blob<"u"&&f instanceof Blob||f instanceof ArrayBuffer?(b["Content-Type"]="application/octet-stream",E=f):typeof f=="string"?(b["Content-Type"]="text/plain",E=f):typeof FormData<"u"&&f instanceof FormData?E=f:(b["Content-Type"]="application/json",E=JSON.stringify(f)):f&&typeof f!="string"&&!(typeof Blob<"u"&&f instanceof Blob)&&!(f instanceof ArrayBuffer)&&!(typeof FormData<"u"&&f instanceof FormData)?E=JSON.stringify(f):E=f;let x=g;y&&(l=new AbortController,i=setTimeout(()=>l.abort(),y),g?(x=l.signal,g.addEventListener("abort",()=>l.abort())):x=l.signal);const k=yield this.fetch(S.toString(),{method:h||"POST",headers:Object.assign(Object.assign(Object.assign({},b),this.headers),d),body:E,signal:x}).catch(F=>{throw new cN(F)}),M=k.headers.get("x-relay-error");if(M&&M==="true")throw new dw(k);if(!k.ok)throw new hw(k);let P=((s=k.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),I;return P==="application/json"?I=yield k.json():P==="application/octet-stream"||P==="application/pdf"?I=yield k.blob():P==="text/event-stream"?I=k:P==="multipart/form-data"?I=yield k.formData():I=yield k.text(),{data:I,error:null,response:k}}catch(d){return{data:null,error:d,response:d instanceof hw||d instanceof dw?d.context:void 0}}finally{i&&clearTimeout(i)}})}}const Hx=3,fw=e=>Math.min(1e3*2**e,3e4),uN=[520,503],Gx=["GET","HEAD","OPTIONS"];var pw=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
12de=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function mw(e,t){return new Promise(n=>{if(t?.aborted){n();return}const r=setTimeout(()=>{t?.removeEventListener("abort",s),n()},e);function s(){clearTimeout(r),n()}t?.addEventListener("abort",s)})}function dN(e,t,n,r){return!(!r||n>=Hx||!Gx.includes(e)||!uN.includes(t))}var hN=class{constructor(e){var t,n,r,s,i;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,this.shouldStripNulls=(r=e.shouldStripNulls)!==null&&r!==void 0?r:!1,this.urlLengthLimit=(s=e.urlLengthLimit)!==null&&s!==void 0?s:8e3,this.retryEnabled=(i=e.retry)!==null&&i!==void 0?i:!0,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var n=this;if(this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json"),this.shouldStripNulls){const l=this.headers.get("Accept");l==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!l||l==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const r=this.fetch;let i=(async()=>{let l=0;for(;;){const f={};n.headers.forEach((y,b)=>{f[b]=y}),l>0&&(f["X-Retry-Count"]=String(l));let g;try{g=await r(n.url.toString(),{method:n.method,headers:f,body:JSON.stringify(n.body,(y,b)=>typeof b=="bigint"?b.toString():b),signal:n.signal})}catch(y){if(y?.name==="AbortError"||y?.code==="ABORT_ERR"||!Gx.includes(n.method))throw y;if(n.retryEnabled&&l<Hx){const b=fw(l);l++,await mw(b,n.signal);continue}throw y}if(dN(n.method,g.status,l,n.retryEnabled)){var d,h;const y=(d=(h=g.headers)===null||h===void 0?void 0:h.get("Retry-After"))!==null&&d!==void 0?d:null,b=y!==null?Math.max(0,parseInt(y,10)||0)*1e3:fw(l);await g.text(),l++,await mw(b,n.signal);continue}return await n.processResponse(g)}})();return this.shouldThrowOnError||(i=i.catch(l=>{var d;let h="",f="",g="";const y=l?.cause;if(y){var b,_,S,E;const M=(b=y?.message)!==null&&b!==void 0?b:"",P=(_=y?.code)!==null&&_!==void 0?_:"";h=`${(S=l?.name)!==null&&S!==void 0?S:"FetchError"}: ${l?.message}`,h+=` 13 14Caused by: ${(E=y?.name)!==null&&E!==void 0?E:"Error"}: ${M}`,P&&(h+=` (${P})`),y?.stack&&(h+=` 15${y.stack}`)}else{var x;h=(x=l?.stack)!==null&&x!==void 0?x:""}const k=this.url.toString().length;return l?.name==="AbortError"||l?.code==="ABORT_ERR"?(g="",f="Request was aborted (timeout or manual cancellation)",k>this.urlLengthLimit&&(f+=`. Note: Your request URL is ${k} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):(y?.name==="HeadersOverflowError"||y?.code==="UND_ERR_HEADERS_OVERFLOW")&&(g="",f="HTTP headers exceeded server limits (typically 16KB)",k>this.urlLengthLimit&&(f+=`. Your request URL is ${k} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(d=l?.name)!==null&&d!==void 0?d:"FetchError"}: ${l?.message}`,details:h,hint:f,code:g},data:null,count:null,status:0,statusText:""}})),i.then(e,t)}async processResponse(e){var t=this;let n=null,r=null,s=null,i=e.status,l=e.statusText;if(e.ok){var d,h;if(t.method!=="HEAD"){var f;const b=await e.text();if(b!=="")if(t.headers.get("Accept")==="text/csv")r=b;else if(t.headers.get("Accept")&&(!((f=t.headers.get("Accept"))===null||f===void 0)&&f.includes("application/vnd.pgrst.plan+text")))r=b;else try{r=JSON.parse(b)}catch{if(n={message:b},r=null,t.shouldThrowOnError)throw new pw({message:b,details:"",hint:"",code:""})}}const g=(d=t.headers.get("Prefer"))===null||d===void 0?void 0:d.match(/count=(exact|planned|estimated)/),y=(h=e.headers.get("content-range"))===null||h===void 0?void 0:h.split("/");g&&y&&y.length>1&&(s=parseInt(y[1])),t.isMaybeSingle&&Array.isArray(r)&&(r.length>1?(n={code:"PGRST116",details:`Results contain ${r.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},r=null,s=null,i=406,l="Not Acceptable"):r.length===1?r=r[0]:r=null)}else{const g=await e.text();try{n=JSON.parse(g),Array.isArray(n)&&e.status===404&&(r=[],n=null,i=200,l="OK")}catch{e.status===404&&g===""?(i=204,l="No Content"):n={message:g}}if(n&&t.shouldThrowOnError)throw new pw(n)}return{success:n===null,error:n,data:r,count:s,status:i,statusText:l}}returns(){return this}overrideTypes(){return this}},fN=class extends hN{throwOnError(){return super.throwOnError()}select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:s=r}={}){const i=s?`${s}.order`:"order",l=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${l?`${l},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"offset":`${r}.offset`,i=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(i,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
15explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:s=!1,format:i="text"}={}){var l;const d=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,s?"wal":null].filter(Boolean).join("|"),h=(l=this.headers.get("Accept"))!==null&&l!==void 0?l:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${h}"; options=${d};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const gw=new RegExp("[,()]");var fi=class extends fN{throwOnError(){return super.throwOnError()}eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&gw.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&gw.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let s="";r==="plain"?s="pl":r==="phrase"?s="ph":r==="websearch"&&(s="w");const i=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${s}fts${i}.${t}`),this}match(e){return Object.entries(e).filter(([t,n])=>n!==void 0).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},pN=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:s=8e3,retry:i}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=s,this.retry=i}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},s=n?"HEAD":"GET";let i=!1;const l=(e??"*").split("").map(f=>/\s/.test(f)&&!i?"":(f==='"'&&(i=!i),f)).join(""),{url:d,headers:h}=this.cloneRequestState();return d.searchParams.set("select",l),r&&h.append("Prefer",`count=${r}`),new fi({method:s,url:d,headers:h,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const s="POST",{url:i,headers:l}=this.cloneRequestState();if(t&&l.append("Prefer",`count=${t}`),n||l.append("Prefer","missing=default"),Array.isArray(e)){const d=e.reduce((h,f)=>h.concat(Object.keys(f)),[]);if(d.length>0){const h=[...new Set(d)].map(f=>`"${f}"`);i.searchParams.set("columns",h.join(","))}}return new fi({method:s,url:i,headers:l,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:s=!0}={}){var i;const l="POST",{url:d,headers:h}=this.cloneRequestState();if(h.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&d.searchParams.set("on_conflict",t),r&&h.append("Prefer",`count=${r}`),s||h.append("Prefer","missing=default"),Array.isArray(e)){const f=e.reduce((g,y)=>g.concat(Object.keys(y)),[]);if(f.length>0){const g=[...new Set(f)].map(y=>`"${y}"`);d.searchParams.set("columns",g.join(","))}}return new fi({method:l,url:d,headers:h,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var n;const r="PATCH",{url:s,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new fi({method:r,url:s,headers:i,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new fi({method:n,url:r,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function Wc(e){"@babel/helpers - typeof";return Wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wc(e)}function mN(e,t){if(Wc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gN(e){var t=mN(e,"string");return Wc(t)=="symbol"?t:t+""}function yN(e,t,n){return(t=gN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Bu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
15t%2?yw(Object(n),!0).forEach(function(r){yN(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var vN=class Kx{constructor(t,{headers:n={},schema:r,fetch:s,timeout:i,urlLengthLimit:l=8e3,retry:d}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=l;const h=s??globalThis.fetch;i!==void 0&&i>0?this.fetch=(f,g)=>{const y=new AbortController,b=setTimeout(()=>y.abort(),i),_=g?.signal;if(_){if(_.aborted)return clearTimeout(b),h(f,g);const S=()=>{clearTimeout(b),y.abort()};return _.addEventListener("abort",S,{once:!0}),h(f,Bu(Bu({},g),{},{signal:y.signal})).finally(()=>{clearTimeout(b),_.removeEventListener("abort",S)})}return h(f,Bu(Bu({},g),{},{signal:y.signal})).finally(()=>clearTimeout(b))}:this.fetch=h,this.retry=d}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new pN(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new Kx(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(t,n={},{head:r=!1,get:s=!1,count:i}={}){var l;let d;const h=new URL(`${this.url}/rpc/${t}`);let f;const g=_=>_!==null&&typeof _=="object"&&(!Array.isArray(_)||_.some(g)),y=r&&Object.values(n).some(g);y?(d="POST",f=n):r||s?(d=r?"HEAD":"GET",Object.entries(n).filter(([_,S])=>S!==void 0).map(([_,S])=>[_,Array.isArray(S)?`{${S.join(",")}}`:`${S}`]).forEach(([_,S])=>{h.searchParams.append(_,S)})):(d="POST",f=n);const b=new Headers(this.headers);return y?b.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&b.set("Prefer",`count=${i}`),new fi({method:d,url:h,headers:b,schema:this.schemaName,body:f,fetch:(l=this.fetch)!==null&&l!==void 0?l:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class bN{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const n=globalThis;if(typeof globalThis<"u"&&typeof n.WebSocket<"u")return{type:"native",wsConstructor:n.WebSocket};const r=typeof Td<"u"?Td:void 0;if(r&&typeof r.WebSocket<"u")return{type:"native",wsConstructor:r.WebSocket};if(typeof globalThis<"u"&&typeof n.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&n.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const s=globalThis.process;if(s){const i=s.versions;if(i&&i.node){const l=i.node,d=parseInt(l.replace(/^v/,"").split(".")[0]);return d>=22?typeof globalThis.WebSocket<"u"?{type:"native",wsConstructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${d} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${d} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 16import ws from "ws" 17new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.wsConstructor)return t.wsConstructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=` 18 19Suggested solution: ${t.workaround}`),new Error(n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const _N="2.108.2",wN=`realtime-js/${_N}`,SN="1.0.0",Zx="2.0.0",xN=Zx,RN=1e4,EN=100,oa={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Wx={close:"phx_close",error:"phx_error",join:"phx_join",leave:"phx_leave",access_token:"access_token"},Dm={connecting:"connecting",closing:"closing",closed:"closed"};class AN{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},l=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,l)}_encodeUserBroadcastPush(t,n,r){var s,i;const l=t.topic,d=(s=t.ref)!==null&&s!==void 0?s:"",h=(i=t.join_ref)!==null&&i!==void 0?i:"",f=t.payload.event,g=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},y=Object.keys(g).length===0?"":JSON.stringify(g);if(h.length>255)throw new Error(`joinRef length ${h.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`ref length ${d.length} exceeds maximum of 255`);if(l.length>255)throw new Error(`topic length ${l.length} exceeds maximum of 255`);if(f.length>255)throw new Error(`userEvent length ${f.length} exceeds maximum of 255`);if(y.length>255)throw new Error(`metadata length ${y.length} exceeds maximum of 255`);const b=this.USER_BROADCAST_PUSH_META_LENGTH+h.length+d.length+l.length+f.length+y.length,_=new ArrayBuffer(this.HEADER_LENGTH+b);let S=new DataView(_),E=0;S.setUint8(E++,this.KINDS.userBroadcastPush),S.setUint8(E++,h.length),S.setUint8(E++,d.length),S.setUint8(E++,l.length),S.setUint8(E++,f.length),S.setUint8(E++,y.length),S.setUint8(E++,n),Array.from(h,k=>
19S.setUint8(E++,k.charCodeAt(0))),Array.from(d,k=>S.setUint8(E++,k.charCodeAt(0))),Array.from(l,k=>S.setUint8(E++,k.charCodeAt(0))),Array.from(f,k=>S.setUint8(E++,k.charCodeAt(0))),Array.from(y,k=>S.setUint8(E++,k.charCodeAt(0)));var x=new Uint8Array(_.byteLength+r.byteLength);return x.set(new Uint8Array(_),0),x.set(new Uint8Array(r),_.byteLength),x.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[s,i,l,d,h]=r;return n({join_ref:s,ref:i,topic:l,event:d,payload:h})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),s=new TextDecoder;if(r===this.KINDS.userBroadcast)return this._decodeUserBroadcast(t,n,s)}_decodeUserBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2),l=n.getUint8(3),d=n.getUint8(4);let h=this.HEADER_LENGTH+4;const f=r.decode(t.slice(h,h+s));h=h+s;const g=r.decode(t.slice(h,h+i));h=h+i;const y=r.decode(t.slice(h,h+l));h=h+l;const b=t.slice(h,t.byteLength),_=d===this.JSON_ENCODING?JSON.parse(r.decode(b)):b,S={type:this.BROADCAST_EVENT,event:g,payload:_};return l>0&&(S.meta=JSON.parse(y)),{join_ref:null,ref:null,topic:f,event:this.BROADCAST_EVENT,payload:S}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t?.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}var Tt;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(Tt||(Tt={}));const vw=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((i,l)=>(i[l]=TN(l,e,t,s),i),{}):{}},TN=(e,t,n,r)=>{const s=t.find(d=>d.name===e),i=s?.type,l=n[e];return i&&!r.includes(i)?Yx(i,l):Im(l)},Yx=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return $N(t,n)}switch(e){case Tt.bool:return kN(t);case Tt.float4:case Tt.float8:case Tt.int2:case Tt.int4:case Tt.int8:case Tt.numeric:case Tt.oid:return CN(t);case Tt.json:case Tt.jsonb:return ON(t);case Tt.timestamp:return MN(t);case Tt.abstime:case Tt.date:case Tt.daterange:case Tt.int4range:case Tt.int8range:case Tt.money:case Tt.reltime:case Tt.text:case Tt.time:case Tt.timestamptz:case Tt.timetz:case Tt.tsrange:case Tt.tstzrange:return Im(t);default:return Im(t)}},Im=e=>e,kN=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},CN=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},ON=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},$N=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const l=e.slice(1,n);try{i=JSON.parse("["+l+"]")}catch{i=l?l.split(","):[]}return i.map(d=>Yx(t,d))}return e},MN=e=>typeof e=="string"?e.replace(" ","T"):e,Jx=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};var Bc=e=>typeof e=="function"?e:function(){return e},NN=typeof self<"u"?self:null,pi=typeof window<"u"?window:null,jr=NN||pi||globalThis,jN="2.0.0",PN=1e4,DN=1e3,Dr={connecting:0,open:1,closing:2,closed:3},zn={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},ho={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},Lm={longpoll:"longpoll",websocket:"websocket"},IN={complete:4},zm="base64url.bearer.phx.",Uu=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHo
vendor: 8,700 bytes, line 19
19oks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},Qx=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},LN=class{constructor(e,t,n){this.state=zn.closed,this.topic=e,this.params=Bc(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Uu(this,ho.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new Qx(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=zn.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",r=>{this.state=zn.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=zn.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=zn.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new Uu(this,ho.leave,Bc({}),this.timeout).send(),this.state=zn.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(ho.reply,(r,s)=>{this.trigger(this.replyEventName(s),r)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=zn.closed,this.bindings=[]}onClose(e){this.on(ho.close,e)}onError(e){return this.on(ho.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&(typeof t>"u"||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new Uu(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=zn.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(ho.close,"leave")},n=new Uu(this,ho.leave,Bc({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}filterBindings(e,t,n){return!0}isMember(e,t,n,r){return this.topic!==e?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=zn.joining,this.joinPush.resend(e))}trigger(e,t,n,r){let s=this.onMessage(e,t,n,r);if(t&&!s)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let i=this.bindings.filter(l=>l.event===e&&this.filterBindings(l,t,n));for(let l=0;l<i.length;l++)i[l].callback(s,n,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===zn.closed}isErrored(){return this.state===zn.errored}isJoined(){return this.state===zn.joined}isJoining(){return this.state===zn.joining}isLeaving(){return this.state===zn.leaving}},$d=class{static request(e,t,n,r,s,i,l){if(jr.XDomainRequest){let d=new jr.XDomainRequest;return this.xdomainRequest(d,e,t,r,s,i,l)}else if(jr.XMLHttpRequest){let d=new jr.XMLHttpRequest;return this.xhrRequest(d,e,t,n,r,s,i,l)}else{if(jr.fetch&&jr.AbortController)return this.fetchRequest(e,t,n,r,s,i,l);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,n,r,s,i,l){let d={method:e,headers:n,body:r},h=null;return s&&(h=new AbortController,setTimeout(()=>h.abort(),s),d.signal=h.signal),jr.fetch(t,d).then(f=>f.text()).then(f=>this.parseJSON(f)).then(f=>l&&l(f)).catch(f=>{f.name==="AbortError"&&i?i():l&&l(null)}),h}static xdomainRequest(e,t,n,r,s,i,l){return e.timeout=s,e.open(t,n),e.onload=()=>{let d=this.parseJSON(e.responseText);l&&l(d)},i&&(e.ontimeout=i),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,s,i,l,d){e.open(t,n,!0),e.timeout=i;for(let[h,f]of Object.entries(r))e.setRequestHeader(h,f);return e.onerror=()=>d&&d(null),e.onreadystatechange=()=>{if(e.readyState===IN.complete&&d){let h=this.parseJSON(e.responseText);d(h)}},l&&(e.ontimeout=l),e.send(s),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let s=t?`${t}[${r}]`:r,i=e[r];typeof i=="object"?n.push(this.serialize(i,s)):n.push(encodeURIComponent(s)+"="+encodeURIComponent(i))}return n.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},zN=e=>{let t="",n=new Uint8Array(e),r=n.byteLength;for(let s=0;s<r;s++)t+=String.fromCharCode(n[s]);return btoa(t)},ti=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(zm)&&(this.authToken=atob(t[1].slice(zm.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=Dr.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+Lm.websocket),"$1/"+Lm.longpoll)}endpointURL(){return $d.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=Dr.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Dr.open||this.readyState===Dr.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:n,token:r,messages:s}=t;if(n===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=r}else n=0;switch(n){case 200:s.forEach(i=>{setTimeout(()=>this.onmessage({data:i}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Dr.open,this.onopen({}),this.poll();break;
19case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${n}`)}})}send(e){typeof e!="string"&&(e=zN(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(` 20`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let s of this.reqs)s.abort();this.readyState=Dr.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,s){let i,l=()=>{this.reqs.delete(i),r()};i=$d.request(e,this.endpointURL(),t,n,this.timeout,l,d=>{this.reqs.delete(i),this.isActive()&&s(d)}),this.reqs.add(i)}},BN=class Dc{constructor(t,n={}){let r=n.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(r.state,s=>{let{onJoin:i,onLeave:l,onSync:d}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Dc.syncState(this.state,s,i,l),this.pendingDiffs.forEach(h=>{this.state=Dc.syncDiff(this.state,h,i,l)}),this.pendingDiffs=[],d()}),this.channel.on(r.diff,s=>{let{onJoin:i,onLeave:l,onSync:d}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Dc.syncDiff(this.state,s,i,l),d())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return Dc.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,n,r,s){let i=this.clone(t),l={},d={};return this.map(i,(h,f)=>{n[h]||(d[h]=f)}),this.map(n,(h,f)=>{let g=i[h];if(g){let y=f.metas.map(E=>E.phx_ref),b=g.metas.map(E=>E.phx_ref),_=f.metas.filter(E=>b.indexOf(E.phx_ref)<0),S=g.metas.filter(E=>y.indexOf(E.phx_ref)<0);_.length>0&&(l[h]=f,l[h].metas=_),S.length>0&&(d[h]=this.clone(g),d[h].metas=S)}else l[h]=f}),this.syncDiff(i,{joins:l,leaves:d},r,s)}static syncDiff(t,n,r,s){let{joins:i,leaves:l}=this.clone(n);return r||(r=function(){}),s||(s=function(){}),this.map(i,(d,h)=>{let f=t[d];if(t[d]=this.clone(h),f){let g=t[d].metas.map(b=>b.phx_ref),y=f.metas.filter(b=>g.indexOf(b.phx_ref)<0);t[d].metas.unshift(...y)}r(d,f,h)}),this.map(l,(d,h)=>{let f=t[d];if(!f)return;let g=h.metas.map(y=>y.phx_ref);f.metas=f.metas.filter(y=>g.indexOf(y.phx_ref)<0),s(d,f,h),f.metas.length===0&&delete t[d]}),t}static list(t,n){return n||(n=function(r,s){return s}),this.map(t,(r,s)=>n(r,s))}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static clone(t){return JSON.parse(JSON.stringify(t))}},Vu={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,s,i,l]=JSON.parse(e);return t({join_ref:n,ref:r,topic:s,event:i,payload:l})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:s,payload:i}=e,l=this.META_LENGTH+t.length+n.length+s.length+r.length,d=new ArrayBuffer(this.HEADER_LENGTH+l),h=new DataView(d),f=0;h.setUint8(f++,this.KINDS.push),h.setUint8(f++,t.length),h.setUint8(f++,n.length),h.setUint8(f++,s.length),h.setUint8(f++,r.length),Array.from(t,y=>h.setUint8(f++,y.charCodeAt(0))),Array.from(n,y=>h.setUint8(f++,y.charCodeAt(0))),Array.from(s,y=>
20h.setUint8(f++,y.charCodeAt(0))),Array.from(r,y=>h.setUint8(f++,y.charCodeAt(0)));var g=new Uint8Array(d.byteLength+i.byteLength);return g.set(new Uint8Array(d),0),g.set(new Uint8Array(i),d.byteLength),g.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}},decodePush(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=t.getUint8(3),l=this.HEADER_LENGTH+this.META_LENGTH-1,d=n.decode(e.slice(l,l+r));l=l+r;let h=n.decode(e.slice(l,l+s));l=l+s;let f=n.decode(e.slice(l,l+i));l=l+i;let g=e.slice(l,e.byteLength);return{join_ref:d,ref:null,topic:h,event:f,payload:g}},decodeReply(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=t.getUint8(3),l=t.getUint8(4),d=this.HEADER_LENGTH+this.META_LENGTH,h=n.decode(e.slice(d,d+r));d=d+r;let f=n.decode(e.slice(d,d+s));d=d+s;let g=n.decode(e.slice(d,d+i));d=d+i;let y=n.decode(e.slice(d,d+l));d=d+l;let b=e.slice(d,e.byteLength),_={status:y,response:b};return{join_ref:h,ref:f,topic:g,event:ho.reply,payload:_}},decodeBroadcast(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=this.HEADER_LENGTH+2,l=n.decode(e.slice(i,i+r));i=i+r;let d=n.decode(e.slice(i,i+s));i=i+s;let h=e.slice(i,e.byteLength);return{join_ref:null,ref:null,topic:l,event:d,payload:h}}},UN=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||PN,this.transport=t.transport||jr.WebSocket||ti,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null;let n=null;try{n=jr&&jr.sessionStorage}catch{}this.sessionStore=t.sessionStorage||n,this.establishedConnections=0,this.defaultEncoder=Vu.encode.bind(Vu),this.defaultDecoder=Vu.decode.bind(Vu),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==ti?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;pi&&pi.addEventListener&&(pi.addEventListener("pagehide",s=>{this.conn&&(this.disconnect(),r=this.connectClock)}),pi.addEventListener("pageshow",s=>{r===this.connectClock&&(r=null,this.connect())}),pi.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=s=>t.rejoinAfterMs?t.rejoinAfterMs(s):[1e3,2e3,5e3][s-1]||1e4,this.reconnectAfterMs=s=>t.reconnectAfterMs?t.reconnectAfterMs(s):[10,50,100,150,200,250,500,1e3,2e3][s-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(s,i,l)=>{console.log(`${s}: ${i}`,l)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=Bc(t.params||{}),this.endPoint=`${e}/${Lm.websocket}`,this.vsn=t.vsn||jN,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new Qx(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return ti}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=$d.appendParams($d.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,n)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Bc(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==ti?this.connectWithF
vendor: 4,353 bytes, line 20
20allback(ti,this.longPollFallbackMs):this.transportConnect())}log(e,t,n){this.logger&&this.logger(e,t,n)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let r=this.onMessage(s=>{s.ref===t&&(this.off([r]),e(Date.now()-n))});return!0}transportName(e){return e===ti?"LongPoll":e.name}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${zm}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let n=!1,r=!0,s,i,l=this.transportName(e),d=h=>{this.log("transport",`falling back to ${l}...`,h),this.off([s,i]),r=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${l}`))return d("memorized");this.fallbackTimer=setTimeout(d,t),i=this.onError(h=>{this.log("transport","error",h),r&&!n&&(clearTimeout(this.fallbackTimer),d(h))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!r){let h=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${h}`,"true"),this.log("transport",`established ${h} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(d,t),this.ping(h=>{this.log("transport","connected to primary after",h),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),DN,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){if(!this.conn)return e&&e();const r=this.conn;this.waitForBufferDone(r,()=>{t?r.close(t,n||""):r.close(),this.waitForSocketClosed(r,()=>{this.conn===r&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,n=1){if(n===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,n+1)},150*n)}waitForSocketClosed(e,t,n=1){if(n===5||e.readyState===Dr.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,n+1)},150*n)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(e),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport","error",e);let t=this.transport,n=this.establishedConnections;this.triggerStateCallbacks("error",e,t,n),(t===this.transport||n>0)&&this.triggerChanError(e)}
20triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(ho.error,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case Dr.connecting:return"connecting";case Dr.open:return"open";case Dr.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([n])=>e.indexOf(n)===-1)}channel(e,t={}){let n=new LN(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:r,ref:s,join_ref:i}=e;this.log("push",`${t} ${n} (${i}, ${s})`,r)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:n,event:r,payload:s,ref:i,join_ref:l}=t;if(i&&i===this.pendingHeartbeatRef){const d=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(s.status==="ok"?"ok":"error",d)}catch(h){this.log("error","error in heartbeat callback",h)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${s.status||""} ${n} ${r} ${i&&"("+i+")"||""}`.trim(),s);for(let d=0;d<this.channels.length;d++){const h=this.channels[d];h.isMember(n,r,s,l)&&h.trigger(r,s,i,l)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([n,r])=>{try{r(...t)}catch(s){this.log("error",`error in ${e} callback`,s)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}leaveOpenTopic(e){let t=this.channels.find(n=>n.topic===e&&(n.isJoined()||n.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class Uc{constructor(t,n){const r=FN(n);this.presence=new BN(t.getChannel(),r),this.presence.onJoin((s,i,l)=>{const d=Uc.onJoinPayload(s,i,l);t.getChannel().trigger("presence",d)}),this.presence.onLeave((s,i,l)=>{const d=Uc.onLeavePayload(s,i,l);t.getChannel().trigger("presence",d)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return Uc.transformState(this.presence.state)}static transformState(t){return t=VN(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return n[r]=md(s),n},{})}static onJoinPayload(t,n,r){const s=bw(n),i=md(r);return{event:"join",key:t,currentPresences:s,newPresences:i}}static onLeavePayload(t,n,r){const s=bw(n),i=md(r);return{event:"leave",key:t,currentPresences:s,leftPresences:i}}}function md(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function VN(e){return JSON.parse(JSON.stringify(e))}function FN(e){return e?.events&&{events:e.events}}function bw(e){return e?.metas?md(e):[]}var _w;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(_w||(_w={}));class qN{get state(){return this.presenceAdapter.state}constructor(t,n){this.channel=t,this.presenceAdapter=new Uc(this.channel.channelAdapter,n)}}function HN(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);
20if(e&&typeof e=="object"){const t=e;if(typeof t.code=="number"){const n=typeof t.reason=="string"&&t.reason?` (${t.reason})`:"";return new Error(`socket closed: ${t.code}${n}`,{cause:e})}return new Error("channel error: transport failure",{cause:e})}return new Error("channel error: connection lost")}class GN{constructor(t,n,r){const s=KN(r);this.channel=t.getSocket().channel(n,s),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,n){return this.channel.on(t,n)}off(t,n){this.channel.off(t,n)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,n,r){let s;try{s=this.channel.push(t,n,r)}catch{throw new Error(`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>EN){const i=this.channel.pushBuffer.shift();i.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${i.event}`,i.payload())}return s}updateJoinPayload(t){const n=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},n),t)}canPush(){return this.socket.isConnected()&&this.state===oa.joined}isJoined(){return this.state===oa.joined}isJoining(){return this.state===oa.joining}isClosed(){return this.state===oa.closed}isLeaving(){return this.state===oa.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function KN(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}var ww;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(ww||(ww={}));var bi;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(bi||(bi={}));var fo;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(fo||(fo={}));class Vc{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,n={config:{}},r){var s,i;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.channelAdapter=new GN(this.socket.socketAdapter,t,this.params),this.presence=new qN(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=Jx(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((i=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||i===void 0)&&i.replay))throw new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(t,n=this.timeout){var r,s,i;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:l,presence:d,private:h}}=this.params,f=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(_=>_.filter))!==null&&s!==void 0?s:[],g=!!this.bindings[bi.PRESENCE]&&this.bindings[bi.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,y={},b={broadcast:l,presence:Object.assign(Object.assign({},d),{enabled:g}),postgres_changes:f,private:h};this.socket.accessTokenValue&&(y.access_token=this.socket.accessTokenValue),this._onError(_=>{t?.(fo.CHANNEL_ERROR,HN(_))}),this._onClose(()=>t?.(fo.CLOSED)),this.updateJoinPayload(Object.assign({config:b},y)),this._updateFilterMessage(),this.channelAdapter.subscribe(n).receive("ok",async({postgres_changes:_})=>
20{if(this.socket._isManualToken()||this.socket.setAuth(),_===void 0){t?.(fo.SUBSCRIBED);return}this._updatePostgresBindings(_,t)}).receive("error",_=>{this.state=oa.errored;const S=Object.values(_).join(", ")||"error";t?.(fo.CHANNEL_ERROR,new Error(S,{cause:_}))}).receive("timeout",()=>{t?.(fo.TIMED_OUT)})}return this}_updatePostgresBindings(t,n){var r;const s=this.bindings.postgres_changes,i=(r=s?.length)!==null&&r!==void 0?r:0,l=[];for(let d=0;d<i;d++){const h=s[d],{filter:{event:f,schema:g,table:y,filter:b}}=h,_=t&&t[d];if(_&&_.event===f&&Vc.isFilterValueEqual(_.schema,g)&&Vc.isFilterValueEqual(_.table,y)&&Vc.isFilterValueEqual(_.filter,b))l.push(Object.assign(Object.assign({},h),{id:_.id}));else{this.unsubscribe(),this.state=oa.errored,n?.(fo.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=l,this.state!=oa.errored&&n&&n(fo.SUBSCRIBED)}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){const s=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),i=t===bi.PRESENCE||t===bi.POSTGRES_CHANGES;if(s&&i)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,n,r)}async httpSend(t,n,r={}){var s;if(n==null)return Promise.reject(new Error("Payload is required for httpSend()"));const i=n instanceof ArrayBuffer||ArrayBuffer.isView(n),l={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":i?"application/octet-stream":"application/json"};this.socket.accessTokenValue&&(l.Authorization=`Bearer ${this.socket.accessTokenValue}`);const d=new URL(this.broadcastEndpointURL);d.pathname+=`/${encodeURIComponent(this.subTopic)}/events/${encodeURIComponent(t)}`,this.private&&d.searchParams.set("private","true");const h={method:"POST",headers:l,body:i?n:JSON.stringify(n)},f=await this._fetchWithTimeout(d.toString(),h,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(f.status===202)return{success:!0};if(f.status===404)return Promise.reject(new Error("httpSend() requires Realtime server v2.97.0 or newer; the endpoint returned 404. Update your Supabase CLI to a recent version, or upgrade the Realtime server in your self-hosted setup. See https://github.com/supabase/supabase-js/blob/master/packages/core/realtime-js/migrations/httpsend-server-version.md"));let g=f.statusText;try{const y=await f.json();g=y.error||y.message||g}catch{}return Promise.reject(new Error(g))}async send(t,n={}){var r,s;if(!this.channelAdapter.canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated
20in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:l}=t,d={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(d.Authorization=`Bearer ${this.socket.accessTokenValue}`);const h={method:"POST",headers:d,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:l,private:this.private}]})};try{const f=await this._fetchWithTimeout(this.broadcastEndpointURL,h,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=f.body)===null||s===void 0?void 0:s.cancel()),f.ok?"ok":"error"}catch(f){return f instanceof Error&&f.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var l,d,h;const f=this.channelAdapter.push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((h=(d=(l=this.params)===null||l===void 0?void 0:l.config)===null||d===void 0?void 0:d.broadcast)===null||h===void 0)&&h.ack)&&i("ok"),f.receive("ok",()=>i("ok")),f.receive("error",()=>i("error")),f.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(n=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>n("ok")).receive("timeout",()=>n("timed out")).receive("error",()=>n("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),l=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),l}_on(t,n,r){const s=t.toLocaleLowerCase(),i=this.channelAdapter.on(t,r),l={type:s,filter:n,callback:r,ref:i};return this.bindings[s]?this.bindings[s].push(l):this.bindings[s]=[l],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,n,r)=>{var s,i,l,d,h,f,g;const y=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(y,r))return!1;const b=(s=this.bindings[y])===null||s===void 0?void 0:s.find(_=>_.ref===t.ref);if(!b)return!0;if(["broadcast","presence","postgres_changes"].includes(y))if("id"in b){const _=b.id,S=(i=b.filter)===null||i===void 0?void 0:i.event;return _&&((l=n.ids)===null||l===void 0?void 0:l.includes(_))&&(S==="*"||S?.toLocaleLowerCase()===((d=n.data)===null||d===void 0?void 0:d.type.toLocaleLowerCase()))}else{const _=(f=(h=b?.filter)===null||h===void 0?void 0:h.event)===null||f===void 0?void 0:f.toLocaleLowerCase();return _==="*"||_===((g=n?.event)===null||g===void 0?void 0:g.toLocaleLowerCase())}else return b.type.toLocaleLowerCase()===y})}_notThisChannelEvent(t,n){const{close:r,error:s,leave:i,join:l}=Wx;return n&&[r,s,i,l].includes(t)&&n!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,n,r)=>{if(typeof n=="object"&&"ids"in n){const s=n.data,{schema:i,table:l,commit_timestamp:d,type:h,errors:f}=s;return Object.assign(Object.assign({},{schema:i,table:l,commit_timestamp:d,eventType:h,new:{},old:{},errors:f}),this._getPayloadRecords(s))}return n})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const n in t.bindings)for(const r of t.bindings[n])this._on(r.type,r.filter,r.callback)}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=vw(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=vw(t.columns,t.old_record)),n}}class ZN{constructor(t,n){this.socket=new UN(t,n)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,n,r,s=1e4){return new Promise(i=>{setTimeout(()=>i("timeout"),s),this.socket.disconnect(()=>{t(),i("ok")},n,r)})}push(t){this.socket.push(t)}log(t,n,r){this.socket.log(t,n,r)}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==Dm.connecting}isDisconnecting(){return this.socket.connectionState()==Dm.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const Sw={HEARTBEAT_INTERVAL:25e3},WN=[1e3,2e3,5e3,1e4],YN=1e4;function JN(){const e=new Map;return{get length(){return e.size},clear(){e.clear()},getItem(t){return e.has(t)?e.get(t):null},key(t){var n;return(n=Array.from(e.keys())[t])!==null&&n!==void 0?n:null},removeItem(t){e.delete(t)},setItem(t,n){e.set(t,String(n))}}}function QN(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return JN()}const XN=` 21 addEventListener("message", (e) => { 22 if (e.data.event === "start") { 23 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 24 } 25 });`;class ej{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,n){var r;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
25,this.ref=0,this.serializer=new AN,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=i=>i?(...l)=>i(...l):(...l)=>fetch(...l),!(!((r=n?.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey;const s=this._initializeOptions(n);this.socketAdapter=new ZN(t,s),this.httpEndpoint=Jx(t),this.fetch=this._resolveFetch(n?.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const n=t.message;throw n.includes("Node.js")?new Error(`${n} 26 27To use Realtime in Node.js, you need to provide a WebSocket implementation: 28 29Option 1: Use Node.js 22+ which has native WebSocket support 30Option 2: Install and provide the "ws" package: 31 32 npm install ws 33 34 import ws from "ws" 35 const client = new RealtimeClient(url, { 36 ...options, 37 transport: ws 38 })`):new Error(`WebSocket not available: ${n}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,n){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,n)}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return n==="ok"&&t.teardown(),n}async removeAllChannels(){const t=this.channels.map(async r=>{const s=await r.unsubscribe();return r.teardown(),s}),n=await Promise.all(t);return await this.disconnect(),n}log(t,n,r){this.socketAdapter.log(t,n,r)}connectionState(){return this.socketAdapter.connectionState()||Dm.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new Vc(`realtime:${t}`,n,this);return this._cancelPendingDisconnect(),this.channels.push(i),i}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic),this.channels.length===0&&(this.log("transport","no channels remaining, scheduling disconnect"),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log("transport","disconnecting immediately - no channels"),this.disconnect();return}
38this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(t=null){let n,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(s=>{const i={access_token:n,version:wN};n&&s.updateJoinPayload(i),s.joinedOnce&&s.channelAdapter.isJoined()&&s.channelAdapter.push(Wx.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(n=>{this.log("error","error waiting for auth on connect",n)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(n,r)=>{n=="sent"&&this._setAuthSafely(),t&&t(n,r)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([XN],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_initializeOptions(t){var n,r,s,i,l,d,h,f,g,y,b,_;this.worker=(n=t?.worker)!==null&&n!==void 0?n:!1,this.accessToken=(r=t?.accessToken)!==null&&r!==void 0?r:null;const S={};S.timeout=(s=t?.timeout)!==null&&s!==void 0?s:RN,S.heartbeatIntervalMs=(i=t?.heartbeatIntervalMs)!==null&&i!==void 0?i:Sw.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(l=t?.disconnectOnEmptyChannelsAfterMs)!==null&&l!==void 0?l:2*((d=t?.heartbeatIntervalMs)!==null&&d!==void 0?d:Sw.HEARTBEAT_INTERVAL),S.transport=(h=t?.transport)!==null&&h!==void 0?h:bN.getWebSocketConstructor(),S.params=t?.params,S.logger=t?.logger,S.heartbeatCallback=this._wrapHeartbeatCallback(t?.heartbeatCallback),S.sessionStorage=(f=t?.sessionStorage)!==null&&f!==void 0?f:QN(),S.reconnectAfterMs=(g=t?.reconnectAfterMs)!==null&&g!==void 0?g:(M=>WN[M-1]||YN);let E,x;const k=(y=t?.vsn)!==null&&y!==void 0?y:xN;switch(k){case SN:E=(M,P)=>P(JSON.stringify(M)),x=(M,P)=>P(JSON.parse(M));break;case Zx:E=this.serializer.encode.bind(this.serializer),x=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${S.vsn}`)}if(S.vsn=k,S.encode=(b=t?.encode)!==null&&b!==void 0?b:E,S.decode=(_=t?.decode)!==null&&_!==void 0?_:x,S.beforeReconnect=this._reconnectAuth.bind(this),(t?.logLevel||t?.log_level)&&(this.logLevel=t.logLevel||t.log_level,S.params=Object.assign(Object.assign({},S.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t?.workerUrl,S.autoSendHeartbeat=!this.worker}return S}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}var Xx={},rh={};rh.byteLength=rj;rh.toByteArray=aj;rh.fromByteArray=cj;var Lr=[],hr=[],tj=typeof Uint8Array<"u"?Uint8Array:Array,Jp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 23,234 bytes, line 38
38+/";for(var ni=0,nj=Jp.length;ni<nj;++ni)Lr[ni]=Jp[ni],hr[Jp.charCodeAt(ni)]=ni;hr[45]=62;hr[95]=63;function eR(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function rj(e){var t=eR(e),n=t[0],r=t[1];return(n+r)*3/4-r}function oj(e,t,n){return(t+n)*3/4-n}function aj(e){var t,n=eR(e),r=n[0],s=n[1],i=new tj(oj(e,r,s)),l=0,d=s>0?r-4:r,h;for(h=0;h<d;h+=4)t=hr[e.charCodeAt(h)]<<18|hr[e.charCodeAt(h+1)]<<12|hr[e.charCodeAt(h+2)]<<6|hr[e.charCodeAt(h+3)],i[l++]=t>>16&255,i[l++]=t>>8&255,i[l++]=t&255;return s===2&&(t=hr[e.charCodeAt(h)]<<2|hr[e.charCodeAt(h+1)]>>4,i[l++]=t&255),s===1&&(t=hr[e.charCodeAt(h)]<<10|hr[e.charCodeAt(h+1)]<<4|hr[e.charCodeAt(h+2)]>>2,i[l++]=t>>8&255,i[l++]=t&255),i}function sj(e){return Lr[e>>18&63]+Lr[e>>12&63]+Lr[e>>6&63]+Lr[e&63]}function ij(e,t,n){for(var r,s=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),s.push(sj(r));return s.join("")}function cj(e){for(var t,n=e.length,r=n%3,s=[],i=16383,l=0,d=n-r;l<d;l+=i)s.push(ij(e,l,l+i>d?d:l+i));return r===1?(t=e[n-1],s.push(Lr[t>>2]+Lr[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],s.push(Lr[t>>10]+Lr[t>>4&63]+Lr[t<<2&63]+"=")),s.join("")}var Og={};Og.read=function(e,t,n,r,s){var i,l,d=s*8-r-1,h=(1<<d)-1,f=h>>1,g=-7,y=n?s-1:0,b=n?-1:1,_=e[t+y];for(y+=b,i=_&(1<<-g)-1,_>>=-g,g+=d;g>0;i=i*256+e[t+y],y+=b,g-=8);for(l=i&(1<<-g)-1,i>>=-g,g+=r;g>0;l=l*256+e[t+y],y+=b,g-=8);if(i===0)i=1-f;else{if(i===h)return l?NaN:(_?-1:1)*(1/0);l=l+Math.pow(2,r),i=i-f}return(_?-1:1)*l*Math.pow(2,i-r)};Og.write=function(e,t,n,r,s,i){var l,d,h,f=i*8-s-1,g=(1<<f)-1,y=g>>1,b=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=r?0:i-1,S=r?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,l=g):(l=Math.floor(Math.log(t)/Math.LN2),t*(h=Math.pow(2,-l))<1&&(l--,h*=2),l+y>=1?t+=b/h:t+=b*Math.pow(2,1-y),t*h>=2&&(l++,h/=2),l+y>=g?(d=0,l=g):l+y>=1?(d=(t*h-1)*Math.pow(2,s),l=l+y):(d=t*Math.pow(2,y-1)*Math.pow(2,s),l=0));s>=8;e[n+_]=d&255,_+=S,d/=256,s-=8);for(l=l<<s|d,f+=s;f>0;e[n+_]=l&255,_+=S,l/=256,f-=8);e[n+_-S]|=E*128};(function(e){const t=rh,n=Og,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=g,e.SlowBuffer=F,e.INSPECT_MAX_BYTES=50;const s=2147483647;e.kMaxLength=s;const{Uint8Array:i,ArrayBuffer:l,SharedArrayBuffer:d}=globalThis;g.TYPED_ARRAY_SUPPORT=h(),!g.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 h(){try{const C=new i(1),w={foo:function(){return 42}};return Object.setPrototypeOf(w,i.prototype),Object.setPrototypeOf(C,w),C.foo()===42}catch{return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}});function f(C){if(C>s)throw new RangeError('The value "'+C+'" is invalid for option "size"');const w=new i(C);return Object.setPrototypeOf(w,g.prototype),w}function g(C,w,R){if(typeof C=="number"){if(typeof w=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(C)}return y(C,w,R)}g.poolSize=8192;function y(C,w,R){if(typeof C=="string")return E(C,w);if(l.isView(C))return k(C);if(C==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C);if(Ye(C,l)||C&&Ye(C.buffer,l)||typeof d<"u"&&(Ye(C,d)||C&&Ye(C.buffer,d)))return M(C,w,R);if(typeof C=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const D=C.valueOf&&C.valueOf();if(D!=null&&D!==C)return g.from(D,w,R);const H=P(C);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof C[Symbol.toPrimitive]=="function")return g.from(C[Symbol.toPrimitive]("string"),w,R);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C)}g.from=function(C,w,R){return y(C,w,R)},Object.setPrototypeOf(g.prototype,i.prototype),Object.setPrototypeOf(g,i);function b(C){if(typeof C!="number")throw new TypeError('"size" argument must be of type number');if(C<0)throw new RangeError('The value "'+C+'" is invalid for option "size"')}function _(C,w,R){return b(C),C<=0?f(C):w!==void 0?typeof R=="string"?f(C).fill(w,R):f(C).fill(w):f(C)}g.alloc=function(C,w,R){return _(C,w,R)};function S(C){return b(C),f(C<0?0:I(C)|0)}g.allocUnsafe=function(C){return S(C)},g.allocUnsafeSlow=function(C){return S(C)};function E(C,w){if((typeof w!="string"||w==="")&&(w="utf8"),!g.isEncoding(w))throw new TypeError("Unknown encoding: "+w);const R=G(C,w)|0;let D=f(R);const H=D.write(C,w);return H!==R&&(D=D.slice(0,H)),D}function x(C){const w=C.length<0?0:I(C.length)|0,R=f(w);for(let D=0;D<w;D+=1)R[D]=C[D]&255;return R}function k(C){if(Ye(C,i)){const w=new i(C);return M(w.buffer,w.byteOffset,w.byteLength)}return x(C)}function M(C,w,R){if(w<0||C.byteLength<w)throw new RangeError('"offset" is outside of buffer bounds');if(C.byteLength<w+(R||0))throw new RangeError('"length" is outside of buffer bounds');let D;return w===void 0&&R===void 0?D=new i(C):R===void 0?D=new i(C,w):D=new i(C,w,R),Object.setPrototypeOf(D,g.prototype),D}function P(C){if(g.isBuffer(C)){const w=I(C.length)|0,R=f(w);return R.length===0||C.copy(R,0,0,w),R}if(C.length!==void 0)return typeof C.length!="number"||At(C.length)?f(0):x(C);if(C.type==="Buffer"&&Array.isArray(C.data))return x(C.data)}function I(C){if(C>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return C|0}function F(C){return+C!=C&&(C=0),g.alloc(+C)}g.isBuffer=function(w){return w!=null&&w._isBuffer===!0&&w!==g.prototype},g.compare=function(w,R){if(Ye(w,i)&&(w=g.from(w,w.offset,w.byteLength)),Ye(R,i)&&(R=g.from(R,R.offset,R.byteLength)),!g.isBuffer(w)||!g.isBuffer(R))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===R)return 0;let D=w.length,H=R.length;for(let X=0,ie=Math.min(D,H);X<ie;++X)if(w[X]!==R[X]){D=w[X],H=R[X];break}return D<H?-1:H<D?1:0},g.isEncoding=function(w){switch(String(w).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}},g.concat=function(w,R){if(!Array.isArray(w))throw new TypeError('"list" argument must be an Array of Buffers');if(w.length===0)return g.alloc(0);let D;if(R===void 0)for(R=0,D=0;D<w.length;++D)R+=w[D].length;const H=g.allocUnsafe(R);let X=0;for(D=0;D<w.length;++D){let ie=w[D];if(Ye(ie,i))X+ie.length>H.length?(g.isBuffer(ie)||(ie=g.from(ie)),ie.copy(H,X)):i.prototype.set.call(H,ie,X);else if(g.isBuffer(ie))ie.copy(H,X);else throw new TypeError('"list" argument must be an Array of Buffers');X+=ie.length}return H};function G(C,w){if(g.isBuffer(C))return C.length;if(l.isView(C)||Ye(C,l))return C.byteLength;if(typeof C!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof C);const R=C.length,D=arguments.length>2&&arguments[2]===!0;if(!D&&R===0)return 0;let H=!1;for(;;)switch(w){case"ascii":case"latin1":case"binary":return R;case"utf8":case"utf-8":return tn(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R*2;case"hex":return R>>>1;case"base64":return qn(C).length;default:if(H)return D?-1:tn(C).length;w=(""+w).toLowerCase(),H=!0}}g.byteLength=G;function U(C,w,R){let D=!1;if((w===void 0||w<0)&&(w=0),w>this.length||((R===void 0||R>this.length)&&(R=this.length),R<=0)||(R>>>=0,w>>>=0,R<=w))return"";for(C||(C="utf8");;)switch(C){case"hex":return ae(this,w,R);case"utf8":case"utf-8":return te(this,w,R);case"ascii":return ye(this,w,R);case"latin1":case"binary":return L(this,w,R);case"base64":return z(this,w,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,w,R);default:if(D)throw new TypeError("Unknown encoding: "+C);C=(C+"").toLowerCase(),D=!0}}g.prototype._isBuffer=!0;function V(C,w,R){const D=C[w];C[w]=C[R],C[R]=D}g.prototype.swap16=function(){const w=this.length;if(w%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let R=0;R<w;R+=2)V(this,R,R+1);return this},g.prototype.swap32=function(){const w=this.length;if(w%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let R=0;R<w;R+=4)V(this,R,R+3),V(this,R+1,R+2);return this},g.prototype.swap64=function(){const w=this.length;if(w%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let R=0;R<w;R+=8)V(this,R,R+7),V(this,R+1,R+6),V(this,R+2,R+5),V(this,R+3,R+4);return this},g.prototype.toString=function(){const w=this.length;return w===0?"":arguments.length===0?te(this,0,w):U.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(w){if(!g.isBuffer(w))throw new TypeError("Argument must be a Buffer");return this===w?!0:g.compare(this,w)===0},g.prototype.inspect=function(){let w="";const R=e.INSPECT_MAX_BYTES;return w=this.toString("hex",0,R).replace(/(.{2})/g,"$1 ").trim(),this.length>R&&(w+=" ... "),"<Buffer "+w+">"},r&&(g.prototype[r]=g.prototype.inspect),g.prototype.compare=function(w,R,D,H,X){if(Ye(w,i)&&(w=g.from(w,w.offset,w.byteLength)),!g.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(R===void 0&&(R=0),D===void 0&&(D=w?w.length:0),H===void 0&&(H=0),X===void 0&&(X=this.length),R<0||D>w.length||H<0||X>this.length)throw new RangeError("out of range index");if(H>=X&&R>=D)return 0;if(H>=X)return-1;if(R>=D)return 1;if(R>>>=0,D>>>=0,H>>>=0,X>>>=0,this===w)return 0;let ie=X-H,Ze=D-R;const vt=Math.min(ie,Ze),rt=this.slice(H,X),pt=w.slice(R,D);for(let at=0;at<vt;++at)if(rt[at]!==pt[at]){ie=rt[at],Ze=pt[at];break}return ie<Ze?-1:Ze<ie?1:0};function ne(C,w,R,D,H){if(C.length===0)return-1;if(typeof R=="string"?(D=R,R=0):R>2147483647?R=2147483647:R<-2147483648&&(R=-2147483648),R=+R,At(R)&&(R=H?0:C.length-1),R<0&&(R=C.length+R),R>=C.length){if(H)return-1;R=C.length-1}else if(R<0)if(H)R=0;else return-1;if(typeof w=="string"&&(w=g.from(w,D)),g.isBuffer(w))return w.length===0?-1:W(C,w,R,D,H);if(typeof w=="number")return w=w&255,typeof i.prototype.indexOf=="function"?H?i.prototype.indexOf.call(C,w,R):i.prototype.lastIndexOf.call(C,w,R):W(C,[w],R,D,H);throw new TypeError("val must be string, number or Buffer")}function W(C,w,R,D,H){let X=1,ie=C.length,Ze=w.length;if(D!==void 0&&(D=String(D).toLowerCase(),D==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(C.length<2||w.length<2)return-1;X=2,ie/=2,Ze/=2,R/=2}function vt(pt,at){return X===1?pt[at]:pt.readUInt16BE(at*X)}let rt;if(H){let pt=-1;for(rt=R;rt<ie;rt++)if(vt(C,rt)===vt(w,pt===-1?0:rt-pt)){if(pt===-1&&(pt=rt),rt-pt+1===Ze)return pt*X}else pt!==-1&&(rt-=rt-pt),pt=-1}else for(R+Ze>ie&&(R=ie-Ze),rt=R;rt>=0;rt--){let pt=!0;for(let at=0;at<Ze;at++)if(vt(C,rt+at)!==vt(w,at)){pt=!1;break}if(pt)return rt}return-1}g.prototype.includes=function(w,R,D){return this.indexOf(w,R,D)!==-1},g.prototype.indexOf=function(w,R,D){return ne(this,w,R,D,!0)},g.prototype.lastIndexOf=function(w,R,D){return ne(this,w,R,D,!1)};function pe(C,w,R,D){R=Number(R)||0;const H=C.length-R;D?(D=Number(D),D>H&&(D=H)):D=H;const X=w.length;D>X/2&&(D=X/2);let ie;for(ie=0;ie<D;++ie){const Ze=parseInt(w.substr(ie*2,2),16);if(At(Ze))return ie;C[R+ie]=Ze}return ie}function de(C,w,R,D){return Pt(tn(w,C.length-R),C,R,D)}function $e(C,w,R,D){return Pt(mr(w),C,R,D)}function Ce(C,w,R,D){return Pt(qn(w),C,R,D)}function ue(C,w,R,D){return Pt(Zt(w,C.length-R),C,R,D)}g.prototype.write=function(w,R,D,H){if(R===void 0)H="utf8",D=this.length,R=0;else if(D===void 0&&typeof R=="string")H=R,D=this.length,R=0;else if(isFinite(R))R=R>>>0,isFinite(D)?(D=D>>>0,H===void 0&&(H="utf8")):(H=D,D=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const X=this.length-R;if((D===void 0||D>X)&&(D=X),w.length>0&&(D<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");H||(H="utf8");let ie=!1;for(;;)switch(H){case"hex":return pe(this,w,R,D);case"utf8":case"utf-8":return de(this,w,R,D);case"ascii":case"latin1":case"binary":return $e(this,w,R,D);case"base64":return Ce(this,w,R,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,w,R,D);default:if(ie)throw new TypeError("Unknown encoding: "+H);H=(""+H).toLowerCase(),ie=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function z(C,w,R){return w===0&&R===C.length?t.fromByteArray(C):t.fromByteArray(C.slice(w,R))}function te(C,w,R){R=Math.min(C.length,R);const D=[];let H=w;for(;H<R;){const X=C[H];let ie=null,Ze=X>239?4:X>223?3:X>191?2:1;if(H+Ze<=R){let vt,rt,pt,at;switch(Ze){case 1:X<128&&(ie=X);break;case 2:vt=C[H+1],(vt&192)===128&&(at=(X&31)<<6|vt&63,at>127&&(ie=at));break;case 3:vt=C[H+1],rt=C[H+2],(vt&192)===128&&(rt&192)===128&&(at=(X&15)<<12|(vt&63)<<6|rt&63,at>2047&&(at<55296||at>57343)&&(ie=at));break;case 4:vt=C[H+1],rt=C[H+2],pt=C[H+3],(vt&192)===128&&(rt&192)===128&&(pt&192)===128&&(at=(X&15)<<18|(vt&63)<<12|(rt&63)<<6|pt&63,at>65535&&at<1114112&&(ie=at))}}ie===null?(ie=65533,Ze=1):ie>65535&&(ie-=65536,D.push(ie>>>10&1023|55296),ie=56320|ie&1023),D.push(ie),H+=Ze}return Pe(D)}const we=4096;function Pe(C){const w=C.length;if(w<=we)return String.fromCharCode.apply(String,C);let R="",D=0;for(;D<w;)R+=String.fromCharCode.apply(String,C.slice(D,D+=we));return R}function ye(C,w,R){let D="";R=Math.min(C.length,R);for(let H=w;H<R;++H)D+=String.fromCharCode(C[H]&127);return D}function L(C,w,R){let D="";R=Math.min(C.length,R);for(let H=w;H<R;++H)D+=String.fromCharCode(C[H]);return D}function ae(C,w,R){const D=C.length;(!w||w<0)&&(w=0),(!R||R<0||R>D)&&(R=D);let H="";for(let X=w;X<R;++X)H+=kn[C[X]];return H}function oe(C,w,R){const D=C.slice(w,R);let H="";for(let X=0;X<D.length-1;X+=2)H+=String.fromCharCode(D[X]+D[X+1]*256);return H}g.prototype.slice=function(w,R){const D=this.length;w=~~w,R=R===void 0?D:~~R,w<0?(w+=D,w<0&&(w=0)):w>D&&(w=D),R<0?(R+=D,R<0&&(R=0)):R>D&&(R=D),R<w&&(R=w);const H=this.subarray(w,R);return Object.setPrototypeOf(H,g.prototype),H};function ce(C,w,R){if(C%1!==0||C<0)throw new RangeError("offset is not uint");if(C+w>R)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(w,R,D){w=w>>>0,R=R>>>0,D||ce(w,R,this.length);let H=this[w],X=1,ie=0;for(;++ie<R&&(X*=256);)H+=this[w+ie]*X;return H},g.prototype.readUintBE=g.prototype.readUIntBE=function(w,R,D){w=w>>>0,R=R>>>0,D||ce(w,R,this.length);let H=this[w+--R],X=1;for(;R>0&&(X*=256);)H+=this[w+--R]*X;return H},g.prototype.readUint8=g.prototype.readUInt8=function(w,R){return w=w>>>0,R||ce(w,1,this.length),this[w]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(w,R){return w=w>>>0,R||ce(w,2,this.length),this[w]|this[w+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(w,R){return w=w>>>0,R||ce(w,2,this.length),this[w]<<8|this[w+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(w,R){return w=w>>>0,R||ce(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+this[w+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(w,R){return w=w>>>0,R||ce(w,4,this.length),this[w]*16777216+(this[w+1]<<16|this[w+2]<<8|this[w+3])},g.prototype.readBigUInt64LE=an(function(w){w=w>>>0,Te(w,"offset");const R=this[w],D=this[w+7];(R===void 0||D===void 0)&&Qe(w,this.length-8);const H=R+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24,X=this[++w]+this[++w]*2**8+this[++w]*2**16+D*2**24;return BigInt(H)+(BigInt(X)<<BigInt(32))}),g.prototype.readBigUInt64BE=an(function(w){w=w>>>0,Te(w,"offset");const R=this[w],D=this[w+7];(R===void 0||D===void 0)&&Qe(w,this.length-8);const H=R*2**24+this[++w]*2**16+this[++w]*2**8+this[++w],X=this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+D;return(BigInt(H)<<BigInt(32))+BigInt(X)}),g.prototype.readIntLE=function(w,R,D){w=w>>>0,R=R>>>0,D||ce(w,R,this.length);let H=this[w],X=1,ie=0;for(;++ie<R&&(X*=256);)H+=this[w+ie]*X;return X*=128,H>=X&&(H-=Math.pow(2,8*R)),H},g.prototype.readIntBE=function(w,R,D){w=w>>>0,R=R>>>0,D||ce(w,R,this.length);let H=R,X=1,ie=this[w+--H];for(;H>0&&(X*=256);)ie+=this[w+--H]*X;return X*=128,ie>=X&&(ie-=Math.pow(2,8*R)),ie},g.prototype.readInt8=function(w,R){return w=w>>>0,R||ce(w,1,this.length),this[w]&128?(255-this[w]+1)*-1:this[w]},g.prototype.readInt16LE=function(w,R){w=w>>>0,R||ce(w,2,this.length);const D=this[w]|this[w+1]<<8;return D&32768?D|4294901760:D},g.prototype.readInt16BE=function(w,R){w=w>>>0,R||ce(w,2,this.length);const D=this[w+1]|this[w]<<8;return D&32768?D|4294901760:D},g.prototype.readInt32LE=function(w,R){return w=w>>>0,R||ce(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},g.prototype.readInt32BE=function(w,R){return w=w>>>0,R||ce(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},g.prototype.readBigInt64LE=an(function(w){w=w>>>0,Te(w,"offset");const R=this[w],D=this[w+7];(R===void 0||D===void 0)&&Qe(w,this.length-8);const H=this[w+4]+this[w+5]*2**8+this[w+6]*2**16+(D<<24);return(BigInt(H)<<BigInt(32))+BigInt(R+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24)}),g.prototype.readBigInt64BE=an(function(w){w=w>>>0,Te(w,"offset");const R=this[w],D=this[w+7];(R===void 0||D===void 0)&&Qe(w,this.length-8);const H=(R<<24)+this[++w]*2**16+this[++w]*2**8+this[++w];return(BigInt(H)<<BigInt(32))+BigInt(this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+D)}),g.prototype.readFloatLE=function(w,R){return w=w>>>0,R||ce(w,4,this.length),n.read(this,w,!0,23,4)},g.prototype.readFloatBE=function(w,R){return w=w>>>0,R||ce(w,4,this.length),n.read(this,w,!1,23,4)},g.prototype.readDoubleLE=function(w,R){return w=w>>>0,R||ce(w,8,this.length),n.read(this,w,!0,52,8)},g.prototype.readDoubleBE=function(w,R){return w=w>>>0,R||ce(w,8,this.length),n.read(this,w,!1,52,8)};function he(C,w,R,D,H,X){if(!g.isBuffer(C))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>H||w<X)throw new RangeError('"value" argument is out of bounds');if(R+D>C.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(w,R,D,H){if(w=+w,R=R>>>0,D=D>>>0,!H){const Ze=Math.pow(2,8*D)-1;he(this,w,R,D,Ze,0)}let X=1,ie=0;for(this[R]=w&255;++ie<D&&(X*=256);)this[R+ie]=w/X&255;return R+D},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(w,R,D,H){if(w=+w,R=R>>>0,D=D>>>0,!H){const Ze=Math.pow(2,8*D)-1;he(this,w,R,D,Ze,0)}let X=D-1,ie=1;for(this[R+X]=w&255;--X>=0&&(ie*=256);)this[R+X]=w/ie&255;return R+D},g.prototype.writeUint8=g.prototype.writeUInt8=function(w,R,D){return w=+w,R=R>>>0,D||he(this,w,R,1,255,0),this[R]=w&255,R+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(w,R,D){return w=+w,R=R>>>0,D||he(this,w,R,2,65535,0),this[R]=w&255,this[R+1]=w>>>8,R+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(w,R,D){return w=+w,R=R>>>0,D||he(this,w,R,2,65535,0),this[R]=w>>>8,this[R+1]=w&255,R+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(w,R,D){return w=+w,R=R>>>0,D||he(this,w,R,4,4294967295,0),this[R+3]=w>>>24,this[R+2]=w>>>16,this[R+1]=w>>>8,this[R]=w&255,R+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(w,R,D){return w=+w,R=R>>>0,D||he(this,w,R,4,4294967295,0),this[R]=w>>>24,this[R+1]=w>>>16,this[R+2]=w>>>8,this[R+3]=w&255,R+4};function Re(C,w,R,D,H){be(w,D,H,C,R,7);let X=Number(w&BigInt(4294967295));C[R++]=X,X=X>>8,C[R++]=X,X=X>>8,C[R++]=X,X=X>>8,C[R++]=X;let ie=Number(w>>BigInt(32)&BigInt(4294967295));return C[R++]=ie,ie=ie>>8,C[R++]=ie,ie=ie>>8,C[R++]=ie,ie=ie>>8,C[R++]=ie,R}function Le(C,w,R,D,H){be(w,D,H,C,R,7);let X=Number(w&BigInt(4294967295));C[R+7]=X,X=X>>8,C[R+6]=X,X=X>>8,C[R+5]=X,X=X>>8,C[R+4]=X;let ie=Number(w>>BigInt(32)&BigInt(4294967295));return C[R+3]=ie,ie=ie>>8,C[R+2]=ie,ie=ie>>8,C[R+1]=ie,ie=ie>>8,C[R]=ie,R+8}g.prototype.writeBigUInt64LE=an(function(w,R=0){return Re(this,w,R,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=an(function(w,R=0){return Le(this,w,R,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(w,R,D,H){if(w=+w,R=R>>>0,!H){const vt=Math.pow(2,8*D-1);he(this,w,R,D,vt-1,-vt)}let X=0,ie=1,Ze=0;for(this[R]=w&255;++X<D&&(ie*=256);)w<0&&Ze===0&&this[R+X-1]!==0&&(Ze=1),this[R+X]=(w/ie>>0)-Ze&255;return R+D},g.prototype.writeIntBE=function(w,R,D,H){if(w=+w,R=R>>>0,!H){const vt=Math.pow(2,8*D-1);he(this,w,R,D,vt-1,-vt)}let X=D-1,ie=1,Ze=0;for(this[R+X]=w&255;--X>=0&&(ie*=256);)w<0&&Ze===0&&this[R+X+1]!==0&&(Ze=1),this[R+X]=(w/ie>>0)-Ze&255;return R+D},g.prototype.writeInt8=function(w,R,D){return w=+w,R=R>>>0,D||he(this,w,R,1,127,-128),w<0&&(w=255+w+1),this[R]=w&255,R+1},g.prototype.writeInt16LE=function(w,R,D){return w=+w,R=R>>>0,D||he(this,w,R,2,32767,-32768),this[R]=w&255,this[R+1]=w>>>8,R+2},g.prototype.writeInt16BE=function(w,R,D){return w=+w,R=R>>>0,D||he(this,w,R,2,32767,-32768),this[R]=w>>>8,this[R+1]=w&255,R+2},g.prototype.writeInt32LE=function(w,R,D){return w=+w,R=R>>>0,D||he(this,w,R,4,2147483647,-2147483648),this[R]=w&255,this[R+1]=w>>>8,this[R+2]=w>>>16,this[R+3]=w>>>24,R+4},g.prototype.writeInt32BE=function(w,R,D){return w=+w,R=R>>>0,D||he(this,w,R,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[R]=w>>>24,this[R+1]=w>>>16,this[R+2]=w>>>8,this[R+3]=w&255,R+4},g.prototype.writeBigInt64LE=an(function(w,R=0){return Re(this,w,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=an(function(w,R=0){return Le(this,w,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ve(C,w,R,D,H,X){if(R+D>C.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("Index out of range")}function Se(C,w,R,D,H){return w=+w,R=R>>>0,H||ve(C,w,R,4),n.write(C,w,R,D,23,4),R+4}g.prototype.writeFloatLE=function(w,R,D){return Se(this,w,R,!0,D)},g.prototype.writeFloatBE=function(w,R,D){return Se(this,w,R,!1,D)};function Et(C,w,R,D,H){return w=+w,R=R>>>0,H||ve(C,w,R,8),n.write(C,w,R,D,52,8),R+8}g.prototype.writeDoubleLE=function(w,R,D){return Et(this,w,R,!0,D)},g.prototype.writeDoubleBE=function(w,R,D){return Et(this,w,R,!1,D)},g.prototype.copy=function(w,R,D,H){if(!g.isBuffer(w))throw new TypeError("argument should be a Buffer");if(D||(D=0),!H&&H!==0&&(H=this.length),R>=w.length&&(R=w.length),R||(R=0),H>0&&H<D&&(H=D),H===D||w.length===0||this.length===0)return 0;if(R<0)throw new RangeError("targetStart out of bounds");if(D<0||D>=this.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("sourceEnd out of bounds");H>this.length&&(H=this.length),w.length-R<H-D&&(H=w.length-R+D);const X=H-D;return this===w&&typeof i.prototype.copyWithin=="function"?this.copyWithin(R,D,H):i.prototype.set.call(w,this.subarray(D,H),R),X},g.prototype.fill=function(w,R,D,H){if(typeof w=="string"){if(typeof R=="str
38ing"?(H=R,R=0,D=this.length):typeof D=="string"&&(H=D,D=this.length),H!==void 0&&typeof H!="string")throw new TypeError("encoding must be a string");if(typeof H=="string"&&!g.isEncoding(H))throw new TypeError("Unknown encoding: "+H);if(w.length===1){const ie=w.charCodeAt(0);(H==="utf8"&&ie<128||H==="latin1")&&(w=ie)}}else typeof w=="number"?w=w&255:typeof w=="boolean"&&(w=Number(w));if(R<0||this.length<R||this.length<D)throw new RangeError("Out of range index");if(D<=R)return this;R=R>>>0,D=D===void 0?this.length:D>>>0,w||(w=0);let X;if(typeof w=="number")for(X=R;X<D;++X)this[X]=w;else{const ie=g.isBuffer(w)?w:g.from(w,H),Ze=ie.length;if(Ze===0)throw new TypeError('The value "'+w+'" is invalid for argument "value"');for(X=0;X<D-R;++X)this[X+R]=ie[X%Ze]}return this};const it={};function ht(C,w,R){it[C]=class extends R{constructor(){super(),Object.defineProperty(this,"message",{value:w.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${C}]`,this.stack,delete this.name}get code(){return C}set code(H){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:H,writable:!0})}toString(){return`${this.name} [${C}]: ${this.message}`}}}ht("ERR_BUFFER_OUT_OF_BOUNDS",function(C){return C?`${C} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ht("ERR_INVALID_ARG_TYPE",function(C,w){return`The "${C}" argument must be of type number. Received type ${typeof w}`},TypeError),ht("ERR_OUT_OF_RANGE",function(C,w,R){let D=`The value of "${C}" is out of range.`,H=R;return Number.isInteger(R)&&Math.abs(R)>2**32?H=K(String(R)):typeof R=="bigint"&&(H=String(R),(R>BigInt(2)**BigInt(32)||R<-(BigInt(2)**BigInt(32)))&&(H=K(H)),H+="n"),D+=` It must be ${w}. Received ${H}`,D},RangeError);function K(C){let w="",R=C.length;const D=C[0]==="-"?1:0;for(;R>=D+4;R-=3)w=`_${C.slice(R-3,R)}${w}`;return`${C.slice(0,R)}${w}`}function Q(C,w,R){Te(w,"offset"),(C[w]===void 0||C[w+R]===void 0)&&Qe(w,C.length-(R+1))}function be(C,w,R,D,H,X){if(C>R||C<w){const ie=typeof w=="bigint"?"n":"";let Ze;throw w===0||w===BigInt(0)?Ze=`>= 0${ie} and < 2${ie} ** ${(X+1)*8}${ie}`:Ze=`>= -(2${ie} ** ${(X+1)*8-1}${ie}) and < 2 ** ${(X+1)*8-1}${ie}`,new it.ERR_OUT_OF_RANGE("value",Ze,C)}Q(D,H,X)}function Te(C,w){if(typeof C!="number")throw new it.ERR_INVALID_ARG_TYPE(w,"number",C)}function Qe(C,w,R){throw Math.floor(C)!==C?(Te(C,R),new it.ERR_OUT_OF_RANGE("offset","an integer",C)):w<0?new it.ERR_BUFFER_OUT_OF_BOUNDS:new it.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${w}`,C)}const yt=/[^+/0-9A-Za-z-_]/g;function ft(C){if(C=C.split("=")[0],C=C.trim().replace(yt,""),C.length<2)return"";for(;C.length%4!==0;)C=C+"=";return C}function tn(C,w){w=w||1/0;let R;const D=C.length;let H=null;const X=[];for(let ie=0;ie<D;++ie){if(R=C.charCodeAt(ie),R>55295&&R<57344){if(!H){if(R>56319){(w-=3)>-1&&X.push(239,191,189);continue}else if(ie+1===D){(w-=3)>-1&&X.push(239,191,189);continue}H=R;continue}if(R<56320){(w-=3)>-1&&X.push(239,191,189),H=R;continue}R=(H-55296<<10|R-56320)+65536}else H&&(w-=3)>-1&&X.push(239,191,189);if(H=null,R<128){if((w-=1)<0)break;X.push(R)}else if(R<2048){if((w-=2)<0)break;X.push(R>>6|192,R&63|128)}else if(R<65536){if((w-=3)<0)break;X.push(R>>12|224,R>>6&63|128,R&63|128)}else if(R<1114112){if((w-=4)<0)break;X.push(R>>18|240,R>>12&63|128,R>>6&63|128,R&63|128)}else throw new Error("Invalid code point")}return X}function mr(C){const w=[];for(let R=0;R<C.length;++R)w.push(C.charCodeAt(R)&255);return w}function Zt(C,w){let R,D,H;const X=[];for(let ie=0;ie<C.length&&!((w-=2)<0);++ie)R=C.charCodeAt(ie),D=R>>8,H=R%256,X.push(H),X.push(D);return X}function qn(C){return t.toByteArray(ft(C))}function Pt(C,w,R,D){let H;for(H=0;H<D&&!(H+R>=w.length||H>=C.length);++H)w[H+R]=C[H];return H}function Ye(C,w){return C instanceof w||C!=null&&C.constructor!=null&&C.constructor.name!=null&&C.constructor.name===w.name}function At(C){return C!==C}const kn=(function(){const C="0123456789abcdef",w=new Array(256);for(let R=0;R<16;++R){const D=R*16;for(let H=0;H<16;++H)w[D+H]=C[R]+C[H]}return w})();function an(C){return typeof BigInt>"u"?Sa:C}function Sa(){throw new Error("BigInt not supported")}})(Xx);const xw=Xx.Buffer;
38var Yc=class extends Error{constructor(e,t){super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&t.icebergType?.includes("CommitState")===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function lj(e,t,n){const r=new URL(t,e);if(n)for(const[s,i]of Object.entries(n))i!==void 0&&r.searchParams.set(s,i);return r.toString()}async function uj(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function dj(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:l}){const d=lj(e.baseUrl,r,s),h=await uj(e.auth),f=await t(d,{method:n,headers:{...i?{"Content-Type":"application/json"}:{},...h,...l},body:i?JSON.stringify(i):void 0}),g=await f.text(),y=(f.headers.get("content-type")||"").includes("application/json"),b=y&&g?JSON.parse(g):g;if(!f.ok){const _=y?b:void 0,S=_?.error;throw new Yc(S?.message??`Request failed with status ${f.status}`,{status:f.status,icebergType:S?.type,icebergCode:S?.code,details:_})}return{status:f.status,headers:f.headers,data:b}}}}function Fu(e){return e.join("�")}var hj=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Fu(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Fu(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Fu(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Fu(e.namespace)}`}),!0}catch(t){if(t instanceof Yc&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof Yc&&n.status===409)return;throw n}}};function ri(e){return e.join("�")}var fj=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ri(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ri(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ri(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${ri(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String(t?.purge??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ri(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${ri(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof Yc&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof Yc&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},pj=class{constructor(e){let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=dj({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=e.accessDelegation?.join(","),this.namespaceOps=new hj(this.client,t),this.tableOps=new fj(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
38async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}};function Jc(e){"@babel/helpers - typeof";return Jc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jc(e)}function mj(e,t){if(Jc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gj(e){var t=mj(e,"string");return Jc(t)=="symbol"?t:t+""}function yj(e,t,n){return(t=gj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rw(Object(n),!0).forEach(function(r){yj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var oh=class extends Error{constructor(e,t="storage",n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function ah(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var Bm=class extends oh{constructor(e,t,n,r="storage"){super(e,r,t,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n}toJSON(){return Fe({},super.toJSON())}},tR=class extends oh{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};function Md(e,t,n){const r=Fe({},e),s=t.toLowerCase();for(const i of Object.keys(r))i.toLowerCase()===s&&delete r[i];return r[s]=n,r}function vj(e){const t={};for(const[n,r]of Object.entries(e))t[n.toLowerCase()]=r;return t}const bj=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),_j=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Um=e=>{if(Array.isArray(e))return e.map(n=>Um(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[s]=Um(r)}),t},wj=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),Ew=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error;if(typeof t.error=="object"&&t.error!==null){const n=t.error;if(typeof n.message=="string")return n.message}}return JSON.stringify(e)},Sj=async(e,t,n,r)=>{if(e!==null&&typeof e=="object"&&"json"in e&&typeof e.json=="function"){const s=e;let i=parseInt(String(s.status),10);Number.isFinite(i)||(i=500),s.json().then(l=>{const d=l?.statusCode||l?.code||i+"";t(new Bm(Ew(l),i,d,r))}).catch(()=>{const l=i+"";t(new Bm(s.statusText||`HTTP ${i} error`,i,l,r))})}else t(new tR(Ew(e),e,r))},xj=(e,t,n,r)=>{const s={method:e,headers:t?.headers||{}};if(e==="GET"||e==="HEAD"||!r)return Fe(Fe({},s),n);if(_j(r)){var i;const l=t?.headers||{};let d;for(const[h,f]of Object.entries(l))h.toLowerCase()==="content-type"&&(d=f);s.headers=Md(l,"Content-Type",(i=d)!==null&&i!==void 0?i:"application/json"),s.body=JSON.stringify(r)}else s.body=r;return t?.duplex&&(s.duplex=t.duplex),Fe(Fe({},s),n)};async function $c(e,t,n,r,s,i,l){return new Promise((d,h)=>{e(n,xj(t,r,s,i)).then(f=>{if(!f.ok)throw f;if(r?.noResolveJson)return f;if(l==="vectors"){const g=f.headers.get("content-type");if(f.headers.get("content-length")==="0"||f.status===204)return{};if(!g||!g.includes("application/json"))return{}}return f.json()}).then(f=>d(f)).catch(f=>Sj(f,h,r,l))})}
38function nR(e="storage"){return{get:async(t,n,r,s)=>$c(t,"GET",n,r,s,void 0,e),post:async(t,n,r,s,i)=>$c(t,"POST",n,s,i,r,e),put:async(t,n,r,s,i)=>$c(t,"PUT",n,s,i,r,e),head:async(t,n,r,s)=>$c(t,"HEAD",n,Fe(Fe({},r),{},{noResolveJson:!0}),s,void 0,e),remove:async(t,n,r,s,i)=>$c(t,"DELETE",n,s,i,r,e)}}const Rj=nR("storage"),{get:Qc,post:Sr,put:Vm,head:Ej,remove:$g}=Rj,er=nR("vectors");var Ni=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=vj(t),this.fetch=bj(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=Md(this.headers,e,t),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ah(n))return{data:null,error:n};throw n}}};let rR;rR=Symbol.toStringTag;var Aj=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[rR]="StreamDownloadBuilder",this.promise=null}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(ah(t))return{data:null,error:t};throw t}}};let oR;oR=Symbol.toStringTag;var Tj=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[oR]="BlobDownloadBuilder",this.promise=null}asStream(){return new Aj(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(ah(t))return{data:null,error:t};throw t}}};const kj={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Aw={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var Cj=class extends Ni{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var s=this;return s.handleOperation(async()=>{let i;const l=Fe(Fe({},Aw),r);let d=Fe(Fe({},s.headers),e==="POST"&&{"x-upsert":String(l.upsert)});const h=l.metadata;if(typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",l.cacheControl),h&&i.append("metadata",s.encodeMetadata(h)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.has("cacheControl")||i.append("cacheControl",l.cacheControl),h&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(h))):(i=n,d["cache-control"]=`max-age=${l.cacheControl}`,d["content-type"]=l.contentType,h&&(d["x-metadata"]=s.toBase64(s.encodeMetadata(h))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!l.duplex&&(l.duplex="half")),r?.headers)for(const[b,_]of Object.entries(r.headers))d=Md(d,b,_);const f=s._removeEmptyFolders(t),g=s._getFinalPath(f),y=await(e=="PUT"?Vm:Sr)(s.fetch,`${s.url}/object/${g}`,i,Fe({headers:d},l?.duplex?{duplex:l.duplex}:{}));return{path:f,id:y.Id,fullPath:y.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var s=this;const i=s._removeEmptyFolders(e),l=s._getFinalPath(i),d=new URL(s.url+`/object/upload/sign/${l}`);return d.searchParams.set("token",t),s.handleOperation(async()=>{let h;const f=Fe(Fe({},Aw),r);let g=Fe(Fe({},s.headers),{"x-upsert":String(f.upsert)});const y=f.metadata;if(typeof Blob<"u"&&n instanceof Blob?(h=new FormData,h.append("cacheControl",f.cacheControl),y&&h.append("metadata",s.encodeMetadata(y)),h.append("",n)):typeof FormData<"u"&&n instanceof FormData?(h=n,h.has("cacheControl")||h.append("cacheControl",f.cacheControl),y&&!h.has("metadata")&&h.append("metadata",s.encodeMetadata(y))):(h=n,g["cache-control"]=`max-age=${f.cacheControl}`,g["content-type"]=f.contentType,y&&(g["x-metadata"]=s.toBase64(s.encodeMetadata(y))),(typeof ReadableStream<"u"&&h instanceof ReadableStream||h&&typeof h=="object"&&"pipe"in h&&typeof h.pipe=="function")&&!f.duplex&&(f.duplex="half")),r?.headers)for(const[b,_]of Object.entries(r.headers))g=Md(g,b,_);return{path:i,fullPath:(await Vm(s.fetch,d.toString(),h,Fe({headers:g},f?.duplex?{duplex:f.duplex}:{}))).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const s=Fe({},n.headers);t?.upsert&&(s["x-upsert"]="true");const i=await Sr(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:s}),l=new URL(n.url+i.url),d=l.searchParams.get("token");if(!d)throw new oh("No token returned by API");return{signedUrl:l.toString(),path:e,token:d}})}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await Sr(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
38stinationBucket:n?.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await Sr(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n?.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let s=r._getFinalPath(e);const i=typeof n?.transform=="object"&&n.transform!==null&&Object.keys(n.transform).length>0;let l=await Sr(r.fetch,`${r.url}/object/sign/${s}`,Fe({expiresIn:t},i?{transform:n.transform}:{}),{headers:r.headers});const d=new URLSearchParams;n?.download&&d.set("download",n.download===!0?"":n.download),n?.cacheNonce!=null&&d.set("cacheNonce",String(n.cacheNonce));const h=d.toString();return{signedUrl:encodeURI(`${r.url}${l.signedURL}${h?`&${h}`:""}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const s=await Sr(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),i=new URLSearchParams;n?.download&&i.set("download",n.download===!0?"":n.download),n?.cacheNonce!=null&&i.set("cacheNonce",String(n.cacheNonce));const l=i.toString();return s.map(d=>Fe(Fe({},d),{},{signedUrl:d.signedURL?encodeURI(`${r.url}${d.signedURL}${l?`&${l}`:""}`):null}))})}download(e,t,n){const r=typeof t?.transform=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image/authenticated":"object",s=new URLSearchParams;t?.transform&&this.applyTransformOptsToQuery(s,t.transform),t?.cacheNonce!=null&&s.set("cacheNonce",String(t.cacheNonce));const i=s.toString(),l=this._getFinalPath(e),d=()=>Qc(this.fetch,`${this.url}/${r}/${l}${i?`?${i}`:""}`,{headers:this.headers,noResolveJson:!0},n);return new Tj(d,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>Um(await Qc(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await Ej(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(s){if(t.shouldThrowOnError)throw s;if(ah(s)){var r;const i=s instanceof Bm?s.status:s instanceof tR?(r=s.originalError)===null||r===void 0?void 0:r.status:void 0;if(i!==void 0&&[400,404].includes(i))return{data:!1,error:s}}throw s}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=new URLSearchParams;t?.download&&r.set("download",t.download===!0?"":t.download),t?.transform&&this.applyTransformOptsToQuery(r,t.transform),t?.cacheNonce!=null&&r.set("cacheNonce",String(t.cacheNonce));const s=r.toString(),i=typeof t?.transform=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${n}`)+(s?`?${s}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await $g(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,n){var r=this;return r.handleOperation(async()=>{const s=Fe(Fe(Fe({},kj),t),{},{prefix:e||""});return await Sr(r.fetch,`${r.url}/object/list/${r.bucketId}`,s,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=Fe({},e);return await Sr(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof xw<"u"?xw.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(e,t){return t.width&&e.set("width",t.width.toString()),t.height&&e.set("height",t.height.toString()),t.resize&&e.set("resize",t.resize),t.format&&e.set("format",t.format),t.quality&&e.set("quality",t.quality.toString()),e}};const Oj="2.108.2",yl={"X-Client-Info":`storage-js/${Oj}`};var $j=class extends Ni{constructor(e,t={},n,r){const s=new URL(e);r?.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase."));const i=s.href.replace(/\/$/,""),l=Fe(Fe({},yl),t);super(i,l,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await Qc(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Qc(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await Sr(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await Vm(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await Sr(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await $g(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},Mj=class extends Ni{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=Fe(Fe({},yl),t);super(r,s,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Sr(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=new URLSearchParams;e?.limit!==void 0&&n.set("limit",e.limit.toString()),e?.offset!==void 0&&n.set("offset",e.offset.toString()),e?.sortColumn&&n.set("sortColumn",e.sortColumn),e?.sortOrder&&n.set("sortOrder",e.sortOrder),e?.search&&n.set("search",e.search);const r=n.toString(),s=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await Qc(t.fetch,s,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await $g(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!wj(e))throw new oh("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new pj({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
38),r=this.shouldThrowOnError;return new Proxy(n,{get(s,i){const l=s[i];return typeof l!="function"?l:async(...d)=>{try{return{data:await l.apply(s,d),error:null}}catch(h){if(r)throw h;return{data:null,error:h}}}}})}},Nj=class extends Ni{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=Fe(Fe({},yl),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await er.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await er.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await er.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await er.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},jj=class extends Ni{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=Fe(Fe({},yl),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await er.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await er.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await er.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await er.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await er.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},Pj=class extends Ni{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=Fe(Fe({},yl),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await er.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await er.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await er.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await er.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},Dj=class extends Pj{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new Ij(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},Ij=class extends Nj{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,Fe(Fe({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,Fe(Fe({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new Lj(this.url,this.headers,this.vectorBucketName,e,this.fetch)}}
38,Lj=class extends jj{constructor(e,t,n,r,s){super(e,t,s),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,Fe(Fe({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,Fe(Fe({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,Fe(Fe({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,Fe(Fe({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,Fe(Fe({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},zj=class extends $j{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new Cj(this.url,this.headers,e,this.fetch)}get vectors(){return new Dj(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new Mj(this.url+"/iceberg",this.headers,this.fetch)}};const aR="2.108.2",po=30*1e3,Ic=3,Qp=Ic*po,Bj=2*po,Uj="http://localhost:9999",Vj="supabase.auth.token",Fj={"X-Client-Info":`gotrue-js/${aR}`},Fm="X-Supabase-Api-Version",sR={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},qj=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,Hj=600*1e3;class Xc extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function Ee(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class Gj extends Xc{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function Kj(e){return Ee(e)&&e.name==="AuthApiError"}class xr extends Xc{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class Vr extends Xc{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class un extends Vr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function qu(e){return Ee(e)&&e.name==="AuthSessionMissingError"}class oi extends Vr{constructor(){super("Auth session or user missing","AuthInvalidToken
38ResponseError",500,void 0)}}class Hu extends Vr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Gu extends Vr{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function Zj(e){return Ee(e)&&e.name==="AuthImplicitGrantRedirectError"}class Tw extends Vr{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class Wj extends Vr{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class qm extends Vr{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function kw(e){return Ee(e)&&e.name==="AuthRetryableFetchError"}class Cw extends Vr{constructor(t="Refresh result discarded: session state changed mid-flight (e.g., concurrent signOut)"){super(t,"AuthRefreshDiscardedError",409,void 0)}}function Yj(e){return Ee(e)&&e.name==="AuthRefreshDiscardedError"}class Ow extends Vr{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class Nd extends Vr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const jd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),$w=` 39\r=`.split(""),Jj=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<$w.length;t+=1)e[$w[t].charCodeAt(0)]=-2;for(let t=0;t<jd.length;t+=1)e[jd[t].charCodeAt(0)]=t;return e})();function Mw(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(jd[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(jd[r]),t.queuedBits-=6}}function iR(e,t,n){const r=Jj[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function Nw(e){const t=[],n=l=>{t.push(String.fromCodePoint(l))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=l=>{e3(l,r,n)};for(let l=0;l<e.length;l+=1)iR(e.charCodeAt(l),s,i);return t.join("")}function Qj(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function Xj(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}Qj(r,t)}}function e3(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if((e>>7-r&1)===0){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function Ei(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)iR(e.charCodeAt(s),n,r);return new Uint8Array(t)}function t3(e){const t=[];return Xj(e,n=>t.push(n)),new Uint8Array(t)}function es(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>Mw(s,n,r)),Mw(null,n,r),t.join("")}function n3(e){return Math.round(Date.now()/1e3)+e}function r3(){return Symbol("auth-callback")}const xn=()=>typeof window<"u"&&typeof document<"u",Fa={tested:!1,writable:!1},cR=()=>
39{if(!xn())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Fa.tested)return Fa.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Fa.tested=!0,Fa.writable=!0}catch{Fa.tested=!0,Fa.writable=!1}return Fa.writable};function o3(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const lR=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),a3=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",mi=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},_r=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return null}},Ht=async(e,t)=>{await e.removeItem(t)};class sh{constructor(){this.promise=new sh.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}sh.promiseConstructor=Promise;function Ku(e){const t=e.split(".");if(t.length!==3)throw new Nd("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!qj.test(t[r]))throw new Nd("JWT not in base64url format");return{header:JSON.parse(Nw(t[0])),payload:JSON.parse(Nw(t[1])),signature:Ei(t[2]),raw:{header:t[0],payload:t[1]}}}async function s3(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function i3(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const l=await e(i);if(!t(i,null,l)){r(l);return}}catch(l){if(!t(i,l)){s(l);return}}})()})}function c3(e){return("0"+e.toString(16)).substr(-2)}function l3(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,c3).join("")}async function u3(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function d3(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await u3(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function qa(e,t,n=!1){const r=l3();let s=r;n&&(s+="/recovery"),await mi(e,`${t}-code-verifier`,s);const i=await d3(r);return[i,r===i?"plain":"s256"]}const h3=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function f3(e){const t=e.headers.get(Fm);if(!t||!t.match(h3))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function p3(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function m3(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const g3=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function lo(e){if(!g3.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function wr(e){if(!e.passkey)throw new Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function Xp(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function y3(e,t){return new Proxy(e,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;
39if(typeof r=="symbol"){const i=r.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,s)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,r,s)}})}function jw(e){return JSON.parse(JSON.stringify(e))}const Za=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error}return JSON.stringify(e)},v3=[500,501,502,503,504,520,521,522,523,524,525,526,527,528,529,530];async function Pw(e){var t;if(!a3(e))throw new qm(Za(e),0);if(v3.includes(e.status))throw new qm(Za(e),e.status);let n;try{n=await e.json()}catch(i){throw new xr(Za(i),i)}let r;const s=f3(e);if(s&&s.getTime()>=sR["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new Ow(Za(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new un}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((i,l)=>i&&typeof l=="string",!0))throw new Ow(Za(n),e.status,n.weak_password.reasons);throw new Gj(Za(n),e.status||500,r)}const b3=(e,t,n,r)=>{const s={method:e,headers:t?.headers||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t?.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function je(e,t,n,r){var s;const i=Object.assign({},r?.headers);i[Fm]||(i[Fm]=sR["2024-01-01"].name),r?.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const l=(s=r?.query)!==null&&s!==void 0?s:{};r?.redirectTo&&(l.redirect_to=r.redirectTo);const d=Object.keys(l).length?"?"+new URLSearchParams(l).toString():"",h=await _3(e,t,n+d,{headers:i,noResolveJson:r?.noResolveJson},{},r?.body);return r?.xform?r?.xform(h):{data:Object.assign({},h),error:null}}async function _3(e,t,n,r,s,i){const l=b3(t,r,s,i);let d;try{d=await e(n,Object.assign({},l))}catch(h){throw console.error(h),new qm(Za(h),0)}if(d.ok||await Pw(d),r?.noResolveJson)return d;try{return await d.json()}catch(h){await Pw(h)}}function dr(e){var t;let n=null;x3(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=n3(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:typeof e?.id=="string"?e:null;return{data:{session:n,user:r},error:null}}function Dw(e){const t=dr(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function aa(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function w3(e){return{data:e,error:null}}function S3(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,l=Mi(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),d={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},h=Object.assign({},l);return{data:{properties:d,user:h},error:null}}function Iw(e){return e}function x3(e){return!!e.access_token&&!!e.refresh_token&&!!e.expires_in}const em=["global","local","others"];class R3{constructor({url:t="",headers:n={},fetch:r,experimental:s}){this.url=t,this.headers=n,this.fetch=lR(r),this.experimental=s??{},this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}async signOut(t,n=em[0]){if(em.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${em.join(", ")}`);try{return await je(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(Ee(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await je(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:aa})}catch(r){if(Ee(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=Mi(t,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r?.newEmail,delete s.newEmail),await je(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:S3,redirectTo:n?.redirectTo})}catch(n){if(Ee(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await je(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:aa})}catch(n){if(Ee(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,i,l,d,h;try{const f={nextPage:null,lastPage:0,total:0},g=await je(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t?.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t?.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:Iw});if(g.error)throw g.error;const y=await g.json(),b=(l=g.headers.get("x-total-count"))!==null&&l!==void 0?l:0,_=(h=(d=g.headers.get("link"))===null||d===void 0?void 0:d.split(","))!==null&&h!==void 0?h:[];return _.length>0&&(_.forEach(S=>{const E=parseInt(S.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(S.split(";")[1].split("=")[1]);f[`${x}Page`]=E}),f.total=parseInt(b)),{data:Object.assign(Object.assign({},y),f),error:null}}catch(f){if(Ee(f))return{data:{users:[]},error:f};throw f}}async getUserById(t){lo(t);try{return await je(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:aa})}catch(n){if(Ee(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){lo(t);try{return await je(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:aa})}catch(r){if(Ee(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){lo(t);
39try{return await je(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:aa})}catch(r){if(Ee(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){lo(t.userId);try{const{data:n,error:r}=await je(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(Ee(n))return{data:null,error:n};throw n}}async _deleteFactor(t){lo(t.userId),lo(t.id);try{return{data:await je(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(Ee(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,s,i,l,d,h;try{const f={nextPage:null,lastPage:0,total:0},g=await je(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t?.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t?.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:Iw});if(g.error)throw g.error;const y=await g.json(),b=(l=g.headers.get("x-total-count"))!==null&&l!==void 0?l:0,_=(h=(d=g.headers.get("link"))===null||d===void 0?void 0:d.split(","))!==null&&h!==void 0?h:[];return _.length>0&&(_.forEach(S=>{const E=parseInt(S.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(S.split(";")[1].split("=")[1]);f[`${x}Page`]=E}),f.total=parseInt(b)),{data:Object.assign(Object.assign({},y),f),error:null}}catch(f){if(Ee(f))return{data:{clients:[]},error:f};throw f}}async _createOAuthClient(t){try{return await je(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Ee(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await je(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Ee(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await je(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(Ee(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await je(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(Ee(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await je(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Ee(n))return{data:null,error:n};throw n}}async _listCustomProviders(t){try{const n={};return t?.type&&(n.type=t.type),await je(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:n,xform:r=>{var s;return{data:{providers:(s=r?.providers)!==null&&s!==void 0?s:[]},error:null}}})}catch(n){if(Ee(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(t){try{return await je(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Ee(n))return{data:null,error:n};throw n}}async _getCustomProvider(t){try{return await je(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Ee(n))return{data:null,error:n};throw n}}async _updateCustomProvider(t,n){try{return await je(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(Ee(r))return{data:null,error:r};throw r}}async _deleteCustomProvider(t){try{return await je(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(Ee(n))return{data:null,error:n};throw n}}async _adminListPasskeys(t){wr(this.experimental),lo(t.userId);try{return await je(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/passkeys`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Ee(n))return{data:null,error:n};throw n}}async _adminDeletePasskey(t){wr(this.experimental),lo(t.userId),lo(t.passkeyId);
39try{return await je(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/passkeys/${t.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(Ee(n))return{data:null,error:n};throw n}}}function Lw(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}globalThis&&cR()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug");class E3 extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}function A3(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function uR(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function T3(e){return parseInt(e,16)}function k3(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function C3(e){var t;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:l,notBefore:d,requestId:h,resources:f,scheme:g,uri:y,version:b}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(l&&l.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${l}`);if(!y)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(b!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${b}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 40`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const _=uR(e.address),S=g?`${g}://${r}`:r,E=e.statement?`${e.statement} 41`:"",x=`${S} wants you to sign in with your Ethereum account: 42${_} 43 44${E}`;let k=`URI: ${y} 45Version: ${b} 46Chain ID: ${n}${l?` 47Nonce: ${l}`:""} 48Issued At: ${i.toISOString()}`;if(s&&(k+=` 49Expiration Time: ${s.toISOString()}`),d&&(k+=` 50Not Before: ${d.toISOString()}`),h&&(k+=` 51Request ID: ${h}`),f){let M=` 52Resources:`;for(const P of f){if(!P||typeof P!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${P}`);M+=` 53- ${P}`}k+=M}return`${x} 54${k}`}class Xt extends Error{constructor({message:t,code:n,cause:r,name:s}){var i;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(i=s??(r instanceof Error?r.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=n}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class Pd extends Xt{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function O3({error:e,options:t}){var n,r,s;const{publicKey:i}=t;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Xt({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=i.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Xt({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=i.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Xt({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new Xt({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Xt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Xt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return i.pubKeyCredParams.filter(d=>d.type==="public-key").length===0?new Xt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Xt({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const l=window.location.hostname;if(dR(l)){if(i.rp.id!==l)return new Xt({message:`The RP ID "${i.rp.id}
54" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Xt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new Xt({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Xt({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Xt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function $3({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Xt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Xt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(dR(r)){if(n.rpId!==r)return new Xt({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Xt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Xt({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Xt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class M3{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const Hm=new M3;function zw(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,s=Mi(e,["challenge","user","excludeCredentials"]),i=Ei(t).buffer,l=Object.assign(Object.assign({},n),{id:Ei(n.id).buffer}),d=Object.assign(Object.assign({},s),{challenge:i,user:l});if(r&&r.length>0){d.excludeCredentials=new Array(r.length);for(let h=0;h<r.length;h++){const f=r[h];d.excludeCredentials[h]=Object.assign(Object.assign({},f),{id:Ei(f.id).buffer,type:f.type||"public-key",transports:f.transports})}}return d}function Bw(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=Mi(e,["challenge","allowCredentials"]),s=Ei(t).buffer,i=Object.assign(Object.assign({},r),{challenge:s});if(n&&n.length>0){i.allowCredentials=new Array(n.length);for(let l=0;l<n.length;l++){const d=n[l];i.allowCredentials[l]=Object.assign(Object.assign({},d),{id:Ei(d.id).buffer,type:d.type||"public-key",transports:d.transports})}}return i}function Uw(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:es(new Uint8Array(e.response.attestationObject)),clientDataJSON:es(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function Vw(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:es(new Uint8Array(s.authenticatorData)),clientDataJSON:es(new Uint8Array(s.clientDataJSON)),signature:es(new Uint8Array(s.signature)),userHandle:s.userHandle?es(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function dR(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Dd(){var e,t;return!!(xn()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator?.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator?.credentials)===null||t===void 0?void 0:t.get)=="function")}async function hR(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Pd("Browser returned unexpected credential type",t)}:{data:null,error:new Pd("Empty credential response",t)}}
54catch(t){return{data:null,error:O3({error:t,options:e})}}}async function fR(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Pd("Browser returned unexpected credential type",t)}:{data:null,error:new Pd("Empty credential response",t)}}catch(t){return{data:null,error:$3({error:t,options:e})}}}const N3={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},j3={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Id(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),n=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),r={};for(const s of e)if(s)for(const i in s){const l=s[i];if(l!==void 0)if(Array.isArray(l))r[i]=l;else if(n(l))r[i]=l;else if(t(l)){const d=r[i];t(d)?r[i]=Id(d,l):r[i]=Id(l)}else r[i]=l}return r}function P3(e,t){return Id(N3,e,t||{})}function D3(e,t){return Id(j3,e,t||{})}class I3{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:s},i){var l;try{const{data:d,error:h}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!d)return{data:null,error:h};const f=s??Hm.createNewAbortSignal();if(d.webauthn.type==="create"){const{user:g}=d.webauthn.credential_options.publicKey;if(!g.name){const y=r;if(y)g.name=`${g.id}:${y}`;else{const _=(await this.client.getUser()).data.user,S=((l=_?.user_metadata)===null||l===void 0?void 0:l.name)||_?.email||_?.id||"User";g.name=`${g.id}:${S}`}}g.displayName||(g.displayName=g.name)}switch(d.webauthn.type){case"create":{const g=P3(d.webauthn.credential_options.publicKey,i?.create),{data:y,error:b}=await hR({publicKey:g,signal:f});return y?{data:{factorId:t,challengeId:d.id,webauthn:{type:d.webauthn.type,credential_response:y}},error:null}:{data:null,error:b}}case"request":{const g=D3(d.webauthn.credential_options.publicKey,i?.request),{data:y,error:b}=await fR(Object.assign(Object.assign({},d.webauthn.credential_options),{publicKey:g,signal:f}));return y?{data:{factorId:t,challengeId:d.id,webauthn:{type:d.webauthn.type,credential_response:y}},error:null}:{data:null,error:b}}}}catch(d){return Ee(d)?{data:null,error:d}:{data:null,error:new xr("Unexpected error in challenge",d)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Xc("rpId is required for WebAuthn authentication")};try{if(!Dd())return{data:null,error:new xr("Browser does not support WebAuthn",null)};const{data:l,error:d}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:s},{request:i});if(!l)return{data:null,error:d};const{webauthn:h}=l;return this._verify({factorId:t,challengeId:l.challengeId,webauthn:{type:h.type,rpId:n,rpOrigins:r,credential_response:h.credential_response}})}catch(l){return Ee(l)?{data:null,error:l}:{data:null,error:new xr("Unexpected error in authenticate",l)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Xc("rpId is required for WebAuthn registration")};try{if(!Dd())return{data:null,error:new xr("Browser does not support WebAuthn",null)};const{data:l,error:d}=await this._enroll({friendlyName:t});if(!l)return await this.client.mfa.listFactors().then(g=>{var y;return(y=g.data)===null||y===void 0?void 0:y.all.find(b=>b.factor_type==="webauthn"&&b.friendly_name===t&&b.status!=="unverified")}).then(g=>g?this.client.mfa.unenroll({factorId:g?.id}):void 0),{data:null,error:d};const{data:h,error:f}=await this._challenge({factorId:l.id,friendlyName:l.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:s},{create:i});return h?this._verify({factorId:l.id,challengeId:h.challengeId,webauthn:{rpId:n,rpOrigins:r,type:h.webauthn.type,credential_response:h.webauthn.credential_response}}):{data:null,error:f}}catch(l){return Ee(l)?{data:null,error:l}:{data:null,error:new xr("Unexpected error in register",l)}}}}A3();const L3={url:Uj,storageKey:Vj,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Fj,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}},ai={};class el{get jwks(){var t,n;return(n=(t=ai[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){ai[this.storageKey]=Object.assign(Object.assign({},ai[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=ai[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){ai[this.storageKey]=Object.assign(Object.assign({},ai[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.lastRefreshFailure=null,this._sessionRemovalEpoch=0,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lock=null,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},L3),t);if(this.storageKey=i.storageKey,this.instanceID=(n=el.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,el.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&xn()){const l=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(l),this.logDebugMessages&&console.trace(l)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.experimental=(r=i.experimental)!==null&&r!==void 0?r:{},this.admin=new R3({url:i.url,headers:i.headers,fetch:i.fetch,experimental:this.experimental}),this.url=i.url,this.headers=i.headers,this.fetch=lR(i.fetch),this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock!=null&&(this.lock=i.lock),this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new I3(this)}
54,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:cR()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Lw(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=Lw(this.memoryStorage)),xn()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(l){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",l)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async l=>{this._debug("received broadcast notification from other tab or client",l),(l.data.event==="TOKEN_REFRESHED"||l.data.event==="SIGNED_IN")&&(this.lastRefreshFailure=null);try{await this._notifyAllSubscribers(l.data.event,l.data.session,!1)}catch(d){this._debug("#broadcastChannel","error",d)}})}i.skipAutoInitialize||this.initialize().catch(l=>{this._debug("#initialize()","error",l)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${aR}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()):await this._initialize())(),await this.initializePromise)}async _initialize(){var t;try{let n={},r="none";if(xn()&&(n=o3(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),xn()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),Zj(i)){const h=(t=i.details)===null||t===void 0?void 0:t.code;if(h==="identity_already_exists"||h==="identity_not_found"||h==="single_identity_not_deletable")return{error:i}}return{error:i}}const{session:l,redirectType:d}=s;return this._debug("#_initialize()","detected session in URL",l,"redirect type",d),await this._saveSession(l),setTimeout(async()=>{d==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",l):await this._notifyAllSubscribers("SIGNED_IN",l)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return Ee(n)?this._returnResult({error:n}):this._returnResult({error:new xr("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const i=await je(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t?.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t?.options)===null||s===void 0?void 0:s.captchaToken}},xform:dr}),{data:l,error:d}=i;if(d||!l)return this._returnResult({data:{user:null,session:null},error:d});const h=l.session,f=l.user;return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",h)),this._returnResult({data:{user:f,session:h},error:null})}catch(i){if(Ee(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(t){var n,r,s;try{let i;if("email"in t){const{email:g,password:y,options:b}=t;let _=null,S=null;this.flowType==="pkce"&&([_,S]=await qa(this.storage,this.storageKey)),i=await je(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:b?.emailRedirectTo,body:{email:g,password:y,data:(n=b?.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:b?.captchaToken},code_challenge:_,code_challenge_method:S},xform:dr})}else if("phone"in t){const{phone:g,password:y,options:b}=t;i=await je(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:g,password:y,data:(r=b?.data)!==null&&r!==void 0?r:{},channel:(s=b?.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:b?.captchaToken}},xform:dr})}else throw new Hu("You must provide either an email or phone number and a password");const{data:l,error:d}=i;if(d||!l)return await Ht(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:d});const h=l.session,f=l.user;return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",h)),this._returnResult({data:{user:f,session:h},error:null})}catch(i){if(await Ht(this.storage,`${this.storageKey}-code-verifier`),Ee(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(t){try{let n;if("email"in t){const{email:i,password:l,options:d}=t;n=await je(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:l,gotrue_meta_security:{captcha_token:d?.captchaToken}},xform:Dw})}else if("phone"in t){const{phone:i,password:l,options:d}=t;n=await je(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:l,gotrue_meta_security:{captcha_token:d?.captchaToken}},xform:Dw})}else throw new Hu("You must provide either an email or phone number and a password");const{data:r,error:s}=n;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!r||!r.session||!r.user){const i=new oi;return this._returnResult({data:{user:null,session:null},error:i})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(Ee(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,s,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this.lock!=null?this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t)):this._exchangeCodeForSession(t)}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,s,i,l,d,h,f,g,y,b;let _,S;if("message"in t)_=t.message,S=t.signature;else{const{chain:E,wallet:x,statement:k,options:M}=t;let P;if(xn())if(typeof x=="object")P=x;else{const ne=window;if("ethereum"in ne&&typeof ne.ethereum=="object"&&"request"in ne.ethereum&&typeof ne.ethereum.request=="function")P=ne.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof x!="object"||!M?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");P=x}const I=new URL((n=M?.url)!==null&&n!==void 0?n:window.location.href),F=await P.request({method:"eth_requestAccounts"}).then(ne=>ne).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!F||F.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const G=uR(F[0]);let U=(r=M?.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!U){const ne=await P.request({method:"eth_chainId"});U=T3(ne)}const V={domain:I.host,address:G,statement:k,uri:I.href,version:"1",chainId:U,nonce:(s=M?.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(l=(i=M?.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&l!==void 0?l:new Date,expirationTime:(d=M?.signInWithEthereum)===null||d===void 0?void 0:d.expirationTime,notBefore:(h=M?.signInWithEthereum)===null||h===void 0?void 0:h.notBefore,requestId:(f=M?.signInWithEthereum)===null||f===void 0?void 0:f.requestId,resources:(g=M?.signInWithEthereum)===null||g===void 0?void 0:g.resources};_=C3(V),S=await P.request({method:"personal_sign",params:[k3(_),G]})}try{const{data:E,error:x}=await je(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:_,signature:S},!((y=t.options)===null||y===void 0)&&y.captchaToken?{gotrue_meta_security:{captcha_token:(b=t.options)===null||b===void 0?void 0:b.captchaToken}}:null),xform:dr});if(x)throw x;if(!E||!E.session||!E.user){const k=new oi;return this._returnResult({data:{user:null,session:null},error:k})}return E.session&&(await this._saveSession(E.session),await this._notifyAllSubscribers("SIGNED_IN",E.session)),this._returnResult({data:Object.assign({},E),error:x})}
54catch(E){if(Ee(E))return this._returnResult({data:{user:null,session:null},error:E});throw E}}async signInWithSolana(t){var n,r,s,i,l,d,h,f,g,y,b,_;let S,E;if("message"in t)S=t.message,E=t.signature;else{const{chain:x,wallet:k,statement:M,options:P}=t;let I;if(xn())if(typeof k=="object")I=k;else{const G=window;if("solana"in G&&typeof G.solana=="object"&&("signIn"in G.solana&&typeof G.solana.signIn=="function"||"signMessage"in G.solana&&typeof G.solana.signMessage=="function"))I=G.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof k!="object"||!P?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");I=k}const F=new URL((n=P?.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in I&&I.signIn){const G=await I.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},P?.signInWithSolana),{version:"1",domain:F.host,uri:F.href}),M?{statement:M}:null));let U;if(Array.isArray(G)&&G[0]&&typeof G[0]=="object")U=G[0];else if(G&&typeof G=="object"&&"signedMessage"in G&&"signature"in G)U=G;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in U&&"signature"in U&&(typeof U.signedMessage=="string"||U.signedMessage instanceof Uint8Array)&&U.signature instanceof Uint8Array)S=typeof U.signedMessage=="string"?U.signedMessage:new TextDecoder().decode(U.signedMessage),E=U.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in I)||typeof I.signMessage!="function"||!("publicKey"in I)||typeof I!="object"||!I.publicKey||!("toBase58"in I.publicKey)||typeof I.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");S=[`${F.host} wants you to sign in with your Solana account:`,I.publicKey.toBase58(),...M?["",M,""]:[""],"Version: 1",`URI: ${F.href}`,`Issued At: ${(s=(r=P?.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=P?.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${P.signInWithSolana.notBefore}`]:[],...!((l=P?.signInWithSolana)===null||l===void 0)&&l.expirationTime?[`Expiration Time: ${P.signInWithSolana.expirationTime}`]:[],...!((d=P?.signInWithSolana)===null||d===void 0)&&d.chainId?[`Chain ID: ${P.signInWithSolana.chainId}`]:[],...!((h=P?.signInWithSolana)===null||h===void 0)&&h.nonce?[`Nonce: ${P.signInWithSolana.nonce}`]:[],...!((f=P?.signInWithSolana)===null||f===void 0)&&f.requestId?[`Request ID: ${P.signInWithSolana.requestId}`]:[],...!((y=(g=P?.signInWithSolana)===null||g===void 0?void 0:g.resources)===null||y===void 0)&&y.length?["Resources",...P.signInWithSolana.resources.map(U=>`- ${U}`)]:[]].join(` 55`);const G=await I.signMessage(new TextEncoder().encode(S),"utf8");if(!G||!(G instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");E=G}}try{const{data:x,error:k}=await je(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:S,signature:es(E)},!((b=t.options)===null||b===void 0)&&b.captchaToken?{gotrue_meta_security:{captcha_token:(_=t.options)===null||_===void 0?void 0:_.captchaToken}}:null),xform:dr});if(k)throw k;if(!x||!x.session||!x.user){const M=new oi;return this._returnResult({data:{user:null,session:null},error:M})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:k})}catch(x){if(Ee(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(t){const n=await _r(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new Wj;const{data:i,error:l}=await je(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:dr});if(await Ht(this.storage,`${this.storageKey}-code-verifier`),l)throw l;if(!i||!i.session||!i.user){const d=new oi;return this._returnResult({data:{user:null,session:null,redirectType:null},error:d})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers(s==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:l})}catch(i){if(await Ht(this.storage,`${this.storageKey}-code-verifier`),Ee(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:i,nonce:l}=t,d=await je(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:l,gotrue_meta_security:{captcha_token:n?.captchaToken}},xform:dr}),{data:h,error:f}=d;if(f)return this._returnResult({data:{user:null,session:null},error:f});if(!h||!h.session||!h.user){const g=new oi;return this._returnResult({data:{user:null,session:null},error:g})}return h.session&&(await this._saveSession(h.session),await this._notifyAllSubscribers("SIGNED_IN",h.session)),this._returnResult({data:h,error:f})}catch(n){if(Ee(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,s,i,l;
55try{if("email"in t){const{email:d,options:h}=t;let f=null,g=null;this.flowType==="pkce"&&([f,g]=await qa(this.storage,this.storageKey));const{error:y}=await je(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:d,data:(n=h?.data)!==null&&n!==void 0?n:{},create_user:(r=h?.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:h?.captchaToken},code_challenge:f,code_challenge_method:g},redirectTo:h?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:y})}if("phone"in t){const{phone:d,options:h}=t,{data:f,error:g}=await je(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:d,data:(s=h?.data)!==null&&s!==void 0?s:{},create_user:(i=h?.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:h?.captchaToken},channel:(l=h?.channel)!==null&&l!==void 0?l:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:f?.message_id},error:g})}throw new Hu("You must provide either an email or phone number.")}catch(d){if(await Ht(this.storage,`${this.storageKey}-code-verifier`),Ee(d))return this._returnResult({data:{user:null,session:null},error:d});throw d}}async verifyOtp(t){var n,r;try{let s,i;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:l,error:d}=await je(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:dr});if(d)throw d;if(!l)throw new Error("An error occurred on token verification.");const h=l.session,f=l.user;return h?.access_token&&(await this._saveSession(h),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",h)),this._returnResult({data:{user:f,session:h},error:null})}catch(s){if(Ee(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var n,r,s,i,l;
55try{let d=null,h=null;this.flowType==="pkce"&&([d,h]=await qa(this.storage,this.storageKey));const f=await je(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=t?.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:d,code_challenge_method:h}),headers:this.headers,xform:w3});return!((i=f.data)===null||i===void 0)&&i.url&&xn()&&!(!((l=t.options)===null||l===void 0)&&l.skipBrowserRedirect)&&window.location.assign(f.data.url),this._returnResult(f)}catch(d){if(await Ht(this.storage,`${this.storageKey}-code-verifier`),Ee(d))return this._returnResult({data:null,error:d});throw d}}async reauthenticate(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate()):await this._reauthenticate()}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new un;const{error:s}=await je(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(Ee(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:i}=t;let l=null,d=null;this.flowType==="pkce"&&([l,d]=await qa(this.storage,this.storageKey));const{error:h}=await je(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i?.captchaToken},code_challenge:l,code_challenge_method:d},redirectTo:i?.emailRedirectTo});return h&&await Ht(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:h})}else if("phone"in t){const{phone:r,type:s,options:i}=t,{data:l,error:d}=await je(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:i?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:l?.message_id},error:d})}throw new Hu("You must provide either an email or phone number and a type")}catch(n){if(await Ht(this.storage,`${this.storageKey}-code-verifier`),Ee(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async t=>t)):await this._useSession(async t=>t)}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lock!=null&&!this.lockAcquired&&this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await _r(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
55id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<Qp:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const l=await _r(this.userStorage,this.storageKey+"-user");l?.user?t.user=l.user:t.user=Xp()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const l={value:this.suppressGetSessionWarning};t.user=y3(t.user,l),l.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);if(i){if(!!(t.expires_at&&t.expires_at*1e3>Date.now())){const d=await _r(this.storage,this.storageKey);if(d&&d.refresh_token===t.refresh_token)return this._returnResult({data:{session:t},error:null})}return this._returnResult({data:{session:null},error:i})}return this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;let n;return this.lock!=null?n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser()):n=await this._getUser(),n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await je(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:aa}):await this._useSession(async n=>{var r,s,i;const{data:l,error:d}=n;if(d)throw d;return!(!((r=l.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new un}:await je(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=l.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:aa})})}catch(n){if(Ee(n))return qu(n)&&(await this._removeSession(),await Ht(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n)):await this._updateUser(t,n)}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new un;const l=s.session;let d=null,h=null;this.flowType==="pkce"&&t.email!=null&&([d,h]=await qa(this.storage,this.storageKey));const{data:f,error:g}=await je(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n?.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:d,code_challenge_method:h}),jwt:l.access_token,xform:aa});if(g)throw g;return l.user=f.user,await this._saveSession(l),await this._notifyAllSubscribers("USER_UPDATED",l),this._returnResult({data:{user:l.user},error:null})})}catch(r){if(await Ht(this.storage,`${this.storageKey}-code-verifier`),Ee(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t)):await this._setSession(t)}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new un;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:l}=Ku(t.access_token);if(l.exp&&(r=l.exp,s=r<=n),s){const{data:d,error:h}=await this._callRefreshToken(t.refresh_token);if(h)return this._returnResult({data:{user:null,session:null},error:h});if(!d)return{data:{user:null,session:null},error:null};i=d}else{const{data:d,error:h}=await this._getUser(t.access_token);if(h)return this._returnResult({data:{user:null,session:null},error:h});i={access_token:t.access_token,refresh_token:t.refresh_token,user:d.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(n){if(Ee(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t)):await this._refreshSession(t)}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:l,error:d}=n;
55if(d)throw d;t=(r=l.session)!==null&&r!==void 0?r:void 0}if(!t?.refresh_token)throw new un;const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(Ee(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){var r;try{if(!xn())throw new Gu("No browser detected.");if(t.error||t.error_description||t.error_code)throw new Gu(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Tw("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Gu("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Tw("No code detected.");const{data:P,error:I}=await this._exchangeCodeForSession(t.code);if(I)throw I;const F=new URL(window.location.href);return F.searchParams.delete("code"),window.history.replaceState(window.history.state,"",F.toString()),{data:{session:P.session,redirectType:(r=P.redirectType)!==null&&r!==void 0?r:null},error:null}}const{provider_token:s,provider_refresh_token:i,access_token:l,refresh_token:d,expires_in:h,expires_at:f,token_type:g}=t;if(!l||!h||!d||!g)throw new Gu("No session defined in URL");const y=Math.round(Date.now()/1e3),b=parseInt(h);let _=y+b;f&&(_=parseInt(f));const S=_-y;S*1e3<=po&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${S}s, should have been closer to ${b}s`);const E=_-b;y-E>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",E,_,y):y-E<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",E,_,y);const{data:x,error:k}=await this._getUser(l);if(k)throw k;const M={provider_token:s,provider_refresh_token:i,access_token:l,expires_in:b,expires_at:_,refresh_token:d,token_type:g,user:x.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:M,redirectType:t.type},error:null})}catch(s){if(Ee(s))return this._returnResult({data:{session:null,redirectType:null},error:s});throw s}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error||t.error_description||t.error_code)}async _isPKCECallback(t){const n=await _r(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t)):await this._signOut(t)}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i&&!qu(i))return this._returnResult({error:i});const l=(r=s.session)===null||r===void 0?void 0:r.access_token;if(l){const{error:d}=await this.admin.signOut(l,t);if(d&&!(Kj(d)&&(d.status===404||d.status===401||d.status===403)||qu(d)))return this._returnResult({error:d})}return t!=="others"&&(await this._removeSession(),await Ht(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=r3(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)}):await this._emitInitialSession(n)))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:l}=n;if(l)throw l;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),qu(i)?console.warn(i):console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await qa(this.storage,this.storageKey,!0));try{return await je(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(await Ht(this.storage,`${this.storageKey}-code-verifier`),Ee(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(Ee(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:s}=await this._useSession(async i=>{var l,d,h,f,g;const{data:y,error:b}=i;if(b)throw b;const _=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(l=t.options)===null||l===void 0?void 0:l.redirectTo,scopes:(d=t.options)===null||d===void 0?void 0:d.scopes,queryParams:(h=t.options)===null||h===void 0?void 0:h.queryParams,skipBrowserRedirect:!0});return await je(this.fetch,"GET",_,{headers:this.headers,jwt:(g=(f=y.session)===null||f===void 0?void 0:f.access_token)!==null&&g!==void 0?g:void 0})});if(s)throw s;return xn()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r?.url),this._returnResult({data:{provider:t.provider,url:r?.url},error:null})}catch(r){if(Ee(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:s,data:{session:i}}=n;
55if(s)throw s;const{options:l,provider:d,token:h,access_token:f,nonce:g}=t,y=await je(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=i?.access_token)!==null&&r!==void 0?r:void 0,body:{provider:d,id_token:h,access_token:f,nonce:g,link_identity:!0,gotrue_meta_security:{captcha_token:l?.captchaToken}},xform:dr}),{data:b,error:_}=y;return _?this._returnResult({data:{user:null,session:null},error:_}):!b||!b.session||!b.user?this._returnResult({data:{user:null,session:null},error:new oi}):(b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("USER_UPDATED",b.session)),this._returnResult({data:b,error:_}))}catch(s){if(await Ht(this.storage,`${this.storageKey}-code-verifier`),Ee(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:l}=n;if(l)throw l;return await je(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(Ee(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n="#_refreshAccessToken()";this._debug(n,"begin");try{const r=Date.now();return await i3(async s=>(s>0&&await s3(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await je(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:dr})),(s,i)=>{const l=200*Math.pow(2,s);return i&&kw(i)&&Date.now()+l-r<po})}catch(r){if(this._debug(n,"error",r),Ee(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),xn()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await _r(this.storage,this.storageKey);if(s&&this.userStorage){let l=await _r(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!l&&(l={user:s.user},await mi(this.userStorage,this.storageKey+"-user",l)),s.user=(t=l?.user)!==null&&t!==void 0?t:Xp()}else if(s&&!s.user&&!s.user){const l=await _r(this.storage,this.storageKey+"-user");l&&l?.user?(s.user=l.user,await Ht(this.storage,this.storageKey+"-user"),await mi(this.storage,this.storageKey,s)):s.user=Xp()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const i=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Qp;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${Qp}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:l}=await this._callRefreshToken(s.refresh_token);l&&(Yj(l)?this._debug(r,"refresh discarded by commit guard",l):this._debug(r,"refresh failed",l))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:l,error:d}=await this._getUser(s.access_token);!d&&l?.user?(s.user=l.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(l){console.error("Error getting user data:",l),this._debug(r,"error getting user data, skipping SIGNED_IN notification",l)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new un;if(this.refreshingDeferred)return this.refreshingDeferred.promise;if(this.lastRefreshFailure&&this.lastRefreshFailure.refreshToken===t&&Date.now()<this.lastRefreshFailure.expiresAt)return this._debug("#_callRefreshToken()","returning c
55ached failure (cooldown active)"),this.lastRefreshFailure.result;const s="#_callRefreshToken()";this._debug(s,"begin");try{this.refreshingDeferred=new sh;const i=await _r(this.storage,this.storageKey),{data:l,error:d}=await this._refreshAccessToken(t);if(d)throw d;if(!l.session)throw new un;const h=await _r(this.storage,this.storageKey);if(i!==null&&(h===null||h.refresh_token!==i.refresh_token)){this._debug(s,"commit guard: storage changed since refresh started, discarding rotated tokens",{startedWith:"present",nowHolds:h?"replaced":"cleared"});const b={data:null,error:new Cw};return this.refreshingDeferred.resolve(b),b}const g=this._sessionRemovalEpoch;if(await this._saveSession(l.session),this._sessionRemovalEpoch!==g){this._debug(s,"commit guard (post-save): _removeSession ran during _saveSession, undoing write"),await Ht(this.storage,this.storageKey),this.userStorage&&await Ht(this.userStorage,this.storageKey+"-user");const b={data:null,error:new Cw};return this.refreshingDeferred.resolve(b),b}await this._notifyAllSubscribers("TOKEN_REFRESHED",l.session);const y={data:l.session,error:null};return this.lastRefreshFailure=null,this.refreshingDeferred.resolve(y),y}catch(i){if(this._debug(s,"error",i),Ee(i)){const l={data:null,error:i};if(!kw(i)){const d=await _r(this.storage,this.storageKey);!!(d?.expires_at&&d.expires_at*1e3>Date.now())?this._debug(s,"proactive refresh failed, access token still valid â preserving session"):await this._removeSession()}return this.lastRefreshFailure={refreshToken:t,result:l,expiresAt:Date.now()+Bj},(n=this.refreshingDeferred)===null||n===void 0||n.resolve(l),l}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,r=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const i=[],l=Array.from(this.stateChangeEmitters.values()).map(async d=>{try{await d.callback(t,n)}catch(h){i.push(h)}});if(await Promise.all(l),i.length>0){for(let d=0;d<i.length;d+=1)console.error(i[d]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Ht(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await mi(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=jw(s);await mi(this.storage,this.storageKey,i)}else{const s=jw(n);await mi(this.storage,this.storageKey,s)}}async _removeSession(){this._sessionRemovalEpoch+=1,this._debug("#_removeSession()"),this.lastRefreshFailure=null,this.suppressGetSessionWarning=!1,await Ht(this.storage,this.storageKey),await Ht(this.storage,this.storageKey+"-code-verifier"),await Ht(this.storage,this.storageKey+"-user"),this.userStorage&&await Ht(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&xn()&&window?.removeEventListener&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),po);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async dispose(){var t;this._removeVisibilityChangedCallback(),await this._stopAutoRefresh(),(t=this.broadcastChannel)===null||t===void 0||t.close(),this.broadcastChannel=null,this.stateChangeEmitters.clear()}async _autoRefreshTokenTick(){if(this._debug("#_autoRefreshTokenTick()","begin"),this.lock!=null){try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/po);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${po}ms, refresh threshold is ${Ic} ticks`),s<=Ic&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t instanceof E3)this._debug("auto refresh token tick lock not available");else throw t}return}if(this.refreshingDeferred!==null){this._debug("#_autoRefreshTokenTick()","refresh already in flight, skipping");return}try{const t=Date.now();try{await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/po);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${po}ms, refresh threshold is ${Ic} ticks`),s<=Ic&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!xn()||!window?.addEventListener)return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window?.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;if(this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"){if(this.autoRefreshToken&&this._startAutoRefresh(),!t)if(await this.initializePromise,this.lock!=null)await this._acquireLock(this.lockAcquireTimeout,async()=>
55{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()});else{if(document.visibilityState!=="visible"){this._debug(n,"visibilityState is no longer visible, skipping recovery");return}await this._recoverAndRefresh()}}else document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r?.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r?.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,l]=await qa(this.storage,this.storageKey),d=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(l)}`});s.push(d.toString())}if(r?.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r?.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?this._returnResult({data:null,error:i}):await je(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s?.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(Ee(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:l}=n;if(l)return this._returnResult({data:null,error:l});const d=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:h,error:f}=await je(this.fetch,"POST",`${this.url}/factors`,{body:d,headers:this.headers,jwt:(r=i?.session)===null||r===void 0?void 0:r.access_token});return f?this._returnResult({data:null,error:f}):(t.factorType==="totp"&&h.type==="totp"&&(!((s=h?.totp)===null||s===void 0)&&s.qr_code)&&(h.totp.qr_code=`data:image/svg+xml;utf-8,${h.totp.qr_code}`),this._returnResult({data:h,error:null}))})}catch(n){if(Ee(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){const n=async()=>{try{return await this._useSession(async r=>{var s;const{data:i,error:l}=r;if(l)return this._returnResult({data:null,error:l});const d=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?Uw(t.webauthn.credential_response):Vw(t.webauthn.credential_response)})}:{code:t.code}),{data:h,error:f}=await je(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:d,headers:this.headers,jwt:(s=i?.session)===null||s===void 0?void 0:s.access_token});return f?this._returnResult({data:null,error:f}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+h.expires_in},h)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",h),this._returnResult({data:h,error:f}))})}catch(r){if(Ee(r))return this._returnResult({data:null,error:r});throw r}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,n):n()}async _challenge(t){const n=async()=>{try{return await this._useSession(async r=>{var s;const{data:i,error:l}=r;if(l)return this._returnResult({data:null,error:l});const d=await je(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(s=i?.session)===null||s===void 0?void 0:s.access_token});if(d.error)return d;const{data:h}=d;if(h.type!=="webauthn")return{data:h,error:null};switch(h.webauthn.type){case"create":return{data:Object.assign(Object.assign({},h),{webauthn:Object.assign(Object.assign({},h.webauthn),{credential_options:Object.assign(Object.assign({},h.webauthn.credential_options),{publicKey:zw(h.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},h),{webauthn:Object.assign(Object.assign({},h.webauthn),{credential_options:Object.assign(Object.assign({},h.webauthn.credential_options),{publicKey:Bw(h.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(Ee(r))return this._returnResult({data:null,error:r});throw r}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,n):n()}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(t=n?.factors)!==null&&t!==void 0?t:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,r,s,i;if(t)try{const{payload:_}=Ku(t);let S=null;_.aal&&(S=_.aal);let E=S;const{data:{user:x},error:k}=await this.getUser(t);if(k)return this._returnResult({data:null,error:k});((r=(n=x?.factors)===null||n===void 0?void 0:n.filter(I=>I.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(E="aal2");const P=_.amr||[];return{data:{currentLevel:S,nextLevel:E,currentAuthenticationMethods:P},error:null}}catch(_){if(Ee(_))return this._returnResult({data:null,error:_});throw _}const{data:{session:l},error:d}
55=await this.getSession();if(d)return this._returnResult({data:null,error:d});if(!l)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:h}=Ku(l.access_token);let f=null;h.aal&&(f=h.aal);let g=f;((i=(s=l.user.factors)===null||s===void 0?void 0:s.filter(_=>_.status==="verified"))!==null&&i!==void 0?i:[]).length>0&&(g="aal2");const b=h.amr||[];return{data:{currentLevel:f,nextLevel:g,currentAuthenticationMethods:b},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?await je(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new un})})}catch(n){if(Ee(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new un});const l=await je(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:d=>({data:d,error:null})});return l.data&&l.data.redirect_url&&xn()&&!n?.skipBrowserRedirect&&window.location.assign(l.data.redirect_url),l})}catch(r){if(Ee(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new un});const l=await je(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:d=>({data:d,error:null})});return l.data&&l.data.redirect_url&&xn()&&!n?.skipBrowserRedirect&&window.location.assign(l.data.redirect_url),l})}catch(r){if(Ee(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await je(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new un})})}catch(t){if(Ee(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?(await je(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new un})})}catch(n){if(Ee(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(d=>d.kid===t);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(d=>d.kid===t),r&&this.jwks_cached_at+Hj>s)return r;const{data:i,error:l}=await je(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(l)throw l;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,r=i.keys.find(d=>d.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:_,error:S}
55=await this.getSession();if(S||!_.session)return this._returnResult({data:null,error:S});r=_.session.access_token}const{header:s,payload:i,signature:l,raw:{header:d,payload:h}}=Ku(r);if(!n?.allowExpired)try{p3(i.exp)}catch(_){throw new Nd(_ instanceof Error?_.message:"JWT validation failed")}const f=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n?.keys?{keys:n.keys}:n?.jwks);if(!f){const{error:_}=await this.getUser(r);if(_)throw _;return{data:{claims:i,header:s,signature:l},error:null}}const g=m3(s.alg),y=await crypto.subtle.importKey("jwk",f,g,!0,["verify"]);if(!await crypto.subtle.verify(g,y,l,t3(`${d}.${h}`)))throw new Nd("Invalid JWT signature");return{data:{claims:i,header:s,signature:l},error:null}}catch(r){if(Ee(r))return this._returnResult({data:null,error:r});throw r}}async signInWithPasskey(t){var n,r,s;wr(this.experimental);try{if(!Dd())return this._returnResult({data:null,error:new xr("Browser does not support WebAuthn",null)});const{data:i,error:l}=await this._startPasskeyAuthentication({options:{captchaToken:(n=t?.options)===null||n===void 0?void 0:n.captchaToken}});if(l||!i)return this._returnResult({data:null,error:l});const d=Bw(i.options),h=(s=(r=t?.options)===null||r===void 0?void 0:r.signal)!==null&&s!==void 0?s:Hm.createNewAbortSignal(),{data:f,error:g}=await fR({publicKey:d,signal:h});if(g||!f)return this._returnResult({data:null,error:g??new xr("WebAuthn ceremony failed",null)});const y=Vw(f);return this._verifyPasskeyAuthentication({challengeId:i.challenge_id,credential:y})}catch(i){if(Ee(i))return this._returnResult({data:null,error:i});throw i}}async registerPasskey(t){var n,r;wr(this.experimental);try{if(!Dd())return this._returnResult({data:null,error:new xr("Browser does not support WebAuthn",null)});const{data:s,error:i}=await this._startPasskeyRegistration();if(i||!s)return this._returnResult({data:null,error:i});const l=zw(s.options),d=(r=(n=t?.options)===null||n===void 0?void 0:n.signal)!==null&&r!==void 0?r:Hm.createNewAbortSignal(),{data:h,error:f}=await hR({publicKey:l,signal:d});if(f||!h)return this._returnResult({data:null,error:f??new xr("WebAuthn ceremony failed",null)});const g=Uw(h);return this._verifyPasskeyRegistration({challengeId:s.challenge_id,credential:g})}catch(s){if(Ee(s))return this._returnResult({data:null,error:s});throw s}}async _startPasskeyRegistration(){wr(this.experimental);try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new un});const{data:s,error:i}=await je(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:n.access_token,body:{}});return i?this._returnResult({data:null,error:i}):this._returnResult({data:s,error:null})})}catch(t){if(Ee(t))return this._returnResult({data:null,error:t});throw t}}async _verifyPasskeyRegistration(t){wr(this.experimental);try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new un});const{data:i,error:l}=await je(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:r.access_token,body:{challenge_id:t.challengeId,credential:t.credential}});return l?this._returnResult({data:null,error:l}):this._returnResult({data:i,error:null})})}catch(n){if(Ee(n))return this._returnResult({data:null,error:n});throw n}}async _startPasskeyAuthentication(t){var n;wr(this.experimental);try{const{data:r,error:s}=await je(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(n=t?.options)===null||n===void 0?void 0:n.captchaToken}}});return s?this._returnResult({data:null,error:s}):this._returnResult({data:r,error:null})}catch(r){if(Ee(r))return this._returnResult({data:null,error:r});throw r}}async _verifyPasskeyAuthentication(t){wr(this.experimental);try{const{data:n,error:r}=await je(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:t.challengeId,credential:t.credential},xform:dr});return r?this._returnResult({data:null,error:r}):(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:n,error:null}))}catch(n){if(Ee(n))return this._returnResult({data:null,error:n});throw n}}async _listPasskeys(){wr(this.experimental);try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new un});const{data:s,error:i}=await je(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:n.access_token,xform:l=>({data:l,error:null})});return i?this._returnResult({data:null,error:i}):this._returnResult({data:s,error:null})})}catch(t){if(Ee(t))return this._returnResult({data:null,error:t});throw t}}async _updatePasskey(t){wr(this.experimental);try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new un});const{data:i,error:l}=await je(this.fetch,"PATCH",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:r.access_token,body:{friendly_name:t.friendlyName}});return l?this._returnResult({data:null,error:l}):this._returnResult({data:i,error:null})})}catch(n){if(Ee(n))return this._returnResult({data:null,error:n});throw n}}async _deletePasskey(t){wr(this.experimental);try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new un});const{error:i}
55=await je(this.fetch,"DELETE",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:r.access_token,noResolveJson:!0});return i?this._returnResult({data:null,error:i}):this._returnResult({data:null,error:null})})}catch(n){if(Ee(n))return this._returnResult({data:null,error:n});throw n}}}el.nextInstanceID={};const z3=el,B3="2.108.2";let Lc="",Ld;if(typeof Deno<"u"){var tm;Lc="deno",Ld=(tm=Deno.version)===null||tm===void 0?void 0:tm.deno}else if(typeof document<"u")Lc="web";else if(typeof navigator<"u"&&navigator.product==="ReactNative")Lc="react-native";else{var nm;Lc="node",Ld=typeof process<"u"?(nm=process.version)===null||nm===void 0?void 0:nm.replace(/^v/,""):void 0}const pR=[`runtime=${Lc}`];Ld&&pR.push(`runtime-version=${Ld}`);const U3={"X-Client-Info":`supabase-js/${B3}; ${pR.join("; ")}`},V3={headers:U3},F3={schema:"public"},q3={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},H3={},G3={enabled:!1,respectSamplingDecision:!0};function K3(e,t,n,r){function s(i){return i instanceof n?i:new n(function(l){l(i)})}return new(n||(n=Promise))(function(i,l){function d(g){try{f(r.next(g))}catch(y){l(y)}}function h(g){try{f(r.throw(g))}catch(y){l(y)}}function f(g){g.done?i(g.value):s(g.value).then(d,h)}f((r=r.apply(e,[])).next())})}let rm=null;const Z3="@opentelemetry/api";function W3(){return rm===null&&(rm=import(Z3).catch(()=>null)),rm}function Y3(){return K3(this,void 0,void 0,function*(){try{const e=yield W3();if(!e||!e.propagation||!e.context)return null;const t={};e.propagation.inject(e.context.active(),t);const n=t.traceparent;return n?{traceparent:n,tracestate:t.tracestate,baggage:t.baggage}:null}catch{return null}})}function J3(e){if(!e||typeof e!="string")return null;const t=e.split("-");if(t.length!==4)return null;const[n,r,s,i]=t;if(n.length!==2||r.length!==32||s.length!==16||i.length!==2)return null;const l=/^[0-9a-f]+$/i;return!l.test(n)||!l.test(r)||!l.test(s)||!l.test(i)||r==="00000000000000000000000000000000"||s==="0000000000000000"?null:{version:n,traceId:r,parentId:s,traceFlags:i,isSampled:(parseInt(i,16)&1)===1}}function Q3(e,t){if(!e||!t||t.length===0)return!1;let n;if(e instanceof URL)n=e;else try{n=new URL(e)}catch{return!1}for(const r of t)try{if(typeof r=="string"){if(X3(n.hostname,r))return!0}else if(r instanceof RegExp){if(r.test(n.hostname))return!0}else if(typeof r=="function"&&r(n))return!0}catch{continue}return!1}function X3(e,t){if(t===e)return!0;if(t.startsWith("*.")){const n=t.slice(2);if(e.endsWith(n)&&(e===n||e.endsWith("."+n)))return!0}return!1}function eP(e){const t=[];try{const n=new URL(e);t.push(n.hostname)}catch{}return t.push("*.supabase.co","*.supabase.in"),t.push("localhost","127.0.0.1","[::1]"),t}function tl(e){"@babel/helpers - typeof";return tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tl(e)}function tP(e,t){if(tl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nP(e){var t=tP(e,"string");return tl(t)=="symbol"?t:t+""}function rP(e,t,n){return(t=nP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fw(Object(n),!0).forEach(function(r){rP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const oP=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),aP=()=>Headers,sP=(e,t,n,r,s)=>{const i=oP(r),l=aP(),d=s?.enabled===!0,h=s?.respectSamplingDecision!==!1,f=d?eP(t):null;return async(g,y)=>{var b;const _=(b=await n())!==null&&b!==void 0?b:e;let S=new l(y?.headers);if(S.has("apikey")||S.set("apikey",e),S.has("Authorization")||S.set("Authorization",`Bearer ${_}`),f){const E=await iP(g,f,h);E&&(E.traceparent&&!S.has("traceparent")&&S.set("traceparent",E.traceparent),E.tracestate&&!S.has("tracestate")&&S.set("tracestate",E.tracestate),E.baggage&&!S.has("baggage")&&S.set("baggage",E.baggage))}return i(g,Vt(Vt({},y),{},{headers:S}))}};async function iP(e,t,n){if(!Q3(typeof e=="string"||e instanceof URL?e:e.url,t))return null;const r=await Y3();if(!r||!r.traceparent)return null;if(n){const s=J3(r.traceparent);if(s&&!s.isSampled)return null}return r}function qw(e){return typeof e=="boolean"?{enabled:e}:e}function cP(e){return e.endsWith("/")?e:e+"/"}function lP(e,t){var n,r,s,i,l,d;const{db:h,auth:f,realtime:g,global:y}=e,{db:b,auth:_,realtime:S,global:E}=t,x=qw(e.tracePropagation),k=qw(t.tracePropagation),M={db:Vt(Vt({},b),h),auth:Vt(Vt({},_),f),realtime:Vt(Vt({},S),g),storage:{},global:Vt(Vt(Vt({},E),y),{},{headers:Vt(Vt({},(n=E?.headers)!==null&&n!==void 0?n:{}),(r=y?.headers)!==null&&r!==void 0?r:{})}),tracePropagation:{enabled:(s=(i=x?.enabled)!==null&&i!==void 0?i:k?.enabled)!==null&&s!==void 0?s:!1,respectSamplingDecision:(l=(d=x?.respectSamplingDecision)!==null&&d!==void 0?d:k?.respectSamplingDecision)!==null&&l!==void 0?l:!0},accessToken:async()=>""};return e.accessToken?M.accessToken=e.accessToken:delete M.accessToken,M}function uP(e){const t=e?.trim();if(!t)throw new Error("supabaseUrl is required.");
55if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(cP(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var dP=class extends z3{constructor(e){super(e)}},hP=class{constructor(e,t,n){var r,s;this.supabaseUrl=e,this.supabaseKey=t;const i=uP(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",i),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",i),this.storageUrl=new URL("storage/v1",i),this.functionsUrl=new URL("functions/v1",i);const l=`sb-${i.hostname.split(".")[0]}-auth-token`,d={db:F3,realtime:H3,auth:Vt(Vt({},q3),{},{storageKey:l}),global:V3,tracePropagation:G3},h=lP(n??{},d);if(this.settings=h,this.storageKey=(r=h.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(s=h.global.headers)!==null&&s!==void 0?s:{},h.accessToken)this.accessToken=h.accessToken,this.auth=new Proxy({},{get:(g,y)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(y)} is not possible`)}});else{var f;this.auth=this._initSupabaseAuthClient((f=h.auth)!==null&&f!==void 0?f:{},this.headers,h.global.fetch)}this.fetch=sP(t,e,this._getAccessToken.bind(this),h.global.fetch,h.tracePropagation),this.realtime=this._initRealtimeClient(Vt({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},h.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(g=>this.realtime.setAuth(g)).catch(g=>console.warn("Failed to set initial Realtime auth token:",g)),this.rest=new vN(new URL("rest/v1",i).href,{headers:this.headers,schema:h.db.schema,fetch:this.fetch,timeout:h.db.timeout,urlLengthLimit:h.db.urlLengthLimit}),this.storage=new zj(this.storageUrl.href,this.headers,this.fetch,n?.storage),h.accessToken||this._listenForAuthEvents()}get functions(){return new lN(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,storageKey:i,flowType:l,lock:d,debug:h,throwOnError:f,experimental:g,lockAcquireTimeout:y,skipAutoInitialize:b},_,S){const E={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new dP({url:this.authUrl.href,headers:Vt(Vt({},E),_),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,flowType:l,lock:d,debug:h,throwOnError:f,experimental:g,fetch:S,lockAcquireTimeout:y,skipAutoInitialize:b,hasCustomAuthorizationHeader:Object.keys(this.headers).some(x=>x.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new ej(this.realtimeUrl.href,Vt(Vt({},e),{},{params:Vt(Vt({},{apikey:this.supabaseKey}),e?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t?.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const fP=(e,t,n)=>new hP(e,t,n);function pP(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}pP()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
55ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function mP(){if(typeof window>"u")return;const e=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(x=>e===x||e.endsWith("."+x)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=n?e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i"))?.[1]??e.match(new RegExp("^("+r+")(?=[.-])","i"))?.[1]:void 0,i=window.parent&&window.parent!==window;if(!s||!i)return localStorage;const l=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),d=l?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,h=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),f=h&&d.test(h)?[h]:l?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],g="lovable-preview-auth:result",y=2e3,b=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),_=(x,k,M)=>new Promise(P=>{const I=b();let F=!1,G;const U=W=>{F||(F=!0,clearTimeout(G),window.removeEventListener("message",V),P(W))},V=W=>{if(f.indexOf(W.origin)<0)return;const pe=W.data;pe&&pe.type===g&&pe.requestId===I&&U(pe)};window.addEventListener("message",V);const ne={type:x,requestId:I,projectId:s,key:k};M!==void 0&&(ne.value=M);for(const W of f)window.parent.postMessage(ne,W);G=setTimeout(()=>U(null),y)});let S=!0;const E=250;return{getItem:async x=>{let k=await _("lovable-preview-auth:get",x);return!k&&S&&(await new Promise(M=>
55setTimeout(M,E)),k=await _("lovable-preview-auth:get",x)),S=!1,k&&k.ok&&typeof k.value=="string"?k.value===""?(localStorage.removeItem(x),null):k.value:localStorage.getItem(x)},setItem:(x,k)=>(localStorage.setItem(x,k),_("lovable-preview-auth:set",x,k).then(()=>{})),removeItem:x=>(localStorage.removeItem(x),_("lovable-preview-auth:remove",x).then(()=>{}))}}function gP(){return fP("https://qnpupwhhgercguojnexl.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InFucHVwd2hoZ2VyY2d1b2puZXhsIiwicm9sZSI6ImFub24iLCJpYXQiOjE3Nzk5NjIxMTgsImV4cCI6MjA5NTUzODExOH0.XRG_BdDotcnz0Asu9XUQXohaiOQvlWURj_jblMAvbdc",{auth:{storage:mP(),persistSession:!0,autoRefreshToken:!0}})}let om;const qe=new Proxy({},{get(e,t,n){return om||(om=gP()),Reflect.get(om,t,n)}}),yP=Object.freeze(Object.defineProperty({__proto__:null,supabase:qe},Symbol.toStringTag,{value:"Module"})),vP=ca({type:"function"}).client(async({next:e})=>{const{data:t}=await qe.auth.getSession(),n=t.session?.access_token;return e({headers:n?{Authorization:`Bearer ${n}`}:{}})}),bP=ca(),Hw=oN(()=>({requestMiddleware:[bP],functionMiddleware:[vP]}));var vl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},_P=class extends vl{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Mg=new _P,wP={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},SP=class{#e=wP;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},ts=new SP;function xP(e){setTimeout(e,0)}var RP=typeof window>"u"||"Deno"in globalThis;function Un(){}function EP(e,t){return typeof e=="function"?e(t):e}function Gm(e){return typeof e=="number"&&e>=0&&e!==1/0}function mR(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ua(e,t){return typeof e=="function"?e(t):e}function Xn(e,t){return typeof e=="function"?e(t):e}function Gw(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:l,stale:d}=e;if(l){if(r){if(t.queryHash!==Ng(l,t.options))return!1}else if(!rl(t.queryKey,l))return!1}if(n!=="all"){const h=t.isActive();if(n==="active"&&!h||n==="inactive"&&h)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||s&&s!==t.state.fetchStatus||i&&!i(t))}function Kw(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(nl(t.options.mutationKey)!==nl(i))return!1}else if(!rl(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Ng(e,t){return(t?.queryKeyHashFn||nl)(e)}function nl(e){return JSON.stringify(e,(t,n)=>Zm(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function rl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>rl(e[n],t[n])):!1}var AP=Object.prototype.hasOwnProperty;function gR(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Zw(e)&&Zw(t);if(!r&&!(Zm(e)&&Zm(t)))return t;const i=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),d=l.length,h=r?new Array(d):{};let f=0;for(let g=0;g<d;g++){const y=r?g:l[g],b=e[y],_=t[y];if(b===_){h[y]=b,(r?g<i:AP.call(e,y))&&f++;continue}if(b===null||_===null||typeof b!="object"||typeof _!="object"){h[y]=_;continue}const S=gR(b,_,n+1);h[y]=S,S===b&&f++}return i===d&&f===i?e:h}function Km(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Zw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Zm(e){if(!Ww(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Ww(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ww(e){return Object.prototype.toString.call(e)==="[object Object]"}function TP(e){return new Promise(t=>{ts.setTimeout(t,e)})}function Wm(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?gR(e,t):t}function kP(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function CP(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var jg=Symbol();function yR(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===jg?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function vR(e,t){return typeof e=="function"?e(...t):!!e}function OP(e,t,n){let r=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??=t(),r||(r=!0,s.aborted?n():s.addEventListener("abort",n,{once:!0})),s)}),e}var ol=(()=>{let e=()=>RP;return{isServer(){return e()},setIsServer(t){e=t}}})();function Ym(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}var $P=xP;function MP(){let e=[],t=0,n=d=>{d()},r=d=>{d()},s=$P;const i=d=>{t?e.push(d):s(()=>{n(d)})},l=()=>{const d=e;e=[],d.length&&s(()=>{r(()=>{d.forEach(h=>{n(h)})})})};return{batch:d=>{let h;t++;try{h=d()}finally{t--,t||l()}return h},batchCalls:d=>(...h)=>{i(()=>{d(...h)})},schedule:i,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{r=d},setScheduler:d=>{s=d}}}var yn=MP(),NP=class extends vl{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n
vendor: 31,978 bytes, line 55
55)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},zd=new NP;function jP(e){return Math.min(1e3*2**e,3e4)}function bR(e){return(e??"online")==="online"?zd.isOnline():!0}var Jm=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function _R(e){let t=!1,n=0,r;const s=Ym(),i=()=>s.status!=="pending",l=E=>{if(!i()){const x=new Jm(E);b(x),e.onCancel?.(x)}},d=()=>{t=!0},h=()=>{t=!1},f=()=>Mg.isFocused()&&(e.networkMode==="always"||zd.isOnline())&&e.canRun(),g=()=>bR(e.networkMode)&&e.canRun(),y=E=>{i()||(r?.(),s.resolve(E))},b=E=>{i()||(r?.(),s.reject(E))},_=()=>new Promise(E=>{r=x=>{(i()||f())&&E(x)},e.onPause?.()}).then(()=>{r=void 0,i()||e.onContinue?.()}),S=()=>{if(i())return;let E;const x=n===0?e.initialPromise:void 0;try{E=x??e.fn()}catch(k){E=Promise.reject(k)}Promise.resolve(E).then(y).catch(k=>{if(i())return;const M=e.retry??(ol.isServer()?0:3),P=e.retryDelay??jP,I=typeof P=="function"?P(n,k):P,F=M===!0||typeof M=="number"&&n<M||typeof M=="function"&&M(n,k);if(t||!F){b(k);return}n++,e.onFail?.(n,k),TP(I).then(()=>f()?void 0:_()).then(()=>{t?b(k):S()})})};return{promise:s,status:()=>s.status,cancel:l,continue:()=>(r?.(),s),cancelRetry:d,continueRetry:h,canStart:g,start:()=>(g()?S():_().then(S),s)}}var wR=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Gm(this.gcTime)&&(this.#e=ts.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ol.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(ts.clearTimeout(this.#e),this.#e=void 0)}},PP=class extends wR{#e;#t;#n;#o;#r;#s;#a;constructor(e){super(),this.#a=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#n=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Jw(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Jw(this.options);t.data!==void 0&&(this.setState(Yw(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=Wm(this.state.data,e,this.options);return this.#c({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#c({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Un).catch(Un):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Xn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===jg||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ua(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!mR(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#a||this.#i()?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#i(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#c({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},s=()=>{const d=yR(this.options,t),f=(()=>{const g={client:this.#o,queryKey:this.queryKey,meta:this.meta};return r(g),g})();return this.#a=!1,this.options.persister?this.options.persister(d,f,this):d(f)},l=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:s};return r(d),d})();this.options.behavior?.onFetch(l,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#c({type:"fetch",meta:l.fetchOptions?.meta}),this.#r=_R({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:d=>{d instanceof Jm&&d.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(d,h)=>{this.#c({type:"failed",failureCount:d,error:h})},onPause:()=>{this.#c({type:"pause"})},onContinue:()=>{this.#c({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const d=await this.#r.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Jm){if(d.silent)return this.#r.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#c({type:"error",error:d}),this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#c(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...SR(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...Yw(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const s=e.error;return{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),yn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function SR(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:bR(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Yw(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Jw(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var DP=class extends vl{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.#a=Ym(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#o=void 0;#r;#s;#a;#i;#c;#f;#p;#u;#d;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Qw(this.#t,this.options)?this.#h():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Qm(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Qm(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#w(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Xn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Km(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&Xw(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||Xn(this.options.enabled,this.#t)!==Xn(t.enabled,this.#t)||ua(this.options.staleTime,this.#t)!==ua(t.staleTime,this.#t))&&this.#g();const s=this.#y();r&&(this.#t!==n||Xn(this.options.enabled,this.#t)!==Xn(t.enabled,this.#t)||s!==this.#l)&&this.#v(s)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return LP(this,n)&&(this.#o=n,this.#s=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#o}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Un)),t}#g(){this.#_();const e=ua(this.options.staleTime,this.#t);if(ol.isServer()||this.#o.isStale||!Gm(e))return;const n=mR(this.#o.dataUpdatedAt,e)+1;this.#u=ts.setTimeout(()=>{this.#o.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#w(),this.#l=e,!(ol.isServer()||Xn(this.options.enabled,this.#t)===!1||!Gm(this.#l)||this.#l===0)&&(this.#d=ts.setInterval(()=>{(this.options.refetchIntervalInBackground||Mg.isFocused())&&this.#h()},this.#l))}#b(){this.#g(),this.#v(this.#y())}#_(){this.#u!==void 0&&(ts.clearTimeout(this.#u),this.#u=void 0)}#w(){this.#d!==void 0&&(ts.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){const n=this.#t,r=this.options,s=this.#o,i=this.#r,l=this.#s,h=e!==n?e.state:this.#n,{state:f}=e;let g={...f},y=!1,b;if(t._optimisticResults){const V=this.hasListeners(),ne=!V&&Qw(e,t),W=V&&Xw(e,n,t,r);(ne||W)&&(g={...g,...SR(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:_,errorUpdatedAt:S,status:E}=g;b=g.data;let x=!1;if(t.placeholderData!==void 0&&b===void 0&&E==="pending"){let V;s?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(V=s.data,x=!0):V=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,V!==void 0&&(E="success",b=Wm(s?.data,V,t),y=!0)}if(t.select&&b!==void 0&&!x)if(s&&b===i?.data&&t.select===this.#c)b=this.#f;else try{this.#c=t.select,b=t.select(b),b=Wm(s?.data,b,t),this.#f=b,this.#i=null}catch(V){this.#i=V}this.#i&&(_=this.#i,b=this.#f,S=Date.now(),E="error");const k=g.fetchStatus==="fetching",M=E==="pending",P=E==="error",I=M&&k,F=b!==void 0,U={status:E,fetchStatus:g.fetchStatus,isPending:M,isSuccess:E==="success",isError:P,isInitialLoading:I,isLoading:I,data:b,dataUpdatedAt:g.dataUpdatedAt,error:_,errorUpdatedAt:S,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:g.dataUpdateCount>h.dataUpdateCount||g.errorUpdateCount>h.errorUpdateCount,isFetching:k,isRefetching:k&&!M,isLoadingError:P&&!F,isPaused:g.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:P&&F,isStale:Pg(e,t),refetch:this.refetch,promise:this.#a,isEnabled:Xn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const V=U.data!==void 0,ne=U.status==="error"&&!V,W=$e=>{ne?$e.reject(U.error):V&&$e.resolve(U.data)},pe=()=>{const $e=this.#a=U.promise=Ym();W($e)},de=this.#a;switch(de.status){case"pending":e.queryHash===n.queryHash&&W(de);break;case"fulfilled":(ne||U.data!==de.value)&&pe();break;case"rejected":(!ne||U.error!==de.reason)&&pe();break}}return U}updateResult(){const e=this.#o,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#s=this.options,this.#r.data!==void 0&&(this.#p=this.#t),Km(t,e))return;this.#o=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,s=typeof r=="function"?r():r;if(s==="all"||!s&&!this.#m.size)return!0;const i=new Set(s??this.#m);return this.options.throwOnError&&i.add("error"),Object.keys(this.#o).some(l=>{const d=l;return this.#o[d]!==e[d]&&i.has(d)})};this.#x({listeners:n()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#x(e){yn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function IP(e,t){return Xn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Xn(t.retryOnMount,e)===!1)}function Qw(e,t){return IP(e,t)||e.state.data!==void 0&&Qm(e,t,t.refetchOnMount)}function Qm(e,t,n){if(Xn(t.enabled,e)!==!1&&ua(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Pg(e,t)}return!1}function Xw(e,t,n,r){return(e!==t||Xn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Pg(e,n)}function Pg(e,t){return Xn(t.enabled,e)!==!1&&e.isStaleByTime(ua(t.staleTime,e))}function LP(e,t){return!Km(e.getCurrentResult(),t)}function e1(e){return{onFetch:(t,n)=>{const r=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let d={pages:[],pageParams:[]},h=0;const f=async()=>{let g=!1;const y=S=>{OP(S,()=>t.signal,()=>g=!0)},b=yR(t.options,t.fetchOptions),_=async(S,E,x)=>{if(g)return Promise.reject();if(E==null&&S.pages.length)return Promise.resolve(S);const M=(()=>{const G={client:t.client,queryKey:t.queryKey,pageParam:E,direction:x?"backward":"forward",meta:t.options.meta};return y(G),G})(),P=await b(M),{maxPages:I}=t.options,F=x?CP:kP;return{pages:F(S.pages,P,I),pageParams:F(S.pageParams,E,I)}};if(s&&i.length){const S=s==="backward",E=S?zP:t1,x={pages:i,pageParams:l},k=E(r,x);d=await _(x,k,S)}else{const S=e??i.length;do{const E=h===0?l[0]??r.initialPageParam:t1(r,d);if(h>0&&E==null)break;d=await _(d,E),h++}while(h<S)}return d};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function t1(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function zP(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var BP=class extends wR{#e;#t;#n;#o;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||UP(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=_R({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(i,l)=>{this.#r({type:"failed",failureCount:i,error:l})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",s=!this.#o.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:s}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#r({type:"pending",context:l,variables:e,isPaused:s})}const i=await this.#o.start();return await this.#n.config.onSuccess?.(i,e,this.state.context,this,n),await this.options.onSuccess?.(i,e,this.state.context,n),await this.#n.config.onSettled?.(i,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(i,null,e,this.state.context,n),this.#r({type:"success",data:i}),i}catch(i){try{await this.#n.config.onError?.(i,e,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onError?.(i,e,this.state.context,n)}catch(l){Promise.reject(l)}try{await this.#n.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,i,e,this.state.context,n)}catch(l){Promise.reject(l)}throw this.#r({type:"error",error:i}),i}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),yn.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function UP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var xR=class extends vl{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new BP({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Zu(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Zu(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Zu(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(s=>s.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Zu(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){yn.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Kw(t,n))}findAll(e={}){return this.getAll().filter(t=>Kw(e,t))}notify(e){yn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return yn.batch(()=>Promise.all(e.map(t=>t.continue().catch(Un))))}};function Zu(e){return e.options.scope?.id}var RR=class extends vl{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,s=t.queryHash??Ng(r,t);let i=this.get(s);return i||(i=new PP({client:e,queryKey:r,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){yn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Gw(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>Gw(e,n)):t}notify(e){yn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){yn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){yn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},VP=class{#e;#t;#n;#o;#r;#s;#a;#i;constructor(e={}){this.#e=e.queryCache||new RR,this.#t=e.mutationCache||new xR,this.#n=e.defaultOptions||{},this.#o=new Map,this.#r=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#a=Mg.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=zd.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#a?.(),this.#a=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ua(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,l=EP(t,i);if(l!==void 0)return this.#e.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return yn.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;yn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return yn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=yn.batch(()=>this.#e.findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Un).catch(Un)}invalidateQueries(e,t={}){return yn.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=yn.batch(()=>this.#e.findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(Un)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Un)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(ua(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Un).catch(Un)}fetchInfiniteQuery(e){return e.behavior=e1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Un).catch(Un)}ensureInfiniteQueryData(e){return e.behavior=e1(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return zd.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#o.set(nl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#o.values()],n={};return t.forEach(r=>{rl(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(nl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{rl(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ng(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===jg&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},ER=T.createContext(void 0),Dg=e=>{const t=T.useContext(ER);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},FP=({client:e,children:t})=>(T.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),p.jsx(ER.Provider,{value:e,children:t})),AR=T.createContext(!1),qP=()=>T.useContext(AR);AR.Provider;function HP(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var GP=T.createContext(HP()),KP=()=>T.useContext(GP),ZP=(e,t,n)=>{const r=n?.state.error&&typeof e.throwOnError=="function"?vR(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},WP=e=>{T.useEffect(()=>{e.clearReset()},[e])},YP=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(s&&e.data===void 0||vR(n,[e.error,r])),oce=(e,t)=>t.state.data===void 0,JP=e=>{if(e.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...s)=>n(r(...s)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},QP=(e,t)=>e.isLoading&&e.isFetching&&!t,XP=(e,t)=>e?.suspense&&t.isPending,n1=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function e4(e,t,n){const r=qP(),s=KP(),i=Dg(),l=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(l);const d=i.getQueryCache().get(l.queryHash);l._optimisticResults=r?"isRestoring":"optimistic",JP(l),ZP(l,s,d),WP(s);const h=!i.getQueryCache().get(l.queryHash),[f]=T.useState(()=>new t(i,l)),g=f.getOptimisticResult(l),y=!r&&e.subscribed!==!1;if(T.useSyncExternalStore(T.useCallback(b=>{const _=y?f.subscribe(yn.batchCalls(b)):Un;return f.updateResult(),_},[f,y]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),T.useEffect(()=>{f.setOptions(l)},[l,f]),XP(l,g))throw n1(l,f,s);if(YP({result:g,errorResetBoundary:s,throwOnError:l.throwOnError,query:d,suspense:l.suspense}))throw g.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(l,g),l.experimental_prefetchInRender&&!ol.isServer()&&QP(g,r)&&(h?n1(l,f,s):d?.promise)?.catch(Un).finally(()=>{f.updateResult()}),l.notifyOnChangeProps?g:f.trackResult(g)}function r1(e,t){return e4(e,DP)}const t4="modulepreload",n4=function(e){return"/"+e},o1={},$=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let h=function(f){return Promise.all(f.map(g=>Promise.resolve(g).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),d=l?.nonce||l?.getAttribute("nonce");s=h(n.map(f=>{if(f=n4(f),f in o1)return;o1[f]=!0;const g=f.endsWith(".css"),y=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${y}`))return;const b=document.createElement("link");if(b.rel=g?"stylesheet":t4,g||(b.as="script"),b.crossOrigin="",b.href=f,d&&b.setAttribute("nonce",d),document.head.appendChild(b),g)return new Promise((_,S)=>{b.addEventListener("load",_),b.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${f}`)))})}))}function i(l){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=l,window.dispatchEvent(d),!d.defaultPrevented)throw l}return s.then(l=>{for(const d of l||[])d.status==="rejected"&&i(d.reason);return t().catch(i)})};function r4(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const o4=e=>{switch(e){case"success":return i4;case"info":return l4;case"warning":return c4;case"error":return u4;default:return null}},a4=Array(12).fill(0),s4=({visible:e,className:t})=>_e.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},_e.createElement("div",{className:"sonner-spinner"},a4.map((n,r)=>_e.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),i4=_e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_e.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),c4=_e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},_e.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),l4=_e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_e.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),u4=_e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_e.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),d4=_e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},_e.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),_e.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),h4=()=>{const[e,t]=_e.useState(document.hidden);return _e.useEffect(()=>{const n=()=>{t(document.hidden)};
vendor: 3,897 bytes, line 55
55return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Xm=1;class f4{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...s}=t,i=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Xm++,l=this.toasts.find(h=>h.id===i),d=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),l?this.toasts=this.toasts.map(h=>h.id===i?(this.publish({...h,...t,id:i,title:r}),{...h,...t,id:i,dismissible:d,title:r}):h):this.addToast({title:r,...s,dismissible:d,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const s=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,l;const d=s.then(async f=>{if(l=["resolve",f],_e.isValidElement(f))i=!1,this.create({id:r,type:"default",message:f});else if(m4(f)&&!f.ok){i=!1;const y=typeof n.error=="function"?await n.error(`HTTP error! status: ${f.status}`):n.error,b=typeof n.description=="function"?await n.description(`HTTP error! status: ${f.status}`):n.description,S=typeof y=="object"&&!_e.isValidElement(y)?y:{message:y};this.create({id:r,type:"error",description:b,...S})}else if(f instanceof Error){i=!1;const y=typeof n.error=="function"?await n.error(f):n.error,b=typeof n.description=="function"?await n.description(f):n.description,S=typeof y=="object"&&!_e.isValidElement(y)?y:{message:y};this.create({id:r,type:"error",description:b,...S})}else if(n.success!==void 0){i=!1;const y=typeof n.success=="function"?await n.success(f):n.success,b=typeof n.description=="function"?await n.description(f):n.description,S=typeof y=="object"&&!_e.isValidElement(y)?y:{message:y};this.create({id:r,type:"success",description:b,...S})}}).catch(async f=>{if(l=["reject",f],n.error!==void 0){i=!1;const g=typeof n.error=="function"?await n.error(f):n.error,y=typeof n.description=="function"?await n.description(f):n.description,_=typeof g=="object"&&!_e.isValidElement(g)?g:{message:g};this.create({id:r,type:"error",description:y,..._})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),h=()=>new Promise((f,g)=>d.then(()=>l[0]==="reject"?g(l[1]):f(l[1])).catch(g));return typeof r!="string"&&typeof r!="number"?{unwrap:h}:Object.assign(r,{unwrap:h})},this.custom=(t,n)=>{const r=n?.id||Xm++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Bn=new f4,p4=(e,t)=>{const n=t?.id||Xm++;return Bn.addToast({title:e,...t,id:n}),n},m4=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",g4=p4,y4=()=>Bn.toasts,v4=()=>Bn.getActiveToasts(),gd=Object.assign(g4,{success:Bn.success,info:Bn.info,warning:Bn.warning,error:Bn.error,custom:Bn.custom,message:Bn.message,promise:Bn.promise,dismiss:Bn.dismiss,loading:Bn.loading},{getHistory:y4,getToasts:v4});r4
vendor: 4,787 bytes, line 55
55("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;
vendor: 10,086 bytes, line 55
55left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function
vendor: 2,451 bytes, line 55
55Wu(e){return e.label!==void 0}const b4=3,_4="24px",w4="16px",a1=4e3,S4=356,x4=14,R4=45,E4=200;function Mr(...e){return e.filter(Boolean).join(" ")}function A4(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const T4=e=>{var t,n,r,s,i,l,d,h,f;const{invert:g,toast:y,unstyled:b,interacting:_,setHeights:S,visibleToasts:E,heights:x,index:k,toasts:M,expanded:P,removeToast:I,defaultRichColors:F,closeButton:G,style:U,cancelButtonStyle:V,actionButtonStyle:ne,className:W="",descriptionClassName:pe="",duration:de,position:$e,gap:Ce,expandByDefault:ue,classNames:z,icons:te,closeButtonAriaLabel:we="Close toast"}=e,[Pe,ye]=_e.useState(null),[L,ae]=_e.useState(null),[oe,ce]=_e.useState(!1),[he,Re]=_e.useState(!1),[Le,ve]=_e.useState(!1),[Se,Et]=_e.useState(!1),[it,ht]=_e.useState(!1),[K,Q]=_e.useState(0),[be,Te]=_e.useState(0),Qe=_e.useRef(y.duration||de||a1),yt=_e.useRef(null),ft=_e.useRef(null),tn=k===0,mr=k+1<=E,Zt=y.type,qn=y.dismissible!==!1,Pt=y.className||"",Ye=y.descriptionClassName||"",At=_e.useMemo(()=>x.findIndex(He=>He.toastId===y.id)||0,[x,y.id]),kn=_e.useMemo(()=>{var He;return(He=y.closeButton)!=null?He:G},[y.closeButton,G]),an=_e.useMemo(()=>y.duration||de||a1,[y.duration,de]),Sa=_e.useRef(0),C=_e.useRef(0),w=_e.useRef(0),R=_e.useRef(null),[D,H]=$e.split("-"),X=_e.useMemo(()=>x.reduce((He,Ot,sn)=>sn>=At?He:He+Ot.height,0),[x,At]),ie=h4(),Ze=y.invert||g,vt=Zt==="loading";C.current=_e.useMemo(()=>At*Ce+X,[At,X]),_e.useEffect(()=>{Qe.current=an},[an]),_e.useEffect(()=>{ce(!0)},[]),_e.useEffect(()=>{const He=ft.current;if(He){const Ot=He.getBoundingClientRect().height;return Te(Ot),S(sn=>[{toastId:y.id,height:Ot,position:y.position},...sn]),()=>S(sn=>sn.filter(wn=>wn.toastId!==y.id))}},[S,y.id]),_e.useLayoutEffect(()=>{if(!oe)return;const He=ft.current,Ot=He.style.height;He.style.height="auto";const sn=He.getBoundingClientRect().height;He.style.height=Ot,Te(sn),S(wn=>wn.find(Dt=>Dt.toastId===y.id)?wn.map(Dt=>Dt.toastId===y.id?{...Dt,height:sn}:Dt):[{toastId:y.id,height:sn,position:y.position},...wn])},[oe,y.title,y.description,S,y.id,y.jsx,y.action,y.cancel]);const rt=_e.useCallback(()=>{Re(!0),Q(C.current),S(He=>He.filter(Ot=>Ot.toastId!==y.id)),setTimeout(()=>{I(y)},E4)},[y,I,S,C]);_e.useEffect(()=>{if(y.promise&&Zt==="loading"||y.duration===1/0||y.type==="loading")return;let He;return P||_||ie?(()=>{if(w.current<Sa.current){const wn=new Date().getTime()-Sa.current;Qe.current=Qe.current-wn}
vendor: 6,537 bytes, line 55
55w.current=new Date().getTime()})():Qe.current!==1/0&&(Sa.current=new Date().getTime(),He=setTimeout(()=>{y.onAutoClose==null||y.onAutoClose.call(y,y),rt()},Qe.current)),()=>clearTimeout(He)},[P,_,y,Zt,ie,rt]),_e.useEffect(()=>{y.delete&&(rt(),y.onDismiss==null||y.onDismiss.call(y,y))},[rt,y.delete]);function pt(){var He;if(te?.loading){var Ot;return _e.createElement("div",{className:Mr(z?.loader,y==null||(Ot=y.classNames)==null?void 0:Ot.loader,"sonner-loader"),"data-visible":Zt==="loading"},te.loading)}return _e.createElement(s4,{className:Mr(z?.loader,y==null||(He=y.classNames)==null?void 0:He.loader),visible:Zt==="loading"})}const at=y.icon||te?.[Zt]||o4(Zt);var xa,Tr;return _e.createElement("li",{tabIndex:0,ref:ft,className:Mr(W,Pt,z?.toast,y==null||(t=y.classNames)==null?void 0:t.toast,z?.default,z?.[Zt],y==null||(n=y.classNames)==null?void 0:n[Zt]),"data-sonner-toast":"","data-rich-colors":(xa=y.richColors)!=null?xa:F,"data-styled":!(y.jsx||y.unstyled||b),"data-mounted":oe,"data-promise":!!y.promise,"data-swiped":it,"data-removed":he,"data-visible":mr,"data-y-position":D,"data-x-position":H,"data-index":k,"data-front":tn,"data-swiping":Le,"data-dismissible":qn,"data-type":Zt,"data-invert":Ze,"data-swipe-out":Se,"data-swipe-direction":L,"data-expanded":!!(P||ue&&oe),"data-testid":y.testId,style:{"--index":k,"--toasts-before":k,"--z-index":M.length-k,"--offset":`${he?K:C.current}px`,"--initial-height":ue?"auto":`${be}px`,...U,...y.style},onDragEnd:()=>{ve(!1),ye(null),R.current=null},onPointerDown:He=>{He.button!==2&&(vt||!qn||(yt.current=new Date,Q(C.current),He.target.setPointerCapture(He.pointerId),He.target.tagName!=="BUTTON"&&(ve(!0),R.current={x:He.clientX,y:He.clientY})))},onPointerUp:()=>{var He,Ot,sn;if(Se||!qn)return;R.current=null;const wn=Number(((He=ft.current)==null?void 0:He.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Ro=Number(((Ot=ft.current)==null?void 0:Ot.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Dt=new Date().getTime()-((sn=yt.current)==null?void 0:sn.getTime()),Cn=Pe==="x"?wn:Ro,Ra=Math.abs(Cn)/Dt;if(Math.abs(Cn)>=R4||Ra>.11){Q(C.current),y.onDismiss==null||y.onDismiss.call(y,y),ae(Pe==="x"?wn>0?"right":"left":Ro>0?"down":"up"),rt(),Et(!0);return}else{var On,$n;(On=ft.current)==null||On.style.setProperty("--swipe-amount-x","0px"),($n=ft.current)==null||$n.style.setProperty("--swipe-amount-y","0px")}ht(!1),ve(!1),ye(null)},onPointerMove:He=>{var Ot,sn,wn;if(!R.current||!qn||((Ot=window.getSelection())==null?void 0:Ot.toString().length)>0)return;const Dt=He.clientY-R.current.y,Cn=He.clientX-R.current.x;var Ra;const On=(Ra=e.swipeDirections)!=null?Ra:A4($e);!Pe&&(Math.abs(Cn)>1||Math.abs(Dt)>1)&&ye(Math.abs(Cn)>Math.abs(Dt)?"x":"y");let $n={x:0,y:0};const ms=gr=>1/(1.5+Math.abs(gr)/20);if(Pe==="y"){if(On.includes("top")||On.includes("bottom"))if(On.includes("top")&&Dt<0||On.includes("bottom")&&Dt>0)$n.y=Dt;else{const gr=Dt*ms(Dt);$n.y=Math.abs(gr)<Math.abs(Dt)?gr:Dt}}else if(Pe==="x"&&(On.includes("left")||On.includes("right")))if(On.includes("left")&&Cn<0||On.includes("right")&&Cn>0)$n.x=Cn;else{const gr=Cn*ms(Cn);$n.x=Math.abs(gr)<Math.abs(Cn)?gr:Cn}(Math.abs($n.x)>0||Math.abs($n.y)>0)&&ht(!0),(sn=ft.current)==null||sn.style.setProperty("--swipe-amount-x",`${$n.x}px`),(wn=ft.current)==null||wn.style.setProperty("--swipe-amount-y",`${$n.y}px`)}},kn&&!y.jsx&&Zt!=="loading"?_e.createElement("button",{"aria-label":we,"data-disabled":vt,"data-close-button":!0,onClick:vt||!qn?()=>{}:()=>{rt(),y.onDismiss==null||y.onDismiss.call(y,y)},className:Mr(z?.closeButton,y==null||(r=y.classNames)==null?void 0:r.closeButton)},(Tr=te?.close)!=null?Tr:d4):null,(Zt||y.icon||y.promise)&&y.icon!==null&&(te?.[Zt]!==null||y.icon)?_e.createElement("div",{"data-icon":"",className:Mr(z?.icon,y==null||(s=y.classNames)==null?void 0:s.icon)},y.promise||y.type==="loading"&&!y.icon?y.icon||pt():null,y.type!=="loading"?at:null):null,_e.createElement("div",{"data-content":"",className:Mr(z?.content,y==null||(i=y.classNames)==null?void 0:i.content)},_e.createElement("div",{"data-title":"",className:Mr(z?.title,y==null||(l=y.classNames)==null?void 0:l.title)},y.jsx?y.jsx:typeof y.title=="function"?y.title():y.title),y.description?_e.createElement("div",{"data-description":"",className:Mr(pe,Ye,z?.description,y==null||(d=y.classNames)==null?void 0:d.description)},typeof y.description=="function"?y.description():y.description):null),_e.isValidElement(y.cancel)?y.cancel:y.cancel&&Wu(y.cancel)?_e.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||V,onClick:He=>{Wu(y.cancel)&&qn&&(y.cancel.onClick==null||y.cancel.onClick.call(y.cancel,He),rt())},className:Mr(z?.cancelButton,y==null||(h=y.classNames)==null?void 0:h.cancelButton)},y.cancel.label):null,_e.isValidElement(y.action)?y.action:y.action&&Wu(y.action)?_e.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||ne,onClick:He=>{Wu(y.action)&&(y.action.onClick==null||y.action.onClick.call(y.action,He),!He.defaultPrevented&&rt())},className:Mr(z?.actionButton,y==null||(f=y.classNames)==null?void 0:f.actionButton)},y.action.label):null)};function s1(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function k4(e,t){const n={};return[e,t].forEach((r,s)=>{const i=s===1,l=i?"--mobile-offset":"--offset",d=i?w4:_4;function h(f){["top","right","bottom","left"].forEach(g=>{n[`${l}-${g}`]=typeof f=="number"?`${f}px`:f})}typeof r=="number"||typeof r=="string"?h(r):typeof r=="object"?["top","right","bottom","left"].forEach(f=>{r[f]===void 0?n[`${l}-${f}`]=d:n[`${l}-${f}`]=typeof r[f]=="number"?`${r[f]}px`:r[f]}):h(d)}),n}const C4=_e.forwardRef(function(t,n){const{id:r,invert:s,position:i="bottom-right",hotkey:l=["altKey","KeyT"],expand:d,closeButton:h,className:f,offset:g,mobileOffset:y,theme:b="light",richColors:_,duration:S,style:E,visibleToasts:x=b4,toastOptions:k,dir:M=s1(),gap:P=x4,icons:I,containerAriaLabel:F="Notifications"}=t,[G,U]=_e.useState([]),V=_e.useMemo(()=>r?G.filter(oe=>oe.toasterId===r):G.filter(oe=>!oe.toasterId),[G,r]),ne=_e.useMemo(()=>Array.from(new Set([i].concat(V.filter(oe=>oe.position).map(oe=>oe.position)))),[V,i]),[W,pe]=_e.useState([]),[de,$e]=_e.useState(!1),[Ce,ue]=_e.useState(!1),[z,te]=_e.useState(b!=="system"?b:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
55k":"light"),we=_e.useRef(null),Pe=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),ye=_e.useRef(null),L=_e.useRef(!1),ae=_e.useCallback(oe=>{U(ce=>{var he;return(he=ce.find(Re=>Re.id===oe.id))!=null&&he.delete||Bn.dismiss(oe.id),ce.filter(({id:Re})=>Re!==oe.id)})},[]);return _e.useEffect(()=>Bn.subscribe(oe=>{if(oe.dismiss){requestAnimationFrame(()=>{U(ce=>ce.map(he=>he.id===oe.id?{...he,delete:!0}:he))});return}setTimeout(()=>{Dx.flushSync(()=>{U(ce=>{const he=ce.findIndex(Re=>Re.id===oe.id);return he!==-1?[...ce.slice(0,he),{...ce[he],...oe},...ce.slice(he+1)]:[oe,...ce]})})})}),[G]),_e.useEffect(()=>{if(b!=="system"){te(b);return}if(b==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?te("dark"):te("light")),typeof window>"u")return;const oe=window.matchMedia("(prefers-color-scheme: dark)");try{oe.addEventListener("change",({matches:ce})=>{te(ce?"dark":"light")})}catch{oe.addListener(({matches:he})=>{try{te(he?"dark":"light")}catch(Re){console.error(Re)}})}},[b]),_e.useEffect(()=>{G.length<=1&&$e(!1)},[G]),_e.useEffect(()=>{const oe=ce=>{var he;if(l.every(ve=>ce[ve]||ce.code===ve)){var Le;$e(!0),(Le=we.current)==null||Le.focus()}ce.code==="Escape"&&(document.activeElement===we.current||(he=we.current)!=null&&he.contains(document.activeElement))&&$e(!1)};return document.addEventListener("keydown",oe),()=>document.removeEventListener("keydown",oe)},[l]),_e.useEffect(()=>{if(we.current)return()=>{ye.current&&(ye.current.focus({preventScroll:!0}),ye.current=null,L.current=!1)}},[we.current]),_e.createElement("section",{ref:n,"aria-label":`${F} ${Pe}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ne.map((oe,ce)=>{var he;const[Re,Le]=oe.split("-");return V.length?_e.createElement("ol",{key:oe,dir:M==="auto"?s1():M,tabIndex:-1,ref:we,className:f,"data-sonner-toaster":!0,"data-sonner-theme":z,"data-y-position":Re,"data-x-position":Le,style:{"--front-toast-height":`${((he=W[0])==null?void 0:he.height)||0}px`,"--width":`${S4}px`,"--gap":`${P}px`,...E,...k4(g,y)},onBlur:ve=>{L.current&&!ve.currentTarget.contains(ve.relatedTarget)&&(L.current=!1,ye.current&&(ye.current.focus({preventScroll:!0}),ye.current=null))},onFocus:ve=>{ve.target instanceof HTMLElement&&ve.target.dataset.dismissible==="false"||L.current||(L.current=!0,ye.current=ve.relatedTarget)},onMouseEnter:()=>$e(!0),onMouseMove:()=>$e(!0),onMouseLeave:()=>{Ce||$e(!1)},onDragEnd:()=>$e(!1),onPointerDown:ve=>{ve.target instanceof HTMLElement&&ve.target.dataset.dismissible==="false"||ue(!0)},onPointerUp:()=>ue(!1)},V.filter(ve=>!ve.position&&ce===0||ve.position===oe).map((ve,Se)=>{var Et,it;return _e.createElement(T4,{key:ve.id,icons:I,index:Se,toast:ve,defaultRichColors:_,duration:(Et=k?.duration)!=null?Et:S,className:k?.className,descriptionClassName:k?.descriptionClassName,invert:s,visibleToasts:x,closeButton:(it=k?.closeButton)!=null?it:h,interacting:Ce,position:oe,style:k?.style,unstyled:k?.unstyled,classNames:k?.classNames,cancelButtonStyle:k?.cancelButtonStyle,actionButtonStyle:k?.actionButtonStyle,closeButtonAriaLabel:k?.closeButtonAriaLabel,removeToast:ae,toasts:V.filter(ht=>ht.position==ve.position),heights:W.filter(ht=>ht.position==ve.position),setHeights:pe,expandByDefault:d,gap:P,expanded:de,swipeDirections:t.swipeDirections})})):null}))}),O4=({...e})=>p.jsx(C4,{className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:!bg-black group-[.toaster]:!text-orange-500 group-[.toaster]:!border-orange-500/40 group-[.toaster]:shadow-lg",description:"group-[.toast]:!text-orange-400",actionButton:"group-[.toast]:!bg-orange-500 group-[.toast]:!text-black",cancelButton:"group-[.toast]:!bg-black group-[.toast]:!text-orange-500",icon:"group-[.toast]:!text-orange-500",title:"group-[.toast]:!text-orange-500",closeButton:"group-[.toast]:!bg-black group-[.toast]:!text-orange-500 group-[.toast]:!border-orange-500/40"}},...e});function $4(){return T.useEffect(()=>{if(typeof window>"u"||!("IntersectionObserver"in window))return;const e=i=>{if(i.dataset.warmed)return;i.dataset.warmed="1",i.loading="eager",i.decoding="async";const l=i.currentSrc||i.src;if(l){const d=new Image;d.decoding="async",d.src=l}},t=new IntersectionObserver(i=>{for(const l of i)l.isIntersecting&&(e(l.target),t.unobserve(l.target))},{rootMargin:"1600px 0px",threshold:0}),n=()=>{document.querySelectorAll('img[loading="lazy"]:not([data-warmed])').forEach(l=>t.observe(l))};n();const r=new MutationObserver(()=>{s||(s=requestAnimationFrame(()=>{s=0,n()}))});let s=0;return r.observe(document.body,{childList:!0,subtree:!0}),()=>{r.disconnect(),t.disconnect()}},[]),null}const Mc="https://qnpupwhhgercguojnexl.supabase.co".replace(/\/+$/,"")||"";function ace(e){return e||""}function _o(e,t=480,n=70){if(!e)return"";if(!Mc)return e;const r=`${Mc}/storage/v1/object/public/`,s=`${Mc}/storage/v1/object/sign/`,i=`width=${t}&quality=${n}&resize=contain`;return e.startsWith(r)&&!e.includes("?")?`${Mc}/storage/v1/render/image/public/${e.slice(r.length)}?${i}`:e.startsWith(s)&&e.includes("?token=")?`${Mc}/storage/v1/render/image/sign/${e.slice(s.length)}&${i}`:e}const TR=(...e)=>
vendor: 8,669 bytes, line 55
55e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const M4=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const N4=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const i1=e=>{const t=N4(e);return t.charAt(0).toUpperCase()+t.slice(1)};var j4={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const P4=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const D4=T.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:l,...d},h)=>T.createElement("svg",{ref:h,...j4,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:TR("lucide",s),...!i&&!P4(d)&&{"aria-hidden":"true"},...d},[...l.map(([f,g])=>T.createElement(f,g)),...Array.isArray(i)?i:[i]]));const Ae=(e,t)=>{const n=T.forwardRef(({className:r,...s},i)=>T.createElement(D4,{ref:i,iconNode:t,className:TR(`lucide-${M4(i1(e))}`,`lucide-${e}`,r),...s}));return n.displayName=i1(e),n};const I4=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],kR=Ae("activity",I4);const L4=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],z4=Ae("arrow-down",L4);const B4=[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]],c1=Ae("arrow-left-right",B4);const U4=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],V4=Ae("badge-check",U4);const F4=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],si=Ae("bell",F4);const q4=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],H4=Ae("camera",q4);const G4=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],l1=Ae("chart-column",G4);const K4=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],Yu=Ae("chart-line",K4);const Z4=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],W4=Ae("check",Z4);const Y4=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],J4=Ae("chevron-left",Y4);const Q4=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],X4=Ae("chevron-right",Q4);const eD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],tD=Ae("circle-check",eD);const nD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],rD=Ae("circle",nD);const oD=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ju=Ae("copy",oD);const aD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]],sD=Ae("crosshair",aD);const iD=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Nc=Ae("database",iD);const cD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M6 12c0-1.7.7-3.2 1.8-4.2",key:"oqkarx"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M18 12c0 1.7-.7 3.2-1.8 4.2",key:"1eah9h"}]],Qn=Ae("disc-3",cD);const lD=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],u1=Ae("dollar-sign",lD);const uD=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Ig=Ae("download",uD);const dD=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],d1=Ae("earth",dD);const hD=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],al=Ae("external-link",hD);const fD=[["path",{d:"M12 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 12 18z",key:"b19h5q"}],["path",{d:"M2 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 2 18z",key:"h7h5ge"}]],pD=Ae("fast-forward",fD);const mD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]],gD=Ae("film",mD);const yD=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],sl=Ae("headphones",yD);const vD=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],Bd=Ae("heart",vD);const bD=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],_D=Ae("house",bD);const wD=[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M11 19H3",key:"zflm78"}],["path",{d:"M21 16V5",key:"yxg4q8"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],Ha=Ae("list-music",wD);const SD=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],am=Ae("loader-circle",SD);const xD=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]],RD=Ae("lock-open",xD);const ED=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],AD=Ae("lock",ED);const TD=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],kD=Ae("log-out",TD);const CD=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],OD=Ae("maximize-2",CD);const $D=[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]],MD=Ae("megaphone",$D);const ND=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],h1=Ae("menu",ND);const jD=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],il=Ae("message-square",jD);const PD=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]],f1=Ae("mic-off",PD);const DD=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],Ud=Ae("mic",DD);const ID=[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.
55074z",key:"s0h3yz"}]],CR=Ae("mouse-pointer-click",ID);const LD=[["circle",{cx:"8",cy:"18",r:"4",key:"1fc0mg"}],["path",{d:"M12 18V2l7 4",key:"g04rme"}]],Lg=Ae("music-2",LD);const zD=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],p1=Ae("music",zD);const BD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],UD=Ae("panel-left-close",BD);const VD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],FD=Ae("panel-left-open",VD);const qD=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],HD=Ae("pause",qD);const GD=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],KD=Ae("play",GD);const ZD=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],cl=Ae("radio",ZD);const WD=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]],sm=Ae("receipt",WD);const YD=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],m1=Ae("refresh-cw",YD);const JD=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],OR=Ae("repeat",JD);const QD=[["path",{d:"M12 6a2 2 0 0 0-3.414-1.414l-6 6a2 2 0 0 0 0 2.828l6 6A2 2 0 0 0 12 18z",key:"2a1g8i"}],["path",{d:"M22 6a2 2 0 0 0-3.414-1.414l-6 6a2 2 0 0 0 0 2.828l6 6A2 2 0 0 0 22 18z",key:"rg3s36"}]],XD=Ae("rewind",QD);const eI=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],tI=Ae("rotate-cw",eI);const nI=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],$R=Ae("search",nI);const rI=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],zg=Ae("send",rI);const oI=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],MR=Ae("share-2",oI);const aI=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],Bg=Ae("shield-alert",aI);const sI=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],g1=Ae("shield-check",sI);const iI=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],ll=Ae("shield",iI);const cI=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7
55a2 2 0 0 0-1.6.8z",key:"o988cm"}]],gi=Ae("shopping-bag",cI);const lI=[["path",{d:"M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z",key:"15892j"}],["path",{d:"M3 20V4",key:"1ptbpl"}]],uI=Ae("skip-back",lI);const dI=[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]],hI=Ae("skip-forward",dI);const fI=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],pI=Ae("smile",fI);const mI=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],eg=Ae("sparkles",mI);const gI=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],yI=Ae("square",gI);const vI=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}
55]],y1=Ae("triangle-alert",vI);const bI=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],jc=Ae("trophy",bI);const _I=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],yd=Ae("upload",_I);const wI=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],Wa=Ae("user-plus",wI);const SI=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],_i=Ae("users-round",SI);const xI=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],NR=Ae("users",xI);const RI=[["path",{d:"M10.66 6H14a2 2 0 0 1 2 2v2.5l5.248-3.062A.5.5 0 0 1 22 7.87v8.196",key:"w8jjjt"}],["path",{d:"M16 16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2",key:"1xawa7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],v1=Ae("video-off",RI);const EI=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],Ci=Ae("video",EI);const AI=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],jR=Ae("volume-2",AI);const TI=[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]],ii=Ae("wallet",TI);const kI=[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]],CI=Ae("waves",kI);const OI=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],$I=Ae("wifi",OI);const MI=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],fa=Ae("x",MI);const NI=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],PR=Ae("zap",NI);function jI(){const[e,t]=T.useState(null),[n,r]=T.useState("");return T.useEffect(()=>{const s=d=>{const h=d;h.detail?.src&&(t(h.detail.src),r(h.detail.alt??""))},i=d=>{const h=d.target;if(!h)return;const f=h.closest?.('img[data-zoomable="true"]');
55!f||!f.src||(d.preventDefault(),d.stopPropagation(),t(f.currentSrc||f.src),r(f.alt||""))},l=d=>{d.key==="Escape"&&t(null)};return window.addEventListener("open-image-lightbox",s),document.addEventListener("click",i,!0),window.addEventListener("keydown",l),()=>{window.removeEventListener("open-image-lightbox",s),document.removeEventListener("click",i,!0),window.removeEventListener("keydown",l)}},[]),e?p.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":n||"Image preview",onClick:()=>t(null),className:"fixed inset-0 z-[9999] flex items-center justify-center bg-black/90 backdrop-blur-sm p-4 animate-in fade-in duration-200",children:[p.jsx("button",{type:"button","aria-label":"Close preview",onClick:s=>{s.stopPropagation(),t(null)},className:"absolute top-4 right-4 inline-flex items-center justify-center w-11 h-11 rounded-full bg-white/10 hover:bg-white/20 text-white transition",children:p.jsx(fa,{className:"w-6 h-6"})}),p.jsx("img",{loading:"lazy",decoding:"async",src:_o(e,480),alt:n,onClick:s=>s.stopPropagation(),className:"max-w-[95vw] max-h-[92vh] object-contain rounded-lg shadow-2xl animate-in zoom-in-95 duration-200 cursor-zoom-out"})]}):null}function Rr(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e?.(s),n===!1||!s.defaultPrevented)return t?.(s)}}function b1(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ih(...e){return t=>{let n=!1;const r=e.map(s=>{const i=b1(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():b1(e[s],null)}}}}function Er(...e){return T.useCallback(ih(...e),e)}function PI(e,t){const n=T.createContext(t),r=i=>{const{children:l,...d}=i,h=T.useMemo(()=>d,Object.values(d));return p.jsx(n.Provider,{value:h,children:l})};r.displayName=e+"Provider";function s(i){const l=T.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function Ug(e,t=[]){let n=[];function r(i,l){const d=T.createContext(l),h=n.length;n=[...n,l];const f=y=>{const{scope:b,children:_,...S}=y,E=b?.[e]?.[h]||d,x=T.useMemo(()=>S,Object.values(S));return p.jsx(E.Provider,{value:x,children:_})};f.displayName=i+"Provider";function g(y,b){const _=b?.[e]?.[h]||d,S=T.useContext(_);if(S)return S;if(l!==void 0)return l;throw new Error(`\`${y}\` must be used within \`${i}\``)}return[f,g]}const s=()=>{const i=n.map(l=>T.createContext(l));return function(d){const h=d?.[e]||i;return T.useMemo(()=>({[`__scope${e}`]:{...d,[e]:h}}),[d,h])}};return s.scopeName=e,[r,DI(s,...t)]}function DI(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const l=r.reduce((d,{useScope:h,scopeName:f})=>{const y=h(i)[`__scope${f}`];return{...d,...y}},{});return T.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var Oi=globalThis?.document?T.useLayoutEffect:()=>{},II=mg[" useId ".trim().toString()]||(()=>{}),LI=0;function im(e){const[t,n]=T.useState(II());return Oi(()=>{n(r=>r??String(LI++))},[e]),e||(t?`radix-${t}`:"")}var zI=mg[" useInsertionEffect ".trim().toString()]||Oi;function DR({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,l]=BI({defaultProp:t,onChange:n}),d=e!==void 0,h=d?e:s;{const g=T.useRef(e!==void 0);T.useEffect(()=>{const y=g.current;y!==d&&console.warn(`${r} is changing from ${y?"controlled":"uncontrolled"} to ${d?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),g.current=d},[d,r])}const f=T.useCallback(g=>{if(d){const y=UI(g)?g(e):g;y!==e&&l.current?.(y)}else i(g)},[d,e,i,l]);return[h,f]}function BI({defaultProp:e,onChange:t}){const[n,r]=T.useState(e),s=T.useRef(n),i=T.useRef(t);return zI(()=>{i.current=t},[t]),T.useEffect(()=>{s.current!==n&&(i.current?.(n),s.current=n)},[n,s]),[n,r,i]}function UI(e){return typeof e=="function"}function VI(e){const t=FI(e),n=T.forwardRef((r,s)=>{const{children:i,...l}=r,d=T.Children.toArray(i),h=d.find(HI);if(h){const f=h.props.children,g=d.map(y=>y===h?T.Children.count(f)>1?T.Children.only(null):T.isValidElement(f)?f.props.children:null:y);return p.jsx(t,{...l,ref:s,children:T.isValidElement(f)?T.cloneElement(f,void 0,g):null})}return p.jsx(t,{...l,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}function FI(e){const t=T.forwardRef((n,r)=>{const{children:s,...i}=n;
vendor: 3,876 bytes, line 55
55if(T.isValidElement(s)){const l=KI(s),d=GI(i,s.props);return s.type!==T.Fragment&&(d.ref=r?ih(r,l):l),T.cloneElement(s,d)}return T.Children.count(s)>1?T.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qI=Symbol("radix.slottable");function HI(e){return T.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qI}function GI(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...d)=>{const h=i(...d);return s(...d),h}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function KI(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ZI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],fr=ZI.reduce((e,t)=>{const n=VI(`Primitive.${t}`),r=T.forwardRef((s,i)=>{const{asChild:l,...d}=s,h=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(h,{...d,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function WI(e,t){e&&kg.flushSync(()=>e.dispatchEvent(t))}function ul(e){const t=T.useRef(e);return T.useEffect(()=>{t.current=e}),T.useMemo(()=>(...n)=>t.current?.(...n),[])}function YI(e,t=globalThis?.document){const n=ul(e);T.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var JI="DismissableLayer",tg="dismissableLayer.update",QI="dismissableLayer.pointerDownOutside",XI="dismissableLayer.focusOutside",_1,IR=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),LR=T.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:l,onDismiss:d,...h}=e,f=T.useContext(IR),[g,y]=T.useState(null),b=g?.ownerDocument??globalThis?.document,[,_]=T.useState({}),S=Er(t,U=>y(U)),E=Array.from(f.layers),[x]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),k=E.indexOf(x),M=g?E.indexOf(g):-1,P=f.layersWithOutsidePointerEventsDisabled.size>0,I=M>=k,F=n5(U=>{const V=U.target,ne=[...f.branches].some(W=>W.contains(V));!I||ne||(s?.(U),l?.(U),U.defaultPrevented||d?.())},b),G=r5(U=>{const V=U.target;[...f.branches].some(W=>W.contains(V))||(i?.(U),l?.(U),U.defaultPrevented||d?.())},b);return YI(U=>{M===f.layers.size-1&&(r?.(U),!U.defaultPrevented&&d&&(U.preventDefault(),d()))},b),T.useEffect(()=>{if(g)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(_1=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(g)),f.layers.add(g),w1(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=_1)}},[g,b,n,f]),T.useEffect(()=>()=>{g&&(f.layers.delete(g),f.layersWithOutsidePointerEventsDisabled.delete(g),w1())},[g,f]),T.useEffect(()=>{const U=()=>_({});return document.addEventListener(tg,U),()=>document.removeEventListener(tg,U)},[]),p.jsx(fr.div,{...h,ref:S,style:{pointerEvents:P?I?"auto":"none":void 0,...e.style},onFocusCapture:Rr(e.onFocusCapture,G.onFocusCapture),onBlurCapture:Rr(e.onBlurCapture,G.onBlurCapture),onPointerDownCapture:Rr(e.onPointerDownCapture,F.onPointerDownCapture)})});LR.displayName=JI;var e5="DismissableLayerBranch",t5=T.forwardRef((e,t)=>{const n=T.useContext(IR),r=T.useRef(null),s=Er(t,r);return T.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(fr.div,{...e,ref:s})});t5.displayName=e5;function n5(e,t=globalThis?.document){const n=ul(e),r=T.useRef(!1),s=T.useRef(()=>{});return T.useEffect(()=>{const i=d=>
vendor: 8,860 bytes, line 55
55{if(d.target&&!r.current){let h=function(){zR(QI,n,f,{discrete:!0})};const f={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=h,t.addEventListener("click",s.current,{once:!0})):h()}else t.removeEventListener("click",s.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function r5(e,t=globalThis?.document){const n=ul(e),r=T.useRef(!1);return T.useEffect(()=>{const s=i=>{i.target&&!r.current&&zR(XI,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function w1(){const e=new CustomEvent(tg);document.dispatchEvent(e)}function zR(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?WI(s,i):s.dispatchEvent(i)}var cm="focusScope.autoFocusOnMount",lm="focusScope.autoFocusOnUnmount",S1={bubbles:!1,cancelable:!0},o5="FocusScope",BR=T.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...l}=e,[d,h]=T.useState(null),f=ul(s),g=ul(i),y=T.useRef(null),b=Er(t,E=>h(E)),_=T.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;T.useEffect(()=>{if(r){let E=function(P){if(_.paused||!d)return;const I=P.target;d.contains(I)?y.current=I:ta(y.current,{select:!0})},x=function(P){if(_.paused||!d)return;const I=P.relatedTarget;I!==null&&(d.contains(I)||ta(y.current,{select:!0}))},k=function(P){if(document.activeElement===document.body)for(const F of P)F.removedNodes.length>0&&ta(d)};document.addEventListener("focusin",E),document.addEventListener("focusout",x);const M=new MutationObserver(k);return d&&M.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",x),M.disconnect()}}},[r,d,_.paused]),T.useEffect(()=>{if(d){R1.add(_);const E=document.activeElement;if(!d.contains(E)){const k=new CustomEvent(cm,S1);d.addEventListener(cm,f),d.dispatchEvent(k),k.defaultPrevented||(a5(u5(UR(d)),{select:!0}),document.activeElement===E&&ta(d))}return()=>{d.removeEventListener(cm,f),setTimeout(()=>{const k=new CustomEvent(lm,S1);d.addEventListener(lm,g),d.dispatchEvent(k),k.defaultPrevented||ta(E??document.body,{select:!0}),d.removeEventListener(lm,g),R1.remove(_)},0)}}},[d,f,g,_]);const S=T.useCallback(E=>{if(!n&&!r||_.paused)return;const x=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,k=document.activeElement;if(x&&k){const M=E.currentTarget,[P,I]=s5(M);P&&I?!E.shiftKey&&k===I?(E.preventDefault(),n&&ta(P,{select:!0})):E.shiftKey&&k===P&&(E.preventDefault(),n&&ta(I,{select:!0})):k===M&&E.preventDefault()}},[n,r,_.paused]);return p.jsx(fr.div,{tabIndex:-1,...l,ref:b,onKeyDown:S})});BR.displayName=o5;function a5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ta(r,{select:t}),document.activeElement!==n)return}function s5(e){const t=UR(e),n=x1(t,e),r=x1(t.reverse(),e);return[n,r]}function UR(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function x1(e,t){for(const n of e)if(!i5(n,{upTo:t}))return n}function i5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function c5(e){return e instanceof HTMLInputElement&&"select"in e}function ta(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&c5(e)&&t&&e.select()}}var R1=l5();function l5(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=E1(e,t),e.unshift(t)},remove(t){e=E1(e,t),e[0]?.resume()}}}function E1(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function u5(e){return e.filter(t=>t.tagName!=="A")}var d5="Portal",VR=T.forwardRef((e,t)=>{const{container:n,...r}=e,[s,i]=T.useState(!1);Oi(()=>i(!0),[]);const l=n||s&&globalThis?.document?.body;return l?Dx.createPortal(p.jsx(fr.div,{...r,ref:t}),l):null});VR.displayName=d5;function h5(e,t){return T.useReducer((n,r)=>t[n][r]??n,e)}var bl=e=>{const{present:t,children:n}=e,r=f5(t),s=typeof n=="function"?n({present:r.isPresent}):T.Children.only(n),i=Er(r.ref,p5(s));return typeof n=="function"||r.isPresent?T.cloneElement(s,{ref:i}):null};bl.displayName="Presence";function f5(e){const[t,n]=T.useState(),r=T.useRef(null),s=T.useRef(e),i=T.useRef("none"),l=e?"mounted":"unmounted",[d,h]=h5(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{const f=Qu(r.current);i.current=d==="mounted"?f:"none"},[d]),Oi(()=>{const f=r.current,g=s.current;if(g!==e){const b=i.current,_=Qu(f);e?h("MOUNT"):_==="none"||f?.display==="none"?h("UNMOUNT"):h(g&&b!==_?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,h]),Oi(()=>{if(t){let f;const g=t.ownerDocument.defaultView??window,y=_=>{const E=Qu(r.current).includes(CSS.escape(_.animationName));if(_.target===t&&E&&(h("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",f=g.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},b=_=>{_.target===t&&(i.current=Qu(r.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",y),t.addEventListener("animationend",y),()=>{g.clearTimeout(f),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",y),t.removeEventListener("animationend",y)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:T.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function Qu(e){return e?.animationName||"none"}function p5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var um=0;function m5(){T.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??A1()),document.body.insertAdjacentElement("beforeend",e[1]??A1()),um++,()=>{um===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),um--}},[])}function A1(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var vd="right-scroll-bar-position",bd="width-before-scroll-bar",g5="with-scroll-bars-hidden",y5="--removed-body-scroll-bar-size";function dm(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function v5(e,t){var n=T.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}var b5=typeof window<"u"?T.useLayoutEffect:T.useEffect,T1=new WeakMap;function _5(e,t){var n=v5(null,function(r){return e.forEach(function(s){return dm(s,r)})});return b5(function(){var r=T1.get(n);if(r){var s=new Set(r),i=new Set(e),l=n.current;s.forEach(function(d){i.has(d)||dm(d,null)}),i.forEach(function(d){s.has(d)||dm(d,l)})}T1.set(n,e)},[e]),n}function w5(e){return e}function S5(e,t){t===void 0&&(t=w5);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var l=t(i,r);return n.push(l),function(){n=n.filter(function(d){return d!==l})}},assignSyncMedium:function(i){for(r=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(d){return i(d)},filter:function(){return n}}},assignMedium:function(i){r=!0;var l=[];if(n.length){var d=n;n=[],d.forEach(i),l=n}var h=function(){var g=l;l=[],g.forEach(i)},f=function(){return Promise.resolve().then(h)};f(),n={push:function(g){l.push(g),f()},filter:function(g){return l=l.filter(g),n}}}};return s}function x5(e){e===void 0&&(e={});var t=S5(null);return t.options=Ir({async:!0,ssr:!1},e),t}var FR=function(e){var t=e.sideCar,n=Mi(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return T.createElement(r,Ir({},n))};
vendor: 9,385 bytes, lines 55-95
55FR.isSideCarExport=!0;function R5(e,t){return e.useMedium(t),FR}var qR=x5(),hm=function(){},ch=T.forwardRef(function(e,t){var n=T.useRef(null),r=T.useState({onScrollCapture:hm,onWheelCapture:hm,onTouchMoveCapture:hm}),s=r[0],i=r[1],l=e.forwardProps,d=e.children,h=e.className,f=e.removeScrollBar,g=e.enabled,y=e.shards,b=e.sideCar,_=e.noRelative,S=e.noIsolation,E=e.inert,x=e.allowPinchZoom,k=e.as,M=k===void 0?"div":k,P=e.gapMode,I=Mi(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),F=b,G=_5([n,t]),U=Ir(Ir({},I),s);return T.createElement(T.Fragment,null,g&&T.createElement(F,{sideCar:qR,removeScrollBar:f,shards:y,noRelative:_,noIsolation:S,inert:E,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:P}),l?T.cloneElement(T.Children.only(d),Ir(Ir({},U),{ref:G})):T.createElement(M,Ir({},U,{className:h,ref:G}),d))});ch.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ch.classNames={fullWidth:bd,zeroRight:vd};var E5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function A5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=E5();return t&&e.setAttribute("nonce",t),e}function T5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function k5(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var C5=function(){var e=0,t=null;return{add:function(n){e==0&&(t=A5())&&(T5(t,n),k5(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},O5=function(){var e=C5();return function(t,n){T.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},HR=function(){var e=O5(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},$5={left:0,top:0,right:0,gap:0},fm=function(e){return parseInt(e||"",10)||0},M5=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[fm(n),fm(r),fm(s)]},N5=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return $5;var t=M5(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},j5=HR(),Ai="data-scroll-locked",P5=function(e,t,n,r){var s=e.left,i=e.top,l=e.right,d=e.gap;return n===void 0&&(n="margin"),` 56 .`.concat(g5,` { 57 overflow: hidden `).concat(r,`; 58 padding-right: `).concat(d,"px ").concat(r,`; 59 } 60 body[`).concat(Ai,`] { 61 overflow: hidden `).concat(r,`; 62 overscroll-behavior: contain; 63 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 64 padding-left: `.concat(s,`px; 65 padding-top: `).concat(i,`px; 66 padding-right: `).concat(l,`px; 67 margin-left:0; 68 margin-top:0; 69 margin-right: `).concat(d,"px ").concat(r,`; 70 `),n==="padding"&&"padding-right: ".concat(d,"px ").concat(r,";")].filter(Boolean).join(""),` 71 } 72 73 .`).concat(vd,` { 74 right: `).concat(d,"px ").concat(r,`; 75 } 76 77 .`).concat(bd,` { 78 margin-right: `).concat(d,"px ").concat(r,`; 79 } 80 81 .`).concat(vd," .").concat(vd,` { 82 right: 0 `).concat(r,`; 83 } 84 85 .`).concat(bd," .").concat(bd,` { 86 margin-right: 0 `).concat(r,`; 87 } 88 89 body[`).concat(Ai,`] { 90 `).concat(y5,": ").concat(d,`px; 91 } 92`)},k1=function(){var e=parseInt(document.body.getAttribute(Ai)||"0",10);return isFinite(e)?e:0},D5=function(){T.useEffect(function(){return document.body.setAttribute(Ai,(k1()+1).toString()),function(){var e=k1()-1;e<=0?document.body.removeAttribute(Ai):document.body.setAttribute(Ai,e.toString())}},[])},I5=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;D5();var i=T.useMemo(function(){return N5(s)},[s]);return T.createElement(j5,{styles:P5(i,!t,s,n?"":"!important")})},ng=!1;if(typeof window<"u")try{var Xu=Object.defineProperty({},"passive",{get:function(){return ng=!0,!0}});window.addEventListener("test",Xu,Xu),window.removeEventListener("test",Xu,Xu)}catch{ng=!1}var ci=ng?{passive:!1}:!1,L5=function(e){return e.tagName==="TEXTAREA"},GR=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!L5(e)&&n[t]==="visible")},z5=function(e){return GR(e,"overflowY")},B5=function(e){return GR(e,"overflowX")},C1=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=KR(e,r);if(s){var i=ZR(e,r),l=i[1],d=i[2];if(l>d)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},U5=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},V5=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},KR=function(e,t){return e==="v"?z5(t):B5(t)},ZR=function(e,t){return e==="v"?U5(t):V5(t)},F5=function(e,t){return e==="h"&&t==="rtl"?-1:1},q5=function(e,t,n,r,s){var i=F5(e,window.getComputedStyle(t).direction),l=i*r,d=n.target,h=t.contains(d),f=!1,g=l>0,y=0,b=0;do{if(!d)break;var _=ZR(e,d),S=_[0],E=_[1],x=_[2],k=E-x-i*S;(S||k)&&KR(e,d)&&(y+=k,b+=S);var M=d.parentNode;d=M&&M.nodeType===Node.DOCUMENT_FRAGMENT_NODE?M.host:M}while(!h&&d!==document.body||h&&(t.contains(d)||t===d));return(g&&Math.abs(y)<1||!g&&Math.abs(b)<1)&&(f=!0),f},ed=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},O1=function(e){return[e.deltaX,e.deltaY]},$1=function(e){return e&&"current"in e?e.current:e},H5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},G5=function(e){return` 93 .block-interactivity-`.concat(e,` {pointer-events: none;} 94 .allow-interactivity-`).concat(e,` {pointer-events: all;} 95`)},K5=0,li=[];function Z5(e){var t=T.useRef([]),n=T.useRef([0,0]),r=T.useRef(),s=T.useState(K5++)[0],i=T.useState(HR)[0],l=T.useRef(e);T.useEffect(function(){l.current=e},[e]),T.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var E=sN([e.lockRef.current],(e.shards||[]).map($1),!0).filter(Boolean);return E.forEach(function(x){return x.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),E.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var d=T.useCallback(function(E,x){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!l.current.allowPinchZoom;var k=ed(E),M=n.current,P="deltaX"in E?E.deltaX:M[0]-k[0],I="deltaY"in E?E.deltaY:M[1]-k[1],F,G=E.target,U=Math.abs(P)>Math.abs(I)?"h":"v";if("touches"in E&&U==="h"&&G.type==="range")return!1;var V=window.getSelection(),ne=V&&V.anchorNode,W=ne?ne===G||ne.contains(G):!1;if(W)return!1;var pe=C1(U,G);if(!pe)return!0;if(pe?F=U:(F=U==="v"?"h":"v",pe=C1(U,G)),!pe)return!1;if(!r.current&&"changedTouches"in E&&(P||I)&&(r.current=F),!F)return!0;var de=r.current||F;return q5(de,x,E,de==="h"?P:I)},[]),h=T.useCallback(function(E){var x=E;if(!(!li.length||li[li.length-1]!==i)){var k="deltaY"in x?O1(x):ed(x),M=t.current.filter(function(F){return F.name===x.type&&(F.target===x.target||x.target===F.shadowParent)&&H5(F.delta,k)})[0];if(M&&M.should){x.cancelable&&x.preventDefault();return}if(!M){var P=(l.current.shards||[]).map($1).filter(Boolean).filter(function(F){return F.contains(x.target)}),I=P.length>0?d(x,P[0]):!l.current.noIsolation;I&&x.cancelable&&x.preventDefault()}}},[]),f=T.useCallback(function(E,x,k,M){var P={name:E,delta:x,target:k,should:M,shadowParent:W5(k)};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(I){return I!==P})},1)},[]),g=T.useCallback(function(E){n.current=ed(E),r.current=void 0},[]),y=T.useCallback(function(E){f(E.type,O1(E),E.target,d(E,e.lockRef.current))},[]),b=T.useCallback(function(E){f(E.type,ed(E),E.target,d(E,e.lockRef.current))},[]);T.useEffect(function(){return li.push(i),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:b}),document.addEventListener("wheel",h,ci),document.addEventListener("touchmove",h,ci),document.addEventListener("touchstart",g,ci),function(){li=li.filter(function(E){return E!==i}),document.removeEventListener("wheel",h,ci),document.removeEventListener("touchmove",h,ci),document.removeEventListener("touchstart",g,ci)}},[]);var _=e.removeScrollBar,S=e.inert;return T.createElement(T.Fragment,null,S?T.createElement(i,{styles:G5(s)}):null,_?T.createElement(I5,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function W5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Y5=R5(qR,Z5);var WR=T.forwardRef(function(e,t){return T.createElement(ch,Ir({},e,{ref:t,sideCar:Y5}))});WR.classNames=ch.classNames;var J5=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ui=new WeakMap,td=new WeakMap,nd={},pm=0,YR=function(e){return e&&(e.host||YR(e.parentNode))},Q5=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=YR(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},X5=function(e,t,n,r){var s=Q5(t,Array.isArray(e)?e:[e]);nd[n]||(nd[n]=new WeakMap);var i=nd[n],l=[],d=new Set,h=new Set(s),f=function(y){!y||d.has(y)||(d.add(y),f(y.parentNode))};
vendor: 4,100 bytes, line 95
95s.forEach(f);var g=function(y){!y||h.has(y)||Array.prototype.forEach.call(y.children,function(b){if(d.has(b))g(b);else try{var _=b.getAttribute(r),S=_!==null&&_!=="false",E=(ui.get(b)||0)+1,x=(i.get(b)||0)+1;ui.set(b,E),i.set(b,x),l.push(b),E===1&&S&&td.set(b,!0),x===1&&b.setAttribute(n,"true"),S||b.setAttribute(r,"true")}catch(k){console.error("aria-hidden: cannot operate on ",b,k)}})};return g(t),d.clear(),pm++,function(){l.forEach(function(y){var b=ui.get(y)-1,_=i.get(y)-1;ui.set(y,b),i.set(y,_),b||(td.has(y)||y.removeAttribute(r),td.delete(y)),_||y.removeAttribute(n)}),pm--,pm||(ui=new WeakMap,ui=new WeakMap,td=new WeakMap,nd={})}},eL=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=J5(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live], script"))),X5(r,s,n,"aria-hidden")):function(){return null}};function tL(e){const t=nL(e),n=T.forwardRef((r,s)=>{const{children:i,...l}=r,d=T.Children.toArray(i),h=d.find(oL);if(h){const f=h.props.children,g=d.map(y=>y===h?T.Children.count(f)>1?T.Children.only(null):T.isValidElement(f)?f.props.children:null:y);return p.jsx(t,{...l,ref:s,children:T.isValidElement(f)?T.cloneElement(f,void 0,g):null})}return p.jsx(t,{...l,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}function nL(e){const t=T.forwardRef((n,r)=>{const{children:s,...i}=n;if(T.isValidElement(s)){const l=sL(s),d=aL(i,s.props);return s.type!==T.Fragment&&(d.ref=r?ih(r,l):l),T.cloneElement(s,d)}return T.Children.count(s)>1?T.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var rL=Symbol("radix.slottable");function oL(e){return T.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===rL}function aL(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...d)=>{const h=i(...d);return s(...d),h}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function sL(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var lh="Dialog",[JR,QR]=Ug(lh),[iL,Ar]=JR(lh),XR=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:l=!0}=e,d=T.useRef(null),h=T.useRef(null),[f,g]=DR({prop:r,defaultProp:s??!1,onChange:i,caller:lh});return p.jsx(iL,{scope:t,triggerRef:d,contentRef:h,contentId:im(),titleId:im(),descriptionId:im(),open:f,onOpenChange:g,onOpenToggle:T.useCallback(()=>g(y=>!y),[g]),modal:l,children:n})};XR.displayName=lh;var eE="DialogTrigger",tE=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Ar(eE,n),i=Er(t,s.triggerRef);return p.jsx(fr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":qg(s.open),...r,ref:i,onClick:Rr(e.onClick,s.onOpenToggle)})});tE.displayName=eE;var Vg="DialogPortal",[cL,nE]=JR(Vg,{forceMount:void 0}),rE=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=Ar(Vg,t);return p.jsx(cL,{scope:t,forceMount:n,children:T.Children.map(r,l=>p.jsx(bl,{present:n||i.open,children:p.jsx(VR,{asChild:!0,container:s,children:l})}))})};rE.displayName=Vg;var Vd="DialogOverlay",oE=T.forwardRef((e,t)=>{const n=nE(Vd,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=Ar(Vd,e.__scopeDialog);return i.modal?p.jsx(bl,{present:r||i.open,children:p.jsx(uL,{...s,ref:t})}):null});oE.displayName=Vd;var lL=tL("DialogOverlay.RemoveScroll"),uL=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Ar(Vd,n);return p.jsx(WR,{as:lL,allowPinchZoom:!0,shards:[s.contentRef],children:p.jsx(fr.div,{"data-state":qg(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),is="DialogContent",aE=T.forwardRef((e,t)=>{const n=nE(is,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=Ar(is,e.__scopeDialog);return p.jsx(bl,{present:r||i.open,children:i.modal?p.jsx(dL,{...s,ref:t}):p.jsx(hL,{...s,ref:t})})});aE.displayName=is;var dL=T.forwardRef((e,t)=>
vendor: 4,264 bytes, lines 95-99
95{const n=Ar(is,e.__scopeDialog),r=T.useRef(null),s=Er(t,n.contentRef,r);return T.useEffect(()=>{const i=r.current;if(i)return eL(i)},[]),p.jsx(sE,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Rr(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Rr(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0;(l.button===2||d)&&i.preventDefault()}),onFocusOutside:Rr(e.onFocusOutside,i=>i.preventDefault())})}),hL=T.forwardRef((e,t)=>{const n=Ar(is,e.__scopeDialog),r=T.useRef(!1),s=T.useRef(!1);return p.jsx(sE,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const l=i.target;n.triggerRef.current?.contains(l)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),sE=T.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...l}=e,d=Ar(is,n),h=T.useRef(null),f=Er(t,h);return m5(),p.jsxs(p.Fragment,{children:[p.jsx(BR,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:p.jsx(LR,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":qg(d.open),...l,ref:f,onDismiss:()=>d.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(pL,{titleId:d.titleId}),p.jsx(gL,{contentRef:h,descriptionId:d.descriptionId})]})]})}),Fg="DialogTitle",iE=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Ar(Fg,n);return p.jsx(fr.h2,{id:s.titleId,...r,ref:t})});iE.displayName=Fg;var cE="DialogDescription",lE=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Ar(cE,n);return p.jsx(fr.p,{id:s.descriptionId,...r,ref:t})});lE.displayName=cE;var uE="DialogClose",dE=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Ar(uE,n);return p.jsx(fr.button,{type:"button",...r,ref:t,onClick:Rr(e.onClick,()=>s.onOpenChange(!1))})});dE.displayName=uE;function qg(e){return e?"open":"closed"}var hE="DialogTitleWarning",[fL,fE]=PI(hE,{contentName:is,titleName:Fg,docsSlug:"dialog"}),pL=({titleId:e})=>{const t=fE(hE),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 96 97If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 98 99For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return T.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},mL="DialogDescriptionWarning",gL=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${fE(mL).contentName}}.`;return T.useEffect(()=>{const s=e.current?.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},pE=XR,mE=tE,gE=rE,Hg=oE,Gg=aE,Kg=iE,Zg=lE,Wg=dE;function yE(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=yE(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function vE(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=yE(e))&&(r&&(r+=" "),r+=t);return r}const yL=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},vL=(e,t)=>({classGroupId:e,validator:t}),bE=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Fd="-",M1=[],bL="arbitrary..",_L=e=>{const t=SL(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return wL(l);const d=l.split(Fd),h=d[0]===""&&d.length>1?1:0;return _E(d,h,t)},getConflictingClassGroupIds:(l,d)=>{if(d){const h=r[l],f=n[l];return h?f?yL(f,h):h:f||M1}return n[l]||M1}}},_E=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],i=n.nextPart.get(s);if(i){const f=_E(e,t+1,i);if(f)return f}const l=n.validators;if(l===null)return;
vendor: 3,109 bytes, line 99
99const d=t===0?e.join(Fd):e.slice(t).join(Fd),h=l.length;for(let f=0;f<h;f++){const g=l[f];if(g.validator(d))return g.classGroupId}},wL=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?bL+r:void 0})(),SL=e=>{const{theme:t,classGroups:n}=e;return xL(n,t)},xL=(e,t)=>{const n=bE();for(const r in e){const s=e[r];Yg(s,n,r,t)}return n},Yg=(e,t,n,r)=>{const s=e.length;for(let i=0;i<s;i++){const l=e[i];RL(l,t,n,r)}},RL=(e,t,n,r)=>{if(typeof e=="string"){EL(e,t,n);return}if(typeof e=="function"){AL(e,t,n,r);return}TL(e,t,n,r)},EL=(e,t,n)=>{const r=e===""?t:wE(t,e);r.classGroupId=n},AL=(e,t,n,r)=>{if(kL(e)){Yg(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(vL(n,e))},TL=(e,t,n,r)=>{const s=Object.entries(e),i=s.length;for(let l=0;l<i;l++){const[d,h]=s[l];Yg(h,wE(t,d),n,r)}},wE=(e,t)=>{let n=e;const r=t.split(Fd),s=r.length;for(let i=0;i<s;i++){const l=r[i];let d=n.nextPart.get(l);d||(d=bE(),n.nextPart.set(l,d)),n=d}return n},kL=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,CL=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const s=(i,l)=>{n[i]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let l=n[i];if(l!==void 0)return l;if((l=r[i])!==void 0)return s(i,l),l},set(i,l){i in n?n[i]=l:s(i,l)}}},rg="!",N1=":",OL=[],j1=(e,t,n,r,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:s}),$L=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=s=>{const i=[];let l=0,d=0,h=0,f;const g=s.length;for(let E=0;E<g;E++){const x=s[E];if(l===0&&d===0){if(x===N1){i.push(s.slice(h,E)),h=E+1;continue}if(x==="/"){f=E;continue}}x==="["?l++:x==="]"?l--:x==="("?d++:x===")"&&d--}const y=i.length===0?s:s.slice(h);let b=y,_=!1;y.endsWith(rg)?(b=y.slice(0,-1),_=!0):y.startsWith(rg)&&(b=y.slice(1),_=!0);const S=f&&f>h?f-h:void 0;return j1(i,_,b,S)};if(t){const s=t+N1,i=r;r=l=>l.startsWith(s)?i(l.slice(s.length)):j1(OL,!1,l,void 0,!0)}if(n){const s=r;r=i=>n({className:i,parseClassName:s})}return r},ML=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let s=[];for(let i=0;i<n.length;i++){const l=n[i],d=l[0]==="[",h=t.has(l);d||h?(s.length>0&&(s.sort(),r.push(...s),s=[]),r.push(l)):s.push(l)}return s.length>0&&(s.sort(),r.push(...s)),r}},NL=e=>({cache:CL(e.cacheSize),parseClassName:$L(e),sortModifiers:ML(e),..._L(e)}),jL=/\s+/,PL=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:i}=t,l=[],d=e.trim().split(jL);let h="";for(let f=d.length-1;f>=0;f-=1){const g=d[f],{isExternal:y,modifiers:b,hasImportantModifier:_,baseClassName:S,maybePostfixModifierPosition:E}=n(g);if(y){h=g+(h.length>0?" "+h:h);continue}let x=!!E,k=r(x?S.substring(0,E):S);if(!k){if(!x){h=g+(h.length>0?" "+h:h);continue}if(k=r(S),!k){h=g+(h.length>0?" "+h:h);continue}x=!1}const M=b.length===0?"":b.length===1?b[0]:i(b).join(":"),P=_?M+rg:M,I=P+k;if(l.indexOf(I)>-1)continue;l.push(I);const F=s(k,x);for(let G=0;G<F.length;++G){const U=F[G];l.push(P+U)}
vendor: 4,462 bytes, line 99
99h=g+(h.length>0?" "+h:h)}return h},DL=(...e)=>{let t=0,n,r,s="";for(;t<e.length;)(n=e[t++])&&(r=SE(n))&&(s&&(s+=" "),s+=r);return s},SE=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=SE(e[r]))&&(n&&(n+=" "),n+=t);return n},IL=(e,...t)=>{let n,r,s,i;const l=h=>{const f=t.reduce((g,y)=>y(g),e());return n=NL(f),r=n.cache.get,s=n.cache.set,i=d,d(h)},d=h=>{const f=r(h);if(f)return f;const g=PL(h,n);return s(h,g),g};return i=l,(...h)=>i(DL(...h))},LL=[],rn=e=>{const t=n=>n[e]||LL;return t.isThemeGetter=!0,t},xE=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,RE=/^\((?:(\w[\w-]*):)?(.+)\)$/i,zL=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,BL=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,UL=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,VL=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,FL=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qL=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Yo=e=>zL.test(e),Je=e=>!!e&&!Number.isNaN(Number(e)),Jo=e=>!!e&&Number.isInteger(Number(e)),mm=e=>e.endsWith("%")&&Je(e.slice(0,-1)),uo=e=>BL.test(e),EE=()=>!0,HL=e=>UL.test(e)&&!VL.test(e),Jg=()=>!1,GL=e=>FL.test(e),KL=e=>qL.test(e),ZL=e=>!Ne(e)&&!De(e),WL=e=>ya(e,kE,Jg),Ne=e=>xE.test(e),Ga=e=>ya(e,CE,HL),P1=e=>ya(e,r9,Je),YL=e=>ya(e,$E,EE),JL=e=>ya(e,OE,Jg),D1=e=>ya(e,AE,Jg),QL=e=>ya(e,TE,KL),rd=e=>ya(e,ME,GL),De=e=>RE.test(e),Pc=e=>hs(e,CE),XL=e=>hs(e,OE),I1=e=>hs(e,AE),e9=e=>hs(e,kE),t9=e=>hs(e,TE),od=e=>hs(e,ME,!0),n9=e=>hs(e,$E,!0),ya=(e,t,n)=>{const r=xE.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},hs=(e,t,n=!1)=>{const r=RE.exec(e);return r?r[1]?t(r[1]):n:!1},AE=e=>e==="position"||e==="percentage",TE=e=>e==="image"||e==="url",kE=e=>e==="length"||e==="size"||e==="bg-size",CE=e=>e==="length",r9=e=>e==="number",OE=e=>e==="family-name",$E=e=>e==="number"||e==="weight",ME=e=>e==="shadow",o9=()=>{const e=rn("color"),t=rn("font"),n=rn("text"),r=rn("font-weight"),s=rn("tracking"),i=rn("leading"),l=rn("breakpoint"),d=rn("container"),h=rn("spacing"),f=rn("radius"),g=rn("shadow"),y=rn("inset-shadow"),b=rn("text-shadow"),_=rn("drop-shadow"),S=rn("blur"),E=rn("perspective"),x=rn("aspect"),k=rn("ease"),M=rn("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...I(),De,Ne],G=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto","contain","none"],V=()=>[De,Ne,h],ne=()=>[Yo,"full","auto",...V()],W=()=>[Jo,"none","subgrid",De,Ne],pe=()=>["auto",{span:["full",Jo,De,Ne]},Jo,De,Ne],de=()=>[Jo,"auto",De,Ne],$e=()=>["auto","min","max","fr",De,Ne],Ce=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ue=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...V()],te=()=>[Yo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],we=()=>[Yo,"screen","full","dvw","lvw","svw","min","max","fit",...V()],Pe=()=>[Yo,"screen","full","lh","dvh","lvh","svh","min","max","fit",...V()],ye=()=>[e,De,Ne],L=()=>[...I(),I1,D1,{position:[De,Ne]}],ae=()=>["no-repeat",{repeat:["","x","y","space","round"]}],oe=()=>["auto","cover","contain",e9,WL,{size:[De,Ne]}],ce=()=>[mm,Pc,Ga],he=()=>["","none","full",f,De,Ne],Re=()=>["",Je,Pc,Ga],Le=()=>["solid","dashed","dotted","double"],ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Se=()=>[Je,mm,I1,D1],Et=()=>["","none",S,De,Ne],it=()=>["none",Je,De,Ne],ht=()=>["none",Je,De,Ne],K=()=>[Je,De,Ne],Q=()=>[Yo,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[uo],breakpoint:[uo],color:[EE],container:[uo],"drop-shadow":[uo],ease:["in","out","in-out"],font:[ZL],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[uo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[uo],shadow:[uo],spacing:["px",Je],text:[uo],"text-shadow":[uo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Yo,Ne,De,x]}
vendor: 4,444 bytes, line 99
99],container:["container"],columns:[{columns:[Je,Ne,De,d]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:F()}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ne()}],"inset-x":[{"inset-x":ne()}],"inset-y":[{"inset-y":ne()}],start:[{"inset-s":ne(),start:ne()}],end:[{"inset-e":ne(),end:ne()}],"inset-bs":[{"inset-bs":ne()}],"inset-be":[{"inset-be":ne()}],top:[{top:ne()}],right:[{right:ne()}],bottom:[{bottom:ne()}],left:[{left:ne()}],visibility:["visible","invisible","collapse"],z:[{z:[Jo,"auto",De,Ne]}],basis:[{basis:[Yo,"full","auto",d,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Je,Yo,"auto","initial","none",Ne]}],grow:[{grow:["",Je,De,Ne]}],shrink:[{shrink:["",Je,De,Ne]}],order:[{order:[Jo,"first","last","none",De,Ne]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:pe()}],"col-start":[{"col-start":de()}],"col-end":[{"col-end":de()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:pe()}],"row-start":[{"row-start":de()}],"row-end":[{"row-end":de()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":$e()}],"auto-rows":[{"auto-rows":$e()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...Ce(),"normal"]}],"justify-items":[{"justify-items":[...ue(),"normal"]}],"justify-self":[{"justify-self":["auto",...ue()]}],"align-content":[{content:["normal",...Ce()]}],"align-items":[{items:[...ue(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ue(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ce()}],"place-items":[{"place-items":[...ue(),"baseline"]}],"place-self":[{"place-self":["auto",...ue()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pbs:[{pbs:V()}],pbe:[{pbe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mbs:[{mbs:z()}],mbe:[{mbe:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],"inline-size":[{inline:["auto",...we()]}],"min-inline-size":[{"min-inline":["auto",...we()]}],"max-inline-size":[{"max-inline":["none",...we()]}],"block-size":[{block:["auto",...Pe()]}],"min-block-size":[{"min-block":["auto",...Pe()]}],"max-block-size":[{"max-block":["none",...Pe()]}],w:[{w:[d,"screen",...te()]}],"min-w":[{"min-w":[d,"screen","none",...te()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[l]},...te()]}],h:[{h:["screen","lh",...te()]}],"min-h":[{"min-h":["screen","lh","none",...te()]}],"max-h":[{"max-h":["screen","lh",...te()]}],"font-size":[{text:["base",n,Pc,Ga]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,n9,YL]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",mm,Ne]}],"font-family":[{font:[XL,JL,t]}],"font-features":[{"font-features":[Ne]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,De,Ne]}
vendor: 9,137 bytes, line 99
99],"line-clamp":[{"line-clamp":[Je,"none",De,P1]}],leading:[{leading:[i,...V()]}],"list-image":[{"list-image":["none",De,Ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",De,Ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ye()}],"text-color":[{text:ye()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Le(),"wavy"]}],"text-decoration-thickness":[{decoration:[Je,"from-font","auto",De,Ga]}],"text-decoration-color":[{decoration:ye()}],"underline-offset":[{"underline-offset":[Je,"auto",De,Ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",De,Ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",De,Ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:ae()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Jo,De,Ne],radial:["",De,Ne],conic:[Jo,De,Ne]},t9,QL]}],"bg-color":[{bg:ye()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:ye()}],"gradient-via":[{via:ye()}],"gradient-to":[{to:ye()}],rounded:[{rounded:he()}],"rounded-s":[{"rounded-s":he()}],"rounded-e":[{"rounded-e":he()}],"rounded-t":[{"rounded-t":he()}],"rounded-r":[{"rounded-r":he()}],"rounded-b":[{"rounded-b":he()}],"rounded-l":[{"rounded-l":he()}],"rounded-ss":[{"rounded-ss":he()}],"rounded-se":[{"rounded-se":he()}],"rounded-ee":[{"rounded-ee":he()}],"rounded-es":[{"rounded-es":he()}],"rounded-tl":[{"rounded-tl":he()}],"rounded-tr":[{"rounded-tr":he()}],"rounded-br":[{"rounded-br":he()}],"rounded-bl":[{"rounded-bl":he()}],"border-w":[{border:Re()}],"border-w-x":[{"border-x":Re()}],"border-w-y":[{"border-y":Re()}],"border-w-s":[{"border-s":Re()}],"border-w-e":[{"border-e":Re()}],"border-w-bs":[{"border-bs":Re()}],"border-w-be":[{"border-be":Re()}],"border-w-t":[{"border-t":Re()}],"border-w-r":[{"border-r":Re()}],"border-w-b":[{"border-b":Re()}],"border-w-l":[{"border-l":Re()}],"divide-x":[{"divide-x":Re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Le(),"hidden","none"]}],"divide-style":[{divide:[...Le(),"hidden","none"]}],"border-color":[{border:ye()}],"border-color-x":[{"border-x":ye()}],"border-color-y":[{"border-y":ye()}],"border-color-s":[{"border-s":ye()}],"border-color-e":[{"border-e":ye()}],"border-color-bs":[{"border-bs":ye()}],"border-color-be":[{"border-be":ye()}],"border-color-t":[{"border-t":ye()}],"border-color-r":[{"border-r":ye()}],"border-color-b":[{"border-b":ye()}],"border-color-l":[{"border-l":ye()}],"divide-color":[{divide:ye()}],"outline-style":[{outline:[...Le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Je,De,Ne]}],"outline-w":[{outline:["",Je,Pc,Ga]}],"outline-color":[{outline:ye()}],shadow:[{shadow:["","none",g,od,rd]}],"shadow-color":[{shadow:ye()}],"inset-shadow":[{"inset-shadow":["none",y,od,rd]}],"inset-shadow-color":[{"inset-shadow":ye()}],"ring-w":[{ring:Re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ye()}],"ring-offset-w":[{"ring-offset":[Je,Ga]}],"ring-offset-color":[{"ring-offset":ye()}],"inset-ring-w":[{"inset-ring":Re()}],"inset-ring-color":[{"inset-ring":ye()}],"text-shadow":[{"text-shadow":["none",b,od,rd]}],"text-shadow-color":[{"text-shadow":ye()}],opacity:[{opacity:[Je,De,Ne]}],"mix-blend":[{"mix-blend":[...ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ve()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Je]}],"mask-image-linear-from-pos":[{"mask-linear-from":Se()}],"mask-image-linear-to-pos":[{"mask-linear-to":Se()}],"mask-image-linear-from-color":[{"mask-linear-from":ye()}],"mask-image-linear-to-color":[{"mask-linear-to":ye()}],"mask-image-t-from-pos":[{"mask-t-from":Se()}],"mask-image-t-to-pos":[{"mask-t-to":Se()}],"mask-image-t-from-color":[{"mask-t-from":ye()}],"mask-image-t-to-color":[{"mask-t-to":ye()}],"mask-image-r-from-pos":[{"mask-r-from":Se()}],"mask-image-r-to-pos":[{"mask-r-to":Se()}],"mask-image-r-from-color":[{"mask-r-from":ye()}],"mask-image-r-to-color":[{"mask-r-to":ye()}],"mask-image-b-from-pos":[{"mask-b-from":Se()}],"mask-image-b-to-pos":[{"mask-b-to":Se()}],"mask-image-b-from-color":[{"mask-b-from":ye()}],"mask-image-b-to-color":[{"mask-b-to":ye()}],"mask-image-l-from-pos":[{"mask-l-from":Se()}],"mask-image-l-to-pos":[{"mask-l-to":Se()}],"mask-image-l-from-color":[{"mask-l-from":ye()}],"mask-image-l-to-color":[{"mask-l-to":ye()}],"mask-image-x-from-pos":[{"mask-x-from":Se()}],"mask-image-x-to-pos":[{"mask-x-to":Se()}],"mask-image-x-from-color":[{"mask-x-from":ye()}],"mask-image-x-to-color":[{"mask-x-to":ye()}],"mask-image-y-from-pos":[{"mask-y-from":Se()}],"mask-image-y-to-pos":[{"mask-y-to":Se()}],"mask-image-y-from-color":[{"mask-y-from":ye()}],"mask-image-y-to-color":[{"mask-y-to":ye()}],"mask-image-radial":[{"mask-radial":[De,Ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":Se()}],"mask-image-radial-to-pos":[{"mask-radial-to":Se()}],"mask-image-radial-from-color":[{"mask-radial-from":ye()}],"mask-image-radial-to-color":[{"mask-radial-to":ye()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":I()}],"mask-image-conic-pos":[{"mask-conic":[Je]}],"mask-image-conic-from-pos":[{"mask-conic-from":Se()}],"mask-image-conic-to-pos":[{"mask-conic-to":Se()}],"mask-image-conic-from-color":[{"mask-conic-from":ye()}],"mask-image-conic-to-color":[{"mask-conic-to":ye()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:ae()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",De,Ne]}],filter:[{filter:["","none",De,Ne]}],blur:[{blur:Et()}],brightness:[{brightness:[Je,De,Ne]}],contrast:[{contrast:[Je,De,Ne]}],"drop-shadow":[{"drop-shadow":["","none",_,od,rd]}],"drop-shadow-color":[{"drop-shadow":ye()}],grayscale:[{grayscale:["",Je,De,Ne]}],"hue-rotate":[{"hue-rotate":[Je,De,Ne]}],invert:[{invert:["",Je,De,Ne]}],saturate:[{saturate:[Je,De,Ne]}],sepia:[{sepia:["",Je,De,Ne]}],"backdrop-filter":[{"backdrop-filter":["","none",De,Ne]}],"backdrop-blur":[{"backdrop-blur":Et()}],"backdrop-brightness":[{"backdrop-brightness":[Je,De,Ne]}],"backdrop-contrast":[{"backdrop-contrast":[Je,De,Ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Je,De,Ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Je,De,Ne]}],"backdrop-invert":[{"backdrop-invert":["",Je,De,Ne]}],"backdrop-opacity":[{"backdrop-opacity":[Je,De,Ne]}],"backdrop-saturate":[{"backdrop-saturate":[Je,De,Ne]}],"backdrop-sepia":[{"backdrop-sepia":["",Je,De,Ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",De,Ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Je,"initial",De,Ne]}],ease:[{ease:["linear","initial",k,De,Ne]}],delay:[{delay:[Je,De,Ne]}],animate:[{animate:["none",M,De,Ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,De,Ne]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:it()}],"rotate-x":[{"rotate-x":it()}],"rotate-y":[{"rotate-y":it()}],"rotate-z":[{"rotate-z":it()}],scale:[{scale:ht()}],"scale-x":[{"scale-x":ht()}],"scale-y":[{"scale-y":ht()}],"scale-z":[{"scale-z":ht()}],"scale-3d":["scale-3d"],skew:[{skew:K()}],"skew-x":[{"skew-x":K()}],"skew-y":[{"skew-y":K()}],transform:[{transform:[De,Ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Q()}],"translate-x":[{"translate-x":Q()}],"translate-y":[{"translate-y":Q()}],"translate-z":[{"translate-z":Q()}],"translate-none":["translate-none"],accent:[{accent:ye()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ye()}
vendor: 5,029 bytes, line 99
99],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",De,Ne]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mbs":[{"scroll-mbs":V()}],"scroll-mbe":[{"scroll-mbe":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pbs":[{"scroll-pbs":V()}],"scroll-pbe":[{"scroll-pbe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",De,Ne]}],fill:[{fill:["none",...ye()]}],"stroke-w":[{stroke:[Je,Pc,Ga,P1]}],stroke:[{stroke:["none",...ye()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},a9=IL(o9);function bn(...e){return a9(vE(e))}const s9=pE,sce=mE,i9=gE,NE=T.forwardRef(({className:e,...t},n)=>p.jsx(Hg,{ref:n,className:bn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));
99NE.displayName=Hg.displayName;const jE=T.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(i9,{children:[p.jsx(NE,{}),p.jsxs(Gg,{ref:r,className:bn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",e),...n,children:[t,p.jsxs(Wg,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background cursor-pointer transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[p.jsx(fa,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));jE.displayName=Gg.displayName;const PE=({className:e,...t})=>p.jsx("div",{className:bn("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});PE.displayName="DialogHeader";const c9=({className:e,...t})=>p.jsx("div",{className:bn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});c9.displayName="DialogFooter";const DE=T.forwardRef(({className:e,...t},n)=>p.jsx(Kg,{ref:n,className:bn("text-lg font-semibold leading-none tracking-tight",e),...t}));DE.displayName=Kg.displayName;const l9=T.forwardRef(({className:e,...t},n)=>p.jsx(Zg,{ref:n,className:bn("text-sm text-muted-foreground",e),...t}));l9.displayName=Zg.displayName;function u9(e){const t=T.useRef({value:e,previous:e});return T.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function d9(e){const[t,n]=T.useState(void 0);return Oi(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let l,d;if("borderBoxSize"in i){const h=i.borderBoxSize,f=Array.isArray(h)?h[0]:h;l=f.inlineSize,d=f.blockSize}else l=e.offsetWidth,d=e.offsetHeight;n({width:l,height:d})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var uh="Checkbox",[h9]=Ug(uh),[f9,Qg]=h9(uh);function p9(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:s,disabled:i,form:l,name:d,onCheckedChange:h,required:f,value:g="on",internal_do_not_use_render:y}=e,[b,_]=DR({prop:n,defaultProp:s??!1,onChange:h,caller:uh}),[S,E]=T.useState(null),[x,k]=T.useState(null),M=T.useRef(!1),P=S?!!l||!!S.closest("form"):!0,I={checked:b,disabled:i,setChecked:_,control:S,setControl:E,name:d,form:l,value:g,hasConsumerStoppedPropagationRef:M,required:f,defaultChecked:da(s)?!1:s,isFormControl:P,bubbleInput:x,setBubbleInput:k};return p.jsx(f9,{scope:t,...I,children:m9(y)?y(I):r})}var IE="CheckboxTrigger",LE=T.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},s)=>{const{control:i,value:l,disabled:d,checked:h,required:f,setControl:g,setChecked:y,hasConsumerStoppedPropagationRef:b,isFormControl:_,bubbleInput:S}=Qg(IE,e),E=Er(s,g),x=T.useRef(h);return T.useEffect(()=>{const k=i?.form;if(k){const M=()=>y(x.current);return k.addEventListener("reset",M),()=>k.removeEventListener("reset",M)}},[i,y]),p.jsx(fr.button,{type:"button",role:"checkbox","aria-checked":da(h)?"mixed":h,"aria-required":f,"data-state":FE(h),"data-disabled":d?"":void 0,disabled:d,value:l,...r,ref:E,onKeyDown:Rr(t,k=>{k.key==="Enter"&&k.preventDefault()}),onClick:Rr(n,k=>{y(M=>da(M)?!0:!M),S&&_&&(b.current=k.isPropagationStopped(),b.current||k.stopPropagation())})})});LE.displayName=IE;var Xg=T.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:s,defaultChecked:i,required:l,disabled:d,value:h,onCheckedChange:f,form:g,...y}=e;return p.jsx(p9,{__scopeCheckbox:n,checked:s,defaultChecked:i,disabled:d,required:l,onCheckedChange:f,name:r,form:g,value:h,internal_do_not_use_render:({isFormControl:b})=>p.jsxs(p.Fragment,{children:[p.jsx(LE,{...y,ref:t,__scopeCheckbox:n}),b&&p.jsx(VE,{__scopeCheckbox:n})]})})});Xg.displayName=uh;var zE="CheckboxIndicator",BE=T.forwardRef((e,t)=>
99{const{__scopeCheckbox:n,forceMount:r,...s}=e,i=Qg(zE,n);return p.jsx(bl,{present:r||da(i.checked)||i.checked===!0,children:p.jsx(fr.span,{"data-state":FE(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});BE.displayName=zE;var UE="CheckboxBubbleInput",VE=T.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:s,checked:i,defaultChecked:l,required:d,disabled:h,name:f,value:g,form:y,bubbleInput:b,setBubbleInput:_}=Qg(UE,e),S=Er(n,_),E=u9(i),x=d9(r);T.useEffect(()=>{const M=b;if(!M)return;const P=window.HTMLInputElement.prototype,F=Object.getOwnPropertyDescriptor(P,"checked").set,G=!s.current;if(E!==i&&F){const U=new Event("click",{bubbles:G});M.indeterminate=da(i),F.call(M,da(i)?!1:i),M.dispatchEvent(U)}},[b,E,i,s]);const k=T.useRef(da(i)?!1:i);return p.jsx(fr.input,{type:"checkbox","aria-hidden":!0,defaultChecked:l??k.current,required:d,disabled:h,name:f,value:g,form:y,...t,tabIndex:-1,ref:S,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});VE.displayName=UE;function m9(e){return typeof e=="function"}function da(e){return e==="indeterminate"}function FE(e){return da(e)?"indeterminate":e?"checked":"unchecked"}const qE=T.forwardRef(({className:e,...t},n)=>p.jsx(Xg,{ref:n,className:bn("grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:p.jsx(BE,{className:bn("grid place-content-center text-current"),children:p.jsx(W4,{className:"h-4 w-4"})})}));qE.displayName=Xg.displayName;var g9=Symbol.for("react.lazy"),qd=mg[" use ".trim().toString()];function y9(e){return typeof e=="object"&&e!==null&&"then"in e}function HE(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===g9&&"_payload"in e&&y9(e._payload)}function v9(e){const t=_9(e),n=T.forwardRef((r,s)=>{let{children:i,...l}=r;HE(i)&&typeof qd=="function"&&(i=qd(i._payload));const d=T.Children.toArray(i),h=d.find(S9);if(h){const f=h.props.children,g=d.map(y=>y===h?T.Children.count(f)>1?T.Children.only(null):T.isValidElement(f)?f.props.children:null:y);return p.jsx(t,{...l,ref:s,children:T.isValidElement(f)?T.cloneElement(f,void 0,g):null})}return p.jsx(t,{...l,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}var b9=v9("Slot");function _9(e){const t=T.forwardRef((n,r)=>{let{children:s,...i}=n;if(HE(s)&&typeof qd=="function"&&(s=qd(s._payload)),T.isValidElement(s)){const l=R9(s),d=x9(i,s.props);return s.type!==T.Fragment&&(d.ref=r?ih(r,l):l),T.cloneElement(s,d)}return T.Children.count(s)>1?T.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var w9=Symbol("radix.slottable");function S9(e){return T.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===w9}function x9(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...d)=>{const h=i(...d);return s(...d),h}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function R9(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const L1=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,z1=vE,E9=(e,t)=>n=>{var r;if(t?.variants==null)return z1(e,n?.class,n?.className);const{variants:s,defaultVariants:i}=t,l=Object.keys(s).map(f=>{const g=n?.[f],y=i?.[f];if(g===null)return null;const b=L1(g)||L1(y);return s[f][b]}),d=n&&Object.entries(n).reduce((f,g)=>{let[y,b]=g;return b===void 0||(f[y]=b),f},{}),h=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,g)=>{let{class:y,className:b,..._}=g;return Object.entries(_).every(S=>{let[E,x]=S;return Array.isArray(x)?x.includes({...i,...d}[E]):{...i,...d}[E]===x})?[...f,y,b]:f},[]);return z1(e,l,h,n?.class,n?.className)},ey=E9("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),GE=T.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const l=r?b9:"button";return p.jsx(l,{className:bn(ey({variant:t,size:n,className:e})),ref:i,...s})});GE.displayName="Button";function A9(e){if(typeof window>"u")return!1;try{return window.localStorage.getItem(e)==="1"||window.localStorage.getItem(KE)==="1"}catch{return!1}}function T9(e){try{window.localStorage.setItem(e,"1"),window.localStorage.setItem(KE,"1")}catch{}}const KE="mo-demo-disclosure-site-v1";function k9({storageKey:e,pageLabel:t,onAccept:n,alwaysShow:r}){const[s,i]=T.useState(!1),[l,d]=T.useState(!1),[h,f]=T.useState(!1);T.useEffect(()=>{const y=!r&&A9(e);f(!0),y?n?.():i(!0)},[e,r]);const g=()=>{l&&(r||T9(e),i(!1),n?.())};return h?p.jsx(s9,{open:s,onOpenChange:()=>{},children:p.jsxs(jE,{className:"max-w-2xl max-h-[90vh] overflow-y-auto [&>button]:hidden",onPointerDownOutside:y=>y.preventDefault(),onEscapeKeyDown:y=>y.preventDefault(),onInteractOutside:y=>y.preventDefault(),children:[p.jsxs(PE,{children:[p.jsxs("div",{className:"flex items-center gap-2 text-destructive",children:[p.jsx(Bg,{className:"w-5 h-5"}),p.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.3em]",children:"Demonstration Purposes Only"})]}),p.jsxs(DE,{className:"text-xl",children:["MO Streams Music & Video Distribution â ",t," Disclosure"]})]}
99),p.jsx("div",{className:"space-y-4 text-sm text-foreground/90",children:p.jsxs("p",{children:["These music videos that's uploaded by Mo Streams is not being monetized, just for demo purposes only. If you see your video up here, if you want us to take it down immediately, please email"," ",p.jsx("a",{href:"mailto:[email protected]",className:"text-primary underline font-medium",children:"[email protected]"}),"."]})}),p.jsxs("div",{className:"flex items-start gap-3 pt-4 border-t border-border",children:[p.jsx(qE,{id:"demo-disclosure-ack",checked:l,onCheckedChange:y=>d(y===!0),className:"mt-0.5"}),p.jsx("label",{htmlFor:"demo-disclosure-ack",className:"text-sm font-medium leading-tight cursor-pointer select-none",children:"I have read and agree to the terms above."})]}),p.jsx("div",{className:"flex justify-end pt-2",children:p.jsx(GE,{onClick:g,disabled:!l,size:"lg",children:"Continue"})})]})}):p.jsx("div",{"aria-hidden":"true",className:"fixed inset-0 z-[60] bg-background"})}const C9="/__l5e/assets-v1/7de1e9a9-6f57-4c0d-a016-bfb3c8e025db/mostreams-share-card.png",ha={url:C9},ZE=T.createContext(null),_d="mo_admin_acting_as_v1";function B1(){if(typeof window>"u")return null;try{const e=window.sessionStorage.getItem(_d);return e?JSON.parse(e):null}catch{return null}}function O9({children:e}){const[t,n]=T.useState(null);T.useEffect(()=>{n(B1());const l=d=>{d.key===_d&&n(B1())};return window.addEventListener("storage",l),()=>window.removeEventListener("storage",l)},[]);const r=T.useCallback(l=>{window.sessionStorage.setItem(_d,JSON.stringify(l)),n(l)},[]),s=T.useCallback(()=>{window.sessionStorage.removeItem(_d),n(null)},[]),i=T.useMemo(()=>({target:t,isActing:!!t,start:r,stop:s}),[t,r,s]);return p.jsx(ZE.Provider,{value:i,children:e})}function $9(){const e=T.useContext(ZE);return e||{target:null,isActing:!1,start:()=>{},stop:()=>{}}}function M9(){const{target:e,isActing:t,stop:n}=$9();return!t||!e?null:p.jsx("div",{className:"sticky top-0 z-[100] w-full border-b border-amber-500/40 bg-amber-500/95 text-black shadow",children:p.jsxs("div",{className:"mx-auto flex max-w-7xl items-center gap-3 px-3 py-2 text-sm",children:[p.jsx(Bg,{className:"h-4 w-4 shrink-0"}),p.jsxs("div",{className:"min-w-0 flex-1 truncate",children:[p.jsx("span",{className:"font-semibold",children:"Admin override active"}),p.jsx("span",{className:"mx-2 opacity-70",children:"·"}),p.jsxs("span",{className:"truncate",children:["Acting as"," ",p.jsx("span",{className:"font-semibold",children:e.displayName||e.handle||e.userId.slice(0,8)}),e.handle?p.jsxs("span",{className:"opacity-70",children:[" (@",e.handle,")"]}):null]})]}),p.jsxs("button",{type:"button",onClick:n,className:"inline-flex items-center gap-1 rounded-md bg-black/90 px-2.5 py-1 text-xs font-semibold text-white hover:bg-black",children:[p.jsx(fa,{className:"h-3.5 w-3.5"})," Exit admin mode"]})]})})}function N9(){return p.jsx("div",{className:"w-full border-b border-primary/40 bg-gradient-to-r from-primary/25 via-primary/10 to-transparent",children:p.jsxs("div",{className:"mx-auto flex max-w-7xl items-center justify-center gap-2 px-4 py-2 text-center text-[11px] font-bold uppercase tracking-wider sm:text-xs",children:[p.jsx(V4,{className:"h-4 w-4 shrink-0 text-primary"}),p.jsxs("span",{className:"text-foreground",children:["Keep ",p.jsx("span",{className:"text-primary",children:"100%"})," of your royalties â 100% of your masters, sales & publishing."]}),p.jsx(An,{to:"/pricing",className:"hidden text-primary underline-offset-2 hover:underline sm:inline",children:"See plans"})]})})}function j9(){T.useEffect(()=>{if(typeof window>"u")return;const e="linear-gradient(135deg, hsl(var(--muted) / 0.4), hsl(var(--muted) / 0.15))",t=new WeakSet,n=l=>{t.has(l)||(t.add(l),l.style.background=e,l.style.objectFit="cover",l.style.color="transparent",l.style.fontSize="0")},r=l=>l.complete&&l.naturalWidth===0&&!!l.getAttribute("src"),s=l=>{const d=l.target;d&&d.tagName==="IMG"&&n(d)};window.addEventListener("error",s,!0),document.querySelectorAll("img").forEach(l=>{r(l)&&n(l)});const i=new MutationObserver(l=>
99{for(const d of l)d.addedNodes.forEach(h=>{if(h.nodeType!==1)return;const f=h;f.tagName==="IMG"&&r(f)&&n(f),f.querySelectorAll?.("img").forEach(g=>{r(g)&&n(g)})})});return i.observe(document.body,{childList:!0,subtree:!0}),()=>{window.removeEventListener("error",s,!0),i.disconnect()}},[])}const Hd=200,P9=1e4,WE="mostreams.crash.trace.v1",og=new Map,ag=new Map,sg=new Set;let go=I9();function D9(e){if(!(typeof window>"u"))try{$(async()=>{const{supabase:t}=await Promise.resolve().then(()=>yP);return{supabase:t}},[]).then(({supabase:t})=>t.from("client_crash_reports").insert({event_id:e.id,group_id:e.groupId,level:e.level,area:e.area,source:e.source??null,message:e.message.slice(0,2e3),stack:e.stack?e.stack.slice(0,8e3):null,component_stack:e.componentStack?e.componentStack.slice(0,8e3):null,route:e.route,viewport:e.viewport,user_agent:typeof navigator<"u"?navigator.userAgent.slice(0,500):null,meta:e.meta??{},occurrences:e.count})).then(()=>{},()=>{})}catch{}}function I9(){try{if(typeof sessionStorage>"u")return[];const e=sessionStorage.getItem(WE);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.slice(-Hd):[]}catch{return[]}}function ty(){try{if(typeof sessionStorage>"u")return;sessionStorage.setItem(WE,JSON.stringify(go.slice(-Hd)))}catch{}}function ny(){for(const e of sg)try{e(go.slice())}catch{}}function L9(){try{if(typeof crypto<"u"&&"randomUUID"in crypto)return crypto.randomUUID()}catch{}return`c_${Date.now().toString(36)}_${Math.random().toString(36).slice(2,10)}`}function z9(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)|0;return`g_${(t>>>0).toString(36)}`}function B9(e){try{return e instanceof Error?{message:e.message||String(e),stack:e.stack??null}:typeof e=="string"?{message:e,stack:null}:{message:JSON.stringify(e),stack:null}}catch{return{message:"unknown error",stack:null}}}function U9(e){go.push(e),go.length>Hd&&(go=go.slice(-Hd)),ty(),ny()}function Br(e){try{const{message:t,stack:n}=B9(e.error),r=z9(`${e.area}::${t}`),s=Date.now(),i=og.get(r)??0,l=(ag.get(r)??0)+1;if(ag.set(r,l),s-i<P9){const h=[...go].reverse().find(f=>f.groupId===r);return h&&(h.count=l,h.at=new Date(s).toISOString(),ty(),ny()),null}og.set(r,s);const d={id:L9(),groupId:r,at:new Date(s).toISOString(),level:"error",area:e.area,source:e.source,message:t,stack:n,componentStack:e.componentStack??null,route:typeof window<"u"?window.location.pathname+window.location.search:null,viewport:typeof window<"u"?`${window.innerWidth}x${window.innerHeight}`:null,meta:e.meta,count:l};return console.error(`[crash-report:${d.id}]`,{...d}),U9(d),D9(d),d}catch{return null}}function ice(){return go.slice()}function cce(){go=[],og.clear(),ag.clear(),ty(),ny()}function lce(e){return sg.add(e),()=>sg.delete(e)}let U1=!1;function V9(){U1||typeof window>"u"||(U1=!0,window.addEventListener("error",e=>{Br({area:"window.error",error:e.error??e.message,source:e.filename})}),window.addEventListener("unhandledrejection",e=>{Br({area:"unhandledrejection",error:e.reason})}))}const F9=5*6e4,q9=3e4,Fc="mo-release-recovery",ig="__mo_fresh_build",cg="__mo_fresh_attempt",H9=3,G9=2*6e4;let gm=!1;function K9(){try{const e=window.sessionStorage.getItem(Fc);if(!e)return null;const t=JSON.parse(e);return typeof t.build!="string"||typeof t.attempts!="number"||typeof t.updatedAt!="number"?(window.sessionStorage.removeItem(Fc),null):{build:t.build,attempts:t.attempts,updatedAt:t.updatedAt}}catch{return window.sessionStorage.removeItem(Fc),null}}function Z9(){try{for(let e=window.sessionStorage.length-1;e>=0;e-=1){const t=window.sessionStorage.key(e);t?.startsWith("mo-release-reload:")&&window.sessionStorage.removeItem(t)}}catch{}}function W9(){try{window.sessionStorage.removeItem(Fc);const e=new URL(window.location.href);if(!e.searchParams.has(ig)&&!e.searchParams.has(cg))return;e.searchParams.delete(ig),e.searchParams.delete(cg),window.history.replaceState(window.history.state,"",e.toString())}catch{}}function Y9(){if(typeof window>"u"||gm)return()=>{};gm=!0,Z9();let e=!1,t=!1,n=0;const r=async()=>{if(!(e||t||document.visibilityState!=="visible")&&!(Date.now()-n<q9)){n=Date.now(),e=!0;try{const d=new URL(window.location.href);d.searchParams.set("__mo_release_check",Date.now().toString());const h=await fetch(d.toString(),{method:"HEAD",cache:"no-store",credentials:"same-origin",headers:{Accept:"text/html","X-MO-Release-Check":"1"}}),f=h.headers.get("x-mo-deployment");
99if(await h.body?.cancel().catch(()=>{}),!f)return;if(f==="mo-1789178855555"){W9();return}const g=Date.now(),y=K9(),_=y?.build===f&&g-y.updatedAt<G9?y.attempts:0;if(_>=H9)return;const S={build:f,attempts:_+1,updatedAt:g};try{window.sessionStorage.setItem(Fc,JSON.stringify(S))}catch{}const E=new URL(window.location.href);E.searchParams.set(ig,f),E.searchParams.set(cg,String(S.attempts)),window.location.replace(E.toString())}catch{}finally{e=!1}}},s=()=>{document.visibilityState==="visible"&&r()},i=()=>{r()},l=window.setInterval(()=>{r()},F9);return window.addEventListener("focus",r),window.addEventListener("pageshow",i),document.addEventListener("visibilitychange",s),r(),()=>{t=!0,gm=!1,window.clearInterval(l),window.removeEventListener("focus",r),window.removeEventListener("pageshow",i),document.removeEventListener("visibilitychange",s)}}function J9(){const[e,t]=T.useState(!1);return T.useEffect(()=>{let n=!0;const r=async i=>{if(!i){n&&t(!1);return}const{data:l}=await qe.rpc("has_role",{_user_id:i,_role:"super_admin"});n&&t(!!l)};qe.auth.getUser().then(({data:i})=>r(i.user?.id));const{data:{subscription:s}}=qe.auth.onAuthStateChange((i,l)=>r(l?.user?.id));return()=>{n=!1,s.unsubscribe()}},[]),e}function Q9(){const e=J9();T.useEffect(()=>{if(!e||typeof window>"u")return;const t=qe.channel("crash-alerts").on("postgres_changes",{event:"INSERT",schema:"public",table:"client_crash_reports"},n=>{const r=n.new;gd.error(`Crash · ${r.area??"unknown"}`,{description:`${r.message??"Unknown error"}${r.route?` â ${r.route}`:""}`,duration:1e4,action:{label:"Inspect",onClick:()=>{window.location.href="/mc-60e9ca6cf6/debug-traces"}}})}).subscribe();return()=>{qe.removeChannel(t)}},[e])}const X9="/assets/styles-DFgyiMef.css";function dh(e){return T.lazy(async()=>{try{return await e()}catch{try{return await new Promise(t=>setTimeout(t,400)),await e()}catch{return{default:(()=>null)}}}})}const e8=dh(()=>$(()=>import("./TrafficBeacon-dDhumio4.js"),[]).then(e=>({default:e.TrafficBeacon}))),t8=dh(()=>$(()=>import("./EngagementBeacon-BiRu1H3m.js"),[]).then(e=>({default:e.EngagementBeacon}))),n8=dh(()=>$(()=>import("./CookieBanner-9ggEN8Jw.js"),[]).then(e=>({default:e.CookieBanner}))),r8=dh(()=>$(()=>import("./GA4Injector-GUT3SJXv.js"),[]).then(e=>({default:e.GA4Injector})));function o8(){const[e,t]=T.useState(!1);return T.useEffect(()=>{const n=window.requestIdleCallback;if(n){const s=n(()=>t(!0),{timeout:3e3});return()=>window.cancelIdleCallback?.(s)}const r=window.setTimeout(()=>t(!0),1500);return()=>window.clearTimeout(r)},[]),e?p.jsxs(T.Suspense,{fallback:null,children:[p.jsx(e8,{}),p.jsx(t8,{}),p.jsx(r8,{}),p.jsx(n8,{})]}):null}function a8(){return p.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:p.jsxs("div",{className:"max-w-md text-center",children:[p.jsx("h1",{className:"text-7xl font-bold text-foreground",children:"404"}),p.jsx("h2",{className:"mt-4 text-xl font-semibold text-foreground",children:"Page not found"}),p.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"The page you're looking for doesn't exist or has been moved."}),p.jsx("div",{className:"mt-6",children:p.jsx(An,{to:"/",className:"inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:"Go home"})})]})})}function s8({error:e,reset:t}){const n=Lt();return T.useEffect(()=>{Br({area:"route.errorComponent",error:e});const r=window.setInterval(()=>{console.warn("[debug-auto-recovery] Retrying app route after captured error.",{route:window.location.pathname,message:e.message,at:new Date().toISOString()}),n.invalidate(),t()},3e4);return()=>window.clearInterval(r)},[e,n,t]),p.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:p.jsxs("div",{className:"max-w-md text-center",children:[p.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground",children:"This page didn't load"}),p.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"The automatic debug recovery captured this and will retry every 30 seconds."}),p.jsxs("div",{className:"mt-6 flex flex-wrap justify-center gap-2",children:[p.jsx("button",{onClick:()=>{n.invalidate(),t()},className:"inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:"Try again"}),p.jsx("a",{href:"/",className:"inline-flex items-center justify-center rounded-md border border-input bg-background px-4 py-2 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:"Go home"})]})]})})}const xe=OM()({head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1, viewport-fit=cover"},{name:"mobile-web-app-capable",content:"yes"},{name:"apple-mobile-web-app-capable",content:"yes"},{name:"apple-mobile-web-app-status-bar-style",content:"black-translucent"},{title:"MO STREAMS â Music & Video Distribution for Artists"},{name:"description",content:"Distribute your music and music videos worldwide. One platform for streaming and video, built for independent artists."},{name:"author",content:"MO STREAMS"},{name:"google-site-verification",content:"T9hzBlBINUaFafUAhY1UGLRIKQs2Wv-RmnGeS3gQg0A"},{property:"og:site_name",content:"MO STREAMS"},{property:"og:type",content:"website"},{property:"og:image",content:ha.url},{property:"og:image:alt",content:"MO STREAMS logo"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:image",content:ha.url},{name:"theme-color",content:"#0b0b10"}],links:[{rel:"stylesheet",href:X9}
99,{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"},{rel:"preconnect",href:"https://images.unsplash.com",crossOrigin:"anonymous"},{rel:"preconnect",href:"https://videodelivery.net",crossOrigin:"anonymous"},{rel:"preconnect",href:"https://cdn.videodelivery.net",crossOrigin:"anonymous"},{rel:"preconnect",href:"https://customer-.cloudflarestream.com",crossOrigin:"anonymous"},{rel:"dns-prefetch",href:"https://r2.cloudflarestorage.com"},{rel:"dns-prefetch",href:"https://media.mostreams.com"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800&family=Roboto+Condensed:wght@400;500;600&display=swap"},{rel:"manifest",href:"/manifest.webmanifest"},{rel:"icon",type:"image/png",href:"/favicon.png",sizes:"any"},{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32.png"},{rel:"icon",type:"image/png",sizes:"512x512",href:"/icon-512.png"},{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}],scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@graph":[{"@type":"Organization",name:"MO STREAMS",url:"https://mostreams.com",logo:"https://mostreams.com/icon-512.png",sameAs:["https://instagram.com/mostreams","https://twitter.com/mostreams","https://facebook.com/mostreams"],description:"Music and video distribution platform built for independent artists."},{"@type":"WebSite",name:"MO STREAMS",url:"https://mostreams.com",potentialAction:{"@type":"SearchAction",target:{"@type":"EntryPoint",urlTemplate:"https://mostreams.com/explore?q={search_term_string}"},"query-input":"required name=search_term_string"}}]})}]}),shellComponent:i8,component:c8,notFoundComponent:a8,errorComponent:s8});function i8({children:e}){return p.jsxs("html",{lang:"en",children:[p.jsx("head",{children:p.jsx(QM,{})}),p.jsxs("body",{children:[e,p.jsx(XM,{})]})]})}function c8(){const{queryClient:e}=xe.useRouteContext(),t=Lt();return j9(),T.useEffect(()=>{V9()},[]),T.useEffect(()=>Y9(),[]),Q9(),T.useEffect(()=>{const{data:{subscription:n}}=qe.auth.onAuthStateChange(r=>{r!=="SIGNED_IN"&&r!=="SIGNED_OUT"&&r!=="USER_UPDATED"||window.setTimeout(()=>{if(t.invalidate(),r==="SIGNED_OUT"){e.cancelQueries().finally(()=>e.clear());return}e.invalidateQueries()},0)});return()=>n.unsubscribe()},[t,e]),T.useEffect(()=>{if(typeof window>"u")return;const r=(new URLSearchParams(window.location.search).get("ref")||"").toLowerCase().replace(/[^a-z0-9_-]/g,"");if(!r)return;const s=document.cookie.split("; ").find(i=>i.startsWith("mo_ref="));document.cookie=`mo_ref=${encodeURIComponent(r)}; Path=/; Max-Age=5184000; SameSite=Lax`,!s&&(async()=>{const{data:i}=await qe.from("fan_referrals").select("user_id").eq("ref_code",r).maybeSingle();i&&await qe.from("fan_events").insert({user_id:i.user_id,kind:"ref_click",points:3,meta:{code:r,path:window.location.pathname}})})()},[]),p.jsxs(FP,{client:e,children:[p.jsxs(O9,{children:[p.jsx(M9,{}),p.jsx(N9,{}),p.jsx(zx,{})]}),p.jsx($4,{}),p.jsx(O4,{}),p.jsx(jI,{}),p.jsx(o8,{}),p.jsx(k9,{storageKey:"mo-demo-disclosure-site-v1",pageLabel:"MO Streams"})]})}const l8=ke({method:"GET"}).handler(Oe("fd84da73c2f6a724126902220c587c1c280a070ea6619b89d16dd18829d364c1")),YE=ke({method:"GET"}).handler(Oe("b991d8ae23228d79d8fffae93c0b35e75825869bdcdae71a4c2806521bfeb1b7")),ry="/assets/mo-streams-logo-trimmed-CcC9Qwew.png",u8=()=>$(()=>import("./index-t2AZMd-Z.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18])),d8=()=>$(()=>import("./HomeBelowFold-TpnRbXpS.js"),__vite__mapDeps([19,20,9,21,18,22,23])),va=e=>T.lazy(()=>d8().then(t=>({default:t[e]})));va("AllGenres");va("RoyaltyPromise");va("Marketing");va("Testimonials");va("DjBooth");va("PodcastMonetize");va("RoyaltiesEverywhere");va("Producers");const h8=j("/")({loader:()=>YE().catch(()=>null),head:()=>({meta:[{title:"MO STREAMS â Music & Video Distribution"},{name:"description",content:"Distribute your music and music videos worldwide. Spotify-style streaming and YouTube-style video, all in one platform built for independent artists."},{property:"og:title",content:"MO STREAMS â Music & Video Distribution"},{property:"og:description",content:"One platform. Audio + video. Worldwide reach for independent artists."},{property:"og:type",content:"website"}
99,{property:"og:url",content:"https://mostreams.com/"},{property:"og:image",content:"https://mostreams.com/og-image.png"},{property:"og:image:secure_url",content:"https://mostreams.com/og-image.png"},{property:"og:image:type",content:"image/png"},{property:"og:image:width",content:"1216"},{property:"og:image:height",content:"640"},{property:"og:image:alt",content:"MO STREAMS â Music & Video Distribution for Independent Artists"},{name:"twitter:title",content:"MO STREAMS â Music & Video Distribution for Artists"},{name:"twitter:description",content:"Distribute your music and music videos worldwide. One platform for streaming and video, built for independent artists."},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:image",content:"https://mostreams.com/og-image.png"},{name:"twitter:image:alt",content:"MO STREAMS â Music & Video Distribution for Independent Artists"}],links:[{rel:"canonical",href:"https://mostreams.com/"},{rel:"preload",as:"image",href:ry,fetchPriority:"high"}]}),component:N(u8,"component")}),f8=()=>$(()=>import("./_authenticated-DECf9qMs.js"),__vite__mapDeps([24,25,26,27])),p8=j("/_authenticated")({beforeLoad:async({location:e})=>{const t=async(l,d)=>{let h;try{return await Promise.race([l,new Promise(f=>{h=setTimeout(()=>f(null),d)})])}catch{return null}finally{h&&clearTimeout(h)}},r=(()=>{if(typeof window>"u")return null;try{for(let l=0;l<window.localStorage.length;l+=1){const d=window.localStorage.key(l);if(!d||!/^sb-.*-auth-token$/.test(d))continue;const h=window.localStorage.getItem(d);if(!h)continue;const f=JSON.parse(h),g=f?.user;if(g?.id&&!(typeof f.expires_at=="number"&&f.expires_at*1e3<=Date.now()))return{id:g.id,email:g.email}}}catch{}return null})();if(r)return qe.auth.getSession(),{userId:r.id,email:r.email};const i=(await t(qe.auth.getSession(),6500))?.data?.session?.user??null;if(!i){const l=e.pathname,d=e.href?.startsWith("/")?e.href:l,h=l==="/mc-60e9ca6cf6"||l.startsWith("/mc-60e9ca6cf6/")||l==="/dashboard/mc-60e9ca6cf6";if(typeof window<"u"){const f=`${h?"/login/admin":"/login"}?redirect=${encodeURIComponent(d)}`;window.location.replace(f),await new Promise(()=>{})}throw Nt(h?{to:"/login/$role",params:{role:"admin"},search:{redirect:d}}:{to:"/login",search:{redirect:d}})}return{userId:i.id,email:i.email}},pendingComponent:m8,component:N(f8,"component")});function m8(){const[e,t]=T.useState(!1);return T.useEffect(()=>t(!0),[]),e?p.jsx("div",{className:"grid min-h-screen place-items-center bg-background text-foreground",children:p.jsxs("div",{className:"flex flex-col items-center gap-3",children:[p.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent"}),p.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading your dashboardâ¦"})]})}):null}const g8=()=>$(()=>import("./about-OGh5Tc3P.js"),__vite__mapDeps([28,29,1,2,3,4,5,6,7,8,9,10,30,15,16])),y8=j("/about")({head:()=>({meta:[{title:"About â MO STREAMS"},{name:"description",content:"MO STREAMS is built by artists for artists â music and video distribution that keeps you in control of your career."},{property:"og:title",content:"About MO STREAMS â Built by artists, for artists"},{property:"og:description",content:"MO STREAMS is artist-owned music and video distribution. Keep your masters, keep a 100% royalty split, and grow your career on your terms."},{property:"og:url",content:"https://mostreams.com/about"}],links:[{rel:"canonical",href:"https://mostreams.com/about"}]}),component:N(g8,"component")}),v8=()=>$(()=>import("./ads-partner-DLaXKNjZ.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,21])),b8=j("/ads-partner")({head:()=>({meta:[{title:"Ads Partners â MO STREAMS"},{name:"description",content:"Get your brand across millions of people on MO Streams music & video distribution platform. Submit your ads partnership inquiry."},{property:"og:title",content:"Ads Partners â MO STREAMS"},{property:"og:description",content:"Run audio & video ads on MO Streams in front of fans, artists, labels, podcasters and DJs worldwide."}]}),component:N(v8,"component")}),_8=()=>$(()=>import("./affiliates-gIeBsKme.js"),__vite__mapDeps([32,29,1,2,3,4,5,6,7,8,9,10,30,15,16])),w8=j("/affiliates")({head:()=>({meta:[{title:"Affiliate Program â MO STREAMS"},{name:"description",content:"Earn 25% recurring commission for every artist you refer to MO STREAMS. Built for managers, creators, and communities."}]}),component:N(_8,"component")}),S8=()=>$(()=>import("./artist-advice-CWa3J-xQ.js"),__vite__mapDeps([33,29,1,2,3,4,5,6,7,8,9,10,30,15,16])),x8=j("/artist-advice")({head:()=>({meta:[{title:"Artist Advice â MO STREAMS"},{name:"description",content:"Career playbooks, release strategy, and hard-earned lessons for independent artists building real careers."},{property:"og:title",content:"Artist Advice â MO STREAMS"},{property:"og:description",content:"What actually works in 2026: release strategy, growth tactics, deal terms, and how to keep ownership."}]}),component:N(S8,"component")}),R8=()=>$(()=>import("./artist-services-BlxRNrnX.js"),__vite__mapDeps([34,29,1,2,3,4,5,6,7,8,9,10,30,15,16,35,36,37,38])),E8=j("/artist-services")({head:()=>({meta:[{title:"Artist Services â MO STREAMS"},{name:"description",content:"Mastering, promotion, playlist pitching, mixing, and creative services for independent artists."},{property:"og:title",content:"Artist Services â MO STREAMS"},{property:"og:description",content:"Pro-grade mastering, pitching, promotion and creative services to take your release further."}]}),component:N(R8,"component")}),A8=()=>$(()=>import("./beats-CgFyNZUD.js"),__vite__mapDeps([39,1,2,3,4,5,6,7,8,9,10,23,40,41,42,43,38,44])),T8=j("/beats")({head:()=>({meta:[{title:"Beats Library â MO STREAMS"},{name:"description",content:"Producer beats & instrumentals â preview, buy, and connect with artists. Browse the live MO STREAMS beats marketplace."},{property:"og:title",content:"Beats Library â MO STREAMS"},{property:"og:description",content:"Producer beats & instrumentals â preview, buy, and connect with artists."}]}),component:N(A8,"component")}),k8=()=>$(()=>import("./blog-CzHFgRg2.js"),__vite__mapDeps([45,29,1,2,3,4,5,6,7,8,9,10,30,15,16,12])),C8=j("/blog")({head:()=>({meta:[{title:"Blog â MO STREAMS"},{name:"description",content:"Stories, strategy, and lessons from independent artists shipping music and video on MO STREAMS."},{property:"og:title",content:"The MO STREAMS Blog"},{property:"og:description",content:"Release strategy, marketing playbooks, and artist interviews â for independents who run their own career."},{property:"og:type",content:"article"}
99,{property:"og:url",content:"https://mostreams.com/blog"}],links:[{rel:"canonical",href:"https://mostreams.com/blog"}]}),component:N(k8,"component")}),O8=()=>$(()=>import("./book-an-artist-31h0gbK9.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,15,16,8,9,10,38,13,47,48,49,50,51,52,12])),$8=j("/book-an-artist")({head:()=>({meta:[{title:"Book an Artist â Hire Musical Acts for Any Event | MO STREAMS"},{name:"description",content:"Hire singers, DJs, bands and musical acts for weddings, corporate events, festivals and private parties. Browse verified artists worldwide and get free quotes."},{property:"og:title",content:"Book an Artist â MO STREAMS"},{property:"og:description",content:"Browse verified musical acts. Send a free quote request. Book with confidence."}]}),component:N(O8,"component")}),M8=()=>$(()=>import("./careers-t6jidM8Q.js"),__vite__mapDeps([53,29,1,2,3,4,5,6,7,8,9,10,30,15,16])),N8=j("/careers")({head:()=>({meta:[{title:"Careers â MO STREAMS"},{name:"description",content:"Join the team rebuilding music and video distribution for independent artists. Remote-first, artist-obsessed."}]}),component:N(M8,"component")}),j8=()=>$(()=>import("./changelog-C1GzEPPO.js"),__vite__mapDeps([54,29,1,2,3,4,5,6,7,8,9,10,30,15,16])),P8=j("/changelog")({head:()=>({meta:[{title:"Changelog â MO STREAMS"},{name:"description",content:"Recent shipping updates to MO STREAMS â distribution, video, publishing, sync, and payouts."}]}),component:N(j8,"component")}),D8=ke({method:"GET"}).handler(Oe("1431f92c6775a65436060d75240f7d4571c9909bb0c66fe5416968152cbdc504")),I8=()=>$(()=>import("./charts-BJyJ6I_p.js"),__vite__mapDeps([55,1,2,3,4,5,6,7,8,9,10,56,57,43,58])),L8=()=>$(()=>import("./charts-Br9cjPv8.js"),__vite__mapDeps([59,60,1,2,3,4,5,6,7,8,9,10])),z8=()=>$(()=>import("./charts-L90NGTzR.js"),__vite__mapDeps([61,60,1,2,3,4,5,6,7,8,9,10])),B8=j("/charts")({loader:()=>D8(),head:()=>({meta:[{title:"MO STREAMS Charts â Top Songs, Videos & Artists"},{name:"description",content:"The official MO STREAMS charts: the 50 most-played independent songs, the top music videos and the artists moving the most plays this week."},{property:"og:title",content:"MO STREAMS Charts â Top Songs, Videos & Artists"},{property:"og:description",content:"Live rankings of the most-played independent songs, videos and artists on MO STREAMS."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),errorComponent:N(z8,"errorComponent"),notFoundComponent:N(L8,"notFoundComponent"),component:N(I8,"component")}),U8=()=>$(()=>import("./compare-distribution-DU_VA3WK.js"),__vite__mapDeps([62,29,1,2,3,4,5,6,7,8,9,10,30,15,16])),V8=j("/compare-distribution")({head:()=>({meta:[{title:"MO STREAMS vs DistroKid vs TuneCore"},{name:"description",content:"Compare MO STREAMS, DistroKid, and TuneCore for music distribution, video delivery, royalties, and independent artist tools."},{property:"og:title",content:"MO STREAMS vs DistroKid vs TuneCore"},{property:"og:description",content:"A practical music distribution comparison for independent artists choosing where to release audio and video."},{property:"og:type",content:"article"},{property:"og:url",content:"https://mostreams.com/compare-distribution"},{name:"twitter:card",content:"summary"}],links:[{rel:"canonical",href:"https://mostreams.com/compare-distribution"}]}),component:N(U8,"component")}),F8=()=>$(()=>import("./contact-O7ZgVsdD.js"),__vite__mapDeps([63,1,2,3,4,5,6,7,8,9,10,30,21])),q8=j("/contact")({head:()=>({meta:[{title:"Contact â MO STREAMS"},{name:"description",content:"Get in touch with MO STREAMS â support, partnerships, press, and sync inquiries."}]}),component:N(F8,"component")}),H8=()=>$(()=>import("./cookies-C6tX1ZkW.js"),__vite__mapDeps([64,29,1,2,3,4,5,6,7,8,9,10,30,15,16])),G8=j("/cookies")({head:()=>({meta:[{title:"Cookie Policy â MO STREAMS"},{name:"description",content:"How and why MO STREAMS uses cookies, and how to control them."}]}),component:N(H8,"component")}),K8=()=>$(()=>import("./copyright-DO5U7yUN.js"),__vite__mapDeps([65,29,1,2,3,4,5,6,7,8,9,10,30,15,16])),Z8=j("/copyright")({head:()=>({meta:[{title:"Copyright & DMCA â MO STREAMS"},{name:"description",content:"How to file a copyright or DMCA takedown with MO STREAMS, and how we respond to claims."}]}),component:N(K8,"component")});const W8=()=>$(()=>import("./demo-v8fp_in9.js"),__vite__mapDeps([66,29,1,2,3,4,5,6,7,8,9,10,30,15,16,51,67,68,69,70,71,72,73,74])),Y8=j("/demo")({validateSearch:e=>({role:typeof e.role=="string"?e.role:void 0}),head:()=>({meta:[{title:"Live Demo â MO STREAMS"},{name:"description",content:"Try the MO STREAMS experience as a Fan, Artist, Label, DJ, Producer, or Podcaster. Live, interactive demo dashboards."}]}),component:N(W8,"component")}),J8=()=>$(()=>import("./dj-pool-DPgQK42U.js"),__vite__mapDeps([75,1,2,3,4,5,6,7,8,9,10,76,38,77])),Q8=j("/dj-pool")({head:()=>({meta:[{title:"DJ Coalition Pool â MO STREAMS"},{name:"description",content:"Connect with real DJs across the globe on MO STREAMS. Follow, message and rate DJs â sign up as a fan, producer or artist to join the network."},{property:"og:title",content:"DJ Coalition Pool â MO STREAMS"},{property:"og:description",content:"One world connection of DJs doing what they love. Follow, message and rate DJs across the globe on MO STREAMS."}]}),component:N(J8,"component")}),X8=()=>$(()=>import("./events-DDC4Z70D.js"),__vite__mapDeps([78,1,2,3,4,5,6,7,15,16,8,9,10,17,13])),ez=j("/events")({component:N(X8,"component"),head:()=>({meta:[{title:"Events & Tickets · MO Streams"},{name:"description",content:"Browse upcoming shows from independent artists. Buy tickets, scan QR, and support the music you love."}]})}),tz=()=>$(()=>import("./explore-CW2DP4M_.js"),__vite__mapDeps([79,1,2,3,4,5,6,7,15,16,8,9,10,80,81,57,82,17,83,13,84,23,41,85,22,86,87,88,89,90,91,92,12,93,72,73,94,11,14,35,95])),nz=j("/explore")({head:()=>({meta:[{title:"Library â MO STREAMS"},{name:"description",content:"Browse music videos, albums and singles, popular tracks and new releases streaming on MO STREAMS."},{property:"og:title",content:"Library â MO STREAMS"},{property:"og:description",content:"Music videos, albums and singles, popular tracks and the newest releases â all in one place."}]}),component:N(tz,"component")}),rz=()=>$(()=>import("./forgot-password-9-GoDZaV.js"),__vite__mapDeps([96,97,10,98])),oz=["fan","artist","label","dj","producer","podcaster","admin","advertiser"],az=j("/forgot-password")({validateSearch:e=>({role:typeof e.role=="string"&&oz.includes(e.role)?e.role:void 0}),head:()=>({meta:[{title:"Reset Password â MO STREAMS"},{name:"description",content:"Reset the password on your MO STREAMS account. We'll email a secure link to the address on file."}]}),component:N(rz,"component")}),sz=()=>$(()=>
99import("./help-center-Csfm0bRz.js"),__vite__mapDeps([99,29,1,2,3,4,5,6,7,8,9,10,30,15,16])),iz=j("/help-center")({head:()=>({meta:[{title:"Help Center â MO STREAMS"},{name:"description",content:"Answers to common questions about distribution, payouts, video uploads, splits, and account management."},{property:"og:title",content:"MO STREAMS Help Center"},{property:"og:description",content:"Search guides and FAQs for distribution, video, publishing, payouts, and account setup."}]}),component:N(sz,"component")}),cz=()=>$(()=>import("./login-1meC1x2x.js"),[]),lz=j("/login")({validateSearch:e=>({redirect:typeof e.redirect=="string"&&e.redirect.startsWith("/")?e.redirect:void 0}),head:()=>({meta:[{title:"Login â MO STREAMS"},{name:"description",content:"Sign in to MO STREAMS as an artist, label, DJ, producer, podcaster, or fan."},{property:"og:title",content:"Login â MO STREAMS"},{property:"og:description",content:"Sign in to MO STREAMS as an artist, label, DJ, producer, podcaster, or fan."}]}),component:N(cz,"component")}),uz=()=>$(()=>import("./marketplace-BDJr7dTr.js"),__vite__mapDeps([100,29,1,2,3,4,5,6,7,8,9,10,30,15,16,101,102,103,87,104,105])),dz=j("/marketplace")({head:()=>({meta:[{title:"Collectors Marketplace · Resale | MO STREAMS"},{name:"description",content:"Buy numbered limited edition music resold by collectors. Artists earn a royalty on every resale."},{property:"og:title",content:"Collectors Marketplace · MO STREAMS"},{property:"og:description",content:"Own the master â buy certified limited editions on the resale market."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:N(uz,"component")}),hz=()=>$(()=>import("./merch-1zQZj8fa.js"),__vite__mapDeps([106,1,2,3,4,5,6,7,8,9,10,107,21,20])),fz=j("/merch")({head:()=>({meta:[{title:"Mound City / Mo Records Merch â MO STREAMS"},{name:"description",content:"One store for everything MO STREAMS â label merch, artist and label drops, and MO SOUND BT900 headphones pre-orders."},{property:"og:title",content:"Mound City / Mo Records Merch â MO STREAMS"},{property:"og:description",content:"Label merch, artist drops, and MO SOUND BT900 headphones â all in one MO STREAMS store."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:N(hz,"component")}),pz=()=>$(()=>import("./modiscs-CtLLRaHk.js"),__vite__mapDeps([108,9,1,2,3,4,5,6,7,109,95,85,22,81,57,86,87,88,89,90,91,17,92,41,94])),mz=j("/modiscs")({loader:async()=>({catalog:await YE().catch(()=>null)}),head:()=>({meta:[{title:"MO STREAMS Digital DISC â Own The Master | Limited Edition Music | MO STREAMS"},{name:"description",content:"MO STREAMS Digital DISC is the digital CD: open the booklet, download the single or the album, and keep it in your playlist forever. Artists keep 100% of every sale."},{property:"og:title",content:"MO STREAMS Digital DISC â the digital CD, booklet and all"},{property:"og:description",content:"Open the digital booklet, download the single or the album, redeem the code from a disc you picked up at a show."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:N(pz,"component")}),hh=ke({method:"GET"}).handler(Oe("5654329e34be191256640c8957e4eaed33fcb574dfccb4b513f44c828b16863f")),gz=()=>$(()=>import("./music-library-C_Rzp0MN.js"),[]),yz=()=>$(()=>import("./music-library-C04rR6m0.js"),[]),vz=()=>$(()=>import("./music-library-CunMu5LF.js"),__vite__mapDeps([110,111,12,112,87,113,114,115,116,117,57,56,77,118,119,120,121,122,123,124,47,125,126,127,72,70,6,128,129,2,3,4,5,10,130,82,131,132,133,98,134,93,43,135,136,137])),bz=j("/music-library")({loader:async()=>{const[e,t]=await Promise.all([hh(),l8().catch(()=>null)]);return{origin:e,catalog:t}},head:({loaderData:e})=>{const t=e?.origin??"https://mostreams.com",n=ha.url.startsWith("http")?ha.url:`${t}${ha.url}`;return{meta:[{title:"MO STREAMS Music Library â Listen to Every Drop"},{name:"description",content:"The full MO STREAMS music library in live slideshow mode â every published track and video, from fans to DJs to producers."},{property:"og:title",content:"MO STREAMS Music Library â Listen to Every Drop"},{property:"og:description",content:"The full MO STREAMS music library in live slideshow mode â every published track and video, from fans to DJs to producers."},{property:"og:type",content:"website"},{property:"og:url",content:`${t}/music-library`},{property:"og:image",content:n},{property:"og:image:alt",content:"MO STREAMS logo"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:"MO STREAMS Music Library â Listen to Every Drop"},{name:"twitter:description",content:"The full MO STREAMS music library in live slideshow mode â every published track and video."},{name:"twitter:image",content:n}],links:[{rel:"canonical",href:`${t}/music-library`}]}},component:N(vz,"component"),errorComponent:N(yz,"errorComponent"),notFoundComponent:N(gz,"notFoundComponent")}),_z=()=>$(()=>import("./network-room-CquoV0jF.js"),__vite__mapDeps([138,1,2,3,4,5,6,7,41,38,139,72])),wz=j("/network-room")({head:()=>({meta:[{title:"Network Room â Get Your Song Reviewed Live | MO STREAMS"},{name:"description",content:"Real MO STREAMS fans, artists, producers and DJs across the globe rate your song live. Start the 7-day free trial and submit your track."},{property:"og:title",content:"Network Room â MO STREAMS"},{property:"og:description",content:"Get your song reviewed live by real fans, artists, producers and DJs around the world. Free 7-day artist trial."}]}),component:N(_z,"component")}),Sz=()=>$(()=>import("./partners-D-SHvCr1.js"),__vite__mapDeps([140,1,2,3,4,5,6,7,8,9,10,52,12,141,72,13,83,142,38])),xz=j("/partners")({head:()=>({meta:[{title:"Partners â MO STREAMS"},{name:"description",content:"Partner with MO STREAMS â distribution alliances, major labels, sync licensing, attorneys, A&Rs, venues, events, and executives. Submit a partnership inquiry."},{property:"og:title",content:"Partner with MO STREAMS"},{property:"og:description",content:"Distribution, sync licensing, label deals, legal, A&R, venues, events, and executive partnerships â submit your inquiry."}]}),component:N(Sz,"component")}),Rz=()=>$(()=>import("./policy-CGgPG3IF.js"),__vite__mapDeps([143,144,145])),Ez=j("/policy")({head:()=>({meta:[{title:"Community Policy â MO Streams"},{name:"description",content:"MO Streams community policy: prohibited conduct, enforcement ladder, anti-capture, payouts on ban, and appeals."}]}),component:N(Rz,"component")}),Az=()=>$(()=>import("./press-CAXUSGFH.js"),__vite__mapDeps([146,29,1,2,3,4,5,6,7,8,9,10,30,15,16])),Tz=j("/press")({head:()=>({meta:[{title:"Press â MO STREAMS"},{name:"description",content:"Press kit, brand assets, and recent coverage of MO STREAMS. For media inquiries, contact [email protected]."}]}),component:N(Az,"component")}),kz=()=>$(()=>import("./preview-dashboards-79HsSX00.js"),__vite__mapDeps([147,148,149,150,25,151,9,51,91,152,40,38,120,153,124,154,155,58,156,157,158,159,13,160,83,161,162,163,164,165,166,42,167,168,169,170,171,172,173,70,6,145,174,175,41,176,177])),Cz=j("/preview-dashboards")({component:N(kz,"component")}),Oz=()=>$(()=>import("./preview-dj-mix-BNGiC8zQ.js"),[]),$z=j("/preview-dj-mix")({component:N(Oz,"component")}),Mz=()=>$(()=>import("./pricing-DuYchc5F.js"),__vite__mapDeps([178,29,1,2,3,4,5,6,7,8,9,10,30,15,16,36,37,38])),Nz=j("/pricing")({head:()=>({meta:[{title:"Pricing â MO STREAMS"},{name:"description",content:"Simple plans for artists, labels, and producers. Unlimited distribution starting at $24.99/year â 7-day free trial included."},{property:"og:title",content:"MO STREAMS Pricing"},{property:"og:description",content:"Unlimited music and video distribution. Keep 100% of your streaming royalties on every withdrawal. 7-day free trial on every paid plan."}
99,{property:"og:url",content:"https://mostreams.com/pricing"},{property:"og:image",content:"https://mostreams.com/og-image.png"},{property:"og:image:alt",content:"MO STREAMS Pricing â Unlimited Distribution for Independent Artists"},{name:"twitter:title",content:"MO STREAMS Pricing"},{name:"twitter:description",content:"Unlimited music and video distribution. Keep 100% of your streaming royalties on every withdrawal. 7-day free trial on every paid plan."},{name:"twitter:image",content:"https://mostreams.com/og-image.png"}],links:[{rel:"canonical",href:"https://mostreams.com/pricing"}]}),component:N(Mz,"component")}),jz=()=>$(()=>import("./privacy-DUAVdVhO.js"),__vite__mapDeps([179,29,1,2,3,4,5,6,7,8,9,10,30,15,16])),Pz=j("/privacy")({head:()=>({meta:[{title:"Privacy Policy â MO STREAMS"},{name:"description",content:"How MO STREAMS collects, uses, and protects your personal data."}]}),component:N(jz,"component")}),Dz=()=>$(()=>import("./redeem-6do9CTQr.js"),__vite__mapDeps([180,86,10,17])),Iz=j("/redeem")({component:N(Dz,"component"),validateSearch:e=>({code:typeof e.code=="string"?e.code:void 0}),head:()=>({meta:[{title:"Redeem your MO STREAMS Digital DISC · MO STREAMS"},{name:"description",content:"Got a MO STREAMS Digital DISC card? Enter your code to unlock the album."},{property:"og:title",content:"Redeem your MO STREAMS Digital DISC"},{property:"og:description",content:"Scan, type your code, and the album drops straight into your Vault."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]})}),Lz=()=>$(()=>import("./reset-password-CQjOvFBZ.js"),__vite__mapDeps([181,182,139,145,183])),zz=j("/reset-password")({head:()=>({meta:[{title:"Set New Password â MO STREAMS"},{name:"description",content:"Choose a new password for your MO STREAMS account."}]}),component:N(Lz,"component")}),Bz=()=>$(()=>import("./reviews-CKQgpE2e.js"),__vite__mapDeps([184,29,1,2,3,4,5,6,7,8,9,10,30,15,16,87,21,38])),Uz=j("/reviews")({head:()=>({meta:[{title:"Fan Reviews â MO STREAMS"},{name:"description",content:"See what fans are saying about MO STREAMS â star ratings, likes, dislikes, and feature requests from real listeners."},{property:"og:title",content:"Fan Reviews â MO STREAMS"},{property:"og:description",content:"Real reviews from MO STREAMS listeners. Read what fans love, what they want changed, and what's coming next."}]}),component:N(Bz,"component")}),Vz=()=>$(()=>import("./royalty-accounting-olMhOkH2.js"),__vite__mapDeps([185,29,1,2,3,4,5,6,7,8,9,10,30,15,16])),Fz=j("/royalty-accounting")({head:()=>({meta:[{title:"Royalty Accounting & Payouts â MO STREAMS"},{name:"description",content:"Transparent splits, real-time dashboards, and on-time monthly payouts. Know exactly what you earned, where it came from, and when you'll be paid."},{property:"og:title",content:"Royalty Accounting & Payouts â MO STREAMS"},{property:"og:description",content:"Real-time earnings, automatic splits between collaborators, and on-time monthly payouts in 190+ countries."}]}),component:N(Vz,"component")}),qz=()=>$(()=>import("./sell-your-music-BD2knUnq.js"),__vite__mapDeps([186,29,1,2,3,4,5,6,7,8,9,10,30,15,16])),Hz=j("/sell-your-music")({head:()=>({meta:[{title:"Sell Your Music â MO STREAMS"},{name:"description",content:"Distribute and sell your music to 150+ stores worldwide. Keep 100% of your royalties and stay in control of your career."},{property:"og:title",content:"Sell Your Music Worldwide â MO STREAMS"},{property:"og:description",content:"Upload once. Sell everywhere. Spotify, Apple Music, TikTok, YouTube, Tidal, Amazon, and 150+ more."}]}),component:N(qz,"component")}),Gz=()=>$(()=>import("./signup-THqhCUDF.js"),__vite__mapDeps([187,188,29,1,2,3,4,5,6,7,8,9,10,30,15,16,182,139,145,97,189,190,73,72,27,91])),Kz=j("/signup")({validateSearch:e=>{const t=e?.role;return{role:typeof t=="string"&&["artist","label","producer","dj","podcaster","fan","advertiser"].includes(t)?t:void 0,redirect:typeof e.redirect=="string"&&e.redirect.startsWith("/")?e.redirect:void 0}},head:()=>({meta:[{title:"Sign Up â MO STREAMS"},{name:"description",content:"Create your MO STREAMS account â choose Artist, Label, Producer, or Fan and join the platform built for independent music."},{property:"og:title",content:"Join MO STREAMS"},{property:"og:description",content:"Sign up as an Artist, Label, Producer, or Fan and start streaming, distributing, and supporting independent music."}
99,{property:"og:url",content:"https://mostreams.com/signup"},{property:"og:image",content:"https://mostreams.com/og-image.png"},{property:"og:image:alt",content:"Join MO STREAMS â Music & Video Distribution for Independent Artists"},{name:"twitter:title",content:"Join MO STREAMS"},{name:"twitter:description",content:"Sign up as an Artist, Label, Producer, or Fan and start streaming, distributing, and supporting independent music."},{name:"twitter:image",content:"https://mostreams.com/og-image.png"}],links:[{rel:"canonical",href:"https://mostreams.com/signup"}]}),component:N(Gz,"component")}),uce=["Hip-Hop / Rap","Trap","Drill","Boom Bap","Lo-Fi Hip-Hop","R&B / Soul","Neo-Soul","Funk","Pop","Indie Pop","Synth-Pop","K-Pop","J-Pop","Latin Pop","Afrobeats","Afro House","Amapiano","Highlife","Dancehall","Reggae","Reggaeton","Latin / Salsa","Bachata","Merengue","Cumbia","Bossa Nova","Samba","Tango","Flamenco","Rock","Alternative Rock","Indie Rock","Classic Rock","Punk","Pop Punk","Post-Punk","Hardcore","Emo","Grunge","Metal","Heavy Metal","Death Metal","Black Metal","Thrash Metal","Metalcore","Progressive Metal","Nu-Metal","Blues","Delta Blues","Chicago Blues","Jazz","Smooth Jazz","Bebop","Swing","Big Band","Fusion","Country","Country Pop","Bluegrass","Americana","Folk","Indie Folk","Acoustic / Singer-Songwriter","Gospel","Christian / Worship","Contemporary Christian","Spiritual","Classical","Orchestral","Opera","Chamber Music","Baroque","Romantic Era","Modern Classical","Film Score / Soundtrack","Video Game Music","Anime / OST","Musical Theatre","Electronic / EDM","House","Deep House","Tech House","Techno","Trance","Progressive Trance","Psytrance","Drum & Bass","Jungle","Dubstep","Future Bass","Trap (EDM)","Hardstyle","Garage / UK Garage","Breakbeat","Ambient","Downtempo","Chillwave","Vaporwave","Synthwave","IDM","Glitch","Experimental","Noise","Industrial","EBM","World Music","Celtic","African Traditional","Middle Eastern","Arabic / Khaleeji","Indian Classical","Bollywood","Bhangra","Asian Traditional","Mongolian Throat Singing","Native American","Polynesian","Caribbean","Soca","Calypso","Zouk","Kompa","Children's Music","Holiday / Seasonal","Comedy","Spoken Word","Poetry","Podcast","Audiobook","Meditation / New Age","Binaural Beats","Nature / Field Recording","Instrumental","Piano","Guitar","Violin / Strings","Drums / Percussion","Saxophone","Brass","Choir / Vocal","A Cappella","DJ Mix / Remix","Mashup","Other"],Zz=()=>$(()=>import("./status-mb8IOy6B.js"),__vite__mapDeps([191,29,1,2,3,4,5,6,7,8,9,10,30,15,16])),Wz=j("/status")({head:()=>({meta:[{title:"System Status â MO STREAMS"},{name:"description",content:"Real-time status of MO STREAMS distribution, video delivery, publishing, sync, and payout systems."}]}),component:N(Zz,"component")}),Yz=()=>$(()=>import("./submit-radio-8DyrrhgX.js"),__vite__mapDeps([192,1,2,3,4,5,6,7,8,9,10,193,194,44,130])),Jz=j("/submit-radio")({head:()=>({meta:[{title:"Submit Your Song â MO Streams Radio"},{name:"description",content:"Submit your radio-friendly song to MO Streams Radio. Clean, family-safe music only. Pay the submission fee and get one week of airplay on our online station."},{property:"og:title",content:"Submit Your Song â MO Streams Radio"},{property:"og:description",content:"Get your music played on MO Streams Radio. Upload your MP3 or WAV, agree to our clean-content rules, and your song airs for one full week."}]}),component:N(Yz,"component")}),Qz=()=>$(()=>import("./sync-licensing-B9KHnt6i.js"),__vite__mapDeps([195,29,1,2,3,4,5,6,7,8,9,10,30,15,16,196])),Xz=j("/sync-licensing")({head:()=>({meta:[{title:"Sync Licensing & Music Publishing â MO STREAMS"},{name:"description",content:"Submit your song to our sync licensing partner libraries â film, TV, AAA games like Call of Duty, NBA 2K, Madden, FIFA, GTA, and major Hollywood releases. An exclusive MO STREAMS artist service benefit."},{property:"og:title",content:"Sync Licensing & Music Publishing â MO STREAMS"},{property:"og:description",content:"Submit one song. We pitch it to our sync partner libraries for movies, TV, and the biggest games on the planet."}]}),component:N(Qz,"component")}),eB=()=>$(()=>import("./terms-DaTar9--.js"),__vite__mapDeps([197,29,1,2,3,4,5,6,7,8,9,10,30,15,16])),tB=j("/terms")({head:()=>({meta:[{title:"Terms of Service â MO STREAMS"},{name:"description",content:"The terms and conditions that govern your use of MO STREAMS distribution, publishing, and sync services."}]}),component:N(eB,"component")}),nB=()=>$(()=>import("./vault-hV9FfJIQoaAvC9apox8dDPE3-DtqBFgK5.js"),[]),rB=j("/vault-hV9FfJIQoaAvC9apox8dDPE3")({head:()=>({meta:[{title:"MO STREAMS"},{name:"robots",content:"noindex, nofollow, noarchive"}]}),beforeLoad:()=>{throw Nt({to:"/mc-60e9ca6cf6"})},component:N(nB,"component")}),oB=()=>$(()=>import("./video-distribution-BiSRkZAb.js"),__vite__mapDeps([198,29,1,2,3,4,5,6,7,8,9,10,30,15,16,84,199,114,56,57,171,200,69,120,121,122,77,201,132,133,112])),aB=j("/video-distribution")({validateSearch:e=>{const t=e.tab;return t==="music_video"||t==="podcast"||t==="sports"||t==="tutorial"||t==="shorts"?{tab:t}:{}},head:()=>({meta:[{title:"Music Videos & Podcast â MO STREAMS"},{name:"description",content:"Music videos, visualizers, shorts and podcast episodes in up to 4K â delivered to YouTube, Vevo, Apple Music Videos and your MO STREAMS watch page."},{property:"og:title",content:"Music Videos & Podcast â MO STREAMS"},{property:"og:description",content:"One upload, every video and podcast platform."}
99,{property:"og:url",content:"https://mostreams.com/video-distribution"},{property:"og:image",content:"https://mostreams.com/og-image.png"},{property:"og:image:alt",content:"MO STREAMS Video Distribution â Music Videos & Podcast Delivery"},{name:"twitter:title",content:"Music Videos & Podcast â MO STREAMS"},{name:"twitter:description",content:"One upload, every video and podcast platform."},{name:"twitter:image",content:"https://mostreams.com/og-image.png"}],links:[{rel:"canonical",href:"https://mostreams.com/video-distribution"}]}),component:N(oB,"component")}),sB=()=>$(()=>import("./advertising-DRqKobAa.js"),__vite__mapDeps([202,41,40])),iB=j("/_authenticated/advertising")({component:N(sB,"component")}),cB=()=>$(()=>import("./analytics-B0hI3L-O.js"),__vite__mapDeps([203,204])),lB=j("/_authenticated/analytics")({component:N(cB,"component")});function dce({rows:e,loading:t}){return!t&&e.length===0?p.jsx("div",{className:"px-5 py-10 text-center text-sm text-muted-foreground",children:"No active roster yet."}):p.jsxs("table",{className:"w-full text-sm",children:[p.jsx("thead",{className:"bg-secondary/30 text-[10px] uppercase tracking-wider text-muted-foreground",children:p.jsxs("tr",{children:[p.jsx("th",{className:"text-left px-5 py-3",children:"Artist"}),p.jsx("th",{className:"text-right px-5 py-3",children:"Streams"}),p.jsx("th",{className:"text-right px-5 py-3 hidden md:table-cell",children:"Unique"}),p.jsx("th",{className:"text-left px-5 py-3 hidden lg:table-cell",children:"Top track"}),p.jsx("th",{className:"text-left px-5 py-3 hidden md:table-cell",children:"Top country"}),p.jsx("th",{className:"text-right px-5 py-3 hidden sm:table-cell",children:"Tracks"}),p.jsx("th",{className:"text-right px-5 py-3 hidden sm:table-cell",children:"Videos"})]})}),p.jsx("tbody",{children:e.map(n=>p.jsxs("tr",{className:"border-t border-border hover:bg-secondary/20",children:[p.jsxs("td",{className:"px-5 py-3",children:[p.jsx("div",{className:"font-medium",children:n.display_name}),n.handle&&p.jsxs("div",{className:"text-[11px] text-muted-foreground",children:["@",n.handle]})]}),p.jsx("td",{className:"px-5 py-3 text-right font-mono",children:n.streams.toLocaleString()}),p.jsx("td",{className:"px-5 py-3 text-right font-mono hidden md:table-cell",children:n.unique_listeners.toLocaleString()}),p.jsx("td",{className:"px-5 py-3 text-muted-foreground hidden lg:table-cell",children:n.top_track??"â"}),p.jsx("td",{className:"px-5 py-3 text-muted-foreground hidden md:table-cell",children:n.top_country??"â"}),p.jsx("td",{className:"px-5 py-3 text-right font-mono hidden sm:table-cell",children:n.tracks}),p.jsx("td",{className:"px-5 py-3 text-right font-mono hidden sm:table-cell",children:n.videos})]},n.id))})]})}const uB=()=>$(()=>import("./audience-BkPQ6E2X.js"),__vite__mapDeps([205,206,26,9,145,77,7,120,40])),dB=j("/_authenticated/audience")({component:N(uB,"component")}),hB=()=>$(()=>import("./billing-C644g2UL.js"),__vite__mapDeps([207,67,68,3,4,69,6,70,25,208,9,209,210,211,51,151,212,213,150,91])),fB=j("/_authenticated/billing")({component:N(hB,"component")}),pB=()=>$(()=>import("./blocklist-CEZ2OQHS.js"),__vite__mapDeps([214,215,9])),mB=j("/_authenticated/blocklist")({component:N(pB,"component")}),gB=()=>$(()=>import("./chart-registration-ygAqjX5M.js"),__vite__mapDeps([216,215,9,21])),yB=j("/_authenticated/chart-registration")({component:N(gB,"component")}),vB=()=>$(()=>import("./copyright-registration-DpU1MvUf.js"),__vite__mapDeps([217,215,9,21])),bB=j("/_authenticated/copyright-registration")({component:N(vB,"component")}),_B=()=>$(()=>import("./cover-song-licensing-McYUXvSA.js"),__vite__mapDeps([218,215,9,21])),wB=j("/_authenticated/cover-song-licensing")({component:N(_B,"component")}),SB=()=>$(()=>import("./dashboard-DhsAF18q.js"),__vite__mapDeps([219,220,221,222,41,150,173,223,148,149,25,151,9,51,91,152,40,38,120,153,124,154,155,58,156,157,158,159,13,160,83,161,162,163,164,165,166,42,167,168,169,170,171,172,70,6,145,174,175,176,177,224,225,226,227,114,115,228,111,12,112,87,113,116,117,57,56,77,118,119,121,122,123,47,125,126,127,72,128,129,2,3,4,5,10,130,82,131,132,133,98,134,93,43,105,229,230,231,86,92,232,233,194,234,211,235,142,236,237,238,16,239,44,240,144,241,242,210,243,189])),xB=j("/_authenticated/dashboard")({component:N(SB,"component")}),hce=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));let ym=null;function RB(){return typeof window>"u"?Promise.reject(new Error("no window")):(ym||(ym=$(()=>import("./leaflet-src-BBNd_bPH.js").then(e=>e.l),[]).then(e=>e.default??e)),ym)}function EB(e){if(!e||e.length!==2)return"";const t=[...e.toUpperCase()].map(n=>127462+n.charCodeAt(0)-65);try{return String.fromCodePoint(...t)}catch{return""}}function vm(e){return e.replace(/[&<>"']/g,t=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[t])}const V1={satellite:{url:"https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png",attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>'},hybrid:{url:"https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png",attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>'},roadmap:{url:"https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png",attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>'}};function AB({points:e,height:t=480,defaultMode:n="satellite",showIp:r=!1}){const s=T.useRef(null),i=T.useRef(null),l=T.useRef(null),d=T.useRef(null),h=T.useRef([]),[f,g]=T.useState(n),[y,b]=T.useState(null),[_,S]=T.useState(!1);return T.useEffect(()=>{let E=!1;return RB().then(x=>
99{if(E||!s.current||l.current)return;i.current=x;const k=x.map(s.current,{center:[20,0],zoom:2,worldCopyJump:!0,zoomControl:!0,preferCanvas:!0}),M=V1[f];d.current=x.tileLayer(M.url,{attribution:M.attribution,subdomains:"abcd",maxZoom:19}).addTo(k),l.current=k,S(!0)}).catch(x=>b(x?.message??"Map failed to load")),()=>{E=!0,l.current&&(l.current.remove(),l.current=null,d.current=null)}},[]),T.useEffect(()=>{const E=i.current;if(!l.current||!E)return;d.current&&d.current.remove();const x=V1[f];d.current=E.tileLayer(x.url,{attribution:x.attribution,subdomains:"abcd",maxZoom:19}).addTo(l.current)},[f]),T.useEffect(()=>{const E=l.current,x=i.current;if(!E||!x)return;for(const M of h.current)M.remove();h.current=[];const k=e.reduce((M,P)=>Math.max(M,P.plays),1);for(const M of e){const P=Math.max(5,Math.min(22,5+Math.sqrt(M.plays/k)*18)),I=x.circleMarker([M.lat,M.lng],{radius:P,color:"#fff5e6",weight:1.5,fillColor:"#f97316",fillOpacity:.85}).addTo(E);I.bindTooltip(`${M.city}, ${M.country} · ${M.plays.toLocaleString()} plays`,{direction:"top"});const F=EB(M.country_code),G=[M.city,M.region,M.country].filter(Boolean).join(", "),U=r&&M.ip_raw?`<div style="opacity:.9;margin-top:4px">IP: <code>${vm(M.ip_raw)}</code></div>`:"",V=M.latest_asset?`<div style="opacity:.85;margin-top:4px">Latest: ${vm(M.latest_asset)}${M.latest_at?` · ${new Date(M.latest_at).toLocaleString()}`:""}</div>`:"",ne=` 100 <div style="font-family:inherit;color:#0a0a0a;min-width:180px"> 101 <div style="font-weight:700;font-size:13px">${F?`<span style="margin-right:5px">${F}</span>`:""}${vm(G)}</div> 102 <div style="opacity:.75;font-size:11px;margin-top:2px;text-transform:uppercase;letter-spacing:.06em">${M.plays.toLocaleString()} plays${M.listeners?` · ${M.listeners} listeners`:""}</div> 103 ${V} 104 ${U} 105 </div>`;I.bindPopup(ne),h.current.push(I)}},[e,r,_]),T.useEffect(()=>()=>{for(const E of h.current)E.remove();h.current=[]},[]),p.jsxs("div",{className:"relative",children:[p.jsx("div",{className:"absolute top-3 right-3 z-10 flex rounded-full overflow-hidden border border-primary/40 bg-black/60 backdrop-blur",children:["satellite","hybrid","roadmap"].map(E=>p.jsx("button",{onClick:()=>g(E),className:`px-3 py-1.5 text-[10px] font-bold uppercase tracking-wider ${f===E?"bg-primary text-primary-foreground":"text-white/70 hover:text-white"}`,children:E},E))}),y&&p.jsx("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-black/80 text-sm text-destructive p-4 rounded-2xl",children:y}),p.jsx("div",{ref:s,className:"w-full rounded-2xl overflow-hidden border border-primary/30 bg-black shadow-[0_0_60px_-10px_rgba(249,115,22,0.35)]",style:{height:t}})]})}const JE={AD:["Andorra",42.5,1.5],AE:["United Arab Emirates",24,54],AF:["Afghanistan",33,65],AG:["Antigua and Barbuda",17.05,-61.8],AI:["Anguilla",18.25,-63.17],AL:["Albania",41,20],AM:["Armenia",40,45],AO:["Angola",-12.5,18.5],AR:["Argentina",-34,-64],AT:["Austria",47.33,13.33],AU:["Australia",-27,133],AW:["Aruba",12.5,-69.97],AZ:["Azerbaijan",40.5,47.5],BA:["Bosnia and Herzegovina",44,18],BB:["Barbados",13.17,-59.53],BD:["Bangladesh",24,90],BE:["Belgium",50.83,4],BF:["Burkina Faso",13,-2],BG:["Bulgaria",43,25],BH:["Bahrain",26,50.55],BI:["Burundi",-3.5,30],BJ:["Benin",9.5,2.25],BM:["Bermuda",32.33,-64.75],BN:["Brunei",4.5,114.67],BO:["Bolivia",-17,-65],BR:["Brazil",-10,-55],BS:["Bahamas",24.25,-76],BT:["Bhutan",27.5,90.5],BW:["Botswana",-22,24],BY:["Belarus",53,28],BZ:["Belize",17.25,-88.75],CA:["Canada",60,-95],CD:["DR Congo",0,25],CF:["Central African Republic",7,21],CG:["Republic of the Congo",-1,15],CH:["Switzerland",47,8],CI:["Côte d'Ivoire",8,-5],CL:["Chile",-30,-71],CM:["Cameroon",6,12],CN:["China",35,105],CO:["Colombia",4,-72],CR:["Costa Rica",10,-84],CU:["Cuba",21.5,-80],CV:["Cape Verde",16,-24],CY:["Cyprus",35,33],CZ:["Czechia",49.75,15.5],DE:["Germany",51,9],DJ:["Djibouti",11.5,43],DK:["Denmark",56,10],DM:["Dominica",15.42,-61.33],DO:["Dominican Republic",19,-70.67],DZ:["Algeria",28,3],EC:["Ecuador",-2,-77.5],EE:["Estonia",59,26],EG:["Egypt",27,30],ER:["Eritrea",15,39],ES:["Spain",40,-4],ET:["Ethiopia",8,38],FI:["Finland",64,26],FJ:["Fiji",-18,175],FM:["Micronesia",6.92,158.25],FO:["Faroe Islands",62,-7],FR:["France",46,2],GA:["Gabon",-1,11.75],GB:["United Kingdom",54,-2],GD:["Grenada",12.12,-61.67],GE:["Georgia",42,43.5],GF:["French Guiana",4,-53],GH:["Ghana",8,-2],GI:["Gibraltar",36.13,-5.35],GL:["Greenland",72,-40],GM:["Gambia",13.47,-16.57],GN:["Guinea",11,-10],GP:["Guadeloupe",16.25,-61.58],GQ:["Equatorial Guinea",2,10
105],GR:["Greece",39,22],GT:["Guatemala",15.5,-90.25],GU:["Guam",13.47,144.78],GW:["Guinea-Bissau",12,-15],GY:["Guyana",5,-59],HK:["Hong Kong",22.25,114.17],HN:["Honduras",15,-86.5],HR:["Croatia",45.17,15.5],HT:["Haiti",19,-72.42],HU:["Hungary",47,20],ID:["Indonesia",-5,120],IE:["Ireland",53,-8],IL:["Israel",31.5,34.75],IM:["Isle of Man",54.23,-4.55],IN:["India",20,77],IQ:["Iraq",33,44],IR:["Iran",32,53],IS:["Iceland",65,-18],IT:["Italy",42.83,12.83],JM:["Jamaica",18.25,-77.5],JO:["Jordan",31,36],JP:["Japan",36,138],KE:["Kenya",1,38],KG:["Kyrgyzstan",41,75],KH:["Cambodia",13,105],KI:["Kiribati",1.42,173],KM:["Comoros",-12.17,44.25],KN:["Saint Kitts and Nevis",17.33,-62.75],KP:["North Korea",40,127],KR:["South Korea",37,127.5],KW:["Kuwait",29.34,47.66],KY:["Cayman Islands",19.5,-80.5],KZ:["Kazakhstan",48,68],LA:["Laos",18,105],LB:["Lebanon",33.83,35.83],LC:["Saint Lucia",13.88,-60.97],LI:["Liechtenstein",47.17,9.53],LK:["Sri Lanka",7,81],LR:["Liberia",6.5,-9.5],LS:["Lesotho",-29.5,28.5],LT:["Lithuania",56,24],LU:["Luxembourg",49.75,6.17],LV:["Latvia",57,25],LY:["Libya",25,17],MA:["Morocco",32,-5],MC:["Monaco",43.73,7.4],MD:["Moldova",47,29],ME:["Montenegro",42.5,19.3],MG:["Madagascar",-20,47],MH:["Marshall Islands",9,168],MK:["North Macedonia",41.83,22],ML:["Mali",17,-4],MM:["Myanmar",22,98],MN:["Mongolia",46,105],MO:["Macao",22.17,113.55],MQ:["Martinique",14.67,-61],MR:["Mauritania",20,-12],MT:["Malta",35.83,14.58],MU:["Mauritius",-20.28,57.55],MV:["Maldives",3.25,73],MW:["Malawi",-13.5,34],MX:["Mexico",23,-102],MY:["Malaysia",2.5,112.5],MZ:["Mozambique",-18.25,35],NA:["Namibia",-22,17],NC:["New Caledonia",-21.5,165.5],NE:["Niger",16,8],NG:["Nigeria",10,8],NI:["Nicaragua",13,-85],NL:["Netherlands",52.5,5.75],NO:["Norway",62,10],NP:["Nepal",28,84],NR:["Nauru",-.53,166.92],NZ:["New Zealand",-41,174],OM:["Oman",21,57],PA:["Panama",9,-80],PE:["Peru",-10,-76],PF:["French Polynesia",-15,-140],PG:["Papua New Guinea",-6,147],PH:["Philippines",13,122],PK:["Pakistan",30,70],PL:["Poland",52,20],PR:["Puerto Rico",18.25,-66.5],PS:["Palestine",32,35.25],PT:["Portugal",39.5,-8],PW:["Palau",7.5,134.5],PY:["Paraguay",-23,-58],QA:["Qatar",25.5,51.25],RE:["Réunion",-21.1,55.6],RO:["Romania",46,25],RS:["Serbia",44,21],RU:["Russia",60,100],RW:["Rwanda",-2,30],SA:["Saudi Arabia",25,45],SB:["Solomon Islands",-8,159],SC:["Seychelles",-4.58,55.67],SD:["Sudan",15,30],SE:["Sweden",62,15],SG:["Singapore",1.37,103.8],SI:["Slovenia",46,15],SK:["Slovakia",48.67,19.5],SL:["Sierra Leone",8.5,-11.5],SM:["San Marino",43.77,12.42],SN:["Senegal",14,-14],SO:["Somalia",10,49],SR:["Suriname",4,-56],SS:["South Sudan",8,30],ST:["São Tomé and PrÃncipe",1,7],SV:["El Salvador",13.83,-88.92],SY:["Syria",35,38],SZ:["Eswatini",-26.5,31.5],TD:["Chad",15,19],TG:["Togo",8,1.17],TH:["Thailand",15,100],TJ:["Tajikistan",39,71],TL:["Timor-Leste",-8.83,125.92],TM:["Turkmenistan",40,60],TN:["Tunisia",34,9],TO:["Tonga",-20,-175],TR:["Turkey",39,35],TT:["Trinidad and Tobago",11,-61],TV:["Tuvalu",-8,178],TW:["Taiwan",23.5,121],TZ:["Tanzania",-6,35],UA:["Ukraine",49,32],UG:["Uganda",1,32],US:["United States",38,-97],UY:["Uruguay",-33,-56],UZ:["Uzbekistan",41,64],VA:["Vatican City",41.9,12.45],VC:["Saint Vincent and the Grenadines",13.25,-61.2],VE:["Venezuela",8,-66],VG:["British Virgin Islands",18.43,-64.62],VI:["U.S. Virgin Islands",18.34,-64.93],VN:["Vietnam",16,106],VU:["Vanuatu",-16,167],WS:["Samoa",-13.58,-172.33],XK:["Kosovo",42.5,21],YE:["Yemen",15,48],YT:["Mayotte",-12.83,45.17],ZA:["South Africa",-29,24],ZM:["Zambia",-15,30],ZW:["Zimbabwe",-20,30]};function yo(e){if(!e)return null;const t=e.toUpperCase(),n=JE[t];return n?{code:t,name:n[0],lat:n[1],lng:n[2]}:null}function fce(){return Object.entries(JE).map(([e,[t]])=>({code:e,name:t})).sort((e,t)=>e.name.localeCompare(t.name))}function QE(e){if(!e||e.length!==2)return"ð";const t=e.toUpperCase();return String.fromCodePoint(...[...t].map(n=>127397+n.charCodeAt(0)))}async function TB(){try{const e=await fetch("https://ipapi.co/json/");if(!e.ok)return null;const t=await e.json(),n=(t.country_code||t.country||"").toString().toUpperCase();return n?{code:n,name:t.country_name||yo(n)?.name||n,lat:typeof t.latitude=="number"?t.latitude:yo(n)?.lat??0,lng:typeof t.longitude=="number"?t.longitude:yo(n)?.lng??0,region:t.region||t.region_code||null,city:t.city||null}:null}catch{return null}}function kB(e,t=2){let n=0;for(let i=0;i<e.length;i++)n=n*31+e.charCodeAt(i)|0;const r=((n&65535)/65535-.5)*t,s=((n>>>16&65535)/65535-.5)*t;return{dLat:r,dLng:s}}function _l({code:e,name:t,className:n="",size:r="sm",showName:s=!1}){if(!e)return null;const i=t||yo(e)?.name||e.toUpperCase(),l=e.trim().toLowerCase(),d=r==="xs"?"text-[11px]":r==="md"?"text-base":r==="lg"?"text-xl":"text-sm",h=r==="lg"?{h:16,w:24,src:40,src2:80}:r==="md"?{h:14,w:20,src:40,src2:80}:r==="xs"?{h:9,w:14,src:20,src2:40}:{h:11,w:16,src:20,src2:40},[f,g]=T.useState(!1);return p.jsxs("span",{title:i,"aria-label":i,className:`inline-flex items-center gap-1 leading-none ${d} ${n}
105`,children:[f?p.jsx("span",{"aria-hidden":!0,className:"font-medium",children:QE(e)||e.toUpperCase()}):p.jsx("img",{decoding:"async",src:_o(`https://flagcdn.com/w${h.src}/${l}.png`,480),srcSet:`https://flagcdn.com/w${h.src2}/${l}.png 2x`,width:h.w,height:h.h,alt:i,loading:"lazy",onError:()=>g(!0),className:"inline-block rounded-[2px] ring-1 ring-black/20 shadow-sm object-cover",style:{width:h.w,height:h.h}}),s&&p.jsx("span",{className:"text-muted-foreground",children:i})]})}const CB=()=>$(()=>import("./data-CtSRJiJO.js"),__vite__mapDeps([244,245,172,230,13,6,40])),OB=j("/_authenticated/data")({component:N(CB,"component")}),$B=[{d:7,label:"7d"},{d:30,label:"30d"},{d:90,label:"90d"},{d:365,label:"12mo"}];function pce({data:e,loading:t,days:n,setDays:r,adminLink:s,scopeBar:i,afterKpis:l}){const d=e?.kpis??{total_plays:0,video_plays:0,qualified:0,unique_listeners:0,repeats:0,shares:0,clicks:0},h=T.useMemo(()=>{const _=e?.geo??[],S=new Map;for(const k of _)S.set(k.country_code??"?",(S.get(k.country_code??"?")??0)+k.plays);let E=null,x=0;for(const[k,M]of S)M>x&&(x=M,E=k);return E},[e]),f=T.useMemo(()=>{const _=new Map,S=(E,x)=>{const k=E.country||E.country_code;if(!k)return;const M=yo(k);if(!M)return;const P=E.city||M.name,I=`${k}|${P}`,F=kB(I),G=_.get(I)??{country_code:k,country_name:M.name,region:E.region??null,city:P,plays:0,events:[],lat:M.lat+F.dLat,lng:M.lng+F.dLng,listeners:new Set,shares:0,repeats:0};G.plays+=1,G.events.push(x),x.who&&G.listeners.add(x.who),_.set(I,G)};for(const E of e?.play_log??[])S(E,{kind:"song",title:E.title,who:E.listener,ip:E.ip_hash??null,region:E.region??null,city:E.city,country:E.country,country_code:E.country,seconds:E.seconds,qualified:E.qualified,at:E.played_at});for(const E of e?.video_log??[])S(E,{kind:"video",title:E.title,who:E.viewer,ip:E.ip_hash,region:E.region??null,city:E.city,country:E.country,country_code:E.country,seconds:E.seconds,qualified:E.qualified,at:E.played_at});for(const E of e?.click_log??[]){const x=E.target_type==="video"?"video":E.target_type==="podcast"?"podcast":E.target_type==="track"?"song":"click";S(E,{kind:x,title:E.title,ip:E.ip_hash,region:E.region??null,city:E.city,country:E.country,country_code:E.country,at:E.created_at})}for(const E of _.values())E.events.sort((x,k)=>k.at.localeCompare(x.at));return Array.from(_.values()).map(E=>({city:E.city,country:E.country_name,country_code:E.country_code,region:E.region,plays:E.plays,listeners:E.listeners.size,shares:E.shares,repeats:E.repeats,lat:E.lat,lng:E.lng,events:E.events}))},[e]),g=T.useMemo(()=>{const _=e?.geo??[],S=new Map;for(const E of _){if(!E.country_code)continue;const x=E.country_code,k=S.get(x)??{code:x,name:E.country_name||yo(x)?.name||x,plays:0,listeners:0};k.plays+=Number(E.plays||0),k.listeners+=Number(E.unique_listeners||0),S.set(x,k)}return Array.from(S.values()).sort((E,x)=>x.plays-E.plays)},[e]);function y(_,S){if(!S.length)return;const E=Object.keys(S[0]),x=F=>{const G=F==null?"":String(F);return/[",\n]/.test(G)?`"${G.replace(/"/g,'""')}"`:G},k=[E.join(","),...S.map(F=>E.map(G=>x(F[G])).join(","))].join(` 106`),M=new Blob([k],{type:"text/csv;charset=utf-8"}),P=URL.createObjectURL(M),I=document.createElement("a");I.href=P,I.download=`mostreams-${_}-${n}d-${new Date().toISOString().slice(0,10)}.csv`,I.click(),URL.revokeObjectURL(P)}function b(){const _=[{name:"kpis",rows:[d]},{name:"tracks",rows:e?.tracks??[]},{name:"videos",rows:e?.videos??[]},{name:"geo",rows:e?.geo??[]},{name:"play_log",rows:e?.play_log??[]},{name:"video_log",rows:e?.video_log??[]},{name:"share_log",rows:e?.share_log??[]},{name:"click_log",rows:e?.click_log??[]}],S=[];for(const M of _){if(S.push(`# ${M.name}`),!M.rows.length){S.push("");continue}const P=Object.keys(M.rows[0]),I=F=>{const G=F==null?"":String(F);return/[",\n]/.test(G)?`"${G.replace(/"/g,'""')}"`:G};S.push(P.join(","));for(const F of M.rows)S.push(P.map(G=>I(F[G])).join(","));S.push("")}const E=new Blob([S.join(` 107`)],{type:"text/csv;charset=utf-8"}),x=URL.createObjectURL(E),k=document.createElement("a");k.href=x,k.download=`mostreams-data-report-${n}d-${new Date().toISOString().slice(0,10)}.csv`,k.click(),URL.revokeObjectURL(x)}return p.jsxs("div",{className:"space-y-5",children:[p.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[p.jsx("div",{className:"inline-flex rounded-full border border-border bg-card p-1",children:$B.map(_=>p.jsx("button",{onClick:()=>r(_.d),className:`px-3 h-8 rounded-full text-xs font-bold uppercase tracking-wider transition-colors ${n===_.d?"bg-primary text-primary-foreground":"text-muted-foreground hover:text-foreground"}`,children:_.label},_.d))}),p.jsxs("div",{className:"flex items-center gap-2",children:[i,p.jsxs("button",{onClick:b,className:"inline-flex items-center gap-2 px-3 h-9 rounded-full bg-primary text-primary-foreground text-xs font-bold uppercase tracking-wider hover:opacity-90",children:[p.jsx(Ig,{className:"w-3.5 h-3.5"})," Download report"]}),s&&p.jsx(An,{to:"/mc-60e9ca6cf6/data-warehouse",className:"text-xs font-bold uppercase tracking-wider text-primary",children:"Data Warehouse â"})]})]}),p.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[p.jsx(Qo,{icon:Lg,label:"Song plays",value:d.total_plays,sub:`${n}d`}),p.jsx(Qo,{icon:Ci,label:"Video plays",value:d.video_plays}),p.jsx(Qo,{icon:tD,label:"Qualified (30s+)",value:d.qualified}),p.jsx(Qo,{icon:NR,label:"Unique listeners",value:d.unique_listeners}),p.jsx(Qo,{icon:OR,label:"Repeats",value:d.repeats}),p.jsx(Qo,{icon:MR,label:"Shares",value:d.shares}),p.jsx(Qo,{icon:CR,label:"Clicks",value:d.clicks}),p.jsx(Qo,{icon:d1,label:"Top country",value:h??"â"})]}),l,p.jsx(Xo,{title:"Worldwide listeners",subtitle:"Live globe â every play, plotted by satellite IP · auto-refresh 10s",children:f.length===0?p.jsxs("div",{className:"px-5 py-12 text-center text-sm text-muted-foreground",children:[p.jsx(d1,{className:"w-8 h-8 mx-auto mb-3 text-muted-foreground
107/50"}),"No geo-tagged plays yet. As listeners stream, their countries will light up here."]}):p.jsxs("div",{className:"p-3",children:[p.jsx(AB,{points:f.map(_=>({city:_.city,country:_.country,country_code:_.country_code,region:_.region,plays:_.plays,lat:_.lat,lng:_.lng,listeners:_.listeners,latest_asset:_.events?.[0]?.title??null,latest_at:_.events?.[0]?.at??null,ip_raw:_.events?.[0]?.ip??null})),height:560,defaultMode:"satellite",showIp:!!s}),p.jsxs("div",{className:"mt-3 flex flex-wrap gap-3 text-[10px] uppercase tracking-wider text-muted-foreground",children:[p.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[p.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-[#f97316]"})," Song play"]}),p.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[p.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-[#fb923c]"})," Video play"]}),p.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[p.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-[#fbbf24]"})," Podcast click"]}),p.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[p.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-[#fde047]"})," Other click"]})]}),g.length>0&&p.jsx("div",{className:"mt-4 grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-2",children:g.slice(0,12).map(_=>p.jsxs("div",{className:"flex items-center gap-2 rounded-xl border border-border bg-secondary/20 px-3 py-2",children:[p.jsx(_l,{code:_.code,name:_.name,size:"md"}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("div",{className:"text-xs font-bold truncate",children:_.name}),p.jsxs("div",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:[_.listeners," listeners"]})]}),p.jsx("div",{className:"font-mono text-sm font-black tabular-nums",children:_.plays.toLocaleString()})]},_.code))})]})}),p.jsx(LB,{plays:e?.play_log??[],videos:e?.video_log??[],clicks:e?.click_log??[]}),p.jsx(IB,{rows:e?.share_log??[],onCsv:()=>y("social_shares",e?.share_log??[])}),t&&p.jsx("div",{className:"text-sm text-muted-foreground",children:"Loading dataâ¦"}),p.jsx(Xo,{title:"Songs",subtitle:"Per-track performance",action:p.jsx(Ka,{onClick:()=>y("tracks",e?.tracks??[])}),children:p.jsx(F1,{rows:e?.tracks??[],kind:"track"})}),p.jsx(Xo,{title:"Videos",subtitle:"Per-video performance",action:p.jsx(Ka,{onClick:()=>y("videos",e?.videos??[])}),children:p.jsx(F1,{rows:e?.videos??[],kind:"video"})}),p.jsx(Xo,{title:"Geography",subtitle:"State, region, and city â where your fans are",action:p.jsx(Ka,{onClick:()=>y("geo",e?.geo??[])}),children:p.jsx(MB,{rows:e?.geo??[]})}),p.jsx(Xo,{title:"Recent plays",subtitle:"Every play, timestamped",action:p.jsx(Ka,{onClick:()=>y("play_log",e?.play_log??[])}),children:p.jsx(NB,{rows:e?.play_log??[]})}),p.jsx(Xo,{title:"Recent video plays",subtitle:"Watch sessions with IP hash",action:p.jsx(Ka,{onClick:()=>y("video_log",e?.video_log??[])}),children:p.jsx(jB,{rows:e?.video_log??[]})}),p.jsx(Xo,{title:"Shares",subtitle:"Where your music is getting pushed",action:p.jsx(Ka,{onClick:()=>y("share_log",e?.share_log??[])}),children:p.jsx(PB,{rows:e?.share_log??[]})}),p.jsx(Xo,{title:"Clicks",subtitle:"Every click on your tracks, beats, videos",action:p.jsx(Ka,{onClick:()=>y("click_log",e?.click_log??[])}),children:p.jsx(DB,{rows:e?.click_log??[]})})]})}function Qo({icon:e,label:t,value:n,sub:r}){return p.jsxs("div",{className:"rounded-2xl border border-border bg-card p-4",children:[p.jsxs("div",{className:"flex items-center gap-2 text-[10px] font-bold uppercase tracking-[0.18em] text-muted-foreground",children:[p.jsx(e,{className:"w-3.5 h-3.5 text-primary"})," ",t]}),p.jsx("div",{className:"mt-2 font-display text-2xl font-black truncate",children:typeof n=="number"?n.toLocaleString():n||"â"}),r&&p.jsx("div",{className:"text-[10px] text-muted-foreground mt-0.5",children:r})]})}function Xo({title:e,subtitle:t,action:n,children:r}){return p.jsxs("div",{className:"rounded-2xl border border-border bg-card overflow-hidden",children:[p.jsxs("div",{className:"px-5 py-4 border-b border-border flex items-center justify-between gap-3",children:[p.jsxs("div",{children:[p.jsx("div",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:t}),p.jsx("div",{className:"font-display text-lg font-black",children:e})]}),n]}),r]})}function Ka({onClick:e}){return p.jsxs("button",{onClick:e,className:"inline-flex items-center gap-1.5 px-3 h-8 rounded-full border border-border text-[11px] font-bold uppercase tracking-wider hover:bg-secondary/40",children:[p.jsx(Ig,{className:"w-3.5 h-3.5"})," CSV"]})}function F1({rows:e,kind:t}){return e.length?p.jsx("div",{className:"overflow-x-auto",children:p.jsxs("table",{className:"w-full text-sm",children:[p.jsx("thead",{className:"bg-secondary/30 text-[10px] uppercase tracking-wider text-muted-foreground",children:p.jsxs("tr",{children:[p.jsx("th",{className:"text-left px-5 py-3",children:"Title"}),p.jsx("th",{className:"text-right px-5 py-3",children:"Plays"}),p.jsx("th",{className:"text-right px-5 py-3 hidden sm:table-cell",children:"Qualified"}),p.jsx("th",{className:"text-right px-5 py-3 hidden sm:table-cell",children:"Repeats"}),p.jsx("th",{className:"text-right px-5 py-3 hidden md:table-cell",children:"Shares"}),p.jsx("th",{className:"text-right px-5 py-3 hidden md:table-cell",children:"Clicks"}),p.jsx("th",{className:"text-left px-5 py-3 hidden lg:table-cell",children:"Top country"}),p.jsx("th",{className:"text-left px-5 py-3 hidden lg:table-cell",children:"Last play"})]})}),p.jsx("tbody",{children:e.map(n=>p.jsxs("tr",{className:"border-t border-border hover:bg-secondary/20",children:[p.jsx("td",{className:"px-5 py-3 truncate max-w-[260px]",children:n.title}),p.jsx("td",{className:"px-5 py-3 text-right font-mono",children:Number(n.plays||0).toLocaleStr
107ing()}),p.jsx("td",{className:"px-5 py-3 text-right font-mono hidden sm:table-cell",children:Number(n.qualified||0).toLocaleString()}),p.jsx("td",{className:"px-5 py-3 text-right font-mono hidden sm:table-cell",children:Number(n.repeats||0).toLocaleString()}),p.jsx("td",{className:"px-5 py-3 text-right font-mono hidden md:table-cell",children:Number(n.shares||0).toLocaleString()}),p.jsx("td",{className:"px-5 py-3 text-right font-mono hidden md:table-cell",children:Number(n.clicks||0).toLocaleString()}),p.jsx("td",{className:"px-5 py-3 text-muted-foreground hidden lg:table-cell",children:n.top_country??"â"}),p.jsx("td",{className:"px-5 py-3 text-muted-foreground hidden lg:table-cell",children:n.last_played_at?new Date(n.last_played_at).toLocaleString():"â"})]},n.id))})]})}):p.jsx(ba,{children:`No ${t} plays yet.`})}function MB({rows:e}){return e.length?p.jsx("div",{className:"overflow-x-auto max-h-[420px] overflow-y-auto",children:p.jsxs("table",{className:"w-full text-sm",children:[p.jsx("thead",{className:"bg-secondary/30 text-[10px] uppercase tracking-wider text-muted-foreground sticky top-0",children:p.jsxs("tr",{children:[p.jsx("th",{className:"text-left px-5 py-3",children:"Country"}),p.jsx("th",{className:"text-left px-5 py-3 hidden md:table-cell",children:"State / Region"}),p.jsx("th",{className:"text-left px-5 py-3",children:"City"}),p.jsx("th",{className:"text-right px-5 py-3",children:"Plays"}),p.jsx("th",{className:"text-right px-5 py-3",children:"Unique listeners"})]})}),p.jsx("tbody",{children:e.map((t,n)=>p.jsxs("tr",{className:"border-t border-border",children:[p.jsx("td",{className:"px-5 py-3",children:p.jsxs("span",{className:"inline-flex items-center gap-2",children:[t.country_code&&p.jsx(_l,{code:t.country_code,name:t.country_name,size:"sm"}),t.country_name||t.country_code||"â"]})}),p.jsx("td",{className:"px-5 py-3 text-muted-foreground hidden md:table-cell",children:t.region||"â"}),p.jsx("td",{className:"px-5 py-3 text-muted-foreground",children:t.city||"â"}),p.jsx("td",{className:"px-5 py-3 text-right font-mono",children:Number(t.plays).toLocaleString()}),p.jsx("td",{className:"px-5 py-3 text-right font-mono",children:Number(t.unique_listeners).toLocaleString()})]},n))})]})}):p.jsx(ba,{children:"No geo data yet."})}function NB({rows:e}){return e.length?p.jsx(fh,{rows:e,cols:["played_at","title","listener","country","region","city","ip_hash","seconds","qualified"]}):p.jsx(ba,{children:"No plays yet."})}function jB({rows:e}){return e.length?p.jsx(fh,{rows:e,cols:["played_at","title","viewer","country","region","city","ip_hash","seconds","qualified"]}):p.jsx(ba,{children:"No video plays yet."})}function PB({rows:e}){return e.length?p.jsx(fh,{rows:e,cols:["created_at","platform","target_type","title"]}):p.jsx(ba,{children:"No shares yet."})}function DB({rows:e}){return e.length?p.jsx(fh,{rows:e,cols:["created_at","target_type","title","country","region","city","ip_hash"]}):p.jsx(ba,{children:"No clicks yet."})}function fh({rows:e,cols:t}){return p.jsx("div",{className:"overflow-x-auto max-h-[480px] overflow-y-auto",children:p.jsxs("table",{className:"w-full text-xs",children:[p.jsx("thead",{className:"bg-secondary/30 text-[10px] uppercase tracking-wider text-muted-foreground sticky top-0",children:p.jsx("tr",{children:t.map(n=>p.jsx("th",{className:"text-left px-4 py-2 whitespace-nowrap",children:n.replace(/_/g," ")},n))})}),p.jsx("tbody",{children:e.map((n,r)=>p.jsx("tr",{className:"border-t border-border",children:t.map(s=>p.jsx("td",{className:"px-4 py-2 whitespace-nowrap text-muted-foreground",children:s==="played_at"||s==="created_at"?n[s]?new Date(n[s]).toLocaleString():"â":n[s]===!0?"yes":n[s]===!1?"no":n[s]??"â"},s))},r))})]})})}function ba({children:e}){return p.jsx("div",{className:"px-5 py-10 text-center text-sm text-muted-foreground",children:e})}function IB({rows:e,onCsv:t}){const n=T.useMemo(()=>{const s=new Map;for(const i of e){const l=(i.platform||"other").toLowerCase();s.set(l,(s.get(l)??0)+1)}return Array.from(s.entries()).map(([i,l])=>({platform:i,count:l})).sort((i,l)=>l.count-i.count)},[e]),r=e.length;return p.jsxs("div",{className:"rounded-2xl border border-border bg-card overflow-hidden",children:[p.jsxs("div",{className:"px-5 py-4 border-b border-border flex items-center justify-between gap-3",children:[p.jsxs("div",{children:[p.jsxs("div",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:[r.toLocaleStr
107ing()," shares â by social platform"]}),p.jsxs("div",{className:"font-display text-lg font-black flex items-center gap-2",children:[p.jsx(MR,{className:"w-4 h-4 text-primary"})," Social shares"]})]}),p.jsxs("button",{onClick:t,className:"inline-flex items-center gap-1.5 px-3 h-8 rounded-full border border-border text-[11px] font-bold uppercase tracking-wider hover:bg-secondary/40",children:[p.jsx(Ig,{className:"w-3.5 h-3.5"})," CSV"]})]}),n.length?p.jsx("div",{className:"p-4 grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-2",children:n.map(s=>p.jsxs("div",{className:"rounded-xl border border-border bg-secondary/20 px-3 py-2",children:[p.jsx("div",{className:"text-[10px] uppercase tracking-wider text-muted-foreground truncate",children:s.platform}),p.jsx("div",{className:"font-mono text-lg font-black tabular-nums",children:s.count.toLocaleString()}),p.jsxs("div",{className:"text-[10px] text-muted-foreground",children:[r?Math.round(s.count/r*100):0,"% of shares"]})]},s.platform))}):p.jsx(ba,{children:"No shares yet."})]})}function LB({plays:e,videos:t,clicks:n}){const[r,s]=T.useState("all"),i=T.useMemo(()=>{const S=[],E=x=>x?yo(x)?.name??x:null;for(const x of e)S.push({at:x.played_at,kind:"song",title:x.title,who:x.listener,place:[x.city,x.region].filter(Boolean).join(", ")||E(x.country)||"â",country_code:x.country??null,country_name:E(x.country),ip:x.ip_hash??null,seconds:x.seconds,qualified:x.qualified});for(const x of t)S.push({at:x.played_at,kind:"video",title:x.title,who:x.viewer,place:[x.city,x.region].filter(Boolean).join(", ")||E(x.country)||"â",country_code:x.country??null,country_name:E(x.country),ip:x.ip_hash,seconds:x.seconds,qualified:x.qualified});for(const x of n){const k=x.target_type==="video"?"video":x.target_type==="podcast"?"podcast":x.target_type==="track"?"song":"click";S.push({at:x.created_at,kind:k,title:x.title,who:"guest",place:[x.city,x.region].filter(Boolean).join(", ")||E(x.country)||"â",country_code:x.country??null,country_name:E(x.country),ip:x.ip_hash})}return S.sort((x,k)=>(k.at||"").localeCompare(x.at||"")),S.slice(0,200)},[e,t,n]),l=T.useMemo(()=>r==="all"?i:i.filter(S=>S.kind===r),[i,r]),d=T.useMemo(()=>{const S={all:i.length,song:0,video:0,podcast:0,click:0};for(const E of i)S[E.kind]++;return S},[i]),[h,f]=T.useState(0);T.useEffect(()=>{const S=setInterval(()=>f(E=>E+1),1e3);return()=>clearInterval(S)},[]);const g=h%30,y={song:"bg-orange-500",video:"bg-orange-400",podcast:"bg-amber-300",click:"bg-yellow-300"},b={song:Lg,video:Ci,podcast:Ud,click:CR},_={song:"ðµ",video:"ð¬",podcast:"ðï¸",click:"ð"};return p.jsxs("div",{className:"rounded-2xl border border-primary/30 bg-gradient-to-br from-black via-card to-black overflow-hidden shadow-[0_0_40px_-15px_rgba(249,115,22,0.4)]",children:[p.jsxs("div",{className:"px-5 py-4 border-b border-primary/30 flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsxs("div",{className:"text-[10px] font-bold uppercase tracking-[0.2em] text-primary flex items-center gap-2",children:[p.jsx(cl,{className:"w-3 h-3 animate-pulse"})," Live worldwide stream · realtime"]}),p.jsx("div",{className:"font-display text-lg font-black",children:"Every play, click & stream â as it happens"})]}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsxs("div",{className:"text-[10px] uppercase tracking-wider text-muted-foreground inline-flex items-center gap-1.5",children:[p.jsx($I,{className:"w-3 h-3 text-primary animate-pulse"})," Live · ",i.length," events"]}),p.jsx("div",{className:"h-1.5 w-24 rounded-full bg-secondary/40 overflow-hidden",children:p.jsx("div",{className:"h-full bg-primary transition-all",style:{width:`${g/30*100}%`}})})]})]}),p.jsx("div",{className:"px-5 py-2 border-b border-border/50 flex flex-wrap gap-1.5",children:[{v:"all",label:"All",n:d.all},{v:"song",label:"ðµ Songs",n:d.song},{v:"video",label:"ð¬ Videos",n:d.video},{v:"podcast",label:"ðï¸ Podcasts",n:d.podcast},{v:"click",label:"ð Clicks",n:d.click}].map(S=>p.jsxs("button",{onClick:()=>s(S.v),className:`px-2.5 h-7 rounded-full text-[10px] font-bold uppercase tracking-wider transition ${r===S.v?"bg-primary text-primary-foreground":"bg-secondary/40 text-muted-foreground hover:text-foreground"}`,children:[S.label," ",p.jsx("span",{className:"opacity-70 ml-1",children:S.n})]},S.v))}),l.length===0?p.jsx(ba,{children:"Waiting on the first listenerâ¦"}):p.jsx("div",{className:"max-h-[440px] overflow-y-auto divide-y divide-border/50",children:l.map((S,E)=>{const x=b[S.kind];return p.jsxs("div",{className:"px-5 py-3 flex items-center gap-3 hover:bg-secondary/20",children:[p.jsx("span",{className:`w-2 h-2 rounded-full ${y[S.kind]} animate-pulse shrink-0`}),p.jsx(x,{className:"w-3.5 h-3.5 text-primary shrink-0"}),p.jsx("span",{className:"text-base leading-none shrink-0","aria-hidden":!0,
107children:_[S.kind]}),S.country_code&&p.jsx(_l,{code:S.country_code,name:S.country_name??void 0,size:"sm"}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("div",{className:"text-xs font-bold truncate",children:S.title}),p.jsxs("div",{className:"text-[10px] uppercase tracking-wider text-muted-foreground truncate",children:[S.who," · ",S.place,S.country_name&&!S.place.includes(S.country_name)?`, ${S.country_name}`:"",S.ip?` · IP ${S.ip}`:"",S.seconds?` · ${S.seconds}s`:"",S.qualified?" · â":""]})]}),p.jsx("div",{className:"text-[10px] font-mono tabular-nums text-muted-foreground shrink-0",children:S.at?new Date(S.at).toLocaleTimeString():"â"})]},E)})})]})}const zB=()=>$(()=>import("./discover-CWafbVUb.js"),__vite__mapDeps([246,80,81,57,82,17,83,13,84,23,41,85,22,86,87,88,89,90,91,92,12,93,16,72,73,94,135,136,137,199,114,56,171,200,4,69,120,121,122,77,201,132,133])),BB=j("/_authenticated/discover")({component:N(zB,"component")}),UB=()=>$(()=>import("./discs-BOacs8R-.js"),__vite__mapDeps([247,248,249,88,242,250,9,101,102,103,104,173,40,44,251,86,17,105,150])),VB=j("/_authenticated/discs")({validateSearch:e=>({artist:typeof e.artist=="string"?e.artist:void 0,claimed:typeof e.claimed=="string"?e.claimed:void 0}),head:()=>({meta:[{title:"My Discs · MO STREAMS / DIGITAL DISC"},{name:"description",content:"Every MO STREAMS Digital Disc you own â numbered serials, booklets, WAV and MP3 downloads, and ownership certificates."},{property:"og:title",content:"My Discs · MO STREAMS / DIGITAL DISC"},{property:"og:description",content:"Your shelf of numbered digital discs. Play, download, and verify what you own."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:N(UB,"component")}),FB=()=>$(()=>import("./distribute-Q3FmeyKz.js"),__vite__mapDeps([252,253,124,254,255,168,256,136,209,257,68,3,9,104,44,150,145,226,258,72,163,175,40,120])),qB=["single","ep","album","compilation","mixtape"],HB=j("/_authenticated/distribute")({validateSearch:e=>({type:qB.includes(e?.type)?e.type:void 0,id:typeof e?.id=="string"?e.id:void 0}),component:N(FB,"component")}),GB=()=>$(()=>import("./follow-requests-Cto8tRV8.js"),__vite__mapDeps([259,165,260])),KB=j("/_authenticated/follow-requests")({component:N(GB,"component")}),ZB=()=>$(()=>import("./greenlist-anG3HJCa.js"),__vite__mapDeps([261,9,40,120])),WB=j("/_authenticated/greenlist")({component:N(ZB,"component")}),YB=()=>$(()=>import("./insights-BHOOEd1U.js"),[]),JB=j("/_authenticated/insights")({component:N(YB,"component")}),QB=()=>$(()=>import("./kyc-RDS0T0_D.js"),__vite__mapDeps([262,263])),XB=j("/_authenticated/kyc")({component:N(QB,"component")}),eU=()=>$(()=>import("./marketplace-Dddb3ubV.js"),__vite__mapDeps([264,40,38])),tU=j("/_authenticated/marketplace")({component:N(eU,"component")}),nU=()=>$(()=>import("./messages-CvLjxhOO.js"),[]),rU=()=>$(()=>import("./messages-Iwlo0FUA.js"),[]),oU=()=>$(()=>import("./messages-B-Q-SVX_.js"),__vite__mapDeps([265,9,50,2,3,4,5,223,87,266,267,268,168,40,170,269,201,119,166,120])),aU=j("/_authenticated/messages")({head:()=>({meta:[{title:"Messages â MO Streams"}]}),component:N(oU,"component"),errorComponent:N(rU,"errorComponent"),notFoundComponent:N(nU,"notFoundComponent")}),sU=()=>$(()=>import("./moderation-pNEer5Hf.js"),__vite__mapDeps([270,120])),iU=j("/_authenticated/moderation")({component:N(sU,"component")}),cU=()=>$(()=>import("./my-collectibles-BRpCyQNd.js"),__vite__mapDeps([271,98])),lU=j("/_authenticated/my-collectibles")({component:N(cU,"component")}),uU=()=>$(()=>import("./my-library-CFjPQOX9.js"),__vite__mapDeps([272,189,5,3,40,58,120,166])),dU=j("/_authenticated/my-library")({component:N(uU,"component")}),hU=j("/_authenticated/my-modiscs")({beforeLoad:()=>{throw Nt({to:"/discs",replace:!0})}}),fU=()=>$(()=>import("./network-BIP_KMQS.js"),[]),pU=j("/_authenticated/network")({component:N(fU,"component")}),mU=()=>$(()=>import("./notifications-DaHpD9IJ.js"),__vite__mapDeps([273,77,173])),gU=j("/_authenticated/notifications")({component:N(mU,"component")});var q1;function ge(e,t,n){function r(d,h){if(d._zod||Object.defineProperty(d,"_zod",{value:{def:h,constr:l,traits:new Set},enumerable:!1}),d._zod.traits.has(e))return;d._zod.traits.add(e),t(d,h);const f=l.prototype,g=Object.keys(f);for(let y=0;y<g.length;y++){const b=g[y];b in d||(d[b]=f[b].bind(d))}}
107const s=n?.Parent??Object;class i extends s{}Object.defineProperty(i,"name",{value:e});function l(d){var h;const f=n?.Parent?new i:this;r(f,d),(h=f._zod).deferred??(h.deferred=[]);for(const g of f._zod.deferred)g();return f}return Object.defineProperty(l,"init",{value:r}),Object.defineProperty(l,Symbol.hasInstance,{value:d=>n?.Parent&&d instanceof n.Parent?!0:d?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}class Ti extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class XE extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(q1=globalThis).__zod_globalConfig??(q1.__zod_globalConfig={});const oy=globalThis.__zod_globalConfig;function cs(e){return oy}function eA(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,s])=>t.indexOf(+r)===-1).map(([r,s])=>s)}function lg(e,t){return typeof t=="bigint"?t.toString():t}function ay(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function sy(e){return e==null}function iy(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function yU(e,t){const n=e/t,r=Math.round(n),s=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<s?0:n-r}const H1=Symbol("evaluating");function St(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==H1)return r===void 0&&(r=H1,r=n()),r},set(s){Object.defineProperty(e,t,{value:s})},configurable:!0})}function fs(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function _a(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function G1(e){return JSON.stringify(e)}function vU(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const tA="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Gd(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const bU=ay(()=>{if(oy.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function dl(e){if(Gd(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Gd(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function nA(e){return dl(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const _U=new Set(["string","number","symbol"]);function $i(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function wa(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Ue(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function wU(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const SU={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function xU(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=_a(e._zod.def,{get shape(){const l={};for(const d in t){if(!(d in n.shape))throw new Error(`Unrecognized key: "${d}"`);t[d]&&(l[d]=n.shape[d])}return fs(this,"shape",l),l},checks:[]});return wa(e,i)}function RU(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=_a(e._zod.def,{get shape(){const l={...e._zod.def.shape};for(const d in t){if(!(d in n.shape))throw new Error(`Unrecognized key: "${d}"`);t[d]&&delete l[d]}return fs(this,"shape",l),l},checks:[]});return wa(e,i)}function EU(e,t){if(!dl(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const i=e._zod.def.shape;for(const l in t)if(Object.getOwnPropertyDescriptor(i,l)!==void 0)throw new Error("Cannot over
107write keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const s=_a(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return fs(this,"shape",i),i}});return wa(e,s)}function AU(e,t){if(!dl(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=_a(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return fs(this,"shape",r),r}});return wa(e,n)}function TU(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=_a(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return fs(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return wa(e,n)}function kU(e,t,n){const s=t._zod.def.checks;if(s&&s.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const l=_a(t._zod.def,{get shape(){const d=t._zod.def.shape,h={...d};if(n)for(const f in n){if(!(f in d))throw new Error(`Unrecognized key: "${f}"`);n[f]&&(h[f]=e?new e({type:"optional",innerType:d[f]}):d[f])}else for(const f in d)h[f]=e?new e({type:"optional",innerType:d[f]}):d[f];return fs(this,"shape",h),h},checks:[]});return wa(t,l)}function CU(e,t,n){const r=_a(t._zod.def,{get shape(){const s=t._zod.def.shape,i={...s};if(n)for(const l in n){if(!(l in i))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(i[l]=new e({type:"nonoptional",innerType:s[l]}))}else for(const l in s)i[l]=new e({type:"nonoptional",innerType:s[l]});return fs(this,"shape",i),i}});return wa(t,r)}function wi(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function OU(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function rA(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function ad(e){return typeof e=="string"?e:e?.message}function ls(e,t,n){const r=e.message?e.message:ad(e.inst?._zod.def?.error?.(e))??ad(t?.error?.(e))??ad(n.customError?.(e))??ad(n.localeError?.(e))??"Invalid input",{inst:s,continue:i,input:l,...d}=e;return d.path??(d.path=[]),d.message=r,t?.reportInput&&(d.input=l),d}function cy(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function hl(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const oA=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,lg,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},aA=ge("$ZodError",oA),sA=ge("$ZodError",oA,{Parent:Error});function $U(e,t=n=>n.message){const n={},r=[];for(const s of e.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(t(s))):r.push(t(s));return{formErrors:r,fieldErrors:n}}function MU(e,t=n=>n.message){const n={_errors:[]},r=(s,i=[])=>{for(const l of s.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(d=>r({issues:d},[...i,...l.path]));else if(l.code==="invalid_key")r({issues:l.issues},[...i,...l.path]);else if(l.code==="invalid_element")r({issues:l.issues},[...i,...l.path]);else{const d=[...i,...l.path];if(d.length===0)n._errors.push(t(l));else{let h=n,f=0;for(;f<d.length;){const g=d[f];f===d.length-1?(h[g]=h[g]||{_errors:[]},h[g]._errors.push(t(l))):h[g]=h[g]||{_errors:[]},h=h[g],f++}}}};return r(e),n}const ly=e=>(t,n,r,s)=>{const i=r?{...r,async:!1}:{async:!1},l=t._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw new Ti;if(l.issues.length){const d=new(s?.Err??e)(l.issues.map(h=>ls(h,i,cs())));throw tA(d,s?.callee),d}return l.value},uy=e=>async(t,n,r,s)=>{const i=r?{...r,async:!0}:{async:!0};let l=t._zod.run({value:n,issues:[]},i);if(l instanceof Promise&&(l=await l),l.issues.length){const d=new(s?.Err??e)(l.issues.map(h=>ls(h,i,cs())));throw tA(d,s?.callee),d}return l.value},ph=e=>(t,n,r)=>{const s=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},s);if(i instanceof Promise)throw new Ti;return i.issues.length?{success:!1,error:new(e??aA)(i.issues.map(l
vendor: 4,208 bytes, line 107
107=>ls(l,s,cs())))}:{success:!0,data:i.value}},NU=ph(sA),mh=e=>async(t,n,r)=>{const s=r?{...r,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},s);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(l=>ls(l,s,cs())))}:{success:!0,data:i.value}},jU=mh(sA),PU=e=>(t,n,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return ly(e)(t,n,s)},DU=e=>(t,n,r)=>ly(e)(t,n,r),IU=e=>async(t,n,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return uy(e)(t,n,s)},LU=e=>async(t,n,r)=>uy(e)(t,n,r),zU=e=>(t,n,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return ph(e)(t,n,s)},BU=e=>(t,n,r)=>ph(e)(t,n,r),UU=e=>async(t,n,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return mh(e)(t,n,s)},VU=e=>async(t,n,r)=>mh(e)(t,n,r),FU=/^[cC][0-9a-z]{6,}$/,qU=/^[0-9a-z]+$/,HU=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,GU=/^[0-9a-vA-V]{20}$/,KU=/^[A-Za-z0-9]{27}$/,ZU=/^[a-zA-Z0-9_-]{21}$/,WU=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,YU=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,K1=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,JU=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,QU="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function XU(){return new RegExp(QU,"u")}const e7=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,t7=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,n7=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,r7=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,o7=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,iA=/^[A-Za-z0-9_-]*$/,a7=/^https?$/,s7=/^\+[1-9]\d{6,14}$/,cA="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",i7=new RegExp(`^${cA}$`);function lA(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function c7(e){return new RegExp(`^${lA(e)}$`)}function l7(e){const t=lA({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${cA}T(?:${r})$`)}const u7=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},d7=/^-?\d+$/,h7=/^-?\d+(?:\.\d+)?$/,f7=/^[^A-Z]*$/,p7=/^[^a-z]*$/,Fn=ge("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),uA={number:"number",bigint:"bigint",object:"date"},dA=ge("$ZodCheckLessThan",(e,t)=>{Fn.init(e,t);const n=uA[typeof t.value];e._zod.onattach.push(r=>{const s=r._zod.bag,i=(t.inclusive?s.maximum:s.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?s.maximum=t.value:s.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),hA=ge("$ZodCheckGreaterThan",(e,t)=>{Fn.init(e,t);const n=uA[typeof t.value];e._zod.onattach.push(r=>
vendor: 17,799 bytes, lines 107-168
107{const s=r._zod.bag,i=(t.inclusive?s.minimum:s.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?s.minimum=t.value:s.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),m7=ge("$ZodCheckMultipleOf",(e,t)=>{Fn.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):yU(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),g7=ge("$ZodCheckNumberFormat",(e,t)=>{Fn.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[s,i]=SU[t.format];e._zod.onattach.push(l=>{const d=l._zod.bag;d.format=t.format,d.minimum=s,d.maximum=i,n&&(d.pattern=d7)}),e._zod.check=l=>{const d=l.value;if(n){if(!Number.isInteger(d)){l.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:d,inst:e});return}if(!Number.isSafeInteger(d)){d>0?l.issues.push({input:d,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):l.issues.push({input:d,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}d<s&&l.issues.push({origin:"number",input:d,code:"too_small",minimum:s,inclusive:!0,inst:e,continue:!t.abort}),d>i&&l.issues.push({origin:"number",input:d,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),y7=ge("$ZodCheckMaxLength",(e,t)=>{var n;Fn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const s=r.value;return!sy(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{const s=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<s&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const s=r.value;if(s.length<=t.maximum)return;const l=cy(s);r.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),v7=ge("$ZodCheckMinLength",(e,t)=>{var n;Fn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const s=r.value;return!sy(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{const s=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>s&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const s=r.value;if(s.length>=t.minimum)return;const l=cy(s);r.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),b7=ge("$ZodCheckLengthEquals",(e,t)=>{var n;Fn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const s=r.value;return!sy(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{const s=r._zod.bag;s.minimum=t.length,s.maximum=t.length,s.length=t.length}),e._zod.check=r=>{const s=r.value,i=s.length;if(i===t.length)return;const l=cy(s),d=i>t.length;r.issues.push({origin:l,...d?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),gh=ge("$ZodCheckStringFormat",(e,t)=>{var n,r;Fn.init(e,t),e._zod.onattach.push(s=>{const i=s._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=s=>{t.pattern.lastIndex=0,!t.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:t.format,input:s.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),_7=ge("$ZodCheckRegex",(e,t)=>{gh.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),w7=ge("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=f7),gh.init(e,t)}),S7=ge("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=p7),gh.init(e,t)}),x7=ge("$ZodCheckIncludes",(e,t)=>{Fn.init(e,t);const n=$i(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(s=>{const i=s._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=s=>{s.value.includes(t.includes,t.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:s.value,inst:e,continue:!t.abort})}}),R7=ge("$ZodCheckStartsWith",(e,t)=>{Fn.init(e,t);const n=new RegExp(`^${$i(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const s=r._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),E7=ge("$ZodCheckEndsWith",(e,t)=>{Fn.init(e,t);const n=new RegExp(`.*${$i(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const s=r._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),A7=ge("$ZodCheckOverwrite",(e,t)=>{Fn.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class T7{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(` 108`).filter(l=>l),s=Math.min(...r.map(l=>l.length-l.trimStart().length)),i=r.map(l=>l.slice(s)).map(l=>" ".repeat(this.indent*2)+l);for(const l of i)this.content.push(l)}compile(){const t=Function,n=this?.args,s=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...n,s.join(` 109`))}}const k7={major:4,minor:4,patch:3},Gt=ge("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=k7;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const s of r)for(const i of s._zod.onattach)i(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const s=(l,d,h)=>{let f=wi(l),g;for(const y of d){if(y._zod.def.when){if(OU(l)||!y._zod.def.when(l))continue}else if(f)continue;const b=l.issues.length,_=y._zod.check(l);if(_ instanceof Promise&&h?.async===!1)throw new Ti;if(g||_ instanceof Promise)g=(g??Promise.resolve()).then(async()=>{await _,l.issues.length!==b&&(f||(f=wi(l,b)))});else{if(l.issues.length===b)continue;f||(f=wi(l,b))}}return g?g.then(()=>l):l},i=(l,d,h)=>{if(wi(l))return l.aborted=!0,l;const f=s(d,r,h);if(f instanceof Promise){if(h.async===!1)throw new Ti;return f.then(g=>e._zod.parse(g,h))}return e._zod.parse(f,h)};e._zod.run=(l,d)=>{if(d.skipChecks)return e._zod.parse(l,d);if(d.direction==="backward"){const f=e._zod.parse({value:l.value,issues:[]},{...d,skipChecks:!0});return f instanceof Promise?f.then(g=>i(g,l,d)):i(f,l,d)}const h=e._zod.parse(l,d);if(h instanceof Promise){if(d.async===!1)throw new Ti;return h.then(f=>s(f,r,d))}return s(h,r,d)}}St(e,"~standard",()=>({validate:s=>{try{const i=NU(e,s);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return jU(e,s).then(l=>l.success?{value:l.data}:{issues:l.error?.issues})}},vendor:"zod",version:1}))}),dy=ge("$ZodString",(e,t)=>{Gt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??u7(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),jt=ge("$ZodStringFormat",(e,t)=>{gh.init(e,t),dy.init(e,t)}),C7=ge("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=YU),jt.init(e,t)}),O7=ge("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=K1(r))}else t.pattern??(t.pattern=K1());jt.init(e,t)}),$7=ge("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=JU),jt.init(e,t)}),M7=ge("$ZodURL",(e,t)=>{jt.init(e,t),e._zod.check=n=>{try{const r=n.value.trim();if(!t.normalize&&t.protocol?.source===a7.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const s=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(s.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(s.protocol.endsWith(":")?s.protocol.slice(0,-1):s.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=s.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),N7=ge("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=XU()),jt.init(e,t)}),j7=ge("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=ZU),jt.init(e,t)}),P7=ge("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=FU),jt.init(e,t)}),D7=ge("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=qU),jt.init(e,t)}),I7=ge("$ZodULID",(e,t)=>{t.pattern??(t.pattern=HU),jt.init(e,t)}),L7=ge("$ZodXID",(e,t)=>{t.pattern??(t.pattern=GU),jt.init(e,t)}),z7=ge("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=KU),jt.init(e,t)}),B7=ge("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=l7(t)),jt.init(e,t)}),U7=ge("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=i7),jt.init(e,t)}),V7=ge("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=c7(t)),jt.init(e,t)}),F7=ge("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=WU),jt.init(e,t)}),q7=ge("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=e7),jt.init(e,t),e._zod.bag.format="ipv4"}),H7=ge("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=t7),jt.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),G7=ge("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=n7),jt.init(e,t)}),K7=ge("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=r7),jt.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[s,i]=r;if(!i)throw new Error;const l=Number(i);if(`${l}`!==i)throw new Error;if(l<0||l>128)throw new Error;new URL(`http://[${s}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function fA(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Z7=ge("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=o7),jt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{fA(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function W7(e){if(!iA.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return fA(n)}const Y7=ge("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=iA),jt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{W7(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),J7=ge("$ZodE164",(e,t)=>{t.pattern??(t.pattern=s7),jt.init(e,t)});function Q7(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const s=JSON.parse(atob(r));return!("typ"in s&&s?.typ!=="JWT"||!s.alg||t&&(!("alg"in s)||s.alg!==t))}catch{return!1}}const X7=ge("$ZodJWT",(e,t)=>{jt.init(e,t),e._zod.check=n=>{Q7(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),pA=ge("$ZodNumber",(e,t)=>{Gt.init(e,t),e._zod.pattern=e._zod.bag.pattern??h7,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const s=n.value;if(typeof s=="number"&&!Number.isNaN(s)&&Number.isFinite(s))return n;const i=typeof s=="number"?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:s,inst:e,...i?{received:i}:{}}),n}}),eV=ge("$ZodNumberFormat",(e,t)=>{g7.init(e,t),pA.init(e,t)}),tV=ge("$ZodUnknown",(e,t)=>{Gt.init(e,t),e._zod.parse=n=>n}),nV=ge("$ZodNever",(e,t)=>{Gt.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Z1(e,t,n){e.issues.length&&t.issues.push(...rA(n,e.issues)),t.value[n]=e.value}const rV=ge("$ZodArray",(e,t)=>{Gt.init(e,t),e._zod.parse=(n,r)=>{const s=n.value;if(!Array.isArray(s))return n.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),n;n.value=Array(s.length);const i=[];for(let l=0;l<s.length;l++){const d=s[l],h=t.element._zod.run({value:d,issues:[]},r);h instanceof Promise?i.push(h.then(f=>Z1(f,n,l))):Z1(h,n,l)}return i.length?Promise.all(i).then(()=>n):n}});function Kd(e,t,n,r,s,i){const l=n in r;if(e.issues.length){if(s&&i&&!l)return;t.issues.push(...rA(n,e.issues))}if(!l&&!s){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?l&&(t.value[n]=void 0):t.value[n]=e.value}function mA(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=wU(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function gA(e,t,n,r,s,i){const l=[],d=s.keySet,h=s.catchall._zod,f=h.def.type,g=h.optin==="optional",y=h.optout==="optional";for(const b in t){if(b==="__proto__"||d.has(b))continue;if(f==="never"){l.push(b);continue}const _=h.run({value:t[b],issues:[]},r);_ instanceof Promise?e.push(_.then(S=>Kd(S,n,b,t,g,y))):Kd(_,n,b,t,g,y)}return l.length&&n.issues.push({code:"unrecognized_keys",keys:l,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const oV=ge("$ZodObject",(e,t)=>{if(Gt.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const d=t.shape;Object.defineProperty(t,"shape",{get:()=>{const h={...d};return Object.defineProperty(t,"shape",{value:h}),h}})}const r=ay(()=>mA(t));St(e._zod,"propValues",()=>{const d=t.shape,h={};for(const f in d){const g=d[f]._zod;if(g.values){h[f]??(h[f]=new Set);for(const y of g.values)h[f].add(y)}}return h});const s=Gd,i=t.catchall;let l;e._zod.parse=(d,h)=>{l??(l=r.value);const f=d.value;if(!s(f))return d.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),d;d.value={};const g=[],y=l.shape;for(const b of l.keys){const _=y[b],S=_._zod.optin==="optional",E=_._zod.optout==="optional",x=_._zod.run({value:f[b],issues:[]},h);x instanceof Promise?g.push(x.then(k=>Kd(k,d,b,f,S,E))):Kd(x,d,b,f,S,E)}return i?gA(g,f,d,h,r.value,e):g.length?Promise.all(g).then(()=>d):d}}),aV=ge("$ZodObjectJIT",(e,t)=>{oV.init(e,t);const n=e._zod.parse,r=ay(()=>mA(t)),s=b=>{const _=new T7(["shape","payload","ctx"]),S=r.value,E=P=>{const I=G1(P);return`shape[${I}]._zod.run({ value: input[${I}], issues: [] }, ctx)`};_.write("const input = payload.value;");const x=Object.create(null);let k=0;for(const P of S.keys)x[P]=`key_${k++}`;_.write("const newResult = {};");for(const P of S.keys){const I=x[P],F=G1(P),G=b[P],U=G?._zod?.optin==="optional",V=G?._zod?.optout==="optional";_.write(`const ${I} = ${E(P)};`),U&&V?_.write(` 110 if (${I}.issues.length) { 111 if (${F} in input) { 112 payload.issues = payload.issues.concat(${I}.issues.map(iss => ({ 113 ...iss, 114 path: iss.path ? [${F}, ...iss.path] : [${F}] 115 }))); 116 } 117 } 118 119 if (${I}.value === undefined) { 120 if (${F} in input) { 121 newResult[${F}] = undefined; 122 } 123 } else { 124 newResult[${F}] = ${I}.value; 125 } 126 127 `):U?_.write(` 128 if (${I}.issues.length) { 129 payload.issues = payload.issues.concat(${I}.issues.map(iss => ({ 130 ...iss, 131 path: iss.path ? [${F}, ...iss.path] : [${F}] 132 }))); 133 } 134 135 if (${I}.value === undefined) { 136 if (${F} in input) { 137 newResult[${F}] = undefined; 138 } 139 } else { 140 newResult[${F}] = ${I}.value; 141 } 142 143 `):_.write(` 144 const ${I}_present = ${F} in input; 145 if (${I}.issues.length) { 146 payload.issues = payload.issues.concat(${I}.issues.map(iss => ({ 147 ...iss, 148 path: iss.path ? [${F}, ...iss.path] : [${F}] 149 }))); 150 } 151 if (!${I}_present && !${I}.issues.length) { 152 payload.issues.push({ 153 code: "invalid_type", 154 expected: "nonoptional", 155 input: undefined, 156 path: [${F}] 157 }); 158 } 159 160 if (${I}_present) { 161 if (${I}.value === undefined) { 162 newResult[${F}] = undefined; 163 } else { 164 newResult[${F}] = ${I}.value; 165 } 166 } 167 168 `)}_.write("payload.value = newResult;"),_.write("return payload;");const M=_.compile();return(P,I)=>M(b,P,I)};let i;const l=Gd,d=!oy.jitless,f=d&&bU.value,g=t.catchall;let y;e._zod.parse=(b,_)=>{y??(y=r.value);const S=b.value;return l(S)?d&&f&&_?.async===!1&&_.jitless!==!0?(i||(i=s(t.shape)),b=i(b,_),g?gA([],S,b,_,y,e):b):n(b,_):(b.issues.push({expected:"object",code:"invalid_type",input:S,inst:e}),b)}});function W1(e,t,n,r){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const s=e.filter(i=>!wi(i));return s.length===1?(t.value=s[0].value,s[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>
vendor: 6,228 bytes, line 168
168i.issues.map(l=>ls(l,r,cs())))}),t)}const sV=ge("$ZodUnion",(e,t)=>{Gt.init(e,t),St(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),St(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),St(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),St(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${r.map(s=>iy(s.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,s)=>{if(n)return n(r,s);let i=!1;const l=[];for(const d of t.options){const h=d._zod.run({value:r.value,issues:[]},s);if(h instanceof Promise)l.push(h),i=!0;else{if(h.issues.length===0)return h;l.push(h)}}return i?Promise.all(l).then(d=>W1(d,r,e,s)):W1(l,r,e,s)}}),iV=ge("$ZodIntersection",(e,t)=>{Gt.init(e,t),e._zod.parse=(n,r)=>{const s=n.value,i=t.left._zod.run({value:s,issues:[]},r),l=t.right._zod.run({value:s,issues:[]},r);return i instanceof Promise||l instanceof Promise?Promise.all([i,l]).then(([h,f])=>Y1(n,h,f)):Y1(n,i,l)}});function ug(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(dl(e)&&dl(t)){const n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),s={...e,...t};for(const i of r){const l=ug(e[i],t[i]);if(!l.valid)return{valid:!1,mergeErrorPath:[i,...l.mergeErrorPath]};s[i]=l.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const s=e[r],i=t[r],l=ug(s,i);if(!l.valid)return{valid:!1,mergeErrorPath:[r,...l.mergeErrorPath]};n.push(l.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Y1(e,t,n){const r=new Map;let s;for(const d of t.issues)if(d.code==="unrecognized_keys"){s??(s=d);for(const h of d.keys)r.has(h)||r.set(h,{}),r.get(h).l=!0}else e.issues.push(d);for(const d of n.issues)if(d.code==="unrecognized_keys")for(const h of d.keys)r.has(h)||r.set(h,{}),r.get(h).r=!0;else e.issues.push(d);const i=[...r].filter(([,d])=>d.l&&d.r).map(([d])=>d);if(i.length&&s&&e.issues.push({...s,keys:i}),wi(e))return e;const l=ug(t.value,n.value);if(!l.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`);return e.value=l.data,e}const cV=ge("$ZodEnum",(e,t)=>{Gt.init(e,t);const n=eA(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(s=>_U.has(typeof s)).map(s=>typeof s=="string"?$i(s):s.toString()).join("|")})$`),e._zod.parse=(s,i)=>{const l=s.value;return r.has(l)||s.issues.push({code:"invalid_value",values:n,input:l,inst:e}),s}}),lV=ge("$ZodLiteral",(e,t)=>{if(Gt.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?$i(r):r?$i(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,s)=>{const i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),uV=ge("$ZodTransform",(e,t)=>{Gt.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new XE(e.constructor.name);const s=t.transform(n.value,n);if(r.async)return(s instanceof Promise?s:Promise.resolve(s)).then(l=>(n.value=l,n.fallback=!0,n));if(s instanceof Promise)throw new Ti;return n.value=s,n.fallback=!0,n}});function J1(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const yA=ge("$ZodOptional",(e,t)=>{Gt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",St(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),St(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${iy(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const s=n.value,i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(l=>J1(l,s)):J1(i,s)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),dV=ge("$ZodExactOptional",(e,t)=>{yA.init(e,t),St(e._zod,"values",()=>t.innerType._zod.values),St(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),hV=ge("$ZodNullable",(e,t)=>{Gt.init(e,t),St(e._zod,"optin",()=>t.innerType._zod.optin),St(e._zod,"optout",()=>t.innerType._zod.optout),St(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${iy(n.source)}|null)$`):void 0}),St(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),fV=ge("$ZodDefault",(e,t)=>{Gt.init(e,t),e._zod.optin="optional",St(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const s=t.innerType._zod.run(n,r);return s instanceof Promise?s.then(i=>Q1(i,t)):Q1(s,t)}});function Q1(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const pV=ge("$ZodPrefault",(e,t)=>{Gt.init(e,t),e._zod.optin="optional",St(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),mV=ge("$ZodNonOptional",(e,t)=>{Gt.init(e,t),St(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const s=t.innerType._zod.run(n,r);return s instanceof Promise?s.then(i=>X1(i,e)):X1(s,e)}});function X1(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const gV=ge("$ZodCatch",(e,t)=>{Gt.init(e,t),e._zod.optin="optional",St(e._zod,"optout",()=>t.innerType._zod.optout),St(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const s=t.innerType._zod.run(n,r);return s instanceof Promise?s.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(l
vendor: 16,126 bytes, lines 168-170
168=>ls(l,r,cs()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(i=>ls(i,r,cs()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),yV=ge("$ZodPipe",(e,t)=>{Gt.init(e,t),St(e._zod,"values",()=>t.in._zod.values),St(e._zod,"optin",()=>t.in._zod.optin),St(e._zod,"optout",()=>t.out._zod.optout),St(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const i=t.out._zod.run(n,r);return i instanceof Promise?i.then(l=>sd(l,t.in,r)):sd(i,t.in,r)}const s=t.in._zod.run(n,r);return s instanceof Promise?s.then(i=>sd(i,t.out,r)):sd(s,t.out,r)}});function sd(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const vV=ge("$ZodReadonly",(e,t)=>{Gt.init(e,t),St(e._zod,"propValues",()=>t.innerType._zod.propValues),St(e._zod,"values",()=>t.innerType._zod.values),St(e._zod,"optin",()=>t.innerType?._zod?.optin),St(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const s=t.innerType._zod.run(n,r);return s instanceof Promise?s.then(eS):eS(s)}});function eS(e){return e.value=Object.freeze(e.value),e}const bV=ge("$ZodCustom",(e,t)=>{Fn.init(e,t),Gt.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,s=t.fn(r);if(s instanceof Promise)return s.then(i=>tS(i,n,r,e));tS(s,n,r,e)}});function tS(e,t,n,r){if(!e){const s={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(s.params=r._zod.def.params),t.issues.push(hl(s))}}var nS;class _V{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const s={...r,...this._map.get(t)};return Object.keys(s).length?s:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function wV(){return new _V}(nS=globalThis).__zod_globalRegistry??(nS.__zod_globalRegistry=wV());const zc=globalThis.__zod_globalRegistry;function SV(e,t){return new e({type:"string",...Ue(t)})}function xV(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Ue(t)})}function rS(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Ue(t)})}function RV(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Ue(t)})}function EV(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Ue(t)})}function AV(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Ue(t)})}function TV(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Ue(t)})}function kV(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Ue(t)})}function CV(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Ue(t)})}function OV(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Ue(t)})}function $V(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Ue(t)})}function MV(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Ue(t)})}function NV(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Ue(t)})}function jV(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Ue(t)})}function PV(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Ue(t)})}function DV(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Ue(t)})}function IV(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Ue(t)})}function LV(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Ue(t)})}function zV(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Ue(t)})}function BV(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Ue(t)})}function UV(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Ue(t)})}function VV(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Ue(t)})}function FV(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Ue(t)})}function qV(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Ue(t)})}function HV(e,t){return new e({type:"string",format:"date",check:"string_format",...Ue(t)})}function GV(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Ue(t)})}function KV(e,t){return new e({type:"string",format:"duration",check:"string_format",...Ue(t)})}function ZV(e,t){return new e({type:"number",coerce:!0,checks:[],...Ue(t)})}function WV(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Ue(t)})}function YV(e){return new e({type:"unknown"})}function JV(e,t){return new e({type:"never",...Ue(t)})}function oS(e,t){return new dA({check:"less_than",...Ue(t),value:e,inclusive:!1})}function bm(e,t){return new dA({check:"less_than",...Ue(t),value:e,inclusive:!0})}function aS(e,t){return new hA({check:"greater_than",...Ue(t),value:e,inclusive:!1})}function _m(e,t){return new hA({check:"greater_than",...Ue(t),value:e,inclusive:!0})}function sS(e,t){return new m7({check:"multiple_of",...Ue(t),value:e})}function vA(e,t){return new y7({check:"max_length",...Ue(t),maximum:e})}function Zd(e,t){return new v7({check:"min_length",...Ue(t),minimum:e})}function bA(e,t){return new b7({check:"length_equals",...Ue(t),length:e})}function QV(e,t){return new _7({check:"string_format",format:"regex",...Ue(t),pattern:e})}function XV(e){return new w7({check:"string_format",format:"lowercase",...Ue(e)})}function eF(e){return new S7({check:"string_format",format:"uppercase",...Ue(e)})}function tF(e,t){return new x7({check:"string_format",format:"includes",...Ue(t),includes:e})}function nF(e,t){return new R7({check:"string_format",format:"starts_with",...Ue(t),prefix:e})}function rF(e,t){return new E7({check:"string_format",format:"ends_with",...Ue(t),suffix:e})}function ji(e){return new A7({check:"overwrite",tx:e})}function oF(e){return ji(t=>t.normalize(e))}function aF(){return ji(e=>e.trim())}function sF(){return ji(e=>e.toLowerCase())}function iF(){return ji(e=>e.toUpperCase())}function cF(){return ji(e=>vU(e))}function lF(e,t,n){return new e({type:"array",element:t,...Ue(n)})}function uF(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Ue(n)})}function dF(e,t){const n=hF(r=>(r.addIssue=s=>{if(typeof s=="string")r.issues.push(hl(s,r.value,n._zod.def));else{const i=s;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),r.issues.push(hl(i))}},e(r.value,r)),t);return n}function hF(e,t){const n=new Fn({check:"custom",...Ue(t)});return n._zod.check=e,n}function _A(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??zc,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function _n(e,t,n={path:[],schemaPath:[]}){var r;const s=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;const l={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,l);const d=e._zod.toJSONSchema?.();if(d)l.schema=d;else{const g={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,l.schema,g);else{const b=l.schema,_=t.processors[s.type];if(!_)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);_(e,t,b,g)}const y=e._zod.parent;y&&(l.ref||(l.ref=y),_n(y,t,g),t.seen.get(y).isParent=!0)}const h=t.metadataRegistry.get(e);return h&&Object.assign(l.schema,h),t.io==="input"&&En(e)&&(delete l.schema.examples,delete l.schema.default),t.io==="input"&&"_prefault"in l.schema&&((r=l.schema).default??(r.default=l.schema._prefault)),delete l.schema._prefault,t.seen.get(e).schema}function wA(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const l of e.seen.entries()){const d=e.metadataRegistry.get(l[0])?.id;if(d){const h=r.get(d);if(h&&h!==l[0])throw new Error(`Duplicate schema id "${d}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(d,l[0])}}const s=l=>{const d=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const y=e.external.registry.get(l[0])?.id,b=e.external.uri??(S=>S);if(y)return{ref:b(y)};const _=l[1].defId??l[1].schema.id??`schema${e.counter++}`;return l[1].defId=_,{defId:_,ref:`${b("__shared")}#/${d}/${_}`}}if(l[1]===n)return{ref:"#"};const f=`#/${d}/`,g=l[1].schema.id??`__schema${e.counter++}`;return{defId:g,ref:f+g}},i=l=>{if(l[1].schema.$ref)return;const d=l[1],{ref:h,defId:f}=s(l);d.def={...d.schema},f&&(d.defId=f);const g=d.schema;for(const y in g)delete g[y];g.$ref=h};if(e.cycles==="throw")for(const l of e.seen.entries()){const d=l[1];if(d.cycle)throw new Error(`Cycle detected: #/${d.cycle?.join("/")}/<root> 169 170Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const l of e.seen.entries()){const d=l[1];if(t===l[0]){i(l);continue}if(e.external){const f=e.external.registry.get(l[0])?.id;if(t!==l[0]&&f){i(l);continue}}if(e.metadataRegistry.get(l[0])?.id){i(l);continue}if(d.cycle){i(l);continue}if(d.count>1&&e.reused==="ref"){i(l);continue}}}function SA(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=d=>{const h=e.seen.get(d);if(h.ref===null)return;const f=h.def??h.schema,g={...f},y=h.ref;if(h.ref=null,y){r(y);const _=e.seen.get(y),S=_.schema;if(S.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(S)):Object.assign(f,S),Object.assign(f,g),d._zod.parent===y)for(const x in f)x==="$ref"||x==="allOf"||x in g||delete f[x];if(S.$ref&&_.def)for(const x in f)x==="$ref"||x==="allOf"||x in _.def&&JSON.stringify(f[x])===JSON.stringify(_.def[x])&&delete f[x]}const b=d._zod.parent;if(b&&b!==y){r(b);const _=e.seen.get(b);if(_?.schema.$ref&&(f.$ref=_.schema.$ref,_.def))for(const S in f)S==="$ref"||S==="allOf"||S in _.def&&JSON.stringify(f[S])===JSON.stringify(_.def[S])&&delete f[S]}e.override({zodSchema:d,jsonSchema:f,path:h.path??[]})};for(const d of[...e.seen.entries()].reverse())r(d[0]);const s={};if(e.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?s.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const d=e.external.registry.get(t)?.id;if(!d)throw new Error("Schema is missing an `id` property");s.$id=e.external.uri(d)}Object.assign(s,n.def??n.schema);const i=e.metadataRegistry.get(t)?.id;i!==void 0&&s.id===i&&delete s.id;const l=e.external?.defs??{};for(const d of e.seen.entries()){const h=d[1];h.def&&h.defId&&(h.def.id===h.defId&&delete h.def.id,l[h.defId]=h.def)}e.external||Object.keys(l).length>0&&(e.target==="draft-2020-12"?s.$defs=l:s.definitions=l);try{const d=JSON.parse(JSON.stringify(s));return Object.defineProperty(d,"~standard",{value:{...t["~standard"],jsonSchema:{input:Wd(t,"input",e.processors),output:Wd(t,"output",e.processors)}},enumerable:!1,writable:!1}),d}catch{throw new Error("Error converting schema to JSON.")}}function En(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return En(r.element,n);if(r.type==="set")return En(r.valueType,n);if(r.type==="lazy")return En(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return En(r.innerType,n);if(r.type==="intersection")return En(r.left,n)||En(r.right,n);if(r.type==="record"||r.type==="map")return En(r.keyType,n)||En(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:En(r.in,n)||En(r.out,n);if(r.type==="object"){for(const s in r.shape)if(En(r.shape[s],n))return!0;return!1}if(r.type==="union"){for(const s of r.options)if(En(s,n))return!0;return!1}if(r.type==="tuple"){for(const s of r.items)if(En(s,n))return!0;return!!(r.rest&&En(r.rest,n))}return!1}const fF=(e,t={})=>n=>{const r=_A({...n,processors:t});return _n(e,r),wA(r,e),SA(r,e)},Wd=(e,t,n={})=>r=>{const{libraryOptions:s,target:i}=r??{},l=_A({...s??{},target:i,io:t,processors:n});return _n(e,l),wA(l,e),SA(l,e)},pF={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},mF=(e,t,n,r)=>{const s=n;s.type="string";const{minimum:i,maximum:l,format:d,patterns:h,contentEncoding:f}=e._zod.bag;if(typeof i=="number"&&(s.minLength=i),typeof l=="number"&&(s.maxLength=l),d&&(s.format=pF[d]??d,s.format===""&&delete s.format,d==="time"&&delete s.format),f&&(s.contentEncoding=f),h&&h.size>0){const g=[...h];g.length===1?s.pattern=g[0].source:g.length>1&&(s.allOf=[...g.map(y=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:y.source}))])}},gF=(e,t,n,r)=>{const s=n,{minimum:i,maximum:l,format:d,multipleOf:h,exclusiveMaximum:f,exclusiveMinimum:g}=e._zod.bag;typeof d=="string"&&d.includes("int")?s.type="integer":s.type="number";const y=typeof g=="number"&&g>=(i??Number.NEGATIVE_INFINITY),b=typeof f=="number"&&f<=(l??Number.POSITIVE_INFINITY),_=t.target==="draft-04"||t.target==="openapi-3.0";y?_?(s.minimum=g,s.exclusiveMinimum=!0):s.exclusiveMinimum=g:typeof i=="number"&&(s.minimum=i),b?_?(s.maximum=f,s.exclusiveMaximum=!0):s.exclusiveMaximum=f:typeof l=="number"&&(s.maximum=l),typeof h=="number"&&(s.multipleOf=h)},yF=(e,t,n,r)=>{n.not={}},vF=(e,t,n,r)=>{},bF=(e,t,n,r)=>{const s=e._zod.def,i=eA(s.entries);i.every(l=>typeof l=="number")&&(n.type="number"),i.every(l=>typeof l=="string")&&(n.type="string"),n.enum=i},_F=(e,t,n,r)=>{const s=e._zod.def,i=[];for(const l of s.values)if(l===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof l=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(l))}else i.push(l);if(i.length!==0)if(i.length===1){const l=i[0];n.type=l===null?"null":typeof l,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[l]:n.const=l}else i.every(l=>typeof l=="number")&&(n.type="number"),i.every(l=>typeof l=="string")&&(n.type="string"),i.every(l=>typeof l=="boolean")&&(n.type="boolean"),i.every(l=>l===null)&&(n.type="null"),n.enum=i},wF=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},SF=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},xF=(e,t,n,r)=>{const s=n,i=e._zod.def,{minimum:l,maximum:d}=e._zod.bag;typeof l=="number"&&(s.minItems=l),typeof d=="number"&&(s.maxItems=d),s.type="array",s.items=_n(i.element,t,{...r,path:[...r.path,"items"]})},RF=(e,t,n,r)=>{const s=n,i=e._zod.def;s.type="object",s.properties={};const l=i.shape;for(const f in l)s.properties[f]=_n(l[f],t,{...r,path:[...r.path,"properties",f]});const d=new Set(Object.keys(l)),h=new Set([...d].filter(f=>{const g=i.shape[f]._zod;return t.io==="input"?g.optin===void 0:g.optout===void 0}));h.size>
vendor: 6,027 bytes, line 170
1700&&(s.required=Array.from(h)),i.catchall?._zod.def.type==="never"?s.additionalProperties=!1:i.catchall?i.catchall&&(s.additionalProperties=_n(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(s.additionalProperties=!1)},EF=(e,t,n,r)=>{const s=e._zod.def,i=s.inclusive===!1,l=s.options.map((d,h)=>_n(d,t,{...r,path:[...r.path,i?"oneOf":"anyOf",h]}));i?n.oneOf=l:n.anyOf=l},AF=(e,t,n,r)=>{const s=e._zod.def,i=_n(s.left,t,{...r,path:[...r.path,"allOf",0]}),l=_n(s.right,t,{...r,path:[...r.path,"allOf",1]}),d=f=>"allOf"in f&&Object.keys(f).length===1,h=[...d(i)?i.allOf:[i],...d(l)?l.allOf:[l]];n.allOf=h},TF=(e,t,n,r)=>{const s=e._zod.def,i=_n(s.innerType,t,r),l=t.seen.get(e);t.target==="openapi-3.0"?(l.ref=s.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},kF=(e,t,n,r)=>{const s=e._zod.def;_n(s.innerType,t,r);const i=t.seen.get(e);i.ref=s.innerType},CF=(e,t,n,r)=>{const s=e._zod.def;_n(s.innerType,t,r);const i=t.seen.get(e);i.ref=s.innerType,n.default=JSON.parse(JSON.stringify(s.defaultValue))},OF=(e,t,n,r)=>{const s=e._zod.def;_n(s.innerType,t,r);const i=t.seen.get(e);i.ref=s.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},$F=(e,t,n,r)=>{const s=e._zod.def;_n(s.innerType,t,r);const i=t.seen.get(e);i.ref=s.innerType;let l;try{l=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=l},MF=(e,t,n,r)=>{const s=e._zod.def,i=s.in._zod.traits.has("$ZodTransform"),l=t.io==="input"?i?s.out:s.in:s.out;_n(l,t,r);const d=t.seen.get(e);d.ref=l},NF=(e,t,n,r)=>{const s=e._zod.def;_n(s.innerType,t,r);const i=t.seen.get(e);i.ref=s.innerType,n.readOnly=!0},xA=(e,t,n,r)=>{const s=e._zod.def;_n(s.innerType,t,r);const i=t.seen.get(e);i.ref=s.innerType},jF=ge("ZodISODateTime",(e,t)=>{B7.init(e,t),zt.init(e,t)});function PF(e){return qV(jF,e)}const DF=ge("ZodISODate",(e,t)=>{U7.init(e,t),zt.init(e,t)});function IF(e){return HV(DF,e)}const LF=ge("ZodISOTime",(e,t)=>{V7.init(e,t),zt.init(e,t)});function zF(e){return GV(LF,e)}const BF=ge("ZodISODuration",(e,t)=>{F7.init(e,t),zt.init(e,t)});function UF(e){return KV(BF,e)}const VF=(e,t)=>{aA.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>MU(e,n)},flatten:{value:n=>$U(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,lg,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,lg,2)}},isEmpty:{get(){return e.issues.length===0}}})},pr=ge("ZodError",VF,{Parent:Error}),FF=ly(pr),qF=uy(pr),HF=ph(pr),GF=mh(pr),KF=PU(pr),ZF=DU(pr),WF=IU(pr),YF=LU(pr),JF=zU(pr),QF=BU(pr),XF=UU(pr),eq=VU(pr),iS=new WeakMap;function wl(e,t,n){const r=Object.getPrototypeOf(e);let s=iS.get(r);if(s||(s=new Set,iS.set(r,s)),!s.has(t)){s.add(t);for(const i in n){const l=n[i];Object.defineProperty(r,i,{configurable:!0,enumerable:!1,get(){const d=l.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:d}),d},set(d){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:d})}})}}}const Kt=ge("ZodType",(e,t)=>(Gt.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Wd(e,"input"),output:Wd(e,"output")}}),e.toJSONSchema=fF(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>FF(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>HF(e,n,r),e.parseAsync=async(n,r)=>qF(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>GF(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>KF(e,n,r),e.decode=(n,r)=>ZF(e,n,r),e.encodeAsync=async(n,r)=>WF(e,n,r),e.decodeAsync=async(n,r)=>YF(e,n,r),e.safeEncode=(n,r)=>JF(e,n,r),e.safeDecode=(n,r)=>QF(e,n,r),e.safeEncodeAsync=async(n,r)=>XF(e,n,r),e.safeDecodeAsync=async(n,r)=>eq(e,n,r),wl(e,"ZodType",{check(...n){const r=this.def;return this.clone(_a(r,{checks:[...r.checks??[],...n.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,r){return wa(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check(Kq(n,r))},superRefine(n,r){return this.check(Zq(n,r))},overwrite(n){return this.check(ji(n))},optional(){return dS(this)},exactOptional(){return jq(this)},nullable(){return hS(this)},nullish(){return dS(hS(this))},nonoptional(n){return Bq(this,n)},array(){return Rq(this)},or(n){return Tq([this,n])},and(n){return Cq(this,n)},transform(n){return fS(this,Mq(n))},default(n){return Iq(this,n)},prefault(n){return zq(this,n)},catch(n){return Vq(this,n)},pipe(n){return fS(this,n)},readonly(){return Hq(this)},describe(n){const r=this.clone();return zc.add(r,{description:n}),r},meta(...n){if(n.length===0)return zc.get(this);const r=this.clone();return zc.add(r,n[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return zc.get(e)?.description},configurable:!0}),e)),RA=ge("_ZodString",(e,t)=>{dy.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(r,s,i)=>mF(e,r,s);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,wl(e,"_ZodString",{regex(...r){return this.check(QV(...r))},includes(...r){return this.check(tF(...r))},startsWith(...r){return this.check(nF(...r))},endsWith(...r){return this.check(rF(...r))},min(...r){return this.check(Zd(...r))},max(...r){return this.check(vA(...r))},length(...r){return this.check(bA(...r))},nonempty(...r){return this.check(Zd(1,...r))},lowercase(r){return this.check(XV(r))},uppercase(r){return this.check(eF(r))},trim(){return this.check(aF())},normalize(...r){return this.check(oF(...r))},toLowerCase(){return this.check(sF())},toUpperCase(){return this.check(iF())},slugify(){return this.check(cF())}})}),tq=ge("ZodString",(e,t)=>{dy.init(e,t),RA.init(e,t),e.email=n=>e.check(xV(nq,n)),e.url=n=>e.check(kV(rq,n)),e.jwt=n=>e.check(FV(vq,n)),e.emoji=n=>e.check(CV(oq,n)),e.guid=n=>e.check(rS(cS,n)),e.uuid=n=>
170e.check(RV(id,n)),e.uuidv4=n=>e.check(EV(id,n)),e.uuidv6=n=>e.check(AV(id,n)),e.uuidv7=n=>e.check(TV(id,n)),e.nanoid=n=>e.check(OV(aq,n)),e.guid=n=>e.check(rS(cS,n)),e.cuid=n=>e.check($V(sq,n)),e.cuid2=n=>e.check(MV(iq,n)),e.ulid=n=>e.check(NV(cq,n)),e.base64=n=>e.check(BV(mq,n)),e.base64url=n=>e.check(UV(gq,n)),e.xid=n=>e.check(jV(lq,n)),e.ksuid=n=>e.check(PV(uq,n)),e.ipv4=n=>e.check(DV(dq,n)),e.ipv6=n=>e.check(IV(hq,n)),e.cidrv4=n=>e.check(LV(fq,n)),e.cidrv6=n=>e.check(zV(pq,n)),e.e164=n=>e.check(VV(yq,n)),e.datetime=n=>e.check(PF(n)),e.date=n=>e.check(IF(n)),e.time=n=>e.check(zF(n)),e.duration=n=>e.check(UF(n))});function dg(e){return SV(tq,e)}const zt=ge("ZodStringFormat",(e,t)=>{jt.init(e,t),RA.init(e,t)}),nq=ge("ZodEmail",(e,t)=>{$7.init(e,t),zt.init(e,t)}),cS=ge("ZodGUID",(e,t)=>{C7.init(e,t),zt.init(e,t)}),id=ge("ZodUUID",(e,t)=>{O7.init(e,t),zt.init(e,t)}),rq=ge("ZodURL",(e,t)=>{M7.init(e,t),zt.init(e,t)}),oq=ge("ZodEmoji",(e,t)=>{N7.init(e,t),zt.init(e,t)}),aq=ge("ZodNanoID",(e,t)=>{j7.init(e,t),zt.init(e,t)}),sq=ge("ZodCUID",(e,t)=>{P7.init(e,t),zt.init(e,t)}),iq=ge("ZodCUID2",(e,t)=>{D7.init(e,t),zt.init(e,t)}),cq=ge("ZodULID",(e,t)=>{I7.init(e,t),zt.init(e,t)}),lq=ge("ZodXID",(e,t)=>{L7.init(e,t),zt.init(e,t)}),uq=ge("ZodKSUID",(e,t)=>{z7.init(e,t),zt.init(e,t)}),dq=ge("ZodIPv4",(e,t)=>{q7.init(e,t),zt.init(e,t)}),hq=ge("ZodIPv6",(e,t)=>{H7.init(e,t),zt.init(e,t)}),fq=ge("ZodCIDRv4",(e,t)=>{G7.init(e,t),zt.init(e,t)}),pq=ge("ZodCIDRv6",(e,t)=>{K7.init(e,t),zt.init(e,t)}),mq=ge("ZodBase64",(e,t)=>{Z7.init(e,t),zt.init(e,t)}),gq=ge("ZodBase64URL",(e,t)=>{Y7.init(e,t),zt.init(e,t)}),yq=ge("ZodE164",(e,t)=>{J7.init(e,t),zt.init(e,t)}),vq=ge("ZodJWT",(e,t)=>{X7.init(e,t),zt.init(e,t)}),EA=ge("ZodNumber",(e,t)=>{pA.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(r,s,i)=>gF(e,r,s),wl(e,"ZodNumber",{gt(r,s){return this.check(aS(r,s))},gte(r,s){return this.check(_m(r,s))},min(r,s){return this.check(_m(r,s))},lt(r,s){return this.check(oS(r,s))},lte(r,s){return this.check(bm(r,s))},max(r,s){return this.check(bm(r,s))},int(r){return this.check(lS(r))},safe(r){return this.check(lS(r))},positive(r){return this.check(aS(0,r))},nonnegative(r){return this.check(_m(0,r))},negative(r){return this.check(oS(0,r))},nonpositive(r){return this.check(bm(0,r))},multipleOf(r,s){return this.check(sS(r,s))},step(r,s){return this.check(sS(r,s))},finite(){return this}});const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),bq=ge("ZodNumberFormat",(e,t)=>{eV.init(e,t),EA.init(e,t)});function lS(e){return WV(bq,e)}const _q=ge("ZodUnknown",(e,t)=>{tV.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(n,r,s)=>vF()});function uS(){return YV(_q)}const wq=ge("ZodNever",(e,t)=>{nV.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(n,r,s)=>yF(e,n,r)});function Sq(e){return JV(wq,e)}const xq=ge("ZodArray",(e,t)=>{rV.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(n,r,s)=>xF(e,n,r,s),e.element=t.element,wl(e,"ZodArray",{min(n,r){return this.check(Zd(n,r))},nonempty(n){return this.check(Zd(1,n))},max(n,r){return this.check(vA(n,r))},length(n,r){return this.check(bA(n,r))},unwrap(){return this.element}})});function Rq(e,t){return lF(xq,e,t)}const Eq=ge("ZodObject",(e,t)=>{aV.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(n,r,s)=>RF(e,n,r,s),St(e,"shape",()=>t.shape),wl(e,"ZodObject",{keyof(){return AA(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:uS()})},loose(){return this.clone({...this._zod.def,catchall:uS()})},strict(){return this.clone({...this._zod.def,catchall:Sq()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return EU(this,n)},safeExtend(n){return AU(this,n)},merge(n){return TU(this,n)},pick(n){return xU(this,n)},omit(n){return RU(this,n)},partial(...n){return kU(TA,this,n[0])},required(...n){return CU(kA,this,n[0])}})});function hy(e,t){const n={type:"object",shape:e??{},...Ue(t)};return new Eq(n)}const Aq=ge("ZodUnion",(e,t)=>{sV.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(n,r,s)=>
vendor: 1,138 bytes, line 170
170EF(e,n,r,s),e.options=t.options});function Tq(e,t){return new Aq({type:"union",options:e,...Ue(t)})}const kq=ge("ZodIntersection",(e,t)=>{iV.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(n,r,s)=>AF(e,n,r,s)});function Cq(e,t){return new kq({type:"intersection",left:e,right:t})}const hg=ge("ZodEnum",(e,t)=>{cV.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(r,s,i)=>bF(e,r,s),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,s)=>{const i={};for(const l of r)if(n.has(l))i[l]=t.entries[l];else throw new Error(`Key ${l} not found in enum`);return new hg({...t,checks:[],...Ue(s),entries:i})},e.exclude=(r,s)=>{const i={...t.entries};for(const l of r)if(n.has(l))delete i[l];else throw new Error(`Key ${l} not found in enum`);return new hg({...t,checks:[],...Ue(s),entries:i})}});function AA(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new hg({type:"enum",entries:n,...Ue(t)})}const Oq=ge("ZodLiteral",(e,t)=>{lV.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(n,r,s)=>_F(e,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if
170(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function mce(e,t){return new Oq({type:"literal",values:Array.isArray(e)?e:[e],...Ue(t)})}const $q=ge("ZodTransform",(e,t)=>{uV.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(n,r,s)=>SF(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new XE(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(hl(i,n.value,t));else{const l=i;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=n.value),l.inst??(l.inst=e),n.issues.push(hl(l))}};const s=t.transform(n.value,n);return s instanceof Promise?s.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=s,n.fallback=!0,n)}});function Mq(e){return new $q({type:"transform",transform:e})}const TA=ge("ZodOptional",(e,t)=>{yA.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(n,r,s)=>xA(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function dS(e){return new TA({type:"optional",innerType:e})}const Nq=ge("ZodExactOptional",(e,t)=>{dV.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(n,r,s)=>xA(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function jq(e){return new Nq({type:"optional",innerType:e})}const Pq=ge("ZodNullable",(e,t)=>{hV.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(n,r,s)=>TF(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function hS(e){return new Pq({type:"nullable",innerType:e})}const Dq=ge("ZodDefault",(e,t)=>{fV.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(n,r,s)=>CF(e,n,r,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Iq(e,t){return new Dq({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():nA(t)}})}const Lq=ge("ZodPrefault",(e,t)=>{pV.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(n,r,s)=>OF(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function zq(e,t){return new Lq({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():nA(t)}})}const kA=ge("ZodNonOptional",(e,t)=>{mV.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(n,r,s)=>kF(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function Bq(e,t){return new kA({type:"nonoptional",innerType:e,...Ue(t)})}const Uq=ge("ZodCatch",(e,t)=>{gV.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(n,r,s)=>$F(e,n,r,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Vq(e,t){return new Uq({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Fq=ge("ZodPipe",(e,t)=>{yV.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(n,r,s)=>MF(e,n,r,s),e.in=t.in,e.out=t.out});function fS(e,t){return new Fq({type:"pipe",in:e,out:t})}const qq=ge("ZodReadonly",(e,t)=>{vV.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(n,r,s)=>NF(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function Hq(e){return new qq({type:"readonly",innerType:e})}const Gq=ge("ZodCustom",(e,t)=>{bV.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(n,r,s)=>wF(e,n)});function Kq(e,t={}){return uF(Gq,e,t)}function Zq(e,t){return dF(e,t)}function CA(e){return ZV(EA,e)}const Wq=()=>$(()=>import("./onboarding-OgBctWil.js"),__vite__mapDeps([274,232,233,194,41])),Yq=j("/_authenticated/onboarding")({validateSearch:hy({preview:AA(["artist","label","producer","dj","podcaster","fan"]).optional()}),component:N(Wq,"component")}),Jq=()=>$(()=>import("./payouts-h_YrpW4E.js"),__vite__mapDeps([275,26,211,9,223])),Qq=j("/_authenticated/payouts")({component:N(Jq,"component"),head:()=>({meta:[{title:"Payouts & Tax"}]})}),Xq=()=>$(()=>import("./priority-pitch-D0lzI1Jm.js"),__vite__mapDeps([276,9,50,40])),eH=j("/_authenticated/priority-pitch")({component:N(Xq,"component")}),tH=()=>$(()=>import("./profile-defender-BiHyLspp.js"),__vite__mapDeps([277,215])),nH=j("/_authenticated/profile-defender")({component:N(tH,"component")}),rH=()=>$(()=>import("./promote-my-music-JjipdPHV.js"),__vite__mapDeps([278,155])),oH=j("/_authenticated/promote-my-music")({head:()=>({meta:[{title:"Promote My Music â MO STREAMS"},{name:"description",content:"Hands-on social media campaign management for independent artists. We push your music worldwide across TikTok, Instagram, YouTube, Spotify, and more."}]}),component:N(rH,"component")}),aH=()=>$(()=>import("./publishing-administration-CO75a6j_.js"),__vite__mapDeps([279,215,9])),sH=j("/_authenticated/publishing-administration")({component:N(aH,"component")}),iH=()=>$(()=>import("./release-links-7xAPxzWb.js"),__vite__mapDeps([280,9,40,120])),cH=j("/_authenticated/release-links")({component:N(iH,"component")}),lH=()=>$(()=>import("./release-schedule-DHhd0F_F.js"),__vite__mapDeps([281,211,282,223])),uH=j("/_authenticated/release-schedule")({component:N(lH,"component")}),dH=()=>$(()=>import("./reports-qzxjCBZ-.js"),__vite__mapDeps([283,173])),hH=j("/_authenticated/reports")({component:N(dH,"component")}),fH=()=>$(()=>import("./rewards-DI75hogw.js"),__vite__mapDeps([284,16,145,42,173])),pH=j("/_authenticated/rewards")({component:N(fH,"component")}),mH=()=>$(()=>import("./rights-g-NBwQOb.js"),__vite__mapDeps([285,173,41])),gH=j("/_authenticated/rights")({head:()=>({meta:[{title:"Rights & Protection · MO STREAMS Back Office"},{name:"description",content:"One place for identity verification, copyright, publishing admin, cover licensing, usage discovery and chart registration."},{property:"og:title",content:"Rights & Protection · MO STREAMS"},{property:"og:description",content:"Protect your name, own your masters and track every use of your music."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:N(mH,"component")}),yH=()=>$(()=>import("./rooms-DVYp2wDq.js"),__vite__mapDeps([286,211,9,50,51,223,40])),vH=j("/_authenticated/rooms")({component:N(yH,"component")}),bH=()=>$(()=>import("./royalty-splits-B1Lq7FLy.js"),__vite__mapDeps([287,9,40,120])),_H=j("/_authenticated/royalty-splits")({component:N(bH,"component")}),wH=()=>$(()=>import("./sales-CZDOM9Mt.js"),__vite__mapDeps([288,263,83,58,289])),SH=j("/_authenticated/sales")({component:N(wH,"component")}),xH=()=>$(()=>import("./social-usage-XUgPGtF7.js"),__vite__mapDeps([290,206,26,9,145,77,7,120,40])),RH=j("/_authenticated/social-usage")({component:N(xH,"component"),head:()=>
170({meta:[{title:"Social Media Usage · Mo Streams"}]})}),EH=()=>$(()=>import("./submit-BR4425gp.js"),__vite__mapDeps([291,137,17,41,233])),AH=j("/_authenticated/submit")({component:N(EH,"component")}),TH=()=>$(()=>import("./usage-discovery-nQudDsSW.js"),__vite__mapDeps([292,215])),kH=j("/_authenticated/usage-discovery")({component:N(TH,"component")}),CH=()=>$(()=>import("./vault-FsrkGcmE.js"),__vite__mapDeps([293,9,249,88,242,250,101,102,103,104,173,40,44,251,124,73,120,105,150])),OH=j("/_authenticated/vault")({validateSearch:e=>({artist:typeof e.artist=="string"?e.artist:void 0}),head:()=>({meta:[{title:"My Vault · Certified Downloads | MO STREAMS"},{name:"description",content:"Your owned limited edition music: artist shelves, certified discs, downloads and cross-artist mixtapes."},{property:"og:title",content:"My Vault · Certified Downloads"},{property:"og:description",content:"Own the master. Collect numbered limited editions on MO STREAMS."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:N(CH,"component")}),$H=()=>$(()=>import("./wallet-Gqr3uS4u.js"),__vite__mapDeps([294,253,124,295,208,296,153,297,91,239,173,194,141,149,150,25,151,9,51,152,40,38,120,298,157])),MH=j("/_authenticated/wallet")({component:N($H,"component")}),NH=()=>$(()=>import("./advertise.index-BLwpCkIk.js"),__vite__mapDeps([299,141,300,1,2,3,4,5,6,7,8,9,10,21,301,302])),jH=j("/advertise/")({head:()=>({meta:[{title:"Advertise Your Brand on MO STREAMS"},{name:"description",content:"Run 7, 14, 30 or 90-day ad packages on MO STREAMS. Pick a plan, tell us your budget, and run it yourself or let our team manage the campaign."},{property:"og:title",content:"Advertise Your Brand on MO STREAMS"},{property:"og:description",content:"Weekly to quarterly ad packages across music, music videos and podcasts. Submit your brief and get approved fast."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:N(NH,"component")}),PH=()=>$(()=>import("./advertise.pricing-BZHczHyo.js"),__vite__mapDeps([303,301,41])),DH=j("/advertise/pricing")({head:()=>({meta:[{title:"Ad Pricing â Mo Streams"},{name:"description",content:"Run audio, video, and podcast ads on Mo Streams. Transparent pricing for artists, labels, producers and brands."},{property:"og:title",content:"Ad Pricing â Mo Streams"},{property:"og:description",content:"Audio spots between songs, pre-roll on music videos, podcast inserts. Pay the platform once, we run it after approval."}]}),component:N(PH,"component")}),IH=()=>$(()=>import("./artist._handle-DmrrqUkN.js"),__vite__mapDeps([304,1,2,3,4,5,6,7,15,16,8,9,10,114,305,306,307,124,260,82,126,87,127,308,129,77,130,309,40,85,22,81,57,86,88,89,90,91,17,92,310,145,43,72,13,83])),LH=j("/artist/$handle")({component:N(IH,"component"),head:({params:e})=>({meta:[{title:`${e.handle} · Artist on MO STREAMS`},{name:"description",content:`Music, releases, videos, and podcasts from @${e.handle}. Follow on MO STREAMS to get new drops first.`},{property:"og:title",content:`@${e.handle} on MO STREAMS`},{property:"og:description",content:`Follow @${e.handle} on MO STREAMS â every release, video, and podcast in one place.`}]})}),ze=ca({type:"function"}),zH=ke({method:"GET"}).handler(Oe("5d93457f1c58ca4da4c2f88347a4209d5bc2704bb32fdf3b6154519086ebf0d9")),gce=ke({method:"POST"}).middleware([ze]).handler(Oe("ab9b1c3a7c4e7c749f051e2148153cd2990a7d352a0cee7958ee388204d4bbcf"));ke({method:"POST"}).middleware([ze]).handler(Oe("38af4281e70dd868ae914e39bceaa097cc3dc18f3a6ebbf2b345e3f804cbcd42"));ke({method:"GET"}).middleware([ze]).handler(Oe("045b9469a22f1bb4f18097eb5780d6e3efabf497129851e3781ff2eabceffaad"));const yce=ke({method:"GET"}).middleware([ze]).handler(Oe("44f339b23a00c7a85e0ff7d8a41078c422768d02f5887a5365b00377f4695798")),vce=ke({method:"POST"}).middleware([ze]).handler(Oe("474cf359e5cc34bb763c09ec7b72bad350e89527987557598a92ca6dfbe30e92"));ke({method:"GET"}).middleware([ze]).handler(Oe("199ed6a45911d43abece0e43e2134f192e5775fd413b2c86d4180f8217d18343"));const BH=()=>$(()=>import("./back._slug-CG7zqDKS.js"),__vite__mapDeps([311,136,296,137,58,312,40,91,98])),UH=()=>$(()=>import("./back._slug-tBt5Mrmq.js"),[]),VH=()=>$(()=>import("./back._slug-DBr2WzGH.js"),[]),FH=j("/back/$slug")({loader:async({params:e})=>{const t=await zH({data:{slug:e.slug}});if(!t)throw zr();return t},head:({loaderData:e})=>{const t=e?.release.title??"Release",n=e?.release.cover_url??"",r=`Back ${t} on MO STREAMS â early access, support tiers and revenue share. Pay with your MO wallet or card.`;return{meta:[{title:`Back ${t} â Fan Backing · MO STREAMS`.slice(0,60)},{name:"description",content:r.slice(0,160)},{property:"og:title",content:`Back ${t} on MO STREAMS`},{property:"og:description",content:r.slice(0,160)},{property:"og:type",content:"music.album"},{name:"twitter:card",content:"summary_large_image"},...n.startsWith("https://")?[{property:"og:image",content:n},{name:"twitter:image",content:n}]:[]]}},errorComponent:N(VH,"errorComponent"),notFoundComponent:N(UH,"notFoundComponent"),component:N(BH,"component")}),qH=j("/beats/$beatId")({beforeLoad:()=>{throw Nt({to:"/beats",replace:!0})}}),HH=()=>$(()=>import("./book-an-artist._listingId-DaxRUmU5.js"),__vite__mapDeps([313,1,2,3,4,5,6,7,8,9,10,51,50,47,314,125,213,48,38,13,124])),GH=j("/book-an-artist/$listingId")({head:()=>({meta:[{title:"Book This Artist â MO STREAMS"},{name:"description",content:"Check availability, rates and set length, then request a quote to book this artist for your next show, festival or private event."},{property:"og:title",content:"Book This Artist â MO STREAMS"},{property:"og:description",content:"Check availability, rates and set length, then request a quote to book this artist."},{property:"og:type",content:"profile"},{name:"twitter:card",content:"summary_large_image"}]}),component:N(HH,"component")}),KH=()=>$(()=>import("./book._handle-B0cbx7_x.js"),__vite__mapDeps([315,1,2,3,4,5,6,7,47])),ZH=j("/book/$handle")({head:()=>({meta:[{title:"Book This Artist â MO STREAMS"},{name:"description",content:"Send a booking request straight to the MO STREAMS booking desk â rates, dates, deposits and quotes in one form."},{property:"og:title",content:"Book This Artist â MO STREAMS"},{property:"og:description",content:"Send a booking request straight to the MO STREAMS booking desk."},{property:"og:type",content:"profile"},{name:"twitter:card",content:"summary_large_image"}]}),component:N(KH,"component")}),WH=()=>$(()=>import("./channel._handle-BSGzHzP7.js"),__vite__mapDeps([316,1,2,3,4,5,6,7,8,9,10,114,305,317,318,319,307,124,87,199,56,57,171,200,69,120,121,122,77,201,132,133,320,90,321,309,40,322,127,145,83,13])),YH=j("/channel/$handle")({validateSearch:e=>({tab:typeof e.tab=="string"?e.tab:void 0}),component:N(WH,"component"),head:({params:e})=>({meta:[{title:`${e.handle} · Channel â MO STREAMS`},{name:"description",content:`Watch videos, shorts, and playlists from @${e.handle} on MO STREAMS.`},{property:"og:title",content:`@${e.handle} on MO STREAMS`},{property:"og:description",content:`Music videos and shorts from @${e.handle}.`}]})}),bce=ke({method:"POST"}).middleware([ze]).handler(Oe("13fb4a8e110306d1753b000df86884dd8b13f750741be0c124ae9b8f92711636")),_ce=ke({method:"POST"}).middleware([ze]).handler(Oe("f4593ef2040d2e603873589f52b01fe13e87d9ac331eb12f9adaa640aa586d9f")),wce=ke({method:"GET"}).middleware([ze]).handler(Oe("8842b210a434ebc3605643085dc0ede129de1f0ce346b8dc26bba4540aabb27c")),Sce=ke({method:"GET"}).middleware([ze]).handler(Oe("af69ea2659d701c261759c1b250d8c44c625f630b16b8335d8cfdb710d97d7ce")),xce=ke({method:"GET"}).middleware([ze]).handler(Oe("c264d7f8ed697200f5cd49554c037bf475c7f9df79aa362d31221c6e95effd3c")),Rce=ke({method:"GET"}).handler(Oe("fce24eb02cb2b09778554db5028e0d17d4a8c5bdec7053fab74875b9223b8b3e")),Ece=ke({method:"GET"}).middleware([ze]).handler(Oe("894f04a5666e093bc6a1795392040d20c8c8347e7c932b8de29a53fe6684c364")),Ace=ke({method:"POST"}).middleware([ze]).handler(Oe("ec115f6b4696ce422e003383166b719e17cc1b1f060e345877b904093758b8a7")),Tce=ke({method:"POST"}).middleware([ze]).handler(Oe("0f6a3de0030576afa4248e6f951e5dc4254377a0efa01dd7611ad18ac6396781")),JH=ke({method:"GET"}).handler(Oe("c21bd9b36952f8f12b69dbe5d820157d7a234f3209972244039d843eb5701db
1701")),kce=ke({method:"POST"}).middleware([ze]).handler(Oe("01b9a0781c578186b5bed346291029ec0c61d694686f162322ce5154216efdcc")),QH=()=>$(()=>import("./collect._slug-IaQMLuXc.js"),__vite__mapDeps([323,324,17,325,44,136,137,326,98,42,173,258,327])),XH=()=>$(()=>import("./collect._slug-DqH46NoR.js"),[]),eG=()=>$(()=>import("./collect._slug-C_u_P4Eq.js"),[]),tG=j("/collect/$slug")({loader:async({params:e})=>{const t=await JH({data:{slug:e.slug}});if(!t)throw zr();return t},head:({loaderData:e})=>({meta:e?[{title:`${e.title} â Collectible Album · MO STREAMS`},{name:"description",content:(e.description??"Limited-edition collectible album on MO STREAMS").slice(0,160)},{property:"og:title",content:`${e.title} â Collectible Album`},{property:"og:image",content:e.cover_art_url??""}]:[]}),errorComponent:N(eG,"errorComponent"),notFoundComponent:N(XH,"notFoundComponent"),component:N(QH,"component")}),nG={fan:{label:"Fan",tagline:"Your home feed, live"},artist:{label:"Artist",tagline:"Studio HQ â live"},label:{label:"Label",tagline:"Roster control room"},dj:{label:"DJ",tagline:"Live set, on air"},producer:{label:"Producer",tagline:"Beat marketplace, live"},podcaster:{label:"Podcaster",tagline:"Episodes & live audience"}},rG=()=>$(()=>import("./demo._role-6T41XvoJ.js"),[]),oG=()=>$(()=>import("./demo._role-B3JpVn2U.js"),[]),aG=()=>$(()=>import("./demo._role-HJQKszoo.js"),__vite__mapDeps([328,71,1,2,3,4,5,6,7,8,9,10,329,76,231,40,234,211,223,235,165,41,163,150,142,72,77,230,115,227,114,236,237,238,145,16,124,239,162,38,118,44,240,43,144,241,242,210,130,155,194,267,157,164,13,42,83,58,224,225,120,226,228,111,12,112,87,113,116,117,57,56,119,121,122,123,47,125,126,127,70,128,129,82,131,132,133,98,134,93,105,189])),sG=j("/demo/$role")({head:({params:e})=>({meta:[{title:`${nG[e.role]?.label??"Demo"} Demo â MO STREAMS`},{name:"description",content:"Interactive live demo dashboard for MO STREAMS."}]}),component:N(aG,"component"),notFoundComponent:N(oG,"notFoundComponent"),errorComponent:N(rG,"errorComponent")}),iG=()=>$(()=>import("./demo.advertising-BIck6prT.js"),__vite__mapDeps([330,41,40])),cG=j("/demo/advertising")({component:N(iG,"component")}),lG=()=>$(()=>import("./demo.data-DyNWqOwc.js"),[]),uG=j("/demo/data")({head:()=>({meta:[{title:"Demo · Data â MO STREAMS"},{name:"description",content:"Preview the MO STREAMS Data dashboard â plays, geo, repeats, shares, clicks, and CSV export."}]}),component:N(lG,"component")}),dG=()=>$(()=>import("./demo.debug-traces-CQSD-n3N.js"),__vite__mapDeps([331,29,1,2,3,4,5,6,7,8,9,10,30,15,16,332,120,263])),hG=j("/demo/debug-traces")({component:N(dG,"component"),head:()=>({meta:[{title:"Debug Traces â Demo"}]})}),fG=()=>$(()=>import("./demo.network-collab-CSami_ZQ.js"),__vite__mapDeps([333,223,83])),pG=j("/demo/network-collab")({component:N(fG,"component")}),mG=()=>$(()=>import("./demo.network-services-yRELquXU.js"),__vite__mapDeps([334,223,335])),gG=j("/demo/network-services")({component:N(mG,"component")}),yG=()=>$(()=>import("./demo.rooms-CqjDFSc5.js"),__vite__mapDeps([336,211,223,40])),vG=j("/demo/rooms")({component:N(yG,"component")}),bG=j("/dj/$handle")({beforeLoad:({params:e})=>{throw Nt({to:"/live/$handle",params:{handle:e.handle},replace:!0})}}),_G=ke({method:"GET"}).handler(Oe("8b0952d9aa8b7ee54d26c94815b055fadee5010bdf5b48abf13841574cc6dcf2")),wG=()=>$(()=>import("./epk._handle-BlFjpbUx.js"),[]),SG=()=>$(()=>import("./epk._handle-DnDvhZB3.js"),[]),xG=()=>$(()=>import("./epk._handle-D90YBT6H.js"),__vite__mapDeps([337,160,50,338,339,14,141,320,90,321,13,10,150])),RG=j("/epk/$handle")({loader:async({params:e})=>{const t=await _G({data:{handle:e.handle}});if(!t.profile)throw zr();return t},head:({loaderData:e})=>{const t=e?.profile?.display_name??e?.profile?.handle??"Artist",n=e?.profile?.bio?.slice(0,160)??`Press kit for ${t} â top tracks, stats, and booking on MO Streams.`,r=e?.profile?.avatar_url??e?.profile?.channel_banner_url??void 0;return{meta:[{title:`${t} · EPK â MO Streams`},{name:"description",content:n},{property:"og:title",content:`${t} · Electronic Press Kit`},{property:"og:description",content:n},...r?[{property:"og:image",content:r}]:[],...r?[{name:"twitter:image",content:r}]:[],{name:"twitter:card",content:"summary_large_image"}]}},component:N(xG,"component"),notFoundComponent:N(SG,"notFoundComponent"),errorComponent:N(wG,"errorComponent")}),EG=()=>$(()=>import("./events._slug-CzgbaG0a.js"),__vite__mapDeps([340,1,2,3,4,5,6,7,8,9,10,17,83,124,13,312,40])),AG=j("/events/$slug")({component:N(EG,"component"),validateSearch:e=>({invite:typeof e.invite=="string"?e.invite:void 0}),loader:async({params:e})=>{const{data:t}
170=await qe.from("events").select("title,description,cover_url,venue_name,city,starts_at,slug").eq("slug",e.slug).maybeSingle();return{event:t}},head:({params:e,loaderData:t})=>{const n=t?.event,r=`https://mostreams.com/events/${e.slug}`;if(!n)return{meta:[{title:"Event â MO STREAMS"},{name:"description",content:"Live shows and ticketed events on MO STREAMS."},{property:"og:url",content:r}],links:[{rel:"canonical",href:r}]};const s=new Date(n.starts_at).toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"}),i=[n.venue_name,n.city].filter(Boolean).join(", "),l=`${n.title} â ${s} · ${i}`.slice(0,70),d=(n.description??`Get tickets to ${n.title} at ${i} on ${s}. Live event on MO STREAMS.`).slice(0,155);return{meta:[{title:l},{name:"description",content:d},{property:"og:title",content:n.title},{property:"og:description",content:d},{property:"og:type",content:"event"},{property:"og:url",content:r},...n.cover_url?[{property:"og:image",content:n.cover_url}]:[]],links:[{rel:"canonical",href:r}],scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Event",name:n.title,startDate:n.starts_at,location:{"@type":"Place",name:n.venue_name,address:n.city??void 0},image:n.cover_url??void 0,description:d,url:r})}]}}}),TG=()=>$(()=>import("./g._slug-DtqBFgK5.js"),[]),kG=j("/g/$slug")({loader:async({params:e,location:t})=>{const{supabaseAdmin:n}=await $(async()=>{const{supabaseAdmin:d}=await import("./client.server-BGNBIxjI.js");return{supabaseAdmin:d}},[]),{data:r}=await n.from("geo_ad_slugs").select("*").eq("slug",e.slug).maybeSingle();if(!r)throw Nt({to:"/"});const s=new URLSearchParams(t.searchStr||"");n.from("geo_ad_clicks").insert({slug:e.slug,country:s.get("c")??null,referer:null,user_agent:null,gclid:s.get("gclid"),fbclid:s.get("fbclid"),ttclid:s.get("ttclid")}).then(()=>{});const i=r.utm??{},l=new URL(r.destination_path??"/","https://mostreams.com");for(const[d,h]of Object.entries(i))h&&l.searchParams.set(d,h);for(const d of["gclid","fbclid","ttclid"]){const h=s.get(d);h&&l.searchParams.set(d,h)}throw Nt({href:l.toString()})},component:N(TG,"component")}),CG=()=>$(()=>import("./l._slug-B4RXyfJr.js"),[]),OG=j("/l/$slug")({loader:async({params:e})=>{const{data:t}=await qe.from("smart_links").select("id, slug, title, artist_name, cover_url, dsp_links, presave_url").eq("slug",e.slug).maybeSingle();if(!t)throw zr();return{link:t}},head:({loaderData:e})=>{const t=e?.link?`${e.link.title}${e.link.artist_name?` â ${e.link.artist_name}`:""} | MO STREAMS`:"Release link | MO STREAMS",n=e?.link?`Stream, save and buy ${e.link.title} on every music service.`:"Listen on every music service.";return{meta:[{title:t},{name:"description",content:n},{property:"og:title",content:t},{property:"og:description",content:n},{property:"og:type",content:"music.song"},{name:"twitter:card",content:"summary_large_image"}]}},component:N(CG,"component")}),$G=()=>$(()=>import("./legal.dpa-DNxxp8qF.js"),__vite__mapDeps([341,29,1,2,3,4,5,6,7,8,9,10,30,15,16])),MG=j("/legal/dpa")({head:()=>({meta:[{title:"Data Processing Addendum â MO STREAMS"},{name:"description",content:"GDPR-compliant Data Processing Addendum covering how MO STREAMS processes personal data on your behalf as a label or distributor."}]}),component:N($G,"component")}),NG=()=>$(()=>import("./live._handle-DXVnVnb0.js"),__vite__mapDeps([342,240,43,343,344,153,345,238,144,74,120,128,118,16,98])),jG=j("/live/$handle")({head:({params:e})=>({meta:[{title:`${e.handle} Live â MO STREAMS`},{name:"description",content:`Watch ${e.handle} go live on MO STREAMS.`},{property:"og:title",content:`${e.handle} is live on MO STREAMS`},{property:"og:description",content:`Tune into ${e.handle}'s live webcam stream.`}]}),component:N(NG,"component")}),PG=()=>$(()=>import("./login.index-BHhV0Z5Z.js"),__vite__mapDeps([346,29,1,2,3,4,5,6,7,8,9,10,30,15,16,72,73])),DG=j("/login/")({component:N(PG,"component")}),IG=()=>$(()=>import("./login._role-So6kUFzy.js"),__vite__mapDeps([347,188,182,139,145,348,97,154,73,72])),LG=["admin","fan","artist","label","dj","producer","podcaster","advertiser"],zG=j("/login/$role")({validateSearch:e=>({redirect:typeof e.redirect=="string"&&e.redirect.startsWith("/")?e.redirect:void 0}),parseParams:e=>{if(!LG.includes(e.role))throw zr();return{role:e.role}},head:({params:e})=>({meta:[{title:`${pS(e.role)} Login â MO STREAMS`},{name:"description",content:`Sign in to your MO STREAMS ${pS(e.role)} account.`}]}
170),component:N(IG,"component")});function pS(e){return e==="admin"?"Super Admin":e==="dj"?"DJ":e[0].toUpperCase()+e.slice(1)}const BG=()=>$(()=>import("./mixtape._slug-o6vSG_xB.js"),__vite__mapDeps([349,251,73])),UG=j("/mixtape/$slug")({head:({params:e})=>({meta:[{title:"Fan mixtape · MO STREAMS"},{name:"description",content:"A fan-built mixtape of certified MO STREAMS Digital DISCS from multiple artists."},{property:"og:title",content:"Fan mixtape · MO STREAMS"},{property:"og:description",content:`Listen to the disc lineup on mixtape ${e.slug} â own the masters on MO STREAMS.`},{property:"og:type",content:"music.playlist"},{name:"twitter:card",content:"summary_large_image"}]}),component:N(BG,"component")}),VG=()=>$(()=>import("./modisc._slug-CGFVe_EJ.js"),__vite__mapDeps([350,86,98,89,17])),FG=j("/modisc/$slug")({component:N(VG,"component"),head:({params:e})=>({meta:[{title:`MO STREAMS Digital DISC â ${e.slug} · MO STREAMS`},{name:"description",content:"Own the digital CD. Unlock the album, keep it forever."},{property:"og:title",content:`MO STREAMS Digital DISC â ${e.slug} · MO STREAMS`},{property:"og:description",content:"Own the digital CD. Unlock the album, keep it forever."},{property:"og:type",content:"music.album"},{name:"twitter:card",content:"summary_large_image"}]})}),qG=j("/podcast/$episodeId")({beforeLoad:()=>{throw Nt({to:"/explore",replace:!0})}}),HG=j("/podcasts/$episodeId")({beforeLoad:()=>{throw Nt({to:"/explore",replace:!0})}}),GG=ke({method:"GET"}).handler(Oe("c8d557cb93faaa839ad274d7873c369d760edce210618364f939a8e815211d2e")),KG=()=>$(()=>import("./radio.index-CI37gEPL.js"),__vite__mapDeps([351,81,57,1,2,3,4,5,6,7,8,9,10,132,133,312,128,43,193,194,44,130,36,352,120,163,40])),ZG=j("/radio/")({head:()=>({meta:[{title:"MO Streams Radio â DRT Certified Free 24/7 Station"},{name:"description",content:"Listen free to MO Streams Radio, request songs live from the fan wall, and submit your own record for airplay. St. Louis born, worldwide streamed."},{property:"og:title",content:"MO Streams Radio â DRT Certified Free 24/7 Station"},{property:"og:description",content:"Free radio, live fan requests, and artist submissions â all in one place on MO Streams."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),loader:()=>GG(),component:N(KG,"component")}),WG=()=>$(()=>import("./redeem._code-BGBDHFzJ.js"),[]),YG=j("/redeem/$code")({component:N(WG,"component")}),Cce=ke({method:"POST"}).middleware([ze]).handler(Oe("ae33007639e871b5737d52b154434f32816853435cb3de1b9b06247ce0a37b5f")),JG=ke({method:"GET"}).handler(Oe("56e72d0bcfd1f77357d33fd83de09b0b25c9f4c4e3f8716d28ae75a558c6cf28")),Oce=ke({method:"GET"}).middleware([ze]).handler(Oe("79512fb27fe9947326409b47afc91520c1594cf4971b2848ed024259edba4876")),$ce=ke({method:"POST"}).middleware([ze]).handler(Oe("ef8337cec58d6985cb7915b513bc1b48e1a2275afae951737f8ef1da1bf80052")),Mce=ke({method:"GET"}).middleware([ze]).handler(Oe("38668d9532b42437f9fb877a068774b18f1c62a2a1c77058997531ee7a7acd7e")),QG=e=>({queryKey:["release-public",e],queryFn:()=>JG({data:{slug:e}})}),XG=()=>$(()=>import("./release._slug-Akbuvl1o.js"),__vite__mapDeps([353,354,228,111,12,112,87,113,114,115,116,117,57,56,77,118,119,120,121,122,123,124,47,125,126,127,72,70,6,128,129,2,3,4,5,10,130,82,131,132,133,98,134,93,43,104,101,102,103,168,319,223])),eK=()=>$(()=>import("./release._slug-EMWj-B_H.js"),[]),tK=()=>$(()=>import("./release._slug-BOW2tEU3.js"),[]),nK=j("/release/$slug")({loader:async({context:e,params:t})=>{const[n,r]=await Promise.all([e.queryClient.ensureQueryData(QG(t.slug)),hh()]);if(!n.release)throw zr();return{...n,origin:r}},head:({loaderData:e})=>{const t=e?.release,n=e?.origin??"https://mostreams.com";if(e?.artist?.display_name,!t)return{meta:[{title:"Release â MO STREAMS"}]};const r=`${t.title} Release`,s="Mo Streams Music & Video Distribution Platform",i=`${n}/release/${t.slug??t.id}`,l=t.cover_url?`${n}
170/api/public/og/release/${t.id}`:`${n}/og-image.png`;return{meta:[{title:r},{name:"description",content:s},{property:"og:title",content:r},{property:"og:description",content:s},{property:"og:image",content:l},{property:"og:image:secure_url",content:l},{property:"og:image:width",content:"1200"},{property:"og:image:height",content:"1200"},{property:"og:image:alt",content:`${t.title} cover art`},{property:"og:type",content:"music.album"},{property:"og:url",content:i},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:r},{name:"twitter:description",content:s},{name:"twitter:image",content:l}],links:[{rel:"canonical",href:i}]}},notFoundComponent:N(tK,"notFoundComponent"),errorComponent:N(eK,"errorComponent"),component:N(XG,"component")}),mS={distribution:{slug:"distribution",name:"Distribution",eyebrow:"Distribution",title:"Your music,",highlight:"everywhere.",intro:"Release your music and videos to 300+ DSPs worldwide while keeping 100% of your masters and collecting royalties from every stream. Built by an artist, for artists.",price:"Included with plan",includes:["Distribution to 300+ DSPs and stores","Music video distribution to Vevo, YouTube, Apple Music, and more","Keep 100% of your masters and publishing","100% artist royalty split, lifetime","Release scheduling and pre-saves","DDEX-compliant metadata and rights management"],steps:[{title:"Upload your release",body:"Add audio, artwork, metadata, and rights info through the release wizard."},{title:"We review & deliver",body:"Our team QC checks your release and delivers it to every DSP on your release date."},{title:"Get paid",body:"Watch royalties, analytics, and payouts roll into your dashboard."}],faqs:[{q:"How many stores do you distribute to?",a:"300+ stores worldwide, including Spotify, Apple Music, Amazon, Tidal, Deezer, YouTube, and regional DSPs."},{q:"Do I keep my masters?",a:"Yes. You keep 100% of your masters and publishing."}]},"modisc-release":{slug:"modisc-release",name:"MO STREAMS Digital DISC Release",eyebrow:"MO STREAMS Digital DISC Release",title:"Drop music fans can",highlight:"own.",intro:"Create limited-edition digital collectibles, exclusive singles, and fan-owned releases. MO STREAMS Digital DISCS let fans unlock your music, collect serials, and even resell with royalties coming back to you.",price:"Custom",includes:["Limited-edition or open-edition collectible drop","Custom serial numbers and authenticity certificates","Fan unlock flow with purchase and redemption","Resale royalties on secondary sales","Public /verify page for ownership proof","Integrates with your distribution or stands alone"],steps:[{title:"Design your MO STREAMS Digital DISC",body:"Choose artwork, supply, pricing, unlock content, and royalty split."},{title:"Publish the drop",body:"We mint the metadata and host the unlock experience on your artist page."},{title:"Fans collect & resell",body:"Fans buy, unlock, and resell while you earn on every transaction."}],faqs:[{q:"What can a MO STREAMS Digital DISC contain?",a:"Any audio, video, artwork, or exclusive content you want fans to unlock by purchasing."},{q:"Do fans need crypto?",a:"No. Fans can buy with card, wallet, or crypto. The optional on-chain proof is handled automatically."}]},"artist-merch-store":{slug:"artist-merch-store",name:"Artist Merch Store",eyebrow:"Artist Merch Store",title:"Sell merch at your",highlight:"shows & online.",intro:"Build a branded merch storefront connected to your artist profile. Sell shirts, hoodies, hats, vinyl, and exclusive drops directly to fans â at shows, on social, and on your MO STREAMS page.",price:"Custom",includes:["Branded storefront on your artist profile","T-shirts, hoodies, hats, vinyl, and limited drops","Inventory and variant management","Payment processing for card, wallet, and crypto","Order tracking and fulfillment support","Promo tools and bundle deals with releases"],steps:[{title:"Upload your designs",body:"Send us your artwork or work with our in-house design team."},{title:"We build the store",body:"Your products go live on your MO STREAMS artist page with checkout ready."},{title:"Sell & fulfill",body:"Fans buy at shows and online. You track orders and payouts in your dashboard."}],faqs:[{q:"Can I sell at my shows?",a:"Yes. Your store works online and you can use it for on-site sales at shows and pop-ups."},{q:"Who handles fulfillment?",a:"We support print-on-demand and bulk fulfillment options."}]},"booking-touring":{slug:"booking-touring",name:"Booking & Touring",eyebrow:"Booking & Touring",title:"Get booked on",highlight:"real stages.",intro:"Book shows, tours, festivals, and appearances through our booking network and venue partnerships. We connect independent artists with promoters, clubs, and festivals looking for talent.",price:"Custom",includes:["Artist booking page with rider and availability","Venue, promoter, and festival connections","Tour routing and date coordination","Contract and deposit handling","Marketing support for ticketed events","Integration with your MO STREAMS profile and releases"],steps:[{title:"Create your booking profile",body:"Set your fee, rider, availability, and preferred markets."},{title:"We pitch you",body:"Our team matches you with venues, promoters, and festivals in your lane."},{title:"Confirm & perform",body:"Lock in the date, promote the show, and get paid through your dashboard."}],faqs:[{q:"Who can book me?",a:"Venues, promoters, festivals, brands, and private events can submit booking inquiries through your profile."},{q:"Do you handle contracts?",a:"We provide standard booking agreements and can coordinate deposits and payments."}]},"sync-placements":{slug:"sync-placements",name:"Sync Placements",eyebrow:"Sync Placements",title:"Get your music in",highlight:"film, TV & ads.",intro:"Pitch your catalog for film, TV, advertising, trailers, video games, and brand campaigns through our sync licensing network. Keep your rights while we chase the right placements.",price:"Custom / Commission",includes:["Catalog submission to sync supervisors and music libraries","Film, TV, trailer, game, and ad pitching","Rights clearance and licensing support","One-stop or easy-clear deals where possible","Placement tracking and royalty collection","Public /verify page for catalog authenticity"],steps:[{title:"Submit your catalog",body:"Tag tracks by mood, genre, tempo, and lyrics for supervisors."},{title:"We pitch to opportunities",body:"Our team sends targeted pitches for film, TV, ads, and games."},{title:"License & collect",body:"Secure the placement, clear the rights, and collect sync fees and royalties."}],faqs:[{q:"Do I keep my rights?",a:"Yes. We pitch non-exclusive sync licenses and help you keep ownership."},{q:"What kind of placements?",a:"Film, TV, trailers, commercials, video games, and brand campaigns."}]},"radio-playlisting":{slug:"radio-playlisting",name:"Radio & Playlisting",eyebrow:"Radio & Playlisting",title:"Get heard on the",highlight:"airwaves.",intro:"Get your music pitched to radio stations, editorial playlists, and curator networks. We don't spray-and-pray â we target the stations and playlists that fit your sound.",price:"from $49 / release",includes:["Editorial submission via verified DSP tools","Outreach to 500+ vetted independent curators","Radio station and DJ pool pitching","Genre-matched targeting (no spray-and-pray)","Add-by-add tracking dashboard","Performance report 30 days post-release"],steps:[{title:"Submit your track",body:"Share a private link at least 3 weeks before release day."},{title:"We pitch it",body:"Our team sends your music to radio, curators, and editors in your genre."},{title:"Track the spins",body:"Watch adds, spins, and playlist placements come in live."}],faqs:[{q:"Do you guarantee placements?",a:"No ethical pitching service can. We guarantee real pitches to real curators and full transparency."},{q:"When should I submit?",a:"At least 21 days before release for editorial and radio consideration."}]},"artist-development":{slug:"artist-development",name:"Artist Development",eyebrow:"Artist Development",title:"Build your career",highlight:"with a team.",intro:"Strategy, branding, release rollouts, and career guidance from a label team that helps you grow independently. We act as your development partner without taking ownership.",price:"Custom",includes:["Brand strategy and visual identity","Release rollout planning and timelines","Social and content strategy","Audience growth and fan-retention playbooks","Monthly check-ins and campaign reviews","Cross-service bundling (distribution, merch, booking, sync)"],steps:[{title:"Discovery call",body:"We audit your brand, catalog, audience, and goals."},{title:"Build the plan",body:"We map a 6â12 month rollout across releases, content, and partnerships."},{title:"Execute together",body:"We run the campaigns, adjust weekly, and scale what's working."}],faqs:[{q:"Do I sign anything?",a:"No. Development is a service, not a deal. You keep your rights and revenue."},{q:"Who is this for?",a:"Artists who want label-style support while staying independent and owning their future."}]}
170,"brand-partnerships":{slug:"brand-partnerships",name:"Brand Partnerships",eyebrow:"Brand Partnerships",title:"Partner with brands",highlight:"that fit you.",intro:"Connect with brands, sponsors, ambassador deals, and endorsement opportunities powered by our network. We match artists with aligned companies for campaigns, events, and long-term partnerships.",price:"Custom / Commission",includes:["Brand and sponsor matching","Ambassador and endorsement deals","Sponsored content and campaign activations","Event and tour sponsorships","Product placement and creator campaigns","Contract and payment coordination"],steps:[{title:"Build your profile",body:"We capture your audience, values, and dream brand partners."},{title:"Get matched",body:"Our team introduces you to aligned brands and campaigns."},{title:"Activate & earn",body:"Execute the partnership and collect your fee through the platform."}],faqs:[{q:"Do brands reach out to me directly?",a:"We broker the introduction and help you evaluate every deal."},{q:"What kind of partnerships?",a:"Ambassador deals, sponsorships, product placements, endorsements, and creator campaigns."}]},mastering:{slug:"mastering",name:"Mastering",eyebrow:"Mastering",title:"Loud, clean, and",highlight:"release-ready.",intro:"Stereo or stem mastering by Grammy-credited engineers. Streaming-loudness optimized, 48-hour turnaround, unlimited tweaks until you sign off.",price:"From $19 / track",includes:["Stereo or stem mastering","Loudness tuned for Spotify, Apple Music, Tidal & YouTube","Up to 3 revision rounds included","Delivery in WAV, MP3, and DDP for CD","48-hour standard turnaround (24h rush available)","Free re-master if you re-mix within 30 days"],steps:[{title:"Upload your mix",body:"Send us a 24-bit WAV or stems via your dashboard."},{title:"We master it",body:"A senior engineer is assigned and delivers within 48 hours."},{title:"Approve & release",body:"Request tweaks or download your final masters."}],faqs:[{q:"What format should I send?",a:"24-bit WAV with at least 3 dB of headroom is ideal. Stems are welcome."},{q:"How many revisions do I get?",a:"Three revision rounds are included on every track."}]},"playlist-pitching":{slug:"playlist-pitching",name:"Playlist Pitching",eyebrow:"Playlist Pitching",title:"Get heard on the",highlight:"playlists that matter.",intro:"We pitch your release to editorial and curator playlists across every major DSP â Spotify, Apple Music, Amazon, Deezer, Tidal, and the top independent tastemakers.",price:"From $49 / release",includes:["Editorial submission via verified DSP tools","Outreach to 500+ vetted independent curators","Genre-matched targeting (no spray-and-pray)","Add-by-add tracking dashboard","Pre-save campaign included","Performance report 30 days post-release"],steps:[{title:"Submit your track",body:"Share a private link at least 3 weeks before release day."},{title:"We pitch it",body:"Our team writes the pitch and sends it to curators in your genre."},{title:"Track the placements",body:"Watch adds come in live in your dashboard."}],faqs:[{q:"Do you guarantee placements?",a:"No ethical pitching service can. We do guarantee real pitches to real curators and full transparency on every send."},{q:"When should I submit?",a:"At least 21 days before release for editorial consideration."}]},"cover-art-design":{slug:"cover-art-design",name:"Cover Art Design",eyebrow:"Cover Art Design",title:"Artwork that",highlight:"sells the song.",intro:"Custom single, EP, and album artwork built by our in-house design team. Print-ready, DSP-compliant, and built around your sound.",price:"From $99 / cover",includes:["Original concept (no stock templates)","Two initial directions to choose from","Unlimited revisions on the chosen direction","DSP-compliant 3000Ã3000 master + social variants","Animated canvas / Spotify Clip add-on available","Full commercial usage rights"],steps:[{title:"Brief us",body:"Tell us the vibe, references, and any must-haves."},{title:"Pick a direction",body:"We deliver two concepts within 5 business days."},{title:"Refine & deliver",body:"We polish your pick and ship every format you need."}],faqs:[{q:"Do I own the artwork?",a:"Yes â full commercial rights transfer on final delivery."},{q:"Can you match my existing brand?",a:"Absolutely. Send refs, fonts, or past covers and we'll build around them."}]},"press-pr":{slug:"press-pr",name:"Press & PR",eyebrow:"Press & PR",title:"Get covered by the",highlight:"right outlets.",intro:"Targeted outreach to blogs, magazines, podcasts, and tastemakers in your genre. We don't blast â we pitch the writers who actually cover your sound.",price:"From $499 / campaign",includes:["Custom press release written by our PR team","Outreach to a curated, genre-matched media list","Premieres, features, and interview placement","Podcast and radio show pitching","Weekly campaign updates","Final coverage report with every link earned"],steps:[{title:"Onboarding call",body:"We dig into your story, hooks, and goals."},{title:"Pitch & follow-up",body:"We pitch journalists and chase responses for 4â6 weeks."},{title:"Coverage report",body:"You get a full breakdown of placements and reach."}],faqs:[{q:"How long is a campaign?",a:"Standard campaigns run 4â6 weeks around your release date."},{q:"Will I get on Pitchfork?",a:"We pitch where you fit. We're honest about realistic targets on the kickoff call."}]},mixing:{slug:"mixing",name:"Mixing",eyebrow:"Mixing",title:"Pro mixes from",highlight:"your raw stems.",intro:"Pro mixing on your stems by engineers credited on RIAA-certified records. Modern, punchy, and built to translate everywhere.",price:"From $149 / song",includes:["Full mix from your stems (up to 60 tracks)","Vocal tuning and timing included","Genre-specific engineer matched to your track","Three revision rounds","Stems delivered for mastering","Optional bundle with our mastering service"],steps:[{title:"Send your stems",body:"Upload labeled stems via your dashboard."},{title:"Mix delivered",body:"Standard turnaround is 5â7 business days."},{title:"Revise & approve",body:"Iterate up to three times, then download your mix."}],faqs:[{q:"How should I prep stems?",a:"Consolidated from bar 1, labeled, no master bus processing, -6 dB headroom."},{q:"Can you mix and master together?",a:"Yes â bundle pricing is available at checkout."}]}
170,"marketing-campaigns":{slug:"marketing-campaigns",name:"Marketing Campaigns",eyebrow:"Marketing Campaigns",title:"Full launch campaigns,",highlight:"end-to-end.",intro:"Paid social, influencer seeding, content strategy, and full launch campaigns managed by a team that's pushed records to the top of the charts.",price:"Custom â starting at $1,500",includes:["Pre-release strategy and content calendar","Paid Meta, TikTok, and YouTube ad campaigns","Influencer & creator seeding on TikTok and Reels","Pre-save and short-form video assets","Weekly performance reporting","Dedicated campaign manager"],steps:[{title:"Strategy call",body:"We map your goals, audience, and budget."},{title:"Build & launch",body:"We produce the assets and ship the campaign live."},{title:"Optimize weekly",body:"Spend is reallocated weekly to what's working."}],faqs:[{q:"What budget do I need?",a:"Most launches start at $1,500 in fees plus $500+ in ad spend."},{q:"Can I run this without releasing on MO STREAMS?",a:"Yes â campaigns are available to any artist."}]}},rK=()=>$(()=>import("./services._slug-D8kkg57Q.js"),__vite__mapDeps([355,29,1,2,3,4,5,6,7,8,9,10,30,15,16])),oK=()=>$(()=>import("./services._slug-B6pSVy3Q.js"),__vite__mapDeps([356,29,1,2,3,4,5,6,7,8,9,10,30,15,16])),aK=()=>$(()=>import("./services._slug-BVGefsnq.js"),__vite__mapDeps([357,29,1,2,3,4,5,6,7,8,9,10,30,15,16])),sK=j("/services/$slug")({head:({params:e})=>{const t=mS[e.slug];return t?{meta:[{title:`${t.name} â MO STREAMS`},{name:"description",content:t.intro},{property:"og:title",content:`${t.name} â MO STREAMS`},{property:"og:description",content:t.intro}]}:{meta:[{title:"Service â MO STREAMS"}]}},loader:({params:e})=>{if(!mS[e.slug])throw zr();return null},notFoundComponent:N(aK,"notFoundComponent"),errorComponent:N(oK,"errorComponent"),component:N(rK,"component")}),iK=()=>$(()=>import("./signup.check-email-Bt1VqaAj.js"),__vite__mapDeps([358,29,1,2,3,4,5,6,7,8,9,10,30,15,16,359])),cK=j("/signup/check-email")({validateSearch:e=>({role:typeof e.role=="string"?e.role:void 0,code:typeof e.code=="string"?e.code:void 0}),head:()=>({meta:[{title:"Check your email â MO STREAMS"},{name:"robots",content:"noindex"}]}),component:N(iK,"component")}),lK=()=>$(()=>import("./signup.pending-CDhzcsPb.js"),__vite__mapDeps([360,29,1,2,3,4,5,6,7,8,9,10,30,15,16,124,183])),uK=j("/signup/pending")({validateSearch:e=>({role:typeof e.role=="string"?e.role:void 0,code:typeof e.code=="string"?e.code:void 0}),head:()=>({meta:[{title:"Account pending review â MO STREAMS"},{name:"robots",content:"noindex"}]}),component:N(lK,"component")}),dK=()=>$(()=>import("./signup.trial-hold-DrXEOUMn.js"),__vite__mapDeps([361,26,29,1,2,3,4,5,6,7,8,9,10,30,15,16,296,27])),hK=j("/signup/trial-hold")({validateSearch:e=>({token:typeof e.token=="string"?e.token:void 0,amt:typeof e.amt=="string"?e.amt:void 0,role:typeof e.role=="string"?e.role:void 0,next:typeof e.next=="string"&&e.next.startsWith("/")?e.next:void 0}),head:()=>({meta:[{title:"Start your 7-day trial â MO STREAMS"},{name:"description",content:"Fund your wallet through PayPal guest checkout to unlock 7 days of MO STREAMS."},{name:"robots",content:"noindex"}]}),component:N(dK,"component")}),fK=()=>$(()=>import("./store.index-AFz22Brm.js"),__vite__mapDeps([362,1,2,3,4,5,6,7,9,363])),pK=j("/store/")({head:()=>({meta:[{title:"MO STREAMS Digital DISC Store â Buy & Listen | MO STREAMS"},{name:"description",content:"Browse the MO STREAMS Digital DISC store by artist and album. Buy the digital disc, open the booklet and keep the music forever."},{property:"og:title",content:"MO STREAMS Digital DISC Store"},{property:"og:description",content:"Browse by artist and album, then buy the digital disc."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:N(fK,"component")}),mK=e=>`$${e.toFixed(2)}`;function Nce({disc:e}){const t=e.status==="sold_out"||e.minted_count>=e.edition_size;return p.jsxs(An,{to:"/store/album/$slug",params:{slug:e.slug??""},className:"group flex flex-col rounded-2xl border border-border bg-card p-4 transition-colors hover:border-primary/60",children:[p.jsxs("div",{className:"relative aspect-square overflow-hidden rounded-xl bg-muted",children:[e.cover_art_url?p.jsx("img",{src:_o(e.cover_art_url,640),alt:`${e.title} MO STREAMS Digital DISC cover`,loading:"lazy",decoding:"async",className:"h-full w-full object-cover transition-transform duration-300 group-hover:scale-105"}):p.jsx("div",{className:"flex h-full w-full items-center justify-center",children:p.jsx(Qn,{className:"h-10 w-10 text-muted-foreground"})}),t&&p.jsx("span",{className:"absolute left-3 top-3 rounded-full bg-black/70 px-2.5 py-1 text-[10px] font-black uppercase tracking-wider text-white",children:"Sold out"})]}),p.jsx("p",{className:"mt-3 truncate font-bold",children:e.title}),p.jsx("p",{className:"truncate text-sm text-muted-foreground",children:e.artist?.display_name??e.artist?.handle??"MO STREAMS"}),p.jsxs("div",{className:"mt-3 flex items-center justify-between",children:[p.jsx("span",{className:"text-[11px] uppercase tracking-wider text-muted-foreground",children:e.trackCount>0?`${e.trackCount} track${e.trackCount===1?"":"s"}`:"Digital disc"}),p.jsxs("span",{className:"inline-flex items-center gap-1 font-black text-primary",children:[p.jsx(gi,{className:"h-3.5 w-3.5"})," ",mK(e.price_usd)]})]})]})}const gK=()=>$(()=>import("./store._handle-HrEYfMXe.js"),__vite__mapDeps([364,1,2,3,4,5,6,7,8,9,10,15,16,87,21,107,98,40,120])),yK=j("/store/$handle")({component:N(gK,"component"),head:({params:e})=>({meta:[{title:`${e.handle} · Merch Store · MO STREAMS`},{name:"description",content:`Shop official merch â T-shirts, hats, and more â from @${e.handle} on MO STREAMS.`},{property:"og:title",content:`@${e.handle} · Merch Store`},{property:"og:description",content:`Official merch from @${e.handle} on MO STREAMS.`}]})}),vK=()=>$(()=>import("./tip._handle-BluqGobI.js"),__vite__mapDeps([365,343,344,153,98])),bK=j("/tip/$handle")({head:({params:e})=>({meta:[{title:`Tip @${e.handle} â MO STREAMS`},{name:"description",content:`Send a tip to @${e.handle} straight to their MO STREAMS wallet.`},{property:"og:title",content:`Tip @${e.handle} on MO STREAMS`},{property:"og:description",content:`Show ${e.handle} some love â tips land instantly in their wallet.`}]}
170),component:N(vK,"component")}),_K=()=>$(()=>import("./tools.link-preview-D2zkpxpr.js"),__vite__mapDeps([366,9,211])),wK=j("/tools/link-preview")({head:()=>({meta:[{title:"Link Preview Debugger - MO STREAMS"},{name:"description",content:"Inspect the live Open Graph and Twitter card metadata crawlers see for any MO Streams URL."},{name:"robots",content:"noindex,nofollow"}]}),component:N(_K,"component")}),SK=()=>$(()=>import("./track-order._token-lExEcw66.js"),__vite__mapDeps([367,368])),xK=j("/track-order/$token")({component:N(SK,"component"),head:()=>({meta:[{title:"Track Your MO STREAMS Digital DISC Order"},{name:"description",content:"Look up the status of your MO STREAMS DIGITAL DISC order with your private tracking link."},{property:"og:title",content:"Track Your MO STREAMS Digital DISC Order"},{property:"og:description",content:"Check the status of your MO STREAMS DIGITAL DISC purchase."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]})}),RK=ke({method:"GET"}).handler(Oe("3b9eb805b9918abeec1cf14b823dbebc6a0f705950408effd6cd13d8f6cc7cc7")),EK=()=>$(()=>import("./track._id-DfOdIQXB.js"),__vite__mapDeps([369,111,12,112,87,113,114,115,116,117,57,56,77,118,119,120,121,122,123,124,47,125,126,127,72,70,6,128,129,2,3,4,5,10,130,82,131,132,133,98,134,93,43,86,92])),AK=()=>$(()=>import("./track._id-BDVZVyOu.js"),[]),TK=()=>$(()=>import("./track._id-C0dyZrPR.js"),[]),kK=e=>({queryKey:["public-track",e],queryFn:()=>RK({data:{id:e}})}),CK=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,OK=j("/track/$id")({loader:async({context:e,params:t})=>{if(!CK.test(t.id))throw zr();const[n,r]=await Promise.all([e.queryClient.ensureQueryData(kK(t.id)),hh()]);if(!n.track)throw zr();return{...n,origin:r}},head:({loaderData:e})=>{const t=e?.track,n=e?.origin??"https://mostreams.com",r=t?`${t.title} Song`:"Track â MO STREAMS",s=r,i="Mo Streams Music & Video Distribution Platform",l=t?`${n}/track/${t.id}`:`${n}/track`,d=t?.cover_url?String(t.cover_url).startsWith("http")?String(t.cover_url):`${n}${t.cover_url}`:null,h=ha.url.startsWith("http")?ha.url:`${n}${ha.url}`,f=d??h;return{meta:[{title:r},{name:"description",content:i},{property:"og:title",content:s},{property:"og:description",content:i},{property:"og:type",content:"music.song"},{property:"og:url",content:l},{property:"og:image",content:f},{property:"og:image:secure_url",content:f},{property:"og:image:width",content:"1200"},{property:"og:image:height",content:"1200"},{property:"og:image:alt",content:`${t?.title??"MO STREAMS"} cover art`},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:s},{name:"twitter:description",content:i},{name:"twitter:image",content:f}],links:[{rel:"canonical",href:l}]}},notFoundComponent:N(TK,"notFoundComponent"),errorComponent:N(AK,"errorComponent"),component:N(EK,"component")}),$K=()=>$(()=>import("./verify._hash-5AcsGJWl.js"),__vite__mapDeps([370,101,102,103,257,68,3,104,371,41,158,58,220,221,222,372,373,72,374])),MK=j("/verify/$hash")({head:()=>({meta:[{title:"Verify Certificate · MO STREAMS Digital DISC Ownership | MO STREAMS"},{name:"description",content:"Verify a MO STREAMS MO STREAMS Digital DISC certificate: serial number, current owner and full resale royalty history."},{property:"og:title",content:"Verify a MO STREAMS Digital DISC certificate"},{property:"og:description",content:"Public proof of ownership: serial, owner and resale royalties paid to the artist."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:N($K,"component")}),NK=j("/video/$videoId")({beforeLoad:({params:e})=>{throw Nt({to:"/watch/$videoId",params:{videoId:e.videoId},replace:!0})}}),jK=ke({method:"POST"}).handler(Oe("4409b974c9609f3c164689307a781b49c65118d47942ce0d9898aae2753e1dc4")),PK=()=>$(()=>import("./watch._videoId-DV55yKer.js"),[]),DK=()=>$(()=>import("./watch._videoId-CK7OELqu.js"),[]),IK=()=>$(()=>import("./watch._videoId-DRRp4mwc.js"),__vite__mapDeps([375,1,2,3,4,5,6,7,15,16,8,9,10,114,56,57,200,69,376,113,74,377,128,378,322,121,122,77,310,145,43,17,83,13,3
17008,129,130,269,133,317,318,319,123,124,47,125,87,117,118,119,120,171,295,208,296,153,131,139,70])),LK=j("/watch/$videoId")({component:N(IK,"component"),validateSearch:e=>({key:typeof e.key=="string"?e.key:void 0}),loader:async({params:e,context:t})=>{const[n,r]=await Promise.all([jK({data:{videoId:e.videoId,token:null,viewerId:null}}),hh()]);return{...n,origin:r}},head:({loaderData:e})=>{const t=e?.video;e?.channel;const n=e?.origin??"https://mostreams.com",r=t?`${t.title} Music Video`:"Watch · MO STREAMS",s="Mo Streams Music & Video Distribution Platform",i=t?`${n}/watch/${t.id}`:`${n}/watch`,l=t?`${n}/api/public/og/video/${t.id}`:`${n}/og-image.png`;return{meta:[{title:r},{name:"description",content:s},{property:"og:title",content:r},{property:"og:description",content:s},{property:"og:type",content:"video.other"},{property:"og:url",content:i},{property:"og:image",content:l},{property:"og:image:secure_url",content:l},{property:"og:image:width",content:"1200"},{property:"og:image:height",content:"630"},{property:"og:image:alt",content:t?.title?`${t.title} video thumbnail`:"MO STREAMS video"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:r},{name:"twitter:description",content:s},{name:"twitter:image",content:l}],links:[{rel:"canonical",href:i}]}},errorComponent:N(DK,"errorComponent"),notFoundComponent:N(PK,"notFoundComponent")}),zK=()=>qe.auth.oauth,BK=()=>$(()=>import("./_._lovable.oauth.consent-e7XVn8H3.js"),[]),UK=()=>$(()=>import("./_._lovable.oauth.consent-IVWF02lY.js"),[]),VK=j("/.lovable/oauth/consent")({validateSearch:e=>({authorization_id:typeof e.authorization_id=="string"?e.authorization_id:""}),beforeLoad:async({search:e,location:t})=>{if(!e.authorization_id)throw new Error("Missing authorization_id");const{data:n}=await qe.auth.getSession(),r=t.pathname+t.searchStr;if(!n.session)throw Nt({to:"/login",search:{redirect:r}})},loader:async({location:e})=>{const t=new URLSearchParams(e.search).get("authorization_id"),{data:n,error:r}=await zK().getAuthorizationDetails(t);if(r)throw r;const s=n?.redirect_url??n?.redirect_to;if(s&&!n?.client)throw Nt({href:s});return n},head:()=>({meta:[{title:"Authorize app â MO STREAMS"},{name:"description",content:"Approve or deny an app requesting access to your MO STREAMS account."},{property:"og:title",content:"Authorize app â MO STREAMS"},{property:"og:description",content:"Approve or deny an app requesting access to your MO STREAMS account."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"robots",content:"noindex"}]}),component:N(UK,"component"),errorComponent:N(BK,"errorComponent")}),FK=()=>$(()=>import("./account.privacy-Do9g2-42.js"),[]),qK=j("/_authenticated/account/privacy")({component:N(FK,"component")}),HK=()=>$(()=>import("./advertiser.apply-D6biZpEu.js"),__vite__mapDeps([379,21])),GK=j("/_authenticated/advertiser/apply")({component:N(HK,"component")}),KK=()=>$(()=>import("./advertiser.campaigns-MyasOTwg.js"),__vite__mapDeps([380,40])),ZK=j("/_authenticated/advertiser/campaigns")({component:N(KK,"component")}),WK=()=>$(()=>import("./advertiser.dashboard-DuNbrySW.js"),__vite__mapDeps([381,159,13,145,40])),YK=j("/_authenticated/advertiser/dashboard")({component:N(WK,"component")}),JK=()=>$(()=>import("./advertiser.reports-E4XRWaL9.js"),__vite__mapDeps([382,172,162,13,339])),QK=j("/_authenticated/advertiser/reports")({component:N(JK,"component")}),XK=()=>$(()=>import("./billing.verify-BfEGq2Nb.js"),__vite__mapDeps([383,211])),eZ=hy({sub:dg().uuid(),gw:dg().default("stripe"),amt:CA().int().default(0)}),tZ=j("/_authenticated/billing/verify")({validateSearch:e=>eZ.parse(e),component:N(XK,"component")}),nZ=()=>$(()=>import("./channel.settings-X8BJ8GNM.js"),__vite__mapDeps([384,305,258])),rZ=j("/_authenticated/channel/settings")({component:N(nZ,"component")}),oZ=()=>$(()=>import("./curator.inbox-BZy2nvZH.js"),[]),aZ=()=>$(()=>import("./curator.inbox-DAUMAQhr.js"),[]),sZ=()=>$(()=>import("./curator.inbox-Raft8xyA.js"),[]),iZ=j("/_authenticated/curator/inbox")({head:()=>({meta:[{title:"Radio Curator Inbox â MO Streams"}]}
170),component:N(sZ,"component"),errorComponent:N(aZ,"errorComponent"),notFoundComponent:N(oZ,"notFoundComponent")}),cZ=()=>$(()=>import("./dashboard.backers-DP4qlNnH.js"),__vite__mapDeps([385,58])),lZ=j("/_authenticated/dashboard/backers")({head:()=>({meta:[{title:"Fan Backing â Backers & Payouts · MO STREAMS"},{name:"description",content:"See who backed your releases, what they paid, and control early access, support tiers and the fan revenue-share pool."},{property:"og:title",content:"Fan Backing · MO STREAMS"},{property:"og:description",content:"Manage fan backing for every release: early access, support tiers and revenue share."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]}),component:N(cZ,"component")}),uZ=()=>$(()=>import("./dashboard.channel-monetization-wZMNypJ5.js"),__vite__mapDeps([386,318,130,120])),dZ=j("/_authenticated/dashboard/channel-monetization")({component:N(uZ,"component")}),hZ=()=>$(()=>import("./dashboard.collectibles-CMteb8m0.js"),__vite__mapDeps([387,87,324,40,120,258,173,327,17,352,325,44,98,70,6])),fZ=j("/_authenticated/dashboard/collectibles")({component:N(hZ,"component")}),pZ=()=>$(()=>import("./dashboard.disc-build-pyhUVOEp.js"),__vite__mapDeps([388,389,239,103,258,237,162])),mZ=j("/_authenticated/dashboard/disc-build")({head:()=>({meta:[{title:"Build Your Disc â MO STREAMS Digital DISC"},{name:"description",content:"Design your own MO STREAMS Digital DISC booklet: your story, your photos, your songs, booking and video links â then send it to be printed."},{property:"og:title",content:"Build Your Disc â MO STREAMS Digital DISC"},{property:"og:description",content:"Your story, photos, songs, booking and video â laid out on the standard MO STREAMS Digital DISC."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:N(pZ,"component")}),gZ=()=>$(()=>import("./dashboard.disc-orders-CEOmlvVX.js"),__vite__mapDeps([390,368])),yZ=j("/_authenticated/dashboard/disc-orders")({component:N(gZ,"component"),head:()=>({meta:[{title:"Disc Orders â MO STREAMS Back Office"},{name:"description",content:"Every MO STREAMS DIGITAL DISC order: your purchases and the sales fans placed on your discs."},{property:"og:title",content:"Disc Orders â MO STREAMS Back Office"},{property:"og:description",content:"Track MO STREAMS DIGITAL DISC purchases and sales in one place."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]})}),vZ=()=>$(()=>import("./dashboard.disc-pressing-DhKrYBKk.js"),__vite__mapDeps([391,174,98,176])),bZ=j("/_authenticated/dashboard/disc-pressing")({head:()=>({meta:[{title:"Press MO STREAMS Digital DISC â Back Office"},{name:"description",content:"Order in-house pressed MO STREAMS Digital DISC cards with your cover art and one-time redeem codes to hand out at shows."},{property:"og:title",content:"Press MO STREAMS Digital DISC â Back Office"},{property:"og:description",content:"Pick a pressing plan, we print your cover art and redeem codes, you hand them out at shows."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:N(vZ,"component")}),_Z=()=>$(()=>import("./dashboard.disc-studio-lJpT_Fmi.js"),[]),wZ=j("/_authenticated/dashboard/disc-studio")({component:N(_Z,"component")}),SZ=()=>$(()=>import("./dashboard.gallery-DohppmUg.js"),__vite__mapDeps([392,98,393,120,237])),xZ=j("/_authenticated/dashboard/gallery")({component:N(SZ,"component"),head:()=>({meta:[{title:"My Gallery · MO STREAMS"},{name:"description",content:"Upload and manage the photos that appear on your profile gallery."}]})}),RZ=()=>$(()=>import("./dashboard.geo-m6-9zTMs.js"),__vite__mapDeps([394,172,131,13])),EZ=j("/_authenticated/dashboard/geo")({component:N(RZ,"component")}),AZ=()=>$(()=>import("./dashboard.import-track-DWurQHG7.js"),__vite__mapDeps([395,256,21,396,98,130,327])),TZ=j("/_authenticated/dashboard/import-track")({component:N(AZ,"component"),head:()=>({meta:[{title:"Import a track · Mo Streams"}]})}),kZ=()=>$(()=>import("./dashboard.import-video-DU_8eEdL.js"),__vite__mapDeps([397,112,396,241,21,98,134,398,258])),CZ=j("/_authenticated/dashboard/import-video")({component:N(kZ,"component"),head:()=>({meta:[{title:"Import a video · Mo Streams"}]})}),OZ=j("/_authenticated/dashboard/limited-editions")({beforeLoad:()=>{throw Nt({to:"/dashboard/modiscs",replace:!0})}}),$Z=()=>$(()=>import("./dashboard.live-replays-BDj0ypFe.js"),__vite__mapDeps([399,345,238,144,74,120])),MZ=j("/_authenticated/dashboard/live-replays")({component:N($Z,"component"),head:()=>({meta:[{title:"Live Replays · MO STREAMS"},{name:"description",content:"Rewatch every live stream and music review you have hosted on MO STREAMS."},{property:"og:title",content:"Live Replays · MO STREAMS"},{property:"og:description",content:"Your saved live streams and reviews, ready to rewatch and share."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]})}),NZ=()=>$(()=>import("./dashboard.mc-60e9ca6cf6-UiFX-THI.js"),[]),jZ=j("/_authenticated/dashboard/mc-60e9ca6cf6")({component:N(NZ,"component")}),PZ=()=>$(()=>import("./dashboard.merch-D7BiqYRr.js"),__vite__mapDeps([400,87,21,98,145,40,398,166,12
1700])),DZ=j("/_authenticated/dashboard/merch")({component:N(PZ,"component"),head:()=>({meta:[{title:"Merch Store · MO STREAMS"}]})}),IZ=()=>$(()=>import("./dashboard.modiscs-BFz1_aAx.js"),[]),LZ=j("/_authenticated/dashboard/modiscs")({component:N(IZ,"component")}),zZ=()=>$(()=>import("./dashboard.music-library-C0FrC5g5.js"),[]),BZ=j("/_authenticated/dashboard/music-library")({component:N(zZ,"component")}),UZ=()=>$(()=>import("./dashboard.my-channel-B0-Z7XoY.js"),[]),VZ=j("/_authenticated/dashboard/my-channel")({component:N(UZ,"component")}),FZ=()=>$(()=>import("./dashboard.profile-BqJE_IlP.js"),__vite__mapDeps([401,402,403,120,13,105,130,145,98,321])),qZ=j("/_authenticated/dashboard/profile")({component:N(FZ,"component")}),HZ=()=>$(()=>import("./dashboard.seo-DVVSolQK.js"),__vite__mapDeps([404,172,9,145,58,300,130,13,44])),GZ=j("/_authenticated/dashboard/seo")({component:N(HZ,"component"),head:()=>({meta:[{title:"SEO Back Office â MO STREAMS"},{name:"description",content:"Auto-generate keywords, push to Google, and watch a live worldwide click map for every MO STREAMS page."}]})}),KZ=()=>$(()=>import("./dashboard.shorts-qC-FIBL0.js"),__vite__mapDeps([405,98,120])),ZZ=j("/_authenticated/dashboard/shorts")({component:N(KZ,"component")}),WZ=()=>$(()=>import("./dashboard.social-dMDfa0TV.js"),__vite__mapDeps([406,211,243,223])),YZ=j("/_authenticated/dashboard/social")({head:()=>({meta:[{title:"Social insights â MO STREAMS"}]}),component:N(WZ,"component")}),JZ=()=>$(()=>import("./dashboard.sound-chart-VvcH4wbC.js"),__vite__mapDeps([407,9,408,409,212,13])),QZ=j("/_authenticated/dashboard/sound-chart")({component:N(JZ,"component"),head:()=>({meta:[{title:"Sound Chart â MO STREAMS Back Office"},{name:"description",content:"Track MO STREAMS Digital DISC unit sales over time: online purchases, redeemed physical discs, top cities and top collectors."},{property:"og:title",content:"Sound Chart â MO STREAMS Back Office"},{property:"og:description",content:"Unit sales, downloads and collector insights for your MO STREAMS Digital DISC releases."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]})}),XZ=()=>$(()=>import("./dashboard.uploads-D9Iej-UB.js"),__vite__mapDeps([410,98,327])),eW=j("/_authenticated/dashboard/uploads")({component:N(XZ,"component")}),tW=()=>$(()=>import("./dj.crate-DA0s-r4R.js"),__vite__mapDeps([411,40])),nW=j("/_authenticated/dj/crate")({component:N(tW,"component")}),rW=()=>$(()=>import("./marketplace._id-C2Y_Wvvv.js"),__vite__mapDeps([412,413,308,129,2,3,4,5,77,10,130,344,153,98,38])),oW=j("/_authenticated/marketplace/$id")({component:N(rW,"component")}),aW=()=>$(()=>import("./marketplace.upload-DQUijwnX.js"),__vite__mapDeps([414,21,258,327,40])),sW=j("/_authenticated/marketplace/upload")({component:N(aW,"component")}),iW=()=>$(()=>import("./mc-60e9ca6cf6.index-CTOiRtVo.js"),__vite__mapDeps([415,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,418,319,260])),cW=j("/_authenticated/mc-60e9ca6cf6/")({component:N(iW,"component")}),jce=ke({method:"GET"}).middleware([ze]).handler(Oe("1baef04418a5232ed2936e6a273e03274c6f78a6b381a5942c2ffb75f335c6d7")),Pce=ke({method:"POST"}).middleware([ze]).handler(Oe("d8f9a8d42d3c72016e879df7c5290307b66ebe94a2df9df31d177d99a94062d7")),Dce=ke({method:"GET"}).middleware([ze]).handler(Oe("c9aeee02e1b8eec61ba2ff38a2bb2416caef0f4d15b65454fcdce33d83e9c6e1")),Ice=ke({method:"POST"}).middleware([ze]).handler(Oe("e88ad112c44440a9682e4b7087f3d0841456f5cdb74f9f4ef4fa14feac6e4f78")),Lce=ke({method:"POST"}).middleware([ze]).handler(Oe("f02343ee039c07c505389508cfbee9e8ec459bd99d67a521caf3828a90f93425")),zce=ke({method:"POST"}).middleware([ze]).handler(Oe("b87497ca2e3815d3b9980bff42d3b93097ff6eb3123b77ddc555b4f1e6817b33")),Bce=ke({method:"POST"}).middleware([ze]).handler(Oe("cc71beaa94f040d5b8e4f38f1f82c3e69adc2045831dbb46ee4b1f42896aa8f2")),Uce=ke({method:"POST"}).middleware([ze]).handler(Oe("2fb603198ce33eb245c1e8b999a7bf5defd76c845f63cee60c05606d1dbc02c1")),Vce=ke({method:"POST"}).middleware([ze]).handler(Oe("0cfa4083adf38e04b41bc41f0a90fc3e438bb9b7b6cc425b0b9d01f4e1f05117")),Fce=ke({method:"POST"}).middleware([ze]).handler(Oe("155f8ba95caf4ac6ec28da1de12ab49130618ac78172fce61a33130170897fcc")),lW=()=>$(()=>import("./mc-60e9ca6cf6.account-approvals-Cz3z3R3C.js"),__vite__mapDeps([419,26,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,189,5,3,223])),uW=j("/_authenticated/mc-60e9ca6cf6/account-approvals")({component:N(lW,"component")}),dW=()=>$(()=>import("./mc-60e9ca6cf6.ad-inquiries-DBDBpz1l.js"),__vite__mapDeps([420,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,421,10,7,233,212])),hW=j("/_authenticated/mc-60e9ca6cf6/ad-inquiries")({component:N(dW,"component")}),fW=()=>$(()=>import("./mc-60e9ca6cf6.ad-partners-DJgHl78V.js"),__vite__mapDeps([422,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,421,40,141,166,120])),pW=j("/_authenticated/mc-60e9ca6cf6/ad-partners")({component:N(fW,"component")}),mW=()=>$(()=>import("./mc-60e9ca6cf6.ad-pricing-DsB5Oqhd.js"),__vite__mapDeps([423,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,421,301,40,226,120])),gW=j("/_authenticated/mc-60e9ca6cf6/ad-pricing")({component:N(mW,"component")}),yW=()=>$(()=>import("./mc-60e9ca6cf6.ads-analytics-BYV-5NPQ.js"),__vite__mapDeps([424,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,421,145,220,221,222,372,58,289])),vW=j("/_authenticated/mc-60e9ca6cf6/ads-analytics")({component:N(yW,"component")}),bW=()=>$(()=>import("./mc-60e9ca6cf6.affiliate-ads-DKPEZXeF.js"),__vite__mapDeps([425,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,421,40,352,120])),_W=j("/_authenticated/mc-60e9ca6cf6/affiliate-ads")({component:N(bW,"component")}),wW=()=>$(()=>import("./mc-60e9ca6cf6.ai-disclosures-CAl-fKnv.js"),__vite__mapDeps([426,427,211,223])),SW=j("/_authenticated/mc-60e9ca6cf6/ai-disclosures")({component:N(wW,"component"),head:()=>({meta:[{title:"AI Content Disclosures"}]})}),xW=()=>$(()=>import("./mc-60e9ca6cf6.analytics-NJ4ef5s3.js"),__vite__mapDeps([428,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,204,421,145])),RW=j("/_authenticated/mc-60e9ca6cf6/analytics")({component:N(xW,"component")}),EW=()=>$(()=>import("./mc-60e9ca6cf6.approvals-DK7f0EqA.js"),__vite__mapDeps([429,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,255])),AW=j("/_authenticated/mc-60e9ca6cf6/approvals")({component:N(EW,"component")}),TW=()=>$(()=>import("./mc-60e9ca6cf6.audio-ads-D0MuuUuf.js"),__vite__mapDeps([430,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,421,226])),kW=j("/_authenticated/mc-60e9ca6cf6/audio-ads")({component:N(TW,"component")}),CW=()=>$(()=>import("./mc-60e9ca6cf6.booking-deposits-pxhJvVj9.js"),__vite__mapDeps([431,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,50,314,213,83,13,10,196,212])),OW=j("/_authenticated/mc-60e9ca6cf6/booking-deposits")({component:N(CW,"component")}),$W=()=>$(()=>import("./mc-60e9ca6cf6.booking-questions-D2BZlm6r.js"),__vite__mapDeps([432,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,433,26,7])),MW=j("/_authenticated/mc-60e9ca6cf6/booking-questions")({component:N($W,"component")}),NW=()=>$(()=>import("./mc-60e9ca6cf6.booking-requests-BGIryH3C.js"),__vite__mapDeps([434,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,50,297,9,10,196,83,13,212])),jW=j("/_authenticated/mc-60e9ca6cf6/booking-requests")({component:N(NW,"component")}),PW=()=>$(()=>import("./mc-60e9ca6cf6.booking-wallet-Bipkrz6O.js"),__vite__mapDeps([435,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,9,50,297,6])),DW=j("/_authenticated/mc-60e9ca6cf6/booking-wallet")({component:N(PW,"component")}),IW=()=>$(()=>import("./mc-60e9ca6cf6.boost-DL8RIlBO.js"),__vite__mapDeps([436,26,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,122])),LW=j("/_authenticated/mc-60e9ca6cf6/boost")({component:N(IW,"component")}),zW=()=>$(()=>import("./mc-60e9ca6cf6.catalog-import-C0h_O6eC.js"),__vite__mapDeps([437,26,211,50,9,223,421])),BW=j("/_authenticated/mc-60e9ca6cf6/catalog-import")({component:N(zW,"component"),head:()=>({meta:[{title:"Catalog Import"}]})}),UW=()=>$(()=>import("./mc-60e9ca6cf6.cohorts-BKh4ZUl7.js"),__vite__mapDeps([438,427,211,421])),VW=j("/_authenticated/mc-60e9ca6cf6/cohorts")({component:N(UW,"component"),head:()=>({meta:[{title:"Cohorts & Forecasts"}]})}),FW=()=>$(()=>import("./mc-60e9ca6cf6.collectibles-BFRBNCWV.js"),__vite__mapDeps([439,98])),qW=j("/_authenticated/mc-60e9ca6cf6/collectibles")({component:N(FW,"component")}),HW=()=>$(()=>import("./mc-60e9ca6cf6.comments-B63nZMf3.js"),__vite__mapDeps([440,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,117,87,57,56,118,119,120,121,122])),GW=j("/_authenticated/mc-60e9ca6cf6/comments")({component:N(HW,"component")}),KW=()=>$(()=>import("./mc-60e9ca6cf6.content-BdfBrGzQ.js"),__vite__mapDeps([441,442,194,120,226])),ZW=j("/_authenticated/mc-60e9ca6cf6/content")({component:N(KW,"component")}),WW=()=>$(()=>import("./mc-60e9ca6cf6.create-account-BYGKK3R-.js"),__vite__mapDeps([443,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,403,359])),YW=j("/_authenticated/mc-60e9ca6cf6/create-account")({component:N(WW,"component")}),JW=()=>$(()=>import("./mc-60e9ca6cf6.data-warehouse-D29hzbSM.js"),__vite__mapDeps([444,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,245])),QW=j("/_authenticated/mc-60e9ca6cf6/data-warehouse")({component:N(JW,"component")}),XW=()=>$(()=>import("./mc-60e9ca6cf6.ddex-M5sp4Z7Q.js"),__vite__mapDeps([445,26,211,9,51,50,282,223,421])),eY=j("/_authenticated/mc-60e9ca6cf6/ddex")({component:N(XW,"component")}),tY=()=>$(()=>import("./mc-60e9ca6cf6.debug-traces-CXksH9aJ.js"),__vite__mapDeps([446,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,332,120,263])),nY=j("/_authenticated/mc-60e9ca6cf6/debug-traces")({component:N(tY,"component"),head:()=>({meta:[{title:"Debug Traces â Admin"}]})}),rY=()=>$(()=>import("./mc-60e9ca6cf6.demo-sessions-B899eNHh.js"),__vite__mapDeps([447,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,71,211,223])),oY=j("/_authenticated/mc-60e9ca6cf6/demo-se
170ssions")({component:N(rY,"component"),head:()=>({meta:[{title:"Demo Sessions"}]})}),aY=()=>$(()=>import("./mc-60e9ca6cf6.disc-code-units-BP3Zxc4e.js"),__vite__mapDeps([448,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,161,162])),sY=j("/_authenticated/mc-60e9ca6cf6/disc-code-units")({component:N(aY,"component"),head:()=>({meta:[{title:"Disc Code Units · MO STREAMS Admin"},{name:"description",content:"Per-redeem-code download units for every MO STREAMS Digital DISC artist."}]})}),iY=()=>$(()=>import("./mc-60e9ca6cf6.drm-DeQieSMw.js"),__vite__mapDeps([449,26,211,9,51,67,68,3,4,69,6,70,223])),cY=j("/_authenticated/mc-60e9ca6cf6/drm")({component:N(iY,"component"),head:()=>({meta:[{title:"DRM Key Management"}]})}),lY=()=>$(()=>import("./mc-60e9ca6cf6.engagement-Dy0IiZog.js"),__vite__mapDeps([450,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,421,220,221,373,372])),uY=j("/_authenticated/mc-60e9ca6cf6/engagement")({component:N(lY,"component")}),dY=()=>$(()=>import("./mc-60e9ca6cf6.escrow-disputes-zIFqaMCw.js"),__vite__mapDeps([451,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,223,452])),hY=j("/_authenticated/mc-60e9ca6cf6/escrow-disputes")({component:N(dY,"component")}),fY=()=>$(()=>import("./mc-60e9ca6cf6.featured-beats-C0sDZIOU.js"),__vite__mapDeps([453,38])),pY=j("/_authenticated/mc-60e9ca6cf6/featured-beats")({component:N(fY,"component")}),mY=()=>$(()=>import("./mc-60e9ca6cf6.fingerprints-CSZ4EDw3.js"),__vite__mapDeps([454,26,211,223])),gY=j("/_authenticated/mc-60e9ca6cf6/fingerprints")({component:N(mY,"component"),head:()=>({meta:[{title:"Audio Fingerprint Matches"}]})}),yY=()=>$(()=>import("./mc-60e9ca6cf6.flags-BP7IC0wP.js"),__vite__mapDeps([455,427,211,223,421])),vY=j("/_authenticated/mc-60e9ca6cf6/flags")({component:N(yY,"component"),head:()=>({meta:[{title:"Content Flags"}]})}),bY=()=>$(()=>import("./mc-60e9ca6cf6.form-submissions-BYazNt_y.js"),__vite__mapDeps([456,9,223])),_Y=j("/_authenticated/mc-60e9ca6cf6/form-submissions")({component:N(bY,"component")}),wY=()=>$(()=>import("./mc-60e9ca6cf6.giveaway-codes-AdM8pEyu.js"),__vite__mapDeps([457,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,209,352,120,16])),SY=j("/_authenticated/mc-60e9ca6cf6/giveaway-codes")({component:N(wY,"component")}),xY=()=>$(()=>import("./mc-60e9ca6cf6.growth-DJfqqLiI.js"),__vite__mapDeps([458,26,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,10,13])),RY=j("/_authenticated/mc-60e9ca6cf6/growth")({component:N(xY,"component")}),EY=()=>$(()=>import("./mc-60e9ca6cf6.infra-DPJmLMep.js"),__vite__mapDeps([459,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,130,7,421,152])),AY=j("/_authenticated/mc-60e9ca6cf6/infra")({component:N(EY,"component")}),TY=()=>$(()=>import("./mc-60e9ca6cf6.investor-report-J0dxzWwV.js"),__vite__mapDeps([460,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,211,145,220,221,222,372,173])),kY=j("/_authenticated/mc-60e9ca6cf6/investor-report")({component:N(TY,"component"),head:()=>({meta:[{title:"Investor Report · MO STREAMS Back Office"},{name:"description",content:"Platform traffic, members, geography and revenue in one exportable investor pack."},{name:"robots",content:"noindex"}]})}),CY=()=>$(()=>import("./mc-60e9ca6cf6.kyc-DkNZLSGs.js"),__vite__mapDeps([461,145,374])),OY=j("/_authenticated/mc-60e9ca6cf6/kyc")({component:N(CY,"component")}),$Y=()=>$(()=>import("./mc-60e9ca6cf6.local-pay-7OsXceTi.js"),__vite__mapDeps([462,211,223,421])),MY=j("/_authenticated/mc-60e9ca6cf6/local-pay")({component:N($Y,"component"),head:()=>({meta:[{title:"Local Payment Methods"}]})}),NY=()=>$(()=>import("./mc-60e9ca6cf6.luminate-BHqCezw6.js"),__vite__mapDeps([463,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,9,409])),jY=j("/_authenticated/mc-60e9ca6cf6/luminate")({component:N(NY,"component"),head:()=>({meta:[{title:"Luminate Reporting · Admin | MO STREAMS"},{name:"description",content:"Build and submit weekly Luminate unit reports for MO STREAMS Digital DISC sales, with clean and explicit versions merged into one chart line."},{property:"og:title",content:"Luminate Reporting · Admin"},{property:"og:description",content:"Weekly chart unit reporting for MO STREAMS Digital DISC sales."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]})}),PY=()=>$(()=>import("./mc-60e9ca6cf6.master-vault-CQ5g6Obj.js"),__vite__mapDeps([464,421,223])),DY=j("/_authenticated/mc-60e9ca6cf6/master-vault")({component:N(PY,"component"),head:()=>({meta:[{title:"Master Vault · Distribution Archive"},{name:"description",content:"Every high-quality master, artwork and video creators upload, mirrored for distribution."},{property:"og:title",content:"Master Vault · Distribution Archive"},{property:"og:description",content:"Back-office archive of creator master assets ready for distribution."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]})}),IY=()=>$(()=>import("./mc-60e9ca6cf6.merch-review-CPpu8R-P.js"),__vite__mapDeps([465,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41])),LY=j("/_authenticated/mc-60e9ca6cf6/merch-review")({component:N(IY,"component"),head:()=>({meta:[{title:"Merch Review · MO STREAMS Admin"},{name:"description",content:"Approve or reject artist and label merch before it goes live in the Mo Streams merch store."},{property:"og:title",content:"Merch Review · MO STREAMS Admin"},{property:"og:description",content:"Back-office review queue for artist and label merch drops."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"}]})}),zY=()=>$(()=>import("./mc-60e9ca6cf6.messages-YIqqWEES.js"),__vite__mapDeps([466,223,9,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,87,268,120])),BY=j("/_authenticated/mc-60e9ca6cf6/messages")({component:N(zY,"component")}
170),UY=()=>$(()=>import("./mc-60e9ca6cf6.moderation-DZ5F_L2H.js"),__vite__mapDeps([467,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,403,421,260,120,124])),VY=j("/_authenticated/mc-60e9ca6cf6/moderation")({component:N(UY,"component")}),FY=()=>$(()=>import("./mc-60e9ca6cf6.money-zEW1KMHC.js"),__vite__mapDeps([468,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,421,17])),qY=j("/_authenticated/mc-60e9ca6cf6/money")({component:N(FY,"component")}),HY=()=>$(()=>import("./mc-60e9ca6cf6.music-upload-BEhdLzJH.js"),[]),GY=()=>$(()=>import("./mc-60e9ca6cf6.music-upload-CQe6YaMU.js"),[]),KY=()=>$(()=>import("./mc-60e9ca6cf6.music-upload-BHSeX-WO.js"),__vite__mapDeps([469,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,98,258])),ZY=j("/_authenticated/mc-60e9ca6cf6/music-upload")({head:()=>({meta:[{title:"Quick music upload â MO Streams admin"}]}),component:N(KY,"component"),errorComponent:N(GY,"errorComponent"),notFoundComponent:N(HY,"notFoundComponent")}),WY=()=>$(()=>import("./mc-60e9ca6cf6.paid-gig-roster-Bhm8-Fd0.js"),__vite__mapDeps([470,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,50,49,10,196,155,83])),YY=j("/_authenticated/mc-60e9ca6cf6/paid-gig-roster")({component:N(WY,"component")}),JY=()=>$(()=>import("./mc-60e9ca6cf6.payment-gateways-Cvr36Hxt.js"),__vite__mapDeps([471,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,208,298,153])),QY=j("/_authenticated/mc-60e9ca6cf6/payment-gateways")({component:N(JY,"component")}),XY=()=>$(()=>import("./mc-60e9ca6cf6.paypal-D-Au24Jx.js"),__vite__mapDeps([472,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,211,296,212])),eJ=j("/_authenticated/mc-60e9ca6cf6/paypal")({component:N(XY,"component")}),tJ=()=>$(()=>import("./mc-60e9ca6cf6.people-VIeNYFQe.js"),__vite__mapDeps([473,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,403,50,9,124,260,226,26,223,120,10])),nJ=j("/_authenticated/mc-60e9ca6cf6/people")({component:N(tJ,"component")}),rJ=()=>$(()=>import("./mc-60e9ca6cf6.qc-NUw7Et8l.js"),__vite__mapDeps([474,211,223])),oJ=j("/_authenticated/mc-60e9ca6cf6/qc")({component:N(rJ,"component"),head:()=>({meta:[{title:"Asset QC Reports"}]})}),aJ=()=>$(()=>import("./mc-60e9ca6cf6.quick-ads-DAYFBYN1.js"),__vite__mapDeps([475,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,421,130])),sJ=j("/_authenticated/mc-60e9ca6cf6/quick-ads")({validateSearch:e=>({partner:typeof e.partner=="string"?e.partner:void 0}),component:N(aJ,"component")}),iJ=()=>$(()=>import("./mc-60e9ca6cf6.reaction-live-DQEG3y_q.js"),__vite__mapDeps([476,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,236,237,238,145,16,124,239,162,38,118,44,240,43,227,114,115,241,242,210,130,155])),cJ=j("/_authenticated/mc-60e9ca6cf6/reaction-live")({component:N(iJ,"component")}),lJ=()=>$(()=>import("./mc-60e9ca6cf6.reconciliation-BQG9r6AZ.js"),__vite__mapDeps([477,26,211,282,223,421])),uJ=j("/_authenticated/mc-60e9ca6cf6/reconciliation")({component:N(lJ,"component")}),dJ=()=>$(()=>import("./mc-60e9ca6cf6.rights-D6Eb-ome.js"),__vite__mapDeps([478,40])),hJ=j("/_authenticated/mc-60e9ca6cf6/rights")({component:N(dJ,"component")}),fJ=()=>$(()=>import("./mc-60e9ca6cf6.royalties-CG9c8nTq.js"),__vite__mapDeps([479,211,282,421])),pJ=j("/_authenticated/mc-60e9ca6cf6/royalties")({component:N(fJ,"component")}),mJ=()=>$(()=>import("./mc-60e9ca6cf6.royalty-admin-C8ujv4H8.js"),__vite__mapDeps([480,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,9,50,139,145,226])),gJ=j("/_authenticated/mc-60e9ca6cf6/royalty-admin")({component:N(mJ,"component")}),yJ=()=>$(()=>import("./mc-60e9ca6cf6.security-BaSh_L0O.js"),__vite__mapDeps([481,26,348,421,13,124,260,139,120,145])),vJ=j("/_authenticated/mc-60e9ca6cf6/security")({component:N(yJ,"component"),head:()=>({meta:[{title:"Security â Mission Control"}]})}),bJ=()=>$(()=>import("./mc-60e9ca6cf6.security-log-BMaff5o9.js"),__vite__mapDeps([482,427,211,223,421])),_J=j("/_authenticated/mc-60e9ca6cf6/security-log")({component:N(bJ,"component"),head:()=>({meta:[{title:"Security & Audit Log"}]})}),wJ=()=>$(()=>import("./mc-60e9ca6cf6.seo-JsRWKHVy.js"),__vite__mapDeps([483,26,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,58,44,226,40])),SJ=j("/_authenticated/mc-60e9ca6cf6/seo")({component:N(wJ,"component")}),xJ=()=>$(()=>import("./mc-60e9ca6cf6.settings-CG3c0MUi.js"),__vite__mapDeps([484,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,10])),RJ=j("/_authenticated/mc-60e9ca6cf6/settings")({component:N(xJ,"component")}),EJ=()=>$(()=>import("./mc-60e9ca6cf6.social-usage-BQpZJk_z.js"),__vite__mapDeps([485,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,206,26,9,145,7,120,40])),AJ=j("/_authenticated/mc-60e9ca6cf6/social-usage")({component:N(EJ,"component")}),TJ=()=>$(()=>
170import("./mc-60e9ca6cf6.storage-CpbeGXJK.js"),__vite__mapDeps([486,26,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,226,152,153,139,145])),kJ=j("/_authenticated/mc-60e9ca6cf6/storage")({component:N(TJ,"component")}),CJ=()=>$(()=>import("./mc-60e9ca6cf6.submissions-CjFIJyvI.js"),__vite__mapDeps([487,421,417])),OJ=j("/_authenticated/mc-60e9ca6cf6/submissions")({component:N(CJ,"component")}),$J=()=>$(()=>import("./mc-60e9ca6cf6.submissions-queue-DJzInPCV.js"),__vite__mapDeps([488,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,223,50,211,235,166])),MJ=j("/_authenticated/mc-60e9ca6cf6/submissions-queue")({component:N($J,"component")}),NJ=()=>$(()=>import("./mc-60e9ca6cf6.subscriptions-CJW9AzBk.js"),__vite__mapDeps([489,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,421,25,151,260])),jJ=j("/_authenticated/mc-60e9ca6cf6/subscriptions")({component:N(NJ,"component")}),PJ=()=>$(()=>import("./mc-60e9ca6cf6.system-debug-CuvT-EW2.js"),__vite__mapDeps([490,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,421,212])),DJ=j("/_authenticated/mc-60e9ca6cf6/system-debug")({component:N(PJ,"component")}),IJ=()=>$(()=>import("./mc-60e9ca6cf6.takedowns-D-PAKIWU.js"),__vite__mapDeps([491,421,124,374])),LJ=j("/_authenticated/mc-60e9ca6cf6/takedowns")({component:N(IJ,"component")}),zJ=()=>$(()=>import("./mc-60e9ca6cf6.team-BEGTanHI.js"),__vite__mapDeps([492,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,120])),BJ=j("/_authenticated/mc-60e9ca6cf6/team")({component:N(zJ,"component")}),UJ=()=>$(()=>import("./mc-60e9ca6cf6.toolost-CR8_7hSv.js"),__vite__mapDeps([493,26,211,282,223,421,130,212,9,51,418,319,41,183,74,177])),VJ=j("/_authenticated/mc-60e9ca6cf6/toolost")({component:N(UJ,"component")}),FJ=()=>$(()=>import("./mc-60e9ca6cf6.traffic-BRJH3Ojl.js"),__vite__mapDeps([494,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,421,175,220,221,222,372,169,373])),qJ=j("/_authenticated/mc-60e9ca6cf6/traffic")({component:N(FJ,"component")}),HJ=()=>$(()=>import("./mc-60e9ca6cf6.units-BrxzOQDA.js"),__vite__mapDeps([495,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,9,408,104,162,58,13])),GJ=j("/_authenticated/mc-60e9ca6cf6/units")({head:()=>({meta:[{title:"Label Units & Downloads · Admin | MO STREAMS"},{name:"description",content:"Global MO STREAMS Digital DISC unit sales, downloads, streams and revenue across every artist on MO STREAMS."},{property:"og:title",content:"Label Units & Downloads · Admin"},{property:"og:description",content:"Units sold, physical redeems, downloads and revenue across the whole roster."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:N(HJ,"component")}),KJ=()=>$(()=>import("./mc-60e9ca6cf6.wallet-master-CaHkfffS.js"),__vite__mapDeps([496,26,189,5,3,211,9,51,223,282,156])),ZJ=j("/_authenticated/mc-60e9ca6cf6/wallet-master")({component:N(KJ,"component")}),WJ=()=>$(()=>import("./network.index-C2AKJTun.js"),__vite__mapDeps([497,221,258,121,122,77,120,498,128,42,236,237,238,145,16,124,239,162,38,118,44,240,43,144,227,114,115,241,242,210,130,155,142,70,6])),YJ=j("/_authenticated/network/")({component:N(WJ,"component")}),JJ=()=>$(()=>import("./network.collab-CqayglqQ.js"),[]),QJ=j("/_authenticated/network/collab")({component:N(JJ,"component")}),XJ=()=>$(()=>import("./network.services-DSyJWP3f.js"),__vite__mapDeps([499,26,335,223,9,50,500])),eQ=j("/_authenticated/network/services")({component:N(XJ,"component")}),tQ=()=>$(()=>import("./onboarding.genres-SEeQD8bR.js"),[]),nQ=j("/_authenticated/onboarding/genres")({component:N(tQ,"component")}),rQ=()=>$(()=>import("./playlists.index-Vhbb8PGA.js"),__vite__mapDeps([501,231,40])),oQ=j("/_authenticated/playlists/")({component:N(rQ,"component")}),aQ=()=>$(()=>import("./playlists._id-Ck28wJ8s.js"),__vite__mapDeps([502,413,308,129,2,3,4,5,77,10,130,98,40,120])),sQ=j("/_authenticated/playlists/$id")({component:N(aQ,"component")}),iQ=()=>$(()=>import("./releases.studio-DTzzrRKQ.js"),__vite__mapDeps([503,253,124,9,50,51,2,3,4,5,258,173,226,120,40])),cQ=j("/_authenticated/releases/studio")({validateSearch:e=>({id:typeof e?.id=="string"?e.id:void 0}),component:N(iQ,"component")}),lQ=()=>$(()=>import("./rooms._id-8pymTKPH.js"),__vite__mapDeps([504,211,9,223,98,498,42])),uQ=j("/_authenticated/rooms/$id")({component:N(lQ,"component")}),dQ=()=>$(()=>import("./settings.notifications-D-6vJQMt.js"),__vite__mapDeps([505,167,169,10])),hQ=j("/_authenticated/settings/notifications")({component:N(dQ,"component")}),fQ=()=>$(()=>import("./studio.hub-B3EwTsMq.js"),__vite__mapDeps([506,253,124,442,377,507,210,7,42])),pQ=j("/_authenticated/studio/hub")({component:N(fQ,"component")}),mQ=()=>$(()=>import("./submit.faq-uoIqT9_u.js"),[]),gQ=j("/_authenticated/submit/faq")({component:N(mQ,"component")}),yQ=()=>$(()=>import("./submit.release-CMqXoQxd.js"),[]),vQ=j("/_authenticated/submit/release")({component:N(yQ,"component")}),bQ=()=>$(()=>import("./tracks._id-YALnUf9J.js"),[]),_Q=j("/_authenticated/tracks/$id")({beforeLoad:async({params:e,location:t})=>{if(t.pathname.replace(/\/+$/,"").endsWith(`/tracks/${e.id}`)){const{data:r}=await qe.from("tracks").select("id, status").eq("id",e.id).maybeSingle();throw r&&r.status!=="published"?Nt({to:"/tracks/$id/edit",params:{id:e.id}}):Nt({to:"/track/$id",params:{id:e.id}})}},component:N(bQ,"component")}),wQ=()=>$(()=>
170import("./upload.index-D_KwLHPP.js"),__vite__mapDeps([508,29,1,2,3,4,5,6,7,8,9,10,30,15,16])),SQ=j("/_authenticated/upload/")({head:()=>({meta:[{title:"Upload â MO STREAMS"},{name:"description",content:"Choose what you'd like to upload to MO STREAMS."}]}),component:N(wQ,"component")}),xQ=()=>$(()=>import("./upload.beat-DtqBFgK5.js"),[]),RQ=j("/_authenticated/upload/beat")({beforeLoad:()=>{throw Nt({to:"/marketplace/upload"})},component:N(xQ,"component")}),EQ=()=>$(()=>import("./upload.dj-mix-CmGQGCXK.js"),__vite__mapDeps([509,40])),AQ=j("/_authenticated/upload/dj-mix")({component:N(EQ,"component")}),TQ=j("/_authenticated/upload/podcast")({beforeLoad:()=>{throw Nt({to:"/studio/hub",replace:!0})}}),kQ=()=>$(()=>import("./upload.track-Cbrg3iOY.js"),[]),CQ=j("/_authenticated/upload/track")({component:N(kQ,"component")}),OQ=()=>$(()=>import("./upload.video-C5qkzGsB.js"),[]),$Q=j("/_authenticated/upload/video")({component:N(OQ,"component")}),MQ=()=>$(()=>import("./videos._id-x3sNQE4d.js"),__vite__mapDeps([510,116,117,87,57,56,77,118,119,120,121,122,376,113,74,6,377,128,378,322,310,145,43,17,83,13,308,129,2,3,4,5,10,130,269,317,318,319,114,131])),NQ=j("/_authenticated/videos/$id")({component:N(MQ,"component")}),jQ=()=>$(()=>import("./wallet.history-4Qyb4UyQ.js"),__vite__mapDeps([511,98,371])),PQ=j("/_authenticated/wallet/history")({component:N(jQ,"component")}),DQ=()=>$(()=>import("./demo.dashboard.channel-monetization-Bfh4otAV.js"),__vite__mapDeps([512,1,2,3,4,5,6,7,8,9,10,329,130])),IQ=j("/demo/dashboard/channel-monetization")({head:()=>({meta:[{title:"Channel Monetization Demo â MO STREAMS"},{name:"description",content:"Preview the channel monetization dashboard: free + paid subscriptions, per-video visibility, and invite links."}]}),component:N(DQ,"component")}),LQ=()=>$(()=>import("./demo.dashboard.social-Dq253Y9m.js"),__vite__mapDeps([513,1,2,3,4,5,6,7,8,9,10,329,211,223])),zQ=j("/demo/dashboard/social")({head:()=>({meta:[{title:"Social Insights Demo â MO STREAMS"},{name:"description",content:"Preview how MO STREAMS connects TikTok, Instagram, YouTube, X, and Facebook to track plays, followers, and reels using your songs."}]}),component:N(LQ,"component")}),BQ=ke({method:"GET"}).handler(Oe("8e7a1abe9d563cc42ac3b61a878918a2a4a9cc6bf5d6f81b7c0d60c96683bc4b")),UQ=e=>({queryKey:["embed-track",e],queryFn:()=>BQ({data:{id:e}})}),VQ=()=>$(()=>import("./embed.track._id-BrXIMtmc.js"),__vite__mapDeps([514,354,128])),FQ=()=>$(()=>import("./embed.track._id-kHxlM7a_.js"),[]),qQ=()=>$(()=>import("./embed.track._id-BAEHVnS3.js"),[]),HQ=j("/embed/track/$id")({loader:async({context:e,params:t})=>{const n=await e.queryClient.ensureQueryData(UQ(t.id));if(!n.track)throw zr();return n},head:({loaderData:e})=>{const t=e?.track,n=t?`${t.title} â MO STREAMS`:"MO STREAMS player";return{meta:[{title:n},{name:"robots",content:"noindex"},{name:"description",content:t?`Listen to ${t.title} on MO STREAMS.`:"MO STREAMS embeddable player."},...t?.cover_url?[{property:"og:image",content:t.cover_url},{name:"twitter:image",content:t.cover_url}]:[],{property:"og:type",content:"music.song"},{property:"og:title",content:n},{property:"og:description",content:t?`Listen to ${t.title}${t.artist_name?` by ${t.artist_name}`:""}.`:"MO STREAMS embeddable player."}]}},notFoundComponent:N(qQ,"notFoundComponent"),errorComponent:N(FQ,"errorComponent"),component:N(VQ,"component")}),GQ=()=>$(()=>import("./store.album._slug-Cqt9wjzw.js"),__vite__mapDeps([515,1,2,3,4,5,6,7,363,86,98,17])),KQ=j("/store/album/$slug")({head:({params:e})=>({meta:[{title:`${e.slug} · MO STREAMS Digital DISC | MO STREAMS`},{name:"description",content:"Preview the tracks, open the digital booklet, and buy this MO STREAMS Digital DISC to keep it forever."},{property:"og:title",content:`MO STREAMS Digital DISC â ${e.slug}`},{property:"og:description",content:"Preview, buy and keep the digital disc."},{property:"og:type",content:"music.album"},{name:"twitter:card",content:"summary_large_image"}]}),component:N(GQ,"component")}),ZQ=()=>$(()=>import("./store.artist._handle-9ggUr1SH.js"),__vite__mapDeps([516,1,2,3,4,5,6,7,363,98])),WQ=j("/store/artist/$handle")({head:({params:e})=>({meta:[{title:`${e.handle} · MO STREAMS Digital DISC Store | MO STREAMS`},{name:"description",content:`Every MO STREAMS Digital DISC pressed by ${e.handle} â preview the tracks, then buy the digital disc and keep it forever.`},{property:"og:title",content:`${e.handle} on the MO STREAMS Digital DISC Store`},{property:"og:description",content:"Browse this artist's discs, preview and buy."},{property:"og:type",content:"profile"},{name:"twitter:card",content:"summary_large_image"}]}),component:N(ZQ,"component")}),YQ=()=>$(()=>import("./advertiser.campaigns._id-BgFk_s8Q.js"),__vite__mapDeps([517,133,98])),JQ=j("/_authenticated/advertiser/campaigns/$id")({component:N(YQ,"component")}),QQ=()=>$(()=>import("./advertiser.campaigns.new-BRHBvZau.js"),[]),XQ=j("/_authenticated/advertiser/campaigns/new")({component:N(QQ,"component")}),eX=()=>$(()=>import("./billing.paypal.cancel-DBfG77Fv.js"),__vite__mapDeps([518,212])),tX=j("/_authenticated/billing/paypal/cancel")({component:N(eX,"component")}),nX=()=>$(()=>import("./billing.paypal.return-BjF2Vpmo.js"),__vite__mapDeps([519,296,212])),rX=hy({token:dg().optional(),amt:CA().int().optional()}),oX=j("/_authenticated/billing/paypal/return")({validateSearch:e=>rX.parse(e),component:N(nX,"component")}),aX=()=>$(()=>import("./dashboard.artist.booking-Dccj3U7b.js"),__vite__mapDeps([520,47,9,50,13,194,102,103,129,2,3,4,5,77,10,130])),sX=j("/_authenticated/dashboard/artist/booking")({component:N(aX,"component")}),iX=()=>$(()=>import("./dashboard.artist.events-DdUaF66l.js"),__vite__mapDeps([521,40,120,98,83,17])),cX=j("/_authenticated/dashboard/artist/events")({component:N(iX,"component")}),lX=()=>$(()=>import("./dashboard.bookings.questions-oNSQUTX3.js"),__vite__mapDeps([522,433,26,165,7])),uX=j("/_authenticated/dashboard/bookings/questions")({component:N(lX,"component")}),dX=()=>$(()=>import("./dashboard.disc-studio.index-BvOpTIwB.js"),__vite__mapDeps([523,248,161,162,326,86,104,109,87,40,17])),hX=j("/_authenticated/dashboard/disc-studio/")({head:()=>({meta:[{title:"Digital Disc Studio · MO STREAMS"},{name:"description",content:"Press a MO STREAMS Digital Disc: upload audio and booklet, set the edition, print redeem codes, and track every unit sold."},{property:"og:title",content:"Digital Disc Studio · MO STREAMS"},{property:"og:description",content:"One place to press, distribute and track y
170our numbered digital discs."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:N(dX,"component")});function fX(e){const t={tour:"group-main",title:"Your home base",placement:"right",body:"Dashboard, Discover, Genre Radio, Network Room, and your profile â everything you visit daily."},n={tour:"group-activity",title:"Activity & notifications",placement:"right",body:"Follow requests and notifications land here so you never miss what's happening with your account."},r={tour:"group-money",title:"Wallet & money",placement:"right",body:"Your wallet, royalty splits, sales, and rewards. Cash out and track every dollar from one place."},s={tour:"group-video",title:"Video",placement:"right",body:"Upload music videos, manage your channel, and watch the feed."};if(e==="fan")return[t,{tour:"group-library",title:"Your library",placement:"right",body:"Build playlists and grab beats from the marketplace â everything you save lives here."},s,r,n];if(e==="advertiser")return[t,{tour:"group-advertising",title:"Run campaigns",placement:"right",body:"Launch campaigns, see live analytics, and target the right audience."},r,n];if(e==="podcaster")return[t,r,{tour:"group-grow",title:"Grow your show",placement:"right",body:"Analytics, audience insights, and growth tools for your podcast."},s,n];const h=[t,{tour:"group-studio",title:"Your studio",placement:"right",body:"Release Studio for new drops, My Catalog for everything you've uploaded, Beats Library, and Playlists."},r,{tour:"group-grow",title:"Grow your audience",placement:"right",body:"Analytics, the data warehouse, audience & social, release links, and priority pitching."},s,n,{tour:"quick-submit",title:"Quick Submit",placement:"bottom",body:"This + button is always in the topbar â upload music or video from anywhere in the app."}];return e==="super_admin"&&h.splice(1,0,{tour:"group-admin",title:"Mission Control",placement:"right",body:"Admin-only pillars: approvals, moderation, members, money, and the full data warehouse."}),h}function pX({profile:e,force:t,autoStart:n,onClose:r}){const[s,i]=T.useState(!1),[l,d]=T.useState(!1),[h,f]=T.useState(0),g=T.useMemo(()=>fX(e.role),[e.role]),y=g[h],[b,_]=T.useState(null),S=T.useRef(null);T.useEffect(()=>{t?(d(!1),i(!0)):n&&d(!0)},[t,n]),T.useLayoutEffect(()=>{if(!s||!y)return;let V=0;const ne=()=>{const pe=document.querySelector(`[data-tour="${y.tour}"]`);if(pe){V=0;const de=pe.getBoundingClientRect(),$e=S.current;(!$e||$e.top!==de.top||$e.left!==de.left||$e.width!==de.width||$e.height!==de.height)&&(S.current=de,_(de))}else V+=1,S.current!==null&&(S.current=null,_(null)),V>=4&&(V=0,f(de=>de<g.length-1?de+1:de))};ne();const W=setInterval(ne,300);return window.addEventListener("resize",ne),window.addEventListener("scroll",ne,!0),()=>{clearInterval(W),window.removeEventListener("resize",ne),window.removeEventListener("scroll",ne,!0)}},[s,y,g.length]);const E=async()=>{try{await qe.from("profiles").update({tour_completed_at:new Date().toISOString()}).eq("id",e.id)}catch{}},x=async()=>{i(!1),d(!1),await E(),r?.()},k=async()=>{d(!1),await E(),r?.()},M=()=>{d(!1),f(0),i(!0)};if(l)return p.jsx("div",{className:"fixed inset-0 z-[120] bg-black/75 backdrop-blur-sm flex items-center justify-center p-4",onClick:k,children:p.jsxs("div",{onClick:V=>V.stopPropagation(),className:"relative w-full max-w-md rounded-3xl border border-primary/40 bg-card shadow-2xl p-8 text-center",children:[p.jsx("button",{onClick:k,className:"absolute top-4 right-4 text-white/40 hover:text-white","aria-label":"Skip",children:p.jsx(fa,{className:"w-4 h-4"})}),p.jsx("img",{src:_o(ry,480),alt:"MO STREAMS",className:"h-14 w-auto mx-auto mb-5",loading:"lazy",decoding:"async"}),p.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-primary/10 border border-primary/30 text-primary text-[10px] font-bold tracking-wider uppercase",children:[p.jsx(eg,{className:"w-3 h-3"})," Welcome"]}),p.jsxs("h3",{className:"font-display text-2xl md:text-3xl mt-4 leading-tight",children:["Thank you for signing up with"," ",p.jsx("span",{className:"bg-gradient-to-r from-primary to-orange-500 bg-clip-text text-transparent",children:"MO Streams"})," ","music and video distribution platform."]}),p.jsx("p",{className:"mt-3 text-sm text-muted-foreground",children:"Let's take a quick tour so you know
170where everything is and what each section does."}),p.jsxs("div",{className:"mt-6 flex items-center justify-center gap-3",children:[p.jsx("button",{onClick:k,className:"text-xs font-bold uppercase tracking-wider text-muted-foreground hover:text-foreground px-4 h-10",children:"Skip"}),p.jsx("button",{onClick:M,className:"btn-gradient rounded-full px-6 h-10 text-xs font-bold uppercase tracking-wider text-primary-foreground",children:"Start tour"})]})]})});if(!s||!y)return null;const P=y.placement??"right",I=8;let F={position:"fixed",maxWidth:320,zIndex:100};b?P==="right"?F={...F,top:Math.max(b.top,12),left:b.right+I}:P==="left"?F={...F,top:Math.max(b.top,12),right:window.innerWidth-b.left+I}:P==="bottom"?F={...F,top:b.bottom+I,left:Math.min(b.left,window.innerWidth-340)}:F={...F,bottom:window.innerHeight-b.top+I,left:Math.min(b.left,window.innerWidth-340)}:F={...F,top:"50%",left:"50%",transform:"translate(-50%, -50%)"};const G="fixed bg-black/70 z-[90]",U=b?{top:{top:0,left:0,right:0,height:Math.max(0,b.top-6)},bottom:{top:b.bottom+6,left:0,right:0,bottom:0},left:{top:Math.max(0,b.top-6),left:0,width:Math.max(0,b.left-6),height:b.height+12},right:{top:Math.max(0,b.top-6),left:b.right+6,right:0,height:b.height+12}}:null;return p.jsxs(p.Fragment,{children:[U?p.jsxs(p.Fragment,{children:[p.jsx("div",{className:G,style:U.top,onClick:x}),p.jsx("div",{className:G,style:U.bottom,onClick:x}),p.jsx("div",{className:G,style:U.left,onClick:x}),p.jsx("div",{className:G,style:U.right,onClick:x}),p.jsx("div",{className:"fixed z-[91] pointer-events-none rounded-xl border-2 border-primary",style:{top:Math.max(0,b.top-6),left:Math.max(0,b.left-6),width:b.width+12,height:b.height+12}})]}):p.jsx("div",{className:"fixed inset-0 bg-black/40 z-[90]",onClick:x}),p.jsxs("div",{style:F,onClick:V=>V.stopPropagation(),className:"rounded-2xl border border-primary/40 bg-card shadow-2xl p-5 w-80",children:[p.jsxs("div",{className:"flex items-center justify-between mb-3",children:[p.jsxs("div",{className:"flex items-center gap-2 text-[10px] uppercase tracking-wider font-bold text-primary",children:[p.jsx(eg,{className:"w-3.5 h-3.5"})," Tour · Step ",h+1," of ",g.length]}),p.jsx("button",{onClick:x,className:"text-white/40 hover:text-white","aria-label":"Skip tour",children:p.jsx(fa,{className:"w-4 h-4"})})]}),p.jsx("div",{className:"font-display text-lg font-bold mb-1",children:y.title}),p.jsx("p",{className:"text-sm text-white/70 mb-4",children:y.body}),p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("button",{onClick:x,className:"text-xs text-white/50 hover:text-white",children:"Skip"}),p.jsxs("div",{className:"flex items-center gap-2",children:[h>0&&p.jsxs("button",{onClick:()=>f(V=>Math.max(0,V-1)),className:"rounded-full border border-white/20 px-3 h-8 text-xs font-bold uppercase tracking-wider hover:bg-white/5 flex items-center gap-1",children:[p.jsx(J4,{className:"w-3.5 h-3.5"})," Back"]}),h<g.length-1?p.jsxs("button",{onClick:()=>f(V=>V+1),className:"rounded-full bg-primary text-black px-4 h-8 text-xs font-bold uppercase tracking-wider hover:scale-105 transition-transform flex items-center gap-1",children:["Next ",p.jsx(X4,{className:"w-3.5 h-3.5"})]}):p.jsx("button",{onClick:x,className:"rounded-full bg-primary text-black px-4 h-8 text-xs font-bold uppercase tracking-wider hover:scale-105 transition-transform",children:"Got it"})]})]})]})]})}function mX({isAdmin:e,collapsed:t=!1}){const n=gl(),r=Bx({select:l=>l.location.pathname}),s=r==="/mc-60e9ca6cf6"||r.startsWith("/mc-60e9ca6cf6/");if(!e||!s)return null;const i=l=>{l==="admin"&&!s&&n({to:"/mc-60e9ca6cf6"}),l==="creator"&&s&&n({to:"/dashboard"})};if(t){const l=s?ll:sl;return p.jsx("button",{onClick:()=>i(s?"creator":"admin"),title:s?"Switch to Creator Studio":"Switch to Admin Console",className:`mx-auto my-2 flex h-10 w-10 items-center justify-center rounded-lg ring-1 transition-colors ${s?"bg-orange-500/15 text-orange-400 ring-orange-500/40 hover:bg-orange-500/25":"bg-white/8 text-foreground ring-white/10 hover:bg-white/12"}`,children:p.jsx(l,{className:"h-4 w-4"})})}return p.jsx("div",{className:"mx-3 mt-3 mb-1 rounded-xl bg-white/5 p-1 ring-1 ring-white/5",children:p.jsxs("div",{className:"grid grid-cols-2 gap-1",children:[p.jsxs("button",{onClick:()=>i("creator"),className:`flex items-center justify-center gap-1.5 rounded-lg px-2 py-2 text-[11px] font-bold uppercase tracking-wider transition-colors ${s?"text-muted-foreground hover:text-foreground":"bg-white/10 text-foreground shadow-sm"}`,"aria-pressed":!s,children:[p.jsx(sl,{className:"h-3.5 w-3.5"}),"Creator"]}),p.jsxs("button",{onClick:()=>i("admin"),className:`flex items-center justify-center gap-1.5 rounded-lg px-2 py-2 text-[11px] font-bold uppercase tracking-wider transition-colors ${s?"bg-orange-500/20 text-orange-300 ring-1 ring-orange-500/40 shadow-sm":"text-muted-foreground hover:text-foreground"}`,"aria-pressed":s,children:[p.jsx(ll,{className:"h-3.5 w-3.5"}),"Admin"]})]})})}function qce(){return p.jsxs("div",{className:"-mx-6 md:-mx-8 -mt-3 md:-mt-4 mb-6 border-b border-orange-500/40 bg-orange-500/10 px-6 md:px-8 py-2 text-[11px] font-bold uppercase tracking-[0.18em] text-orange-300",children:[p.jsx(ll,{className:"mr-2 inline-block h-3 w-3 -mt-0.5"}),"Admin mode â actions affect all users"]})}const gX=ke({method:"GET"}).middleware([ze]).handler(Oe("79e2933b27079d8166f7c778b0e43f4440e5b5b52693d25d28d0b1e3ed98317e")),yX=ke({method:"POST"}).middleware([ze]).handler(Oe("75b96837c68f85fdc4bd72eaddb76b36da504197e7d2fd4bfe3f3f6af0fb501f")),vX=ke({method:"POST"}).middleware([ze]).handler(Oe("586c08efa3722013f6da4a6fe1a90e30a8840d85102c14efdda7bf717604081d")),Hce=ke({method:"POST"}).middleware([ze]).handler(Oe("c1b59b3b45f3e3ad9a08598949e1f6acd687ec88d55872e1270e49e90ee09dbc")),Gce=ke({method:"POST"}).middleware([ze]).handler(Oe("78d8761cd6b993f9f3691240bb8839888262cd44d533749d0b2984bf63df3a60")),Kce=ke({method:"POST"}).middleware([ze]).handler(Oe("893b0ea926f660123d02c880f3e933e1302de9f0e6c2e9393c35fef7c2b9cbc7"));ke({method:"POST"}).middleware([ze]).handler(Oe("836851bfd1aa4ef324e17840fdac6e41d6aa540fb5c4d5808815eb14e1c47db6"));ke({method:"GET"}).middleware([ze]).handler(Oe("c4ee6e8b09e57ac7dfbf9f794ba565115ebee76abbc97b74e299978ae1c684d4"));const Zce=ke({method:"POST"}).middleware([ze]).handler(Oe("4907dd9b08d8d82c36e9efa6064a1e28dae26a43f17bbe36b615326791066ec9")),Wce=ke({method:"POST"}).middleware([ze]).handler(Oe("c5502bed2dcf91600101a1539d2e747bf994ed8775145d35bca892975619e662")),Yce=ke({method:"POST"}).middleware([ze]).handler(Oe("cbf48d19e1ef7fdbb18aa4eeef333ba0a52568901fcf9a67c9870a45090cca4a")),Jce=ke({method:"GET"}).middleware([ze]).handler(Oe("47c43f70f2616dcfdd2fa048f481a8259173aeef51dc8cdb36dda4248a2a4b7b")),Qce=ke({method:"POST"}).middleware([ze]).handler(Oe("832e57251482a934235890551c64963c846ae2aaef08f7f278e7a3754b2b67d2")),Xce=ke({method:"POST"}).middleware([ze]).handler(Oe("0b210396804d570db9e403ef35aee0be981fe72124f89c218ead4233715d3293"));ke({method:"POST"}).middleware([ze]).handler(Oe("dc40db9accfa64d87c9dc97bebe51ea92362e3a48b331bdfa5aacd5c7562ee79"));const ele=ke({method:"POST"}).middleware([ze]).handler(Oe("14014ae6f4df9b25549f33e4c634c0e756098777bf6bd09f8a9eec0126b302b1")),tle=ke({method:"POST"}).middleware([ze]).handler(Oe("c748f6bf04805e590707fd8ce7b971831ae21becafec37b52f018bd332a6f73a")),nle=ke({method:"POST"}).middleware([ze]).handler(Oe("5496694d09f76d3b3b09bda5e1113d6b4245c66f2500ccd1484bdde04e84d3ae")),rle=ke({method:"POST"}).middleware([ze]).handler(Oe("9182d2f9214ba0243dc6f25dd0d7026952dedc6fdbaa27c3975f3858263933c3")),ole=ke({method:"POST"}).middleware([ze]).handler(Oe("4399e9c43aef4a35bcbb1eff47f04f679a92dd109f86a8cee7d405db7306a354")),ale=ke({method:"POST"}).middleware([ze]).handler(Oe("d2f1e73f9f8fac1824b4c06a87be51563cd1569678957d8e0d61cdcc1d85a4d3")),sle=ke({method:"GET"}).middleware([ze]).handler(Oe("a1945cc6898ddc1b89f63681bc027b56f3eef6627471887e231310f40dd613a0")),ile=ke({method:"POST"}).middleware([ze]).handler(Oe("1c93782ede11f04a78e4af324fc10c5808ec69e3ea5d1e6eaa805ec0dbae5d19")),cle=ke({method:"POST"}).middleware([ze]).handler(Oe("ee39c61023bd4c5213b705adcf8630223b4e34ec3bd9acb6505c0f9747ddef5f")),lle=ke({method:"POST"}).middleware([ze]).handler(Oe("9384d2bf70fc0851bfe3d9a2ce8902013c1c37bba5741ddf5bd8dfe59ba034ce")),ule=ke({method:"POST"}).middleware([ze]).handler(Oe("85e727fb8a902d4a602640e260e0fc9e1a425e8ebb58dba32ad3ba3a4095d3ee")),dle=ke({method:"GET"}).middleware([ze]).handler(Oe("391d1d89f59d7fcf42ce9b29339f4d812
1706945431c8c417e64fc5723121d0f8ed"));function bX({userId:e}){const[t,n]=T.useState(!1),[r,s]=T.useState(null),[i,l]=T.useState(""),[d,h]=T.useState(!1),f=T.useRef(null),g=pd(gX),y=pd(yX),b=pd(vX),_=r1({queryKey:["dock-dms"],queryFn:()=>g(),enabled:t,refetchInterval:t?15e3:!1}),S=r1({queryKey:["dock-thread",r],queryFn:()=>y({data:{otherId:r}}),enabled:t&&!!r,refetchInterval:t&&r?5e3:!1}),E=S.data?.messages??[],x=_.data?.conversations??[];T.useEffect(()=>{f.current?.scrollIntoView({behavior:"smooth"})},[E.length]),T.useEffect(()=>{if(!e)return;const P=qe.channel(`dock-dms-${e}`).on("postgres_changes",{event:"INSERT",schema:"public",table:"direct_messages",filter:`recipient_id=eq.${e}`},()=>{_.refetch(),S.refetch()}).subscribe();return()=>{qe.removeChannel(P)}},[e]);const k=async()=>{if(!(!r||!i.trim())){h(!0);try{await b({data:{recipientId:r,body:i.trim()}}),l(""),S.refetch(),_.refetch()}finally{h(!1)}}},M=x.reduce((P,I)=>P+(I.unread??0),0);return t?p.jsxs("div",{className:"fixed bottom-5 left-5 z-[60] w-[360px] max-w-[calc(100vw-2.5rem)] h-[520px] max-h-[calc(100vh-2.5rem)] rounded-2xl border border-border bg-card shadow-2xl flex flex-col overflow-hidden",children:[p.jsxs("header",{className:"flex items-center justify-between px-4 h-12 border-b border-border bg-secondary/40",children:[p.jsxs("div",{className:"flex items-center gap-2 font-semibold text-sm",children:[p.jsx(il,{className:"h-4 w-4 text-primary"}),r?x.find(P=>P.other_id===r)?.other_display_name??"Chat":"Messages"]}),p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx(An,{to:"/messages",className:"p-1.5 rounded hover:bg-secondary",title:"Open full chat",onClick:()=>n(!1),children:p.jsx(OD,{className:"h-3.5 w-3.5"})}),p.jsx("button",{onClick:()=>{n(!1),s(null)},className:"p-1.5 rounded hover:bg-secondary","aria-label":"Close",children:p.jsx(fa,{className:"h-4 w-4"})})]})]}),r?p.jsxs(p.Fragment,{children:[p.jsx("button",{onClick:()=>s(null),className:"px-4 py-2 text-xs text-muted-foreground hover:text-foreground border-b border-border text-left",children:"â Back to conversations"}),p.jsxs("div",{className:"flex-1 overflow-y-auto p-3 space-y-2",children:[S.isLoading&&p.jsx(am,{className:"h-4 w-4 animate-spin mx-auto mt-4"}),E.map(P=>{const I=P.sender_id===e;return p.jsx("div",{className:`flex ${I?"justify-end":"justify-start"}`,children:p.jsx("div",{className:`max-w-[80%] px-3 py-2 rounded-2xl text-sm ${I?"bg-primary text-primary-foreground":"bg-secondary"}`,children:P.body})},P.id)}),p.jsx("div",{ref:f})]}),p.jsxs("div",{className:"p-2 border-t border-border flex items-center gap-2",children:[p.jsx("input",{value:i,onChange:P=>l(P.target.value),onKeyDown:P=>{P.key==="Enter"&&!P.shiftKey&&(P.preventDefault(),k())},placeholder:"Type a messageâ¦",className:"flex-1 bg-secondary/60 rounded-full px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary"}),p.jsx("button",{onClick:k,disabled:!i.trim()||d,className:"h-9 w-9 rounded-full bg-primary text-primary-foreground disabled:opacity-50 flex items-center justify-center",children:d?p.jsx(am,{className:"h-4 w-4 animate-spin"}):p.jsx(zg,{className:"h-4 w-4"})})]})]}):p.jsxs("div",{className:"flex-1 overflow-y-auto",children:[_.isLoading&&p.jsx("div",{className:"p-6 text-center text-xs text-muted-foreground",children:p.jsx(am,{className:"h-4 w-4 animate-spin mx-auto"})}),!_.isLoading&&x.length===0&&p.jsxs("div",{className:"p-6 text-center text-xs text-muted-foreground",children:["No conversations yet.",p.jsx("br",{}),p.jsx(An,{to:"/messages",onClick:()=>n(!1),className:"text-primary underline mt-2 inline-block",children:"Open Messages"})]}),x.map(P=>p.jsxs("button",{onClick:()=>s(P.other_id),className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-secondary/60 text-left border-b border-border/50",children:[P.other_avatar_url?p.jsx("img",{src:_o(P.other_avatar_url,480),className:"h-9 w-9 rounded-full object-cover",alt:"",loading:"lazy",decoding:"async"}):p.jsx("div",{className:"h-9 w-9 rounded-full bg-primary/20 text-primary flex items-center justify-center text-xs font-bold",children:(P.other_display_name??"?").slice(0,1).toUpperCase()}),p.jsxs("div",{className:"min-w-0 flex-1",children:[p.jsxs("div",{className:"text-sm font-semibold truncate flex items-center gap-2",children:[P.other_display_name??"Unknown",P.unread>0&&p.jsx("span",{className:"h-2 w-2 rounded-full bg-primary"})]}),p.jsx("div",{className:"text-xs text-muted-foreground truncate",children:P.last_body??""})]})]},P.other_id))]})]}):p.jsxs("button",{onClick:()=>
170n(!0),className:"fixed bottom-5 left-5 z-[60] h-14 w-14 rounded-full bg-primary text-primary-foreground shadow-2xl shadow-primary/30 flex items-center justify-center hover:scale-105 transition-transform","aria-label":"Open chat",children:[p.jsx(il,{className:"h-6 w-6"}),M>0&&p.jsx("span",{className:"absolute -top-1 -right-1 min-w-5 h-5 px-1 rounded-full bg-red-500 text-white text-[10px] font-bold flex items-center justify-center",children:M>99?"99+":M})]})}class OA extends T.Component{state={error:null};static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,n){this.props.onError(t,n)}componentDidUpdate(t){t.resetKey!==this.props.resetKey&&this.state.error&&this.setState({error:null})}reset=()=>this.setState({error:null});render(){return this.state.error?p.jsx(_X,{error:this.state.error,onRetry:this.reset,variant:this.props.variant??"page",label:this.props.label}):this.props.children}}function _X({error:e,onRetry:t,variant:n="page",label:r}){const s=Lt(),i=Dg(),l=()=>{i.invalidateQueries(),s.invalidate(),t()};return T.useEffect(()=>{Br({area:n==="widget"?"backoffice.widget.boundary":"backoffice.boundary",error:e,source:r});const d=window.setInterval(()=>{console.warn("[debug-auto-recovery] Retrying back-office panel after captured error.",{route:window.location.pathname,message:e.message,panel:r,at:new Date().toISOString()}),l()},3e4);return()=>window.clearInterval(d)},[e]),n==="widget"?p.jsx("section",{className:"rounded-2xl border border-border bg-card/80 p-4 text-sm shadow-sm",children:p.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("span",{className:"flex h-9 w-9 items-center justify-center rounded-full bg-primary/10 text-primary",children:p.jsx(y1,{className:"h-4 w-4"})}),p.jsxs("div",{children:[p.jsxs("h3",{className:"font-display text-sm font-black text-foreground",children:[r??"Dashboard section"," is reloading"]}),p.jsx("p",{className:"text-xs text-muted-foreground",children:"The rest of your dashboard is still available."})]})]}),p.jsxs("button",{type:"button",onClick:l,className:"inline-flex items-center gap-2 rounded-full bg-primary px-3 py-1.5 text-[11px] font-extrabold uppercase tracking-wider text-primary-foreground hover:opacity-90",children:[p.jsx(m1,{className:"h-3.5 w-3.5"})," Retry"]})]})}):p.jsxs("section",{className:"rounded-2xl border border-destructive/30 bg-card p-6 text-center shadow-sm",children:[p.jsx("div",{className:"mx-auto mb-3 flex h-11 w-11 items-center justify-center rounded-full bg-destructive/10 text-destructive",children:p.jsx(y1,{className:"h-5 w-5"})}),p.jsx("h2",{className:"font-display text-lg font-black text-foreground",children:"This back-office panel is recovering"}),p.jsx("p",{className:"mx-auto mt-2 max-w-xl text-sm text-muted-foreground",children:"The automatic debug recovery captured the problem, refreshed the page data, and will retry every 30 seconds until it loads."}),p.jsxs("button",{onClick:l,className:"mt-4 inline-flex items-center gap-2 rounded-full bg-primary px-4 py-2 text-xs font-extrabold uppercase tracking-wider text-primary-foreground hover:opacity-90",children:[p.jsx(m1,{className:"h-3.5 w-3.5"})," Retry now"]})]})}function wX({children:e,resetKey:t}){return p.jsx(OA,{resetKey:t,onError:(n,r)=>Br({area:"backoffice.component",error:n,componentStack:r.componentStack}),children:e})}function hle({children:e,resetKey:t,label:n}){return p.jsx(OA,{resetKey:t,variant:"widget",label:n,onError:(r,s)=>Br({area:"backoffice.widget",error:r,source:n,componentStack:s.componentStack}),children:e})}function fle(){const e=Dg();return T.useEffect(()=>{const t=window.setInterval(()=>{e.refetchQueries({type:"active"}).catch(n=>{Br({area:"backoffice.watchdog",error:n})})},3e4);return()=>window.clearInterval(t)},[e]),null}const fg="mostreams:preview-role",pg="mostreams:preview-role-changed";function SX(){if(typeof window>"u")return null;const e=window.localStorage.getItem(fg);return e==="fan"||e==="artist"||e==="label"||e==="producer"||e==="dj"||e==="podcaster"?e:null}function Yd(e){typeof window>"u"||(e?window.localStorage.setItem(fg,e):window.localStorage.removeItem(fg),window.dispatchEvent(new CustomEvent(pg)))}function xX(){const[e,t]=T.useState(null);return T.useEffect(()=>{const n=()=>t(SX());return n(),window.addEventListener(pg,n),window.addEventListener("storage",n),(
170)=>{window.removeEventListener(pg,n),window.removeEventListener("storage",n)}},[]),e}var RX=Symbol("radix.slottable");function EX(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=RX,t}var $A="AlertDialog",[AX]=Ug($A,[QR]),So=QR(),MA=e=>{const{__scopeAlertDialog:t,...n}=e,r=So(t);return p.jsx(pE,{...r,...n,modal:!0})};MA.displayName=$A;var TX="AlertDialogTrigger",NA=T.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,s=So(n);return p.jsx(mE,{...s,...r,ref:t})});NA.displayName=TX;var kX="AlertDialogPortal",jA=e=>{const{__scopeAlertDialog:t,...n}=e,r=So(t);return p.jsx(gE,{...r,...n})};jA.displayName=kX;var CX="AlertDialogOverlay",PA=T.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,s=So(n);return p.jsx(Hg,{...s,...r,ref:t})});PA.displayName=CX;var ki="AlertDialogContent",[OX,$X]=AX(ki),MX=EX("AlertDialogContent"),DA=T.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...s}=e,i=So(n),l=T.useRef(null),d=Er(t,l),h=T.useRef(null);return p.jsx(fL,{contentName:ki,titleName:IA,docsSlug:"alert-dialog",children:p.jsx(OX,{scope:n,cancelRef:h,children:p.jsxs(Gg,{role:"alertdialog",...i,...s,ref:d,onOpenAutoFocus:Rr(s.onOpenAutoFocus,f=>{f.preventDefault(),h.current?.focus({preventScroll:!0})}),onPointerDownOutside:f=>f.preventDefault(),onInteractOutside:f=>f.preventDefault(),children:[p.jsx(MX,{children:r}),p.jsx(jX,{contentRef:l})]})})})});DA.displayName=ki;var IA="AlertDialogTitle",LA=T.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,s=So(n);return p.jsx(Kg,{...s,...r,ref:t})});LA.displayName=IA;var zA="AlertDialogDescription",BA=T.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,s=So(n);return p.jsx(Zg,{...s,...r,ref:t})});BA.displayName=zA;var NX="AlertDialogAction",UA=T.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,s=So(n);return p.jsx(Wg,{...s,...r,ref:t})});UA.displayName=NX;var VA="AlertDialogCancel",FA=T.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:s}=$X(VA,n),i=So(n),l=Er(t,s);return p.jsx(Wg,{...i,...r,ref:l})});FA.displayName=VA;var jX=({contentRef:e})=>{const t=`\`${ki}\` requires a description for the component to be accessible for screen reader users. 171 172You can add a description to the \`${ki}\` by passing a \`${zA}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 173 174Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${ki}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. 175 176For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return T.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},PX=MA,DX=NA,IX=jA,qA=PA,HA=DA,GA=UA,KA=FA,ZA=LA,WA=BA;const LX=PX,zX=DX,BX=IX,YA=T.forwardRef(({className:e,...t},n)=>p.jsx(qA,{className:bn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));YA.displayName=qA.displayName;const JA=T.forwardRef(({className:e,...t},n)=>p.jsxs(BX,{children:[p.jsx(YA,{}),p.jsx(HA,{ref:n,className:bn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",e),...t})]}));JA.displayName=HA.displayName;const QA=({className:e,...t})=>p.jsx("div",{className:bn("flex flex-col space-y-2 text-center sm:text-left",e),...t});QA.displayName="AlertDialogHeader";const XA=({className:e,...t})=>p.jsx("div",{className:bn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});XA.displayName="AlertDialogFooter";const eT=T.forwardRef(({className:e,...t},n)=>p.jsx(ZA,{ref:n,className:bn("text-lg font-semibold",e),...t}));eT.displayName=ZA.displayName;const tT=T.forwardRef(({className:e,...t},n)=>p.jsx(WA,{ref:n,className:bn("text-sm text-muted-foreground",e),...t}));tT.displayName=WA.displayName;const nT=T.forwardRef(({className:e,...t},n)=>p.jsx(GA,{ref:n,className:bn(ey(),e),...t}));nT.displayName=GA.displayName;const rT=T.forwardRef(({className:e,...t},n)=>p.jsx(KA,{ref:n,className:bn(ey({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));rT.displayName=KA.displayName;function UX({variant:e="pill"}){const[t,n]=T.useState(!1),r=()=>{window.open("/","_blank","noopener,noreferrer"),n(!1)};return p.jsxs(LX,{open:t,onOpenChange:n,children:[p.jsx(zX,{asChild:!0,children:e==="icon"?p.jsx("button",{className:"w-10 h-10 rounded-lg bg-white/8 hover:bg-white/12 flex items-center justify-center",title:"View public site (new tab)","aria-label":"View public site",children:p.jsx(al,{className:"w-4 h-4"})}):p.jsxs("button",{className:"hidden md:inline-flex items-center gap-1.5 h-10 px-3 rounded-lg bg-white/8 hover:bg-white/12 text-xs font-extrabold uppercase tracking-wider text-muted-foreground hover:text-foreground",title:"View public site (new tab)",children:[p.jsx(al,{className:"w-3.5 h-3.5"}),"Public site"]})}),p.jsxs(JA,{children:[p.jsxs(QA,{children:[p.jsx(eT,{children:"Leave your back office?"}),p.jsx(tT,{children:"The public site is what fans see. To keep your workspace open, we'll launch the public site in a new tab. Your dashboard stays right here."})]}),p.jsxs(XA,{children:[p.jsx(rT,{children:"Stay in dashboard"}),p.jsx(nT,{onClick:r,children:"Open public site in new tab"})]})]})]})}const VX=[{value:"fan",label:"Fan"},{value:"artist",label:"Artist"},{value:"label",label:"Label"},{value:"producer",label:"Producer"},{value:"dj",label:"DJ"},{value:"podcaster",label:"Podcaster"}];function FX({active:e}){return p.jsxs("div",{className:"mx-3 mt-2 mb-1 rounded-xl bg-primary/10 ring-1 ring-primary/30 p-2",children:[p.jsxs("div",{className:"flex items-center justify-between mb-1.5 px-1",children:[p.jsx("div",{className:"text-[10px] font-bold uppercase tracking-[0.18em] text-primary",children:"Preview as"}),e&&p.jsx("button",{onClick:()=>Yd(null),className:"text-[10px] font-bold uppercase tracking-wider text-muted-foreground hover:text-foreground",children:"Stop"})]}),p.jsx("div",{className:"flex flex-wrap gap-1",children:VX.map(t=>{const n=e===t.value;return p.jsx("button",{onClick:()=>Yd(n?null:t.value),className:`text-[10px] font-semibold px-2 py-1 rounded-full border transition ${n?"border-primary bg-primary text-primary-foreground":"border-white/10 bg-white/5 text-muted-foreground hover:text-foreground hover:border-primary/40"}`,children:t.label},t.value)})})]})}function qX(){const[e,t]=T.useState(null);return T.useEffect(()=>{let n=!0;return(async()=>{const{data:r}=await qe.auth.getUser();if(!r.user)return;const{data:s}=await qe.from("profiles").select("id, handle, display_name, role, avatar_url, preferred_genres, country_code, country").eq("id",r.user.id).maybeSingle();if(!n||!s)return;let i=s;if(!i.country_code){const l=await TB();l&&n&&(await qe.from("profiles").update({country_code:l.code,country:l.name,latitude:l.lat,longitude:l.lng}).eq("id",r.user.id),i={...i,country_code:l.code,country:l.name})}n&&t(i)})(),()=>{n=!1}},[]),e}function HX(e){const[t,n]=T.useState(0);return T.useEffect(()=>{if(!e)return;let r=!0;const s=async()=>{const{count:l}=await qe.from("notifications").select("id",{count:"exact",head:!0}).eq("user_id",e).is("read_at",null);r&&n(l??0)};s();const i=qe.channel(`notif-${e}`).on("postgres_changes",{event:"*",schema:"public",table:"notifications",filter:`user_id=eq.${e}`},()=>s()).subscribe();return()=>{r=!1,qe.removeChannel(i)}},[e]),t}function GX(e){const[t,n]=T.useState(0);return T.useEffect(()=>{if(!e)return;let r=!0;const s=async()=>{const{count:l}=await qe.from("follows").select("follower_id",{count:"exact",head:!0}
176).eq("followee_id",e).eq("status","pending");r&&n(l??0)};s();const i=qe.channel(`follow-pending-${e}`).on("postgres_changes",{event:"*",schema:"public",table:"follows",filter:`followee_id=eq.${e}`},()=>s()).subscribe();return()=>{r=!1,qe.removeChannel(i)}},[e]),t}function KX({children:e,profile:t,title:n,subtitle:r,navGroupsOverride:s,extraNavGroups:i,extraNavPosition:l="before",topbarExtras:d,brandHref:h,defaultCollapsed:f=!1,showAdminEntry:g=!0}){const y=gl(),b=Bx({select:ve=>ve.location.pathname}),_=HX(t?.id),S=GX(t?.id),[E,x]=T.useState(f),[k,M]=T.useState(!1),[P,I]=T.useState(""),[F,G]=T.useState(!1),[U,V]=T.useState(!1);T.useEffect(()=>{if(!t?.id)return;let ve=!0;return(async()=>{const{data:Se}=await qe.from("profiles").select("tour_completed_at").eq("id",t.id).maybeSingle();ve&&!Se?.tour_completed_at&&V(!0)})(),()=>{ve=!1}},[t?.id]),T.useEffect(()=>{G(!1)},[b]);const ne=async()=>{Yd(null),await qe.auth.signOut(),y({to:"/login"})},W=t?.role??"fan",pe=xX(),de=W==="super_admin"&&pe?pe:W,$e=b==="/mc-60e9ca6cf6"||b.startsWith("/mc-60e9ca6cf6/"),Ce=de==="super_admin",ue=de==="podcaster",z=de==="dj",te=de==="producer",we=de==="advertiser",Pe=de==="artist"||de==="label"||de==="producer"||de==="dj",ye={label:"Main",items:[{to:"/dashboard",label:"Dashboard",icon:_D},{to:"/dashboard/music-library",label:"Music Library",icon:p1},{to:"/messages",label:"Chat",icon:il},{to:t?`/network/u/${t.handle}`:"/dashboard",label:"My Profile",icon:NR},{to:"/dashboard/gallery",label:"My Gallery",icon:H4}]},L={label:"Live",items:[{to:"/radio",label:"Mo Streams Radio",icon:cl},{to:"/network",label:"Network Room",icon:Ud},{to:"/dashboard/live-replays",label:"Live Replays",icon:Ci}]},ae={label:"Video",items:Pe||ue||Ce?[{to:"/studio/hub",label:"Video Studio",icon:gD}]:[{to:"/video-distribution",label:"Video",icon:Ci}]};let oe;if(Ce)oe=[ye,L,{label:"Studio",items:[{to:"/submit",label:"Submit Release",icon:yd},{to:"/dashboard/disc-studio",label:"Digital Disc Studio",icon:Qn},{to:"/dashboard/disc-build",label:"Build Your Disc",icon:Qn},{to:"/dashboard/mc-60e9ca6cf6/disc-print",label:"Disc Print Queue",icon:Qn},{to:"/my-library",label:"My Catalog",icon:Qn},{to:"/dashboard/merch",label:"Merch Store",icon:gi},{to:"/playlists",label:"Playlists",icon:Ha}]},{label:"Earnings",items:[{to:"/sales",label:"Sales & Royalties",icon:u1},{to:"/dashboard/sound-chart",label:"Sound Chart",icon:l1},{to:"/dashboard/disc-orders",label:"Disc Orders",icon:sm},{to:"/wallet",label:"Wallet",icon:ii},{to:"/dashboard/backers",label:"Fan Backing",icon:Bd},{to:"/royalty-splits",label:"Royalty Splits",icon:c1},{to:"/rewards",label:"Rewards",icon:jc}]},{label:"Grow",items:[{to:"/analytics",label:"Analytics",icon:Yu},{to:"/data",label:"Data",icon:Nc},{to:"/audience",label:"Audience & Social",icon:_i},{to:"/release-links",label:"Release Links",icon:al},{to:"/priority-pitch",label:"Priority Pitch",icon:Ha}]},{label:"Rights & Protection",items:[{to:"/rights",label:"Rights & Protection",icon:g1}]},{label:"Collecting",items:[{to:"/vault",label:"My Vault",icon:Qn},{to:"/marketplace",label:"Collectors Market",icon:gi}]},ae,{label:"Activity",items:[{to:"/follow-requests",label:"Follow Requests",icon:Wa,badge:S},{to:"/notifications",label:"Notifications",icon:si,badge:_}]}];else if(ue)oe=[ye,L,{label:"Studio",items:[{to:"/submit",label:"Submit Release",icon:yd}]},{label:"Earnings",items:[{to:"/wallet",label:"Wallet",icon:ii},{to:"/rewards",label:"Rewards",icon:jc}]},{label:"Grow",items:[{to:"/analytics",label:"Analytics",icon:Yu},{to:"/data",label:"Data",icon:Nc},{to:"/audience",label:"Audience & Social",icon:_i}]},ae,{label:"Activity",items:[{to:"/follow-requests",label:"Follow Requests",icon:Wa,badge:S},{to:"/notifications",label:"Notifications",icon:si,badge:_}]}];else if(Pe){const ve=[];te?ve.push({to:"/dashboard/producer/beat-maker",label:"Beat Maker",icon:p1}):z&&ve.push({to:"/dashboard/dj/mix",label:"Turntable Mixer",icon:Qn}),ve.push({to:"/submit",label:"Submit Release",icon:yd},{to:"/dashboard/disc-studio",label:"Digital Disc Studio",icon:Qn},{to:"/dashboard/disc-build",label:"Build Your Disc",icon:Qn},{to:"/my-library",label:"My Catalog",icon:Qn}),z?ve.push({to:"/dj/crate",label:"DJ Crate",icon:Ha}):te&&ve.push({to:"/marketplace/upload",label:"Upload Your Beats",icon:gi}),ve.push({to:"/dashboard/merch",label:"Merch Store",icon:gi}),ve.push({to:"/playlists",label:"Playlists",icon:Ha}),oe=[ye,L,{label:"Studio",items:ve},{label:"Earnings",items:[{to:"/sales",label:"Sales & Royalties",icon:u1},{to:"/dashboard/sound-chart",label:"Sound Chart",icon:l1},{to:"/dashboard/disc-orders",label:"Disc Orders",icon:sm},{to:"/wallet",label:"Wallet",icon:ii},{to:"/dashboard/backers",label:"Fan Backing",icon:Bd},{to:"/royalty-splits",label:"Royalty Splits",icon:c1},{to:"/rewards",label:"Rewards",icon:jc}]},{label:"Grow",items:[{to:"/analytics",label:"Analytics",icon:Yu},{to:"/data",label:"Data",icon:Nc},{to:"/audience",label:"Audience & Social",icon:_i},{to:"/release-links",label:"Release Links",icon:al},{to:"/priority-pitch",label:"Priority Pitch",icon:Ha}]},{label:"Rights & Protection",items:[{to:"/rights",label:"Rights & Protection",icon:g1}]},ae,{label:"Activity",items:[{to:"/follow-requests",label:"Follow Requests",icon:Wa,badge:S},{to:"/notifications",label:"Notifications",icon:si,badge:_}]}]}else we?oe=[ye,L,{label:"Advertising",items:[{to:"/advertising",label:"Campaigns",icon:MD},{to:"/analytics",label:"Analytics",icon:Yu},{to:"/data",label:"Data",icon:Nc},{to:"/audience",label:"Audience",icon:_i}]},{label:"Earnings",items:[{to:"/wallet",label:"Wallet",icon:ii},{to:"/rewards",label:"Rewards",icon:jc}]},ae,{label:"Activity",items:[{to:"/follow-requests",label:"Follow Requests",icon:Wa,badge:S},{to:"/notifications",label:"Notifications",icon:si,badge:_}]}]:oe=[ye,L,{label:"Digital Disc",items:[{to:"/redeem",label:"Redeem a Code",icon:Qn},{to:"/discs",label:"My Discs",icon:Qn},{to:"/vault",label:"Mixtape Builder",icon:Ha},{to:"/playlists",label:"My Playlists",icon:Ha},{to:"/marketplace",label:"Collectors Market",icon:gi},{to:"/dashboard/disc-orders",label:"My Orders",icon:sm}]},ae,{label:"Earnings",items:[{to:"/wallet",label:"Wallet",icon:ii},{to:"/rewards",label:"Rewards",icon:jc}]},{label:"Grow",items:[{to:"/data",label:"Data",icon:Nc}]},{label:"Activity",items:[{to:"/follow-requests",label:"Follow Requests",icon:Wa,badge:S},{to:"/notifications",label:"Notifications",icon:si,badge:_}]}];if(s&&s.length>0?oe=s:oe=[...oe,{label:"Account",items:[{to:"/account/privacy",label:"Privacy & Delete Account",icon:Bg}]}],i&&i.length>0){const ve=i;oe=l==="before"?[...ve,...oe]:[...oe,...ve]}Ce&&!s&&(oe=oe.filter(ve=>ve.label!=="Admin"&&ve.label!=="Preview Dashboards"));const ce=new Set,he=oe.map(ve=>({...ve,items:ve.items.filter(Se=>ce.has(Se.to)?!1:(ce.add(Se.to),!0))})).filter(ve=>ve.items.length>0),Re=P.trim().toLowerCase(),Le=Re?he.map(ve=>({...ve,items:ve.items.filter(Se=>Se.label.toLowerCase().includes(Re)||ve.label.toLowerCase().includes(Re))})).filter(ve=>ve.items.length>0):he;return p.jsxs("div",{className:"min-h-screen text-foreground flex",style:{background:"var(--backoffice-bg)"},children:[F&&p.jsx("button",{"aria-label":"Close menu",onClick:()=>G(!1),className:"md:hidden fixed inset-0 z-30 bg-black/60 backdrop-blur-sm"}),p.jsxs("aside",{className:`fixed left-0 top-0 bottom-0 z-40 border-r border-white/5 flex flex-col transition-transform duration-200 overflow-y-auto ${E?"w-16":"w-64"} ${F?"translate-x-0":"-translate-x-full"} ${k?"md:-translate-x-full":"md:translate-x-0"}`,style:{background:"var(--backoffice-bg)"},children:[p.jsxs("div",{className:"flex items-center gap-3 px-4 py-5 border-b border-white/5",children:[p.jsx("button",{onClick:()=>x(ve=>!ve),className:"hidden md:inline-flex p-1.5 rounded hover:bg-white/5 shrink-0","aria-label":"Toggle sidebar width",children:p.jsx(h1,{className:"w-5 h-5"})}),p.jsx("button",{onClick:()=>G(!1),className:"md:hidden p-1.5 rounded hover:bg-white/5 shrink-0","aria-label":"Close menu",children:p.jsx(fa,{className:"w-5 h-5"})}),!E&&p.jsx(An,{to:h??"/dashboard",className:"flex-1 min-w-0",title:"Back to your dashboard",children:p.jsx("img",{src:_o(ry,480),alt:"MO STREAMS",className:"h-8 w-auto",loading:"lazy",decoding:"async"})})]}),p.jsx(mX,{isAdmin:Ce,collapsed:E}),W==="super_admin"&&!E&&p.jsx(FX,{active:pe}),p.jsxs("nav",{className:"flex-1 p-3 space-y-4",children:[!E&&p.jsxs("div",{className:"relative px-1 pb-1",children:[p.jsx($R,{className:"w-3.5 h-3.5 absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground
176/60 pointer-events-none"}),p.jsx("input",{type:"search",value:P,onChange:ve=>I(ve.target.value),placeholder:"Search navigationâ¦",className:"w-full bg-white/5 hover:bg-white/8 focus:bg-white/10 border border-white/5 focus:border-primary/40 rounded-lg pl-8 pr-2 py-2 text-xs text-foreground placeholder:text-muted-foreground/60 outline-none transition-colors"})]}),Le.length===0&&!E&&p.jsx("div",{className:"px-3 py-4 text-[11px] text-muted-foreground/70",children:"No matches."}),Le.map(ve=>p.jsxs("div",{className:"space-y-0.5","data-tour":`group-${ve.label.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}`,children:[!E&&p.jsx("div",{className:"px-3 pt-1 pb-1 text-[10px] font-bold uppercase tracking-[0.18em] text-muted-foreground/60",children:ve.label}),ve.items.map(Se=>{const Et=Se.icon,it=b===Se.to||Se.to!=="/dashboard"&&b.startsWith(Se.to);return p.jsxs(An,{to:Se.to,...Se.params?{params:Se.params}:{},className:`flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm font-medium transition-colors ${it?"bg-primary/15 text-primary font-semibold":"text-muted-foreground hover:text-foreground hover:bg-white/5"}`,title:E?Se.label:void 0,children:[p.jsx(Et,{className:"w-[18px] h-[18px] shrink-0"}),!E&&p.jsx("span",{className:"flex-1 truncate",children:Se.label}),!E&&Se.badge?p.jsx("span",{className:"ml-auto text-[10px] font-bold bg-primary text-primary-foreground rounded-full px-2 py-0.5",children:Se.badge}):null]},Se.label)})]},ve.label))]}),t&&!E&&p.jsxs("div",{className:"p-3 border-t border-white/5 space-y-2",children:[p.jsxs("div",{className:"flex items-center gap-3 px-2 py-2 rounded-xl bg-white/5",children:[p.jsx("div",{className:"w-9 h-9 rounded-full bg-gradient-to-br from-primary to-orange-600 flex items-center justify-center text-xs font-bold text-primary-foreground",children:t.display_name.slice(0,1).toUpperCase()}),p.jsxs("div",{className:"min-w-0 flex-1",children:[p.jsx("div",{className:"text-sm font-semibold truncate",children:t.display_name}),p.jsx("div",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:t.role.replace("_"," ")})]})]}),p.jsxs("button",{onClick:ne,className:"w-full flex items-center gap-2 px-3 py-2 rounded-lg text-xs font-bold uppercase tracking-wider text-muted-foreground hover:text-foreground hover:bg-white/5",children:[p.jsx(kD,{className:"w-3.5 h-3.5"})," Sign out"]})]})]}),p.jsxs("div",{className:`flex-1 ${k?"md:ml-0":E?"md:ml-16":"md:ml-64"}`,children:[p.jsxs("header",{className:"sticky top-0 z-30 flex items-center justify-between px-6 py-3 border-b border-white/5 backdrop-blur-xl",style:{background:"color-mix(in oklab, var(--backoffice-bg) 80%, transparent)"},children:[p.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[p.jsx("button",{onClick:()=>G(!0),className:"md:hidden p-2 -ml-2 rounded-lg hover:bg-white/5 shrink-0","aria-label":"Open menu",children:p.jsx(h1,{className:"w-5 h-5"})}),p.jsx("button",{onClick:()=>M(ve=>!ve),className:"hidden md:inline-flex p-2 -ml-2 rounded-lg text-primary hover:bg-primary/15 ring-1 ring-primary/30 shrink-0","aria-label":k?"Show sidebar":"Hide sidebar for full screen",title:k?"Show sidebar":"Hide sidebar (full screen)",children:k?p.jsx(FD,{className:"w-5 h-5"}):p.jsx(UD,{className:"w-5 h-5"})}),p.jsxs("div",{className:"min-w-0",children:[n&&p.jsx("h1",{className:"font-display text-xl md:text-2xl tracking-tight truncate",children:p.jsx("span",{className:"bg-gradient-to-r from-primary to-orange-500 bg-clip-text text-transparent",children:n})}),r&&p.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:r})]})]}),p.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[d,p.jsx(UX,{variant:"pill"}),de==="super_admin"&&!$e&&g&&p.jsxs(An,{to:"/mc-60e9ca6cf6",className:"hidden sm:inline-flex items-center gap-1.5 h-10 px-3 rounded-lg bg-primary/15 hover:bg-primary/25 text-primary ring-1 ring-primary/40 text-xs font-extrabold uppercase tracking-wider",title:"Open Super Admin back office",children:[p.jsx(ll,{className:"w-4 h-4"}),"Admin"]}),de==="super_admin"&&!$e&&g&&p.jsx(An,{to:"/mc-60e9ca6cf6",className:"sm:hidden w-10 h-10 rounded-lg bg-primary/15 hover:bg-primary/25 text-primary ring-1 ring-primary/40 flex items-center justify-center",title:"Open Super Admin back office","aria-label":"Open Super Admin back office",children:p.jsx(ll,{className:"w-4 h-4"})}),p.jsx(An,{to:"/wallet",className:"w-10 h-10 rounded-lg bg-white/8 hover:bg-white/12 flex items-center justify-center",title:"Wallet",children:p.jsx(ii,{className:"w-4 h-4"})}),p.jsxs(An,{to:"/notifications",className:"relative w-10 h-10 rounded-lg bg-white/8 hover:bg-white/12 flex items-center justify-center",title:"Notifications",children:[p.jsx(si,{className:"w-4 h-4"}),_>0&&p.jsx("span",{className:"absolute top-1 right-1 w-2 h-2 rounded-full bg-primary"})]}),t&&p.jsxs(An,{to:"/network/u/$handle",params:{handle:t.handle},className:"relative w-10 h-10 rounded-full overflow-hidden bg-gradient-to-br from-primary to-orange-600 flex items-center justify-center text-xs font-bold text-primary-foreground",title:t.country??void 0,children:[t.avatar_url?p.jsx("img",{src:_o(t.avatar_url,960),alt:"",className:"w-full h-full object-cover",loading:"lazy",decoding:"async"}):t.display_name.slice(0,1).toUpperCase(),t.country_code&&p.jsx("span",{className:"absolute -bottom-0.5 -right-0.5 rounded-full bg-card/95 ring-1 ring-border px-0.5 leading-none",children:p.jsx(_l,{code:t.country_code,size:"xs"})})]})]})]}),p.jsx("main",{className:`mx-auto w-full ${k?"max-w-[1920px]":"max-w-[1760px]"} p-2 md:p-3 pb-16 text-[13px] [zoom:0.75]`,children:p.jsxs(wX,{resetKey:b,children:[W==="super_admin"&&pe&&p.jsxs("div",{className:"mb-3 rounded-xl border border-primary/40 bg-primary/10 px-4 py-2 text-xs text-foreground flex items-center justify-between gap-3",children:[p.jsxs("div",{children:[p.jsxs("span",{className:"font-bold uppercase tracking-[0.18em] text-primary",children:["Previewing as ",pe]}),p.jsxs("span",{className:"text-muted-foreground ml-2",children:["â the sidebar and dashboard match what a ",pe," sees."]})]}),p.jsx("button",{onClick:()=>Yd(null),className:"text-[11px] font-bold uppercase tracking-wider text-primary hover:text-foreground shrink-0",children:"Stop previewing"})]}),e]})})]}),t&&U&&p.jsx(pX,{profile:t,autoStart:!0,onClose:()=>V(!1)}),t&&p.jsx(bX,{userId:t.id})]})}const gS=["oklch(0.72 0.18 25)","oklch(0.72 0.18 240)","oklch(0.74 0.18 165)","oklch(0.72 0.18 50)","oklch(0.7 0.2 320)","oklch(0.72 0.16 140)"],ZX=["ð","ð","ð¥°","ð","ð","ð¤©","ð","ð","ð¥","ð¯","â¤ï¸","ð","ð","ð","ðª","ð¤","ð","ð","ð","ðµ","ð¤","ð§","ðº","ð","ð¿","ð","â","â¨","ð","ð¥","ð¤¯","ð¥¶"],WX=["â¤ï¸","ð¥","ð","ð","ð¯","ð"];function YX(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)>>>0;return gS[t%gS.length]}function JX({handle:e,displayName:t,isHost:n=!1,className:r}){const[s,i]=T.useState([]),[l,d]=T.useState(""),[h,f]=T.useState({country:null,role:null}),g=T.useRef(null),y=T.useRef(null),b=T.useRef(null),_=T.useRef(null),S=T.useRef(!0),[E,x]=T.useState(!1),[k,M]=T.useState(!1),[P,I]=T.useState([]),F=T.useRef(null);T.useEffect(()=>{let W=!1;return(async()=>{const{data:{user:pe}}=await qe.auth.getUser();if(!pe||W)return;const{data:de}=await qe.from("profiles").select("country_code, role").eq("id",pe.id).maybeSingle();W||!de||f({country:de.country_code??null,role:de.role??null})})(),()=>{W=!0}},[]),T.useEffect(()=>{const W=`live-chat-${e}`;if(b.current!==null&&(window.clearTimeout(b.current),b.current=null),g.current&&y.current===W)return()=>{b.current=window.setTimeout(()=>{const de=g.current;g.current=null,y.current=null,b.current=null,de&&qe.removeChannel(de)},0)};const pe=qe.channel(W,{config:{broadcast:{self:!0}}});return g.current=pe,y.current=W,pe.on("broadcast",{event:"msg"},de=>{const $e=de.payload;i(Ce=>[...Ce.slice(-200),$e])}),pe.on("broadcast",{event:"reaction"},de=>{const $e=de.payload?.emoji;if(!$e)return;window.dispatchEvent(new CustomEvent(`mostreams:live-reaction:${e}`,{detail:{emoji:$e}}));const Ce={id:crypto.randomUUID(),emoji:$e,x:6+Math.random()*82};I(ue=>[...ue.slice(-20),Ce]),window.setTimeout(()=>{I(ue=>ue.filter(z=>z.id!==Ce.id))},2400)}),pe.subscribe(),()=>{b.current=window.setTimeout(()=>{g.current===pe&&(g.current=null,y.current=null,b.current=null,qe.removeChannel(pe))},0)}},[e,t,n]),T.useEffect(()=>{const W=_.current;W&&(S.current?W.scrollTop=W.scrollHeight:x(!0))},[s]);const G=()=>{const W=_.current;if(!W)return;const pe=W.scrollHeight-W.scrollTop-W.clientHeight<24;S.current=pe,pe&&E&&x(!1)},U=()=>{const W=l.trim();if(!W||!g.current)return;const pe={id:crypto.randomUUID(),user:n?`${t} (host)`:t,text:W,ts:Date.now(),color:n?"oklch(0.7 0.22 28)":YX(t),
176countryCode:h.country,role:h.role};g.current.send({type:"broadcast",event:"msg",payload:pe}).catch(de=>console.warn("[live chat] message send failed",de)),d(""),M(!1)},V=W=>{g.current&&g.current.send({type:"broadcast",event:"reaction",payload:{emoji:W}}).catch(pe=>console.warn("[live chat] reaction send failed",pe))},ne=W=>{d(pe=>pe+W),M(!1),window.setTimeout(()=>F.current?.focus(),0)};return p.jsxs("div",{className:`relative rounded-2xl border border-border bg-card flex flex-col ${r??"h-[420px]"}`,children:[p.jsxs("div",{className:"flex items-center justify-between p-3 border-b border-border",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(il,{className:"w-4 h-4 text-primary"}),p.jsx("div",{className:"text-xs font-black uppercase tracking-wider",children:"Live Chat Room"})]}),p.jsxs("div",{className:"inline-flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[p.jsx(_i,{className:"w-3.5 h-3.5"})," Live room"]})]}),p.jsx("div",{ref:_,onScroll:G,className:"flex-1 min-h-0 overflow-y-auto overscroll-contain p-3 space-y-2",children:s.length===0?p.jsx("div",{className:"text-xs text-muted-foreground text-center py-8",children:"Say hi ð â chat with everyone watching this live."}):s.map(W=>p.jsxs("div",{className:"text-sm leading-snug",children:[p.jsx("span",{className:"font-bold mr-1.5",style:{color:W.color},children:W.user}),W.countryCode&&p.jsx("span",{className:"text-base leading-none mr-1.5 align-middle",title:yo(W.countryCode)?.name??W.countryCode,"aria-label":yo(W.countryCode)?.name??W.countryCode,children:QE(W.countryCode)}),W.role&&p.jsx("span",{className:"text-[9px] font-bold tracking-wider uppercase px-1.5 py-0.5 rounded bg-primary/15 text-primary mr-1.5 align-middle",children:W.role}),p.jsx("span",{className:"text-[10px] text-muted-foreground mr-2",children:new Date(W.ts).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}),p.jsx("div",{className:"text-foreground/90",children:W.text})]},W.id))}),E&&p.jsxs("button",{type:"button",onClick:()=>{const W=_.current;W&&(W.scrollTop=W.scrollHeight,S.current=!0,x(!1))},className:"absolute bottom-16 left-1/2 -translate-x-1/2 inline-flex items-center gap-1 rounded-full bg-primary text-primary-foreground text-[11px] font-bold px-3 py-1.5 shadow-lg",children:[p.jsx(z4,{className:"w-3 h-3"})," New messages"]}),p.jsx("div",{className:"pointer-events-none absolute inset-0 overflow-hidden",children:P.map(W=>p.jsx("span",{className:"absolute text-2xl select-none animate-float-up drop-shadow-[0_2px_6px_rgba(0,0,0,0.6)]",style:{left:`${W.x}%`,bottom:"20%"},children:W.emoji},W.id))}),p.jsxs("div",{className:"px-3 pt-2 border-t border-border flex items-center gap-1.5 overflow-x-auto no-scrollbar",children:[p.jsxs("span",{className:"text-[10px] font-bold uppercase tracking-wider text-muted-foreground mr-1 inline-flex items-center gap-1",children:[p.jsx(Bd,{className:"w-3 h-3 text-primary"})," React"]}),WX.map(W=>p.jsx("button",{onClick:()=>V(W),className:"text-lg leading-none px-2 py-1 rounded-full bg-background hover:bg-primary/10 border border-border hover:border-primary transition","aria-label":`React with ${W}`,children:W},W))]}),k&&p.jsx("div",{className:"mx-3 mt-2 rounded-xl border border-border bg-background p-2 grid grid-cols-8 gap-1 max-h-40 overflow-y-auto",children:ZX.map(W=>p.jsx("button",{onClick:()=>ne(W),className:"text-xl leading-none p-1.5 rounded hover:bg-primary/10","aria-label":`Insert ${W}`,children:W},W))}),p.jsxs("div",{className:"p-3 flex items-center gap-2",children:[p.jsx("button",{type:"button",onClick:()=>M(W=>!W),"aria-label":"Emoji picker",className:`w-10 h-10 shrink-0 rounded-lg border inline-flex items-center justify-center ${k?"bg-primary/10 border-primary text-primary":"bg-background border-border hover:border-primary/60"}`,children:p.jsx(pI,{className:"w-4 h-4"})}),p.jsx("input",{ref:F,value:l,onChange:W=>d(W.target.value),onKeyDown:W=>{W.key==="Enter"&&!W.shiftKey&&(W.preventDefault(),U())},placeholder:"Say something to the roomâ¦",maxLength:300,className:"flex-1 rounded-lg bg-background border border-border px-3 py-2 text-sm focus:outline-none focus:border-primary"}),p.jsx("button",{onClick:U,"aria-label":"Send message",className:"w-10 h-10 rounded-lg bg-primary text-primary-foreground inline-flex items-center justify-center hover:opacity-90",children:p.jsx(zg,{className:"w-4 h-4"})})]})]})}const QX=ke({method:"POST"}).middleware([ze]).handler(Oe("706d16d50d68634478fe0b9a306d35da25c2cd043f423415c65559ff58d04a04")),yS=2e3;function XX({userId:e,handle:t,displayName:n,roleLabel:r="DJ Live",idleTitle:s="Go live for your fans.",liveTitle:i="You're live on the webcam.",compact:l=!1}){const d=T.useRef(null),h=T.useRef(null),f=T.useRef(null),g=T.useRef(null),y=T.useRef(null),[b,_]=T.useState(!1),[S,E]=T.useState(!1),[x,k]=T.useState(null),[M,P]=T.useState(""),[I,F]=T.useState(!0),[G,U]=T.useState(!0),[V,ne]=T.useState(0),[W,pe]=T.useState(!1),[de,$e]=T.useState(!1),[Ce,ue]=T.useState(""),[z,te]=T.useState(!1),[we,Pe]=T.useState([]),ye=pd(QX);T.useEffect(()=>((async()=>
176{if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e))return;const{data:Q}=await qe.from("dj_live_sessions").select("id, title, viewer_count").eq("user_id",e).is("ended_at",null).order("started_at",{ascending:!1}).limit(1).maybeSingle();Q&&await qe.from("dj_live_sessions").update({ended_at:new Date().toISOString()}).eq("id",Q.id)})(),()=>{oe()}),[e]);const L=typeof window<"u"?`${window.location.origin}/live/${t}`:`/live/${t}`,ae=typeof window<"u"?`${window.location.origin}/tip/${t}`:`/tip/${t}`,oe=()=>{g.current&&(window.clearInterval(g.current),g.current=null),f.current&&(f.current.getTracks().forEach(K=>K.stop()),f.current=null),d.current&&(d.current.srcObject=null)},ce=async()=>{const K=d.current,Q=h.current;if(!K||!Q||K.readyState<2)return;const be=640,Te=Math.round(K.videoHeight/Math.max(K.videoWidth,1)*be)||360;Q.width=be,Q.height=Te;const Qe=Q.getContext("2d");if(!Qe)return;Qe.drawImage(K,0,0,be,Te);const yt=await new Promise(mr=>Q.toBlob(mr,"image/jpeg",.7));if(!yt)return;const ft=`${e}/latest.jpg`,{error:tn}=await qe.storage.from("dj-live").upload(ft,yt,{contentType:"image/jpeg",upsert:!0,cacheControl:"1"});tn||y.current&&await qe.from("dj_live_sessions").update({snapshot_path:ft,updated_at:new Date().toISOString()}).eq("id",y.current)},he=async()=>{k(null),E(!0);try{const K=await navigator.mediaDevices.getUserMedia({video:{width:{ideal:1280},height:{ideal:720},facingMode:"user"},audio:!0});f.current=K,d.current&&(d.current.srcObject=K,d.current.muted=!0,await d.current.play().catch(()=>{}));const{data:Q,error:be}=await qe.from("dj_live_sessions").insert({user_id:e,handle:t,title:M.trim()||`${n} live`,viewer_count:0}).select("id").single();if(be||!Q)throw new Error(be?.message||"Could not start session");y.current=Q.id,_(!0),ye({data:{sessionId:Q.id,handle:t,title:M.trim()||`${n} live`}}).catch(()=>{}),window.setTimeout(ce,500),g.current=window.setInterval(ce,yS)}catch(K){oe(),k(K?.message||"Could not access camera/mic. Allow permissions and try again.")}finally{E(!1)}},Re=async()=>{E(!0);try{y.current&&await qe.from("dj_live_sessions").update({ended_at:new Date().toISOString()}).eq("id",y.current)}finally{oe(),y.current=null,_(!1),E(!1)}};T.useEffect(()=>{if(!b||!y.current)return;const K=y.current,Q=qe.channel(`live-${K}`).on("postgres_changes",{event:"UPDATE",schema:"public",table:"dj_live_sessions",filter:`id=eq.${K}`},be=>{const Te=be?.new?.viewer_count;typeof Te=="number"&&ne(Te)}).subscribe();return()=>{qe.removeChannel(Q)}},[b]);const Le=()=>{const K=f.current;if(!K)return;const Q=!I;K.getAudioTracks().forEach(be=>be.enabled=Q),F(Q)},ve=()=>{const K=f.current;if(!K)return;const Q=!G;K.getVideoTracks().forEach(be=>be.enabled=Q),U(Q)},Se=async()=>{try{await navigator.clipboard.writeText(L),pe(!0),window.setTimeout(()=>pe(!1),1500)}catch{}},Et=async()=>{try{await navigator.clipboard.writeText(ae),$e(!0),window.setTimeout(()=>$e(!1),1500)}catch{}},it=async()=>{const K=Ce.trim().replace(/^@/,"");if(K){if(we.some(Q=>Q.handle.toLowerCase()===K.toLowerCase())){gd.error("Already invited");return}te(!0);try{const{data:Q}=await qe.from("profiles").select("handle, display_name, country_code, role, id").eq("handle",K).maybeSingle();if(!Q){gd.error(`No member found with @${K}`);return}const be=`${L}?join=${encodeURIComponent(Q.handle)}`;try{await navigator.clipboard.writeText(be)}catch{}await qe.from("direct_messages").insert({sender_id:e,recipient_id:Q.id,body:`Come live with me on MO STREAMS â ${be}`}).then(()=>{},()=>{}),Pe(Te=>[...Te,{handle:Q.handle,display_name:Q.display_name,country_code:Q.country_code??null,role:Q.role??""}]),ue(""),gd.success(`Invited @${Q.handle} â link copied & DM sent`)}finally{te(!1)}}},ht=K=>{Pe(Q=>Q.filter(be=>be.handle!==K))};return p.jsxs("section",{className:`rounded-3xl border border-border relative overflow-hidden ${l?"p-3":"p-5 sm:p-6"}`,style:{background:b?"linear-gradient(135deg, color-mix(in oklab, oklch(0.65 0.25 25) 30%, hsl(var(--card))) 0%, hsl(var(--card)) 75%)":"linear-gradient(135deg, color-mix(in oklab, oklch(0.72 0.18 195) 22%, hsl(var(--card))) 0%, hsl(var(--card)) 70%)"},children:[p.jsxs("div",{className:`flex items-start justify-between flex-wrap gap-3 ${l?"mb-2":"mb-4"}`,children:[p.jsxs("div",{children:[p.jsxs("div",{className:"text-[10px] font-bold uppercase tracking-[0.2em] mb-1 flex items-center gap-2",style:{color:b?"oklch(0.7 0.22 25)":"hsl(var(--primary))"},children:[p.jsx(cl,{className:`w-3 h-3 ${b?"animate-pulse":""}`})," ",b?"ON AIR":r]}),p.jsx("h2",{className:`font-display font-black tracking-tight ${l?"text-sm":"text-2xl sm:text-3xl"}`,children:b?i:s}),!l&&p.jsx("p",{className:"text-sm text-muted-foreground mt-1 max-w-xl",children:b?"Fans on your live page can see and hear you in real-time. Share the link to invite them.":"Hit Go Live to broadcast your webcam straight to fans on your public live page."})]}),b&&p.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full bg-background/60 border border-border px-3 py-1.5 text-xs font-semibold",children:[p.jsx(_i,{className:"w-3.5 h-3.5 text-primary"})," ",V," watching"]})]}),p.jsxs("div",{className:`grid gap-3 ${l?"grid-cols-[1.6fr_1fr]":"lg:grid-cols-[1.4fr_1fr] gap-4"}`,children:[p.jsxs("div",{className:l?"space-y-2":"space-y-3",children:[p.jsxs("div",{className:`relative rounded-2xl overflow-hidden bg-black border border-border ${l?"h-[180px]":"aspect-video"}
176`,children:[p.jsx("video",{ref:d,playsInline:!0,muted:!0,className:"w-full h-full object-cover"}),p.jsx("canvas",{ref:h,className:"hidden"}),!b&&p.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-muted-foreground text-xs px-2 text-center",children:"Camera preview appears here when you go live"}),b&&p.jsxs("div",{className:"absolute top-3 left-3 inline-flex items-center gap-1.5 rounded-full bg-red-600 text-white px-2.5 py-1 text-[10px] font-bold uppercase tracking-wider",children:[p.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-white animate-pulse"})," Live"]})]}),b&&!l&&p.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-2",children:[p.jsxs("button",{onClick:ve,className:"rounded-lg border border-border bg-background hover:bg-card px-3 py-2 text-xs font-bold inline-flex items-center justify-center gap-2",children:[G?p.jsx(Ci,{className:"w-4 h-4"}):p.jsx(v1,{className:"w-4 h-4 text-red-500"})," ",G?"Cam on":"Cam off"]}),p.jsxs("button",{onClick:Le,className:"rounded-lg border border-border bg-background hover:bg-card px-3 py-2 text-xs font-bold inline-flex items-center justify-center gap-2",children:[I?p.jsx(Ud,{className:"w-4 h-4"}):p.jsx(f1,{className:"w-4 h-4 text-red-500"})," ",I?"Mic on":"Mic off"]}),p.jsxs("button",{onClick:Se,className:"rounded-lg border border-border bg-background hover:bg-card px-3 py-2 text-xs font-bold inline-flex items-center justify-center gap-2 text-primary",children:[p.jsx(Ju,{className:"w-4 h-4"})," ",W?"Copied":"Copy link"]}),p.jsx("button",{onClick:Re,disabled:S,className:"rounded-lg bg-red-600 hover:bg-red-700 text-white px-3 py-2 text-xs font-bold inline-flex items-center justify-center gap-2 disabled:opacity-50",children:S?"Endingâ¦":"End live"})]})]}),p.jsx("div",{className:l?"space-y-2":"space-y-3",children:b&&!l?p.jsx(JX,{handle:t,displayName:n,isHost:!0,className:"h-full min-h-[340px]"}):p.jsx(p.Fragment,{children:b?p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[p.jsxs("button",{onClick:ve,className:`rounded-lg border border-border bg-background hover:bg-card text-xs font-bold inline-flex items-center justify-center gap-2 ${l?"px-2 py-1.5":"px-3 py-2"}`,children:[G?p.jsx(Ci,{className:"w-4 h-4"}):p.jsx(v1,{className:"w-4 h-4 text-red-500"})," ",G?"Camera on":"Camera off"]}),p.jsxs("button",{onClick:Le,className:`rounded-lg border border-border bg-background hover:bg-card text-xs font-bold inline-flex items-center justify-center gap-2 ${l?"px-2 py-1.5":"px-3 py-2"}`,children:[I?p.jsx(Ud,{className:"w-4 h-4"}):p.jsx(f1,{className:"w-4 h-4 text-red-500"})," ",I?"Mic on":"Mic off"]})]}),!l&&p.jsxs("div",{className:"rounded-lg border border-border bg-background p-3 space-y-2",children:[p.jsx("div",{className:"text-[10px] font-bold uppercase tracking-wider text-muted-foreground",children:"Share with fans"}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("input",{readOnly:!0,value:L,className:"flex-1 bg-transparent text-xs text-foreground focus:outline-none truncate"}),p.jsxs("button",{onClick:Se,className:"text-[11px] font-bold uppercase tracking-wider text-primary inline-flex items-center gap-1",children:[p.jsx(Ju,{className:"w-3 h-3"})," ",W?"Copied":"Copy"]})]}),p.jsxs("a",{href:L,target:"_blank",rel:"noreferrer",className:"text-[11px] font-bold uppercase tracking-wider text-primary inline-flex items-center gap-1",children:[p.jsx(al,{className:"w-3 h-3"})," Open fan view"]}),p.jsxs("div",{className:"pt-2 mt-2 border-t border-border space-y-2",children:[p.jsxs("div",{className:"text-[10px] font-bold uppercase tracking-wider text-muted-foreground flex items-center gap-1.5",children:[p.jsx(Bd,{className:"w-3 h-3 text-pink-500"})," Tip jar link"]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("input",{readOnly:!0,value:ae,className:"flex-1 bg-transparent text-xs text-foreground focus:outline-none truncate"}),p.jsxs("button",{onClick:Et,className:"text-[11px] font-bold uppercase tracking-wider text-pink-500 inline-flex items-center gap-1",children:[p.jsx(Ju,{className:"w-3 h-3"})," ",de?"Copied":"Copy"]})]}),p.jsx("p",{className:"text-[10px] text-muted-foreground leading-relaxed",children:"Share this link anywhere. Tips land in your wallet â view them in the back office."})]})]}),l&&p.jsxs("button",{onClick:Se,className:"w-full rounded-lg border border-border bg-background hover:bg-card px-2 py-1.5 text-[11px] font-bold uppercase tracking-wider text-primary inline-flex items-center justify-center gap-1",children:[p.jsx(Ju,{className:"w-3 h-3"})," ",W?"Copied link":"Copy fan link"]}),p.jsx("button",{onClick:Re,disabled:S,className:`w-full rounded-full text-xs font-bold uppercase tracking-wider inline-flex items-center justify-center gap-2 bg-red-600 hover:bg-red-700 text-white disabled:opacity-50 ${l?"h-9":"h-11"}`,children:S?"Endingâ¦":"End live"})]}):p.jsxs(p.Fragment,{children:[!l&&p.jsxs("label",{className:"block",children:[p.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider text-muted-foreground",children:"Stream title"}),p.jsx("input",{value:M,onChange:K=>P(K.target.value),placeholder:`${n} live`,maxLength:80,className:"mt-1 w-full rounded-lg bg-background border border-border px-3 py-2 text-sm focus:outline-none focus:border-primary"})]}),p.jsxs("button",{onClick:he,disabled:S,className:`w-full btn-gradient rounded-full text-xs font-bold uppercase tracking-wider inline-flex items-center justify-center gap-2 text-primary-foreground disabled:opacity-50 ${l?"h-9":"h-12"}`,children:[p.jsx(cl,{className:"w-4 h-4"})," ",S?"Startingâ¦":"Go Live"]}),x&&p.jsx("div",{className:"text-xs text-red-500",children:x}),!l&&p.jsxs("p",{className:"text-[11px] text-muted-foreground leading-relaxed",children:["We'll ask for camera & microphone access. Your fans see a fresh frame every ",yS/1e3,"s on your public live page."]})]})})})]}),b&&!l&&p.jsxs("p",{className:"text-[11px] text-muted-foreground mt-3",children:["Everyone watching at ",p.jsxs("span",{className:"font-mono",children:["/live/",t]})," can chat with you here in real time."]}),!l&&p.jsxs("div",{className:"mt-4 rounded-2xl border border-border bg-background/60 p-4",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[p.jsx(Wa,{className:"w-4 h-4 text-primary"}),p.jsx("h3",{className:"text-xs font-bold uppercase tracking-wider",children:"Invite a guest on stage"})]}),p.jsx("p",{className:"text-[11px] text-muted-foreground mb-3",children:"Bring another MO STREAMS member into your live â collab with DJs, artists, producers, labels or podcasters worldwide."}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"text-sm text-muted-foreground select-none",children:"@"}),p.jsx("input",{value:Ce,onChange:K=>ue(K.target.value),placeholder:"theirhandle",maxLength:48,className:"flex-1 rounded-lg bg-background border border-border px-3 py-2 text-sm focus:outline-none focus:border-primary",onKeyDown:K=>{K.key==="Enter"&&(K.preventDefault(),it())}}),p.jsxs("button",{onClick:it,disabled:z||!Ce.trim(),className:"btn-gradient rounded-full px-4 py-2 text-[11px] font-bold uppercase tracking-wider inline-flex items-center gap-1.5 disabled:opacity-50",children:[p.jsx(Wa,{className:"w-3.5 h-3.5"})," ",z?"Invitingâ¦":"Send invite"]})]}),we.length>0&&p.jsx("div",{className:"mt-3 flex flex-wrap gap-2",children:we.map(K=>p.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-border bg-card px-2.5 py-1 text-xs",children:[p.jsx(_l,{code:K.country_code,size:"xs"}),p.jsxs("span",{className:"font-semibold",children:["@",K.handle]}),p.jsxs("span",{className:"text-muted-foreground capitalize",children:["· ",K.role]}
176),p.jsx("button",{onClick:()=>ht(K.handle),"aria-label":`Remove ${K.handle}`,className:"text-muted-foreground hover:text-foreground",children:p.jsx(fa,{className:"w-3 h-3"})})]},K.handle))})]})]})}function xo(e,t){const n=e.createBuffer(1,Math.max(1,Math.floor(e.sampleRate*t)),e.sampleRate),r=n.getChannelData(0);for(let s=0;s<r.length;s++)r[s]=Math.random()*2-1;return n}function eee(e,t){const n=e.createOscillator(),r=e.createGain();n.frequency.setValueAtTime(140,e.currentTime),n.frequency.exponentialRampToValueAtTime(40,e.currentTime+.18),r.gain.setValueAtTime(1,e.currentTime),r.gain.exponentialRampToValueAtTime(.001,e.currentTime+.3),n.connect(r).connect(t),n.start(),n.stop(e.currentTime+.35)}function oT(e,t){const n=e.createBufferSource();n.buffer=xo(e,.2);const r=e.createBiquadFilter();r.type="highpass",r.frequency.value=1500;const s=e.createGain();s.gain.setValueAtTime(.7,e.currentTime),s.gain.exponentialRampToValueAtTime(.001,e.currentTime+.18),n.connect(r).connect(s).connect(t),n.start(),n.stop(e.currentTime+.2)}function tee(e,t){[0,15,30,55].forEach(n=>setTimeout(()=>oT(e,t),n))}function nee(e,t){const n=e.createBufferSource();n.buffer=xo(e,.08);const r=e.createBiquadFilter();r.type="highpass",r.frequency.value=7e3;const s=e.createGain();s.gain.setValueAtTime(.4,e.currentTime),s.gain.exponentialRampToValueAtTime(.001,e.currentTime+.06),n.connect(r).connect(s).connect(t),n.start(),n.stop(e.currentTime+.08)}function ree(e,t){const n=e.createBufferSource();n.buffer=xo(e,.35);const r=e.createBiquadFilter();r.type="highpass",r.frequency.value=6e3;const s=e.createGain();s.gain.setValueAtTime(.35,e.currentTime),s.gain.exponentialRampToValueAtTime(.001,e.currentTime+.32),n.connect(r).connect(s).connect(t),n.start(),n.stop(e.currentTime+.35)}function oee(e,t){const n=e.createOscillator();n.type="sine",n.frequency.setValueAtTime(55,e.currentTime),n.frequency.exponentialRampToValueAtTime(28,e.currentTime+.6);const r=e.createGain();r.gain.setValueAtTime(.95,e.currentTime),r.gain.exponentialRampToValueAtTime(.001,e.currentTime+.8),n.connect(r).connect(t),n.start(),n.stop(e.currentTime+.85)}function aee(e,t){const n=e.createBufferSource();n.buffer=xo(e,1.5);const r=e.createBiquadFilter();r.type="bandpass",r.Q.value=8,r.frequency.setValueAtTime(300,e.currentTime),r.frequency.exponentialRampToValueAtTime(8e3,e.currentTime+1.4);const s=e.createGain();s.gain.setValueAtTime(.4,e.currentTime),s.gain.linearRampToValueAtTime(.001,e.currentTime+1.5),n.connect(r).connect(s).connect(t),n.start(),n.stop(e.currentTime+1.5)}function aT(e,t){const n=e.currentTime,r=e.createOscillator();r.type="sawtooth",r.frequency.value=220;const s=e.createOscillator();s.type="sawtooth",s.frequency.value=277;const i=e.createGain();i.gain.setValueAtTime(1e-4,n),i.gain.exponentialRampToValueAtTime(.45,n+.04),i.gain.setValueAtTime(.45,n+.75),i.gain.exponentialRampToValueAtTime(.001,n+.95),r.connect(i),s.connect(i),i.connect(t),r.start(),s.start(),r.stop(n+1),s.stop(n+1)}function see(e,t){const n=e.currentTime,r=e.createOscillator();r.type="sawtooth",r.frequency.value=110;const s=e.createOscillator();s.type="square",s.frequency.value=55;const i=e.createGain();i.gain.setValueAtTime(.001,n),i.gain.exponentialRampToValueAtTime(.55,n+.05),i.gain.setValueAtTime(.55,n+1),i.gain.exponentialRampToValueAtTime(.001,n+1.3),r.connect(i),s.connect(i),i.connect(t),r.start(),s.start(),r.stop(n+1.35),s.stop(n+1.35)}function iee(e,t){const n=e.currentTime,r=e.createOscillator();r.type="sawtooth";const s=e.createGain();s.gain.value=.25,r.frequency.setValueAtTime(600,n);for(let i=0;i<4;i++){const l=n+i*.45;r.frequency.exponentialRampToValueAtTime(1400,l+.22),r.frequency.exponentialRampToValueAtTime(600,l+.44)}s.gain.setValueAtTime(.25,n+1.6),s.gain.exponentialRampToValueAtTime(.001,n+1.9),r.connect(s).connect(t),r.start(),r.stop(n+1.95)}function sT(e,t){const n=e.currentTime,r=e.createBufferSource();r.buffer=xo(e,.5);const s=e.createBiquadFilter();s.type="bandpass",s.Q.value=6,s.frequency.setValueAtTime(800,n);for(let l=0;l<6;l++){const d=n+l*.07;s.frequency.exponentialRampToValueAtTime(2400,d+.035),s.frequency.exponentialRampToValueAtTime(500,d+.07)}const i=e.createGain();i.gain.setValueAtTime(.6,n),i.gain.exponentialRampToValueAtTime(.001,n+.5),r.connect(s).connect(i).c
176onnect(t),r.start(),r.stop(n+.5)}function cee(e,t){const n=e.currentTime,r=e.createBufferSource();r.buffer=xo(e,1),r.playbackRate.value=1.5;const s=e.createBiquadFilter();s.type="bandpass",s.Q.value=5,s.frequency.setValueAtTime(6e3,n),s.frequency.exponentialRampToValueAtTime(400,n+.9);const i=e.createGain();i.gain.setValueAtTime(.5,n),i.gain.exponentialRampToValueAtTime(.001,n+1),r.connect(s).connect(i).connect(t),r.start(),r.stop(n+1)}function lee(e,t){const n=e.currentTime,r=e.createOscillator();r.type="square",r.frequency.setValueAtTime(1800,n),r.frequency.exponentialRampToValueAtTime(120,n+.35);const s=e.createGain();s.gain.setValueAtTime(.3,n),s.gain.exponentialRampToValueAtTime(.001,n+.4),r.connect(s).connect(t),r.start(),r.stop(n+.42)}function uee(e,t){const n=e.currentTime,r=e.createBufferSource();r.buffer=xo(e,2.2),r.loop=!1;const s=e.createBiquadFilter();s.type="bandpass",s.frequency.value=1200,s.Q.value=1.2;const i=e.createBiquadFilter();i.type="highpass",i.frequency.value=400;const l=e.createGain();l.gain.setValueAtTime(.001,n),l.gain.exponentialRampToValueAtTime(.45,n+.4),l.gain.setValueAtTime(.45,n+1.5),l.gain.exponentialRampToValueAtTime(.001,n+2.2),r.connect(s).connect(i).connect(l).connect(t),r.start(),r.stop(n+2.25)}function dee(e,t){const n=e.currentTime,r=e.createOscillator();r.type="triangle",r.frequency.setValueAtTime(180,n),r.frequency.exponentialRampToValueAtTime(35,n+.15);const s=e.createGain();s.gain.setValueAtTime(.9,n),s.gain.exponentialRampToValueAtTime(.001,n+.2),r.connect(s).connect(t),r.start(),r.stop(n+.22);const i=e.createBufferSource();i.buffer=xo(e,.15);const l=e.createBiquadFilter();l.type="highpass",l.frequency.value=3e3;const d=e.createGain();d.gain.setValueAtTime(.8,n),d.gain.exponentialRampToValueAtTime(.001,n+.13),i.connect(l).connect(d).connect(t),i.start(),i.stop(n+.15)}function hee(e,t){const n=e.currentTime;[220,261.6,329.6].forEach((r,s)=>{const i=e.createOscillator();i.type="square",i.frequency.value=r;const l=e.createGain();l.gain.setValueAtTime(1e-4,n),l.gain.exponentialRampToValueAtTime(.25,n+.01),l.gain.exponentialRampToValueAtTime(.001,n+.45),i.connect(l).connect(t),i.start(n),i.stop(n+.5)})}function fee(e,t){[0,280,560].forEach(n=>setTimeout(()=>aT(e,t),n))}function pee(e,t){const n=e.currentTime,r=e.createOscillator();r.type="sawtooth";const s=e.createGain();s.gain.value=.3,r.frequency.setValueAtTime(220,n),r.frequency.exponentialRampToValueAtTime(880,n+1.4),r.frequency.exponentialRampToValueAtTime(220,n+2.8),s.gain.setValueAtTime(.3,n+2.6),s.gain.exponentialRampToValueAtTime(.001,n+2.9),r.connect(s).connect(t),r.start(),r.stop(n+2.95)}function mee(e,t){const n=e.currentTime,r=e.createOscillator();r.type="sine",r.frequency.value=3200;const s=e.createOscillator();s.frequency.value=14;const i=e.createGain();i.gain.value=80,s.connect(i).connect(r.frequency);const l=e.createGain();l.gain.setValueAtTime(1e-4,n),l.gain.exponentialRampToValueAtTime(.35,n+.05),l.gain.setValueAtTime(.35,n+.55),l.gain.exponentialRampToValueAtTime(.001,n+.75),r.connect(l).connect(t),r.start(),s.start(),r.stop(n+.8),s.stop(n+.8)}function gee(e,t){const n=e.currentTime,r=e.createOscillator();r.type="sawtooth",r.frequency.value=235;const s=e.createOscillator();s.type="square",s.frequency.value=470;const i=e.createGain();i.gain.setValueAtTime(1e-4,n),i.gain.exponentialRampToValueAtTime(.4,n+.05),i.gain.setValueAtTime(.4,n+1.4),i.gain.exponentialRampToValueAtTime(.001,n+1.6),r.connect(i),s.connect(i),i.connect(t),r.start(),s.start(),r.stop(n+1.65),s.stop(n+1.65)}function yee(e,t){const n=e.currentTime,r=e.createOscillator();r.type="square",r.frequency.value=140;const s=e.createGain();s.gain.value=.35,s.gain.setValueAtTime(.35,n+.55),s.gain.exponentialRampToValueAtTime(.001,n+.7),r.connect(s).connect(t),r.start(),r.stop(n+.72)}function vee(e,t){const n=e.currentTime;[880,1320,1760].forEach((r,s)=>{const i=e.createOscillator();i.type="sine",i.frequency.value=r;const l=e.createGain();l.gain.setValueAtTime(1e-4,n),l.gain.exponentialRampToValueAtTime(.25/(s+1),n+.005),l.gain.exponentialRampToValueAtTime(.001,n+1.5),i.connect(l).connect(t),i.start(n),i.stop(n+1.55)})}function bee(e,t){const n=e.currentTime,r=e.createOscillator();r.type="sine",r.frequency.setValueAtTime(800,n),r.frequency.exponentialRampToValueAtTime(30,n+1.2);const s=e.createGain();s.gain.setValueAtTime(1e-4,n),s.gain.exponentialRampToValueAtTime(.7,n+.05),s.gain.setValueAtTime(.7,n+1.1),s.gain.exponentialRampToValueAtTime(.001,n+1.6),r.connect(s).connect(t),r.start(),r.stop(n+1.65)}function _ee(e,t){const n=e.currentTime,r=e.createBufferSource();r.buffer=xo(e,1.5);const s=e.createBiquadFilter();s.type="highpass",s.frequency.value=4e3;const i=e.createGain();i.gain.setValueAtTime(1e-4,n),i.gain.exponentialRampToValueAtTime(.6,n+1.3),i.gain.exponentialRampToValueAtTime(.001,n+1.5),r.connect(s).connect(i).c
176onnect(t),r.start(),r.stop(n+1.55)}function wee(e,t){[0,120,240].forEach(n=>setTimeout(()=>sT(e,t),n))}function See(e,t){const n=e.currentTime,r=e.createOscillator();r.type="sawtooth",r.frequency.setValueAtTime(440,n),r.frequency.linearRampToValueAtTime(660,n+.4);const s=e.createGain();s.gain.setValueAtTime(1e-4,n),s.gain.exponentialRampToValueAtTime(.35,n+.02),s.gain.exponentialRampToValueAtTime(.001,n+.55),r.connect(s).connect(t),r.start(),r.stop(n+.6)}const xee=[{name:"Kick",color:"#ef4444",play:eee},{name:"Snare",color:"#f59e0b",play:oT},{name:"Clap",color:"#22c55e",play:tee},{name:"Hat",color:"#3b82f6",play:nee},{name:"OpenHat",color:"#a855f7",play:ree},{name:"808",color:"#ec4899",play:oee},{name:"Riser",color:"#06b6d4",play:aee},{name:"AirHorn",color:"#facc15",play:aT},{name:"FogHorn",color:"#f97316",play:see},{name:"Siren",color:"#dc2626",play:iee},{name:"Scratch",color:"#14b8a6",play:sT},{name:"Rewind",color:"#8b5cf6",play:cee},{name:"Laser",color:"#22d3ee",play:lee},{name:"Crowd",color:"#84cc16",play:uee},{name:"Gunshot",color:"#71717a",play:dee},{name:"DJ Drop",color:"#e11d48",play:hee},{name:"3x Horn",color:"#fbbf24",play:fee},{name:"Air Raid",color:"#b91c1c",play:pee},{name:"Whistle",color:"#fde047",play:mee},{name:"Vuvuzela",color:"#eab308",play:gee},{name:"Buzzer",color:"#7c2d12",play:yee},{name:"Bell",color:"#fcd34d",play:vee},{name:"SubDrop",color:"#0ea5e9",play:bee},{name:"Reverse",color:"#a78bfa",play:_ee},{name:"Wikka",color:"#2dd4bf",play:wee},{name:"MC Tag",color:"#f43f5e",play:See}],Ree=()=>$(()=>import("./dashboard.dj.mix-DJvWjCIT.js"),[]),Eee=j("/_authenticated/dashboard/dj/mix")({component:N(Ree,"component")}),wm={track:null,playing:!1,progress:0,duration:0,pitch:0,channelGain:.85,trim:1,eqLow:0,eqMid:0,eqHigh:0,filter:0,cuePoint:0,hotCues:[null,null,null,null,null,null,null,null],looping:!1,loopBars:4,fxEcho:!1,fxReverb:!1,fxFlanger:!1,fxBitcrush:!1,fxPhaser:!1,fxEchoWet:.45,fxReverbWet:.4,fxFlangerWet:.5,fxBitcrushWet:.5,fxPhaserWet:.5,cueMonitor:!1,keyLock:!0,slip:!1,quantize:!0,bpm:120,meter:0},os="oklch(0.72 0.20 50)",as="oklch(0.72 0.20 50)";function ple({embedded:e=!1,demoName:t}={}){const n=qX(),r=e?{id:"demo-dj",handle:"demo-dj",display_name:t??"Demo DJ",role:"dj",avatar_url:null,preferred_genres:[],country_code:null,country:null}:n,[s,i]=T.useState([]),[l,d]=T.useState(""),[h,f]=T.useState(!0),[g,y]=T.useState(wm),[b,_]=T.useState(wm),[S,E]=T.useState(.5),[x,k]=T.useState(.85),[M,P]=T.useState(0),[I,F]=T.useState(!1),[G,U]=T.useState(0),[V,ne]=T.useState([]),[W,pe]=T.useState(""),[de,$e]=T.useState(1),Ce=T.useRef(null),ue=T.useRef(null),z=T.useRef({ctx:null,A:null,B:null,master:null,masterAnalyser:null}),te=T.useCallback(()=>{if(z.current.ctx)return z.current;const K=new(window.AudioContext||window.webkitAudioContext),Q=K.createGain();Q.gain.value=x;const be=K.createAnalyser();return be.fftSize=512,Q.connect(be),be.connect(K.destination),z.current={ctx:K,A:null,B:null,master:Q,masterAnalyser:be},z.current},[x]),we=T.useCallback(K=>{const Q=K==="A"?Ce:ue,be=te();if(!Q.current||!be.ctx||!be.master)return null;if(K==="A"&&be.A)return be.A;if(K==="B"&&be.B)return be.B;const Te=Aee(be.ctx,Q.current,be.master);return K==="A"?be.A=Te:be.B=Te,Te},[te]);T.useEffect(()=>{(async()=>{const{data:K}=await qe.from("tracks").select("id, title, audio_url, cover_url, genre, owner_id").eq("status","published").eq("removed",!1).order("created_at",{ascending:!1}).limit(80);i(K??[]),f(!1)})()},[]),T.useEffect(()=>{try{const K=sessionStorage.getItem("pendingMixerTrack");if(!K)return;const Q=JSON.parse(K);Q?.audio_url&&(ye("A",Q),sessionStorage.removeItem("pendingMixerTrack"))}catch{}},[]),T.useEffect(()=>{const K=qe.channel("dj-mix-room",{config:{broadcast:{self:!0},presence:{key:r?.id??"guest"}}});return K.on("broadcast",{event:"msg"},Q=>{const be=Q.payload;ne(Te=>[...Te.slice(-100),be])}),K.on("presence",{event:"sync"},()=>{const Q=K.presenceState();$e(Math.max(1,Object.keys(Q).length))}),K.subscribe(async Q=>{Q==="SUBSCRIBED"&&(await K.track({user:r?.display_name??"DJ"}
176),ne([{id:"1",user:"Maya",text:"Yes!! that drop ð¥",ts:Date.now()-6e4,color:"oklch(0.72 0.18 25)"},{id:"2",user:"Kairo",text:"Bring the bass back",ts:Date.now()-4e4,color:"oklch(0.72 0.18 240)"},{id:"3",user:"Sole",text:"vibes immaculate",ts:Date.now()-2e4,color:"oklch(0.74 0.18 165)"}]))}),()=>{qe.removeChannel(K)}},[r?.id,r?.display_name]),T.useEffect(()=>{const K=z.current;K.master&&(K.master.gain.value=x)},[x]);const Pe=T.useCallback((K,Q)=>{const be=K==="A"?Ce.current:ue.current,Te=K==="A"?z.current.A:z.current.B;if(!be||(be.playbackRate=1+Q.pitch/100,!Te))return;Te.eqLow.gain.value=Q.eqLow,Te.eqMid.gain.value=Q.eqMid,Te.eqHigh.gain.value=Q.eqHigh,Te.trim.gain.value=Q.trim,Q.filter>=0?(Te.filter.type="highpass",Te.filter.frequency.value=30+Q.filter*4e3):(Te.filter.type="lowpass",Te.filter.frequency.value=22e3+Q.filter*21e3);const Qe=K==="A"?1-S:S;Te.channelGain.gain.value=Q.channelGain*Qe,Te.echoSend.gain.value=Q.fxEcho?Q.fxEchoWet:0,Te.reverbSend.gain.value=Q.fxReverb?Q.fxReverbWet:0,Te.flangerSend.gain.value=Q.fxFlanger?Q.fxFlangerWet:0,Te.bitcrushSend&&(Te.bitcrushSend.gain.value=Q.fxBitcrush?Q.fxBitcrushWet:0),Te.phaserSend&&(Te.phaserSend.gain.value=Q.fxPhaser?Q.fxPhaserWet:0);try{be.preservesPitch=Q.keyLock}catch{}},[S]);T.useEffect(()=>Pe("A",g),[g,Pe]),T.useEffect(()=>Pe("B",b),[b,Pe]),T.useEffect(()=>{let K=0;const Q=()=>{const be=z.current;be.masterAnalyser&&P(Sm(be.masterAnalyser)),be.A&&y(Te=>({...Te,meter:Sm(be.A.analyser)})),be.B&&_(Te=>({...Te,meter:Sm(be.B.analyser)})),K=requestAnimationFrame(Q)};return K=requestAnimationFrame(Q),()=>cancelAnimationFrame(K)},[]),T.useEffect(()=>{const K=setInterval(()=>{(g.playing||b.playing)&&U(Q=>Q+1)},1e3);return()=>clearInterval(K)},[g.playing,b.playing]),T.useEffect(()=>{const K=(be,Te,Qe)=>{if(!Te||!be.looping||!be.cuePoint)return;const ft=60/be.bpm*4*be.loopBars;Te.currentTime>be.cuePoint+ft&&(Te.currentTime=be.cuePoint)},Q=setInterval(()=>{K(g,Ce.current),K(b,ue.current)},100);return()=>clearInterval(Q)},[g,b]);const ye=(K,Q)=>{const be=K==="A"?y:_,Te=K==="A"?Ce:ue,Qe=iT(Q);be(yt=>({...wm,track:Q,bpm:Qe,channelGain:yt.channelGain,trim:yt.trim})),requestAnimationFrame(()=>{Te.current&&(Te.current.src=Q.audio_url,Te.current.load())})},L=async K=>{const Q=K==="A"?Ce.current:ue.current,be=K==="A"?y:_;if(!Q)return;const Te=te();Te.ctx?.state==="suspended"&&await Te.ctx.resume(),we(K),Q.paused?(Q.play().catch(()=>{}),be(Qe=>({...Qe,playing:!0}))):(Q.pause(),be(Qe=>({...Qe,playing:!1})))},ae=(K,Q)=>{const be=K==="A"?Ce.current:ue.current;be&&be.duration&&(be.currentTime=Q*be.duration)},oe=(K,Q)=>{const be=K==="A"?Ce.current:ue.current,Te=K==="A"?y:_;if(!be)return;const Qe=["#ef4444","#f59e0b","#10b981","#3b82f6"];Te(yt=>{const ft=[...yt.hotCues];return ft[Q]?ft[Q]=null:ft[Q]={time:be.currentTime,color:Qe[Q]},{...yt,hotCues:ft}})},ce=(K,Q)=>{const be=K==="A"?Ce.current:ue.current,Te=K==="A"?g:b;!be||!Te.hotCues[Q]||(be.currentTime=Te.hotCues[Q].time,be.play().catch(()=>{}),(K==="A"?y:_)(Qe=>({...Qe,playing:!0})))},he=()=>{if(!g.bpm||!b.bpm)return;const K=g.bpm/b.bpm,Q=Math.max(-8,Math.min(8,(K-1)*100));_(be=>({...be,pitch:Q}))},Re=(K,Q)=>{const be=K==="A"?Ce.current:ue.current,Te=K==="A"?g:b;if(!be||!Te.bpm)return;const Qe=60/(Te.bpm*(1+Te.pitch/100));let yt=be.currentTime+Q*Qe;Te.quantize&&(yt=Math.round(yt/Qe)*Qe),be.currentTime=Math.max(0,Math.min((be.duration||0)-.05,yt))},Le=T.useRef({}),ve=K=>{const Q=K==="A"?Ce.current:ue.current,be=K==="A"?g:b;if(!Q)return;const Te=Q.currentTime,Qe=60/(be.bpm*(1+be.pitch/100));Le.current[K]=window.setInterval(()=>{Q&&(Q.currentTime=Te)},Qe*1e3)},Se=K=>{const Q=Le.current[K];Q&&(clearInterval(Q),Le.current[K]=void 0)},Et=()=>{const K=W.trim();if(!K)return;const Q={id:crypto.randomUUID(),user:r?.display_name??"DJ",text:K,ts:Date.now(),color:"oklch(0.72 0.20 28)"};qe.channel("dj-mix-room").send({type:"broadcast",event:"msg",payload:Q}),ne(be=>[...be.slice(-100),Q]),pe("")},it=T.useMemo(()=>{const K=l.trim().toLowerCase();return K?s.filter(Q=>Q.title.toLowerCase().includes(K)||(Q.genre??"").toLowerCase().includes(K)):s},[s,l]),ht=p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"rounded-2xl border border-border bg-gradient-to-r from-zinc-950 via-zinc-900 to-zinc-950 p-4 flex items-center gap-4 flex-wrap",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:"w-9 h-9 rounded-lg bg-primary/15 flex items-center justify-center",children:p.jsx(sl,{className:"w-5 h-5 text-primary"})}),p.jsxs("div",{children:[p.jsx("div",{className:"text-base font-black tracking-tight",children:"MO STREAMS · DJ BOOTH"}),p.jsx("div",{className:"text-[10px] text-muted-foreground uppercase tracking-wider",children:"Studio Session"})]})]}),p.jsxs("div",{className:"flex items-center gap-3 ml-auto",children:[p.jsx(vS,{icon:p.jsx(cl,{className:"w-3.5 h-3.5"}),label:"LIVE",value:`${de} in room`,dotColor:"#22c55e"}),p.jsx(vS,{icon:p.jsx(kR,{className:"w-3.5 h-3.5"}),label:"Session",value:wd(G)}),p.jsxs("button",{onClick:()=>F(K=>!K),className:`flex items-center gap-2 px-3 py-1.5 rounded-lg text-xs font-bold uppercase tracking-wider border ${I?"bg-red-500/15 border-red-500/40 text-red-400":"bg-secondary border-border"}`,children:[I?p.jsx(yI,{className:"w-3 h-3 fill-current"}):p.jsx(rD,{className:"w-3 h-3 fill-current"}),I?"Stop Rec":"Record"]})]})]}),p.jsxs("div",{className:"grid lg:grid-cols-[240px_1fr] gap-4 items-start",children:[p.jsx($ee,{loading:h,tracks:it,q:l,setQ:d,onLoadA:K=>ye("A",K),onLoadB:K=>ye("B",K)}),p.jsxs("div",{className:"space-y-3 min-w-0",children:[p.jsx(Oee,{crossfade:S,setCrossfade:E,masterVol:x,setMasterVol:k,masterMeter:M}),p.jsxs("div",{className:"rounded-2xl border border-border bg-gradient-to-b from-zinc-950 to-black p-4 grid lg:grid-cols-[1fr_360px_1fr] gap-4",children:[p.jsx("div",{className:"lg:col-span-3",children:p.jsx(Mee,{deckA:g,deckB:b,onSeek:(K,Q)=>ae(K,Q)})}),p.jsx(bS,{label:"DECK A",accent:os,deck:g,audioRef:Ce,onDropTrack:K=>ye("A",K),onPlay:()=>L("A"),onSeek:K=>ae("A",K),onChange:K=>y(Q=>({...Q,...K})),onCue:()=>{const K=Ce.current;K&&(K.currentTime=g.cuePoint,K.play().catch(()=>{}),y(Q=>({...Q,playing:!0})))},onSetCue:()=>{const K=Ce.current;K&&y(Q=>({...Q,cuePoint:K.currentTime}))},onHotCue:K=>oe("A",K),onJumpHotCue:K=>ce("A",K),onBeatJump:K=>Re("A",K),onCensorStart:()=>ve("A"),onCensorEnd:()=>Se("A"),onTime:(K,Q)=>y(be=>({...be,progress:K,duration:Q})),onEnded:()=>y(K=>({...K,playing:!1})),onEngageAudio:async()=>{const K=te();K.ctx?.state==="suspended"&&await K.ctx.resume(),we("A")}}),p.jsxs("div",{className:"flex flex-col gap-3 min-w-0 max-h-[calc(100vh-7rem)]",children:[r&&!e&&p.jsx(XX,{userId:r.id,handle:r.handle??r.id,displayName:r.display_name??"DJ",roleLabel:"DJ Live · Turntables",idleTitle:"Go live from the booth.",liveTitle:"You're live from the booth.",compact:!0}),p.jsx(Tee,{crossfade:S,setCrossfade:E,masterVol:x,setMasterVol:k,masterMeter:M,deckA:g,deckB:b,onSync:he}),p.jsx("div",{className:"flex-1 min-h-[260px]",children:p.jsx(Cee,{chat:V,input:W,setInput:pe,onSend:Et,listeners:de})})]}),p.jsx(bS,{label:"DECK B",accent:as,deck:b,audioRef:ue,onDropTrack:K=>ye("B",K),onPlay:()=>L("B"),onSeek:K=>ae("B",K),onChange:K=>_(Q=>({...Q,...K})),onCue:()=>{const K=ue.current;K&&(K.currentTime=b.cuePoint,K.play().catch(()=>{}),_(Q=>({...Q,playing:!0})))},onSetCue:()=>{const K=ue.current;K&&_(Q=>({...Q,cuePoint:K.currentTime}))},onHotCue:K=>oe("B",K),onJumpHotCue:K=>ce("B",K),onBeatJump:K=>Re("B",K),onCensorStart:()=>ve("B"),onCensorEnd:()=>
176Se("B"),onTime:(K,Q)=>_(be=>({...be,progress:K,duration:Q})),onEnded:()=>_(K=>({...K,playing:!1})),onEngageAudio:async()=>{const K=te();K.ctx?.state==="suspended"&&await K.ctx.resume(),we("B")},reverse:!0})]}),p.jsx(Nee,{ensureAudio:te})]})]})]});return e?ht:p.jsx(KX,{profile:r,children:ht})}function Aee(e,t,n){const r=e.createMediaElementSource(t),s=e.createGain();s.gain.value=1;const i=e.createBiquadFilter();i.type="highpass",i.frequency.value=30;const l=e.createBiquadFilter();l.type="lowshelf",l.frequency.value=200;const d=e.createBiquadFilter();d.type="peaking",d.frequency.value=1e3,d.Q.value=.7;const h=e.createBiquadFilter();h.type="highshelf",h.frequency.value=4e3;const f=e.createGain();f.gain.value=.85;const g=e.createAnalyser();g.fftSize=256;const y=e.createGain();y.gain.value=0;const b=e.createDelay(2);b.delayTime.value=.38;const _=e.createGain();_.gain.value=.45,r.connect(s).connect(i).connect(l).connect(d).connect(h).connect(f),f.connect(g),f.connect(n),f.connect(y).connect(b),b.connect(_).connect(b),b.connect(n);const S=e.createGain();S.gain.value=0,f.connect(S);const E=e.createGain();E.gain.value=.6,[.029,.037,.041,.053].forEach(ue=>{const z=e.createDelay(1);z.delayTime.value=ue;const te=e.createGain();te.gain.value=.6,S.connect(z),z.connect(te),te.connect(z),te.connect(E)});const x=e.createBiquadFilter();x.type="lowpass",x.frequency.value=5500,E.connect(x).connect(n);const k=e.createGain();k.gain.value=0,f.connect(k);const M=e.createDelay(.02);M.delayTime.value=.005;const P=e.createOscillator();P.frequency.value=.3;const I=e.createGain();I.gain.value=.003,P.connect(I),I.connect(M.delayTime);try{P.start()}catch{}const F=e.createGain();F.gain.value=.55,k.connect(M),M.connect(F),F.connect(M),M.connect(n);const G=e.createGain();G.gain.value=0,f.connect(G);const U=e.createWaveShaper(),V=16,ne=new Float32Array(2048);for(let ue=0;ue<ne.length;ue++){const z=ue/(ne.length-1)*2-1;ne[ue]=Math.round(z*V)/V}U.curve=ne;const W=e.createBiquadFilter();W.type="lowpass",W.frequency.value=4e3,G.connect(U).connect(W).connect(n);const pe=e.createGain();pe.gain.value=0,f.connect(pe);const de=e.createOscillator();de.frequency.value=.5;const $e=e.createGain();$e.gain.value=700,de.connect($e);let Ce=pe;for(let ue=0;ue<4;ue++){const z=e.createBiquadFilter();z.type="allpass",z.frequency.value=600+ue*200,z.Q.value=.7,$e.connect(z.frequency),Ce.connect(z),Ce=z}try{de.start()}catch{}return Ce.connect(n),{source:r,trim:s,filter:i,eqLow:l,eqMid:d,eqHigh:h,channelGain:f,analyser:g,echoSend:y,reverbSend:S,flangerSend:k,bitcrushSend:G,phaserSend:pe}}function Sm(e){const t=new Uint8Array(e.fftSize);e.getByteTimeDomainData(t);let n=0;for(let r=0;r<t.length;r++){const s=(t[r]-128)/128;n+=s*s}return Math.min(1,Math.sqrt(n/t.length)*1.8)}function iT(e){const t=(e.id||e.title).slice(0,8);let n=0;for(let r=0;r<t.length;r++)n+=t.charCodeAt(r);return 90+n%51}function vS({icon:e,label:t,value:n,dotColor:r}){return p.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 rounded-lg bg-secondary/60 border border-border",children:[r&&p.jsx("span",{className:"w-2 h-2 rounded-full animate-pulse",style:{background:r}}),p.jsx("span",{className:"text-muted-foreground",children:e}),p.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider text-muted-foreground",children:t}),p.jsx("span",{className:"text-xs font-bold",children:n})]})}function bS({label:e,accent:t,deck:n,audioRef:r,onDropTrack:s,onPlay:i,onSeek:l,onChange:d,onCue:h,onSetCue:f,onHotCue:g,onJumpHotCue:y,onBeatJump:b,onCensorStart:_,onCensorEnd:S,onTime:E,onEnded:x,reverse:k,onEngageAudio:M}){const[P,I]=T.useState(!1),F=n.duration>0?n.progress/n.duration:0,G=T.useRef(null),U=T.useRef(null),[V,ne]=T.useState(null),W=ue=>{const z=G.current;if(!z)return 0;const te=z.getBoundingClientRect();return Math.atan2(ue.clientY-(te.top+te.height/2),ue.clientX-(te.left+te.width/2))},pe=ue=>{if(!n.track)return;ue.preventDefault(),ue.currentTarget.setPointerCapture(ue.pointerId);try{M?.()}catch{}const z=r.current,te=z?z.playbackRate:1+n.pitch/100;try{z&&(z.preservesPitch=!1)}catch{}U.current={angle:W(ue),lastT:performance.now(),wasPlaying:n.playing,nominal:te},ne(0),z&&z.paused&&z.play().catch(()=>{})},de=ue=>{const z=U.current;if(!z)return;const te=performance.now(),we=W(ue);let Pe=we-z.angle;Pe>Math.PI&&(Pe-=Math.PI*2),Pe<-Math.PI&&(Pe+=Math.PI*2);
176const ye=Math.max(8,te-z.lastT)/1e3,L=Pe/ye,ae=Math.max(.05,Math.min(4,1+L*.55)),oe=r.current;oe&&(oe.playbackRate=ae),ne(ce=>(ce??0)+Pe*(180/Math.PI)),z.angle=we,z.lastT=te},$e=ue=>{const z=U.current;if(!z)return;U.current=null,ne(null);try{ue.currentTarget.releasePointerCapture(ue.pointerId)}catch{}const te=r.current;if(te){te.playbackRate=z.nominal;try{te.preservesPitch=n.keyLock}catch{}z.wasPlaying||te.pause()}},Ce=V!==null;return p.jsxs("div",{onDragOver:ue=>{ue.preventDefault(),I(!0)},onDragLeave:()=>I(!1),onDrop:ue=>{ue.preventDefault(),I(!1);try{const z=JSON.parse(ue.dataTransfer.getData("application/json"));z?.audio_url&&s(z)}catch{}},className:`relative rounded-xl border bg-gradient-to-b from-zinc-900 to-zinc-950 p-3 ${P?"border-primary ring-2 ring-primary/40":"border-zinc-800"}`,children:[p.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[p.jsx("span",{className:"text-[10px] font-black tracking-wider px-2 py-0.5 rounded",style:{background:t,color:"#000"},children:e}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("div",{className:"text-[11px] font-bold truncate text-white",children:n.track?.title??"â No track loaded â"}),p.jsx("div",{className:"text-[9px] text-zinc-500 uppercase tracking-wider",children:n.track?.genre??"drop a track"})]}),p.jsxs("div",{className:"text-right",children:[p.jsx("div",{className:"text-[9px] text-zinc-500 uppercase tracking-wider",children:"BPM"}),p.jsx("div",{className:"text-sm font-black tabular-nums",style:{color:t},children:(n.bpm*(1+n.pitch/100)).toFixed(1)})]})]}),p.jsx(kee,{deck:n,accent:t,onSeek:l}),p.jsxs("div",{className:"relative aspect-square max-w-[200px] mx-auto my-3",children:[p.jsxs("div",{ref:G,onPointerDown:pe,onPointerMove:de,onPointerUp:$e,onPointerCancel:$e,className:"absolute inset-0 rounded-full bg-black border-2 shadow-[inset_0_0_30px_rgba(0,0,0,0.8)] flex items-center justify-center overflow-hidden",style:{borderColor:t,cursor:Ce?"grabbing":"grab",touchAction:"none",animation:Ce?"none":n.playing?`spin 2.2s linear infinite ${k?"reverse":""}`:"none",transform:Ce?`rotate(${V}deg)`:void 0},children:[p.jsx("div",{className:"absolute inset-2 rounded-full border border-zinc-800"}),p.jsx("div",{className:"absolute inset-5 rounded-full border border-zinc-800/70"}),p.jsx("div",{className:"absolute inset-10 rounded-full border border-zinc-800/40"}),p.jsx("div",{className:"absolute top-2 left-1/2 w-0.5 h-3 bg-white/30"}),n.track?.cover_url?p.jsx("img",{src:_o(n.track.cover_url,480),alt:"",className:"w-1/2 h-1/2 rounded-full object-cover",loading:"lazy",decoding:"async"}):p.jsx(Qn,{className:"w-1/3 h-1/3 text-zinc-700"}),p.jsx("div",{className:"absolute w-2.5 h-2.5 rounded-full bg-zinc-700 ring-2 ring-black"})]}),p.jsx("div",{className:"absolute -right-1 top-1/2 -translate-y-1/2 w-1 h-12 bg-zinc-800 rounded",children:p.jsx("div",{className:"absolute left-0 right-0 h-1 rounded",style:{background:t,top:`${50-n.pitch*5}%`}})})]}),p.jsxs("div",{className:"grid grid-cols-3 gap-1 mb-2",children:[p.jsx("button",{onClick:f,disabled:!n.track,className:"py-1.5 rounded text-[10px] font-black uppercase tracking-wider bg-zinc-800 hover:bg-zinc-700 text-amber-400 disabled:opacity-40",children:"Set Cue"}),p.jsx("button",{onClick:h,disabled:!n.track,className:"py-1.5 rounded text-[10px] font-black uppercase tracking-wider bg-zinc-800 hover:bg-zinc-700 text-amber-400 disabled:opacity-40",children:"Cue"}),p.jsxs("button",{onClick:i,disabled:!n.track,className:"py-1.5 rounded text-[10px] font-black uppercase tracking-wider text-black flex items-center justify-center gap-1 disabled:opacity-40",style:{background:t},children:[n.playing?p.jsx(HD,{className:"w-3 h-3"}):p.jsx(KD,{className:"w-3 h-3"}),n.playing?"Pause":"Play"]})]}),p.jsx("div",{className:"grid grid-cols-4 gap-1 mb-2",children:n.hotCues.map((ue,z)=>p.jsxs("button",{onClick:()=>ue?y(z):g(z),onDoubleClick:()=>g(z),disabled:!n.track,className:"py-1.5 rounded text-[9px] font-black uppercase border disabled:opacity-40",style:{background:ue?ue.color:"transparent",borderColor:ue?ue.color:"#3f3f46",color:ue?"#000":"#71717a"},children:["HC ",z+1]},z))}),p.jsxs("div",{className:"grid grid-cols-4 gap-1 mb-2",children:[p.jsxs("button",{onClick:()=>b(-4),disabled:!n.track,className:"py-1.5 rounded text-[9px] font-black uppercase bg-zinc-800 text-zinc-300 hover:bg-zinc-700 disabled:opacity-40 inline-flex items-center justify-center gap-1",children:[p.jsx(XD,{className:"w-3 h-3"}),"4"]}),p.jsxs("button",{onClick:()=>b(-1),disabled:!n.track,className:"py-1.5 rounded text-[9px] font-black uppercase bg-zinc-800 text-zinc-300 hover:bg-zinc-700 disabled:opacity-40 inline-flex items-center justify-center gap-1",children:[p.jsx(uI,{className:"w-3 h-3"}),"1"]}),p.jsxs("button",{onClick:()=>b(1),disabled:!n.track,className:"py-1.5 rounded text-[9px] font-black uppercase bg-zinc-800 text-zinc-300 hover:bg-zinc-700 disabled:opacity-40 inline-flex items-center justify-center gap-1",children:["1",p.jsx(hI,{className:"w-3 h-3"})]}),p.jsxs("button",{onClick:()=>b(4),disabled:!n.track,className:"py-1.5 rounded text-[9px] font-black uppercase bg-zinc-800 text-zinc-300 hover:bg-zinc-700 disabled:opacity-40 inline-flex items-center justify-center gap-1",children:["4",p.jsx(pD,{className:"w-3 h-3"})]})]}),p.jsxs("div",{className:"flex items-center gap-1 mb-3",children:[p.jsxs("button",{onClick:()=>d({looping:!n.looping}),disabled:!n.track,className:`flex-1 py-1.5 rounded text-[10px] font-black uppercase flex items-center justify-center gap-1 ${n.looping?"bg-emerald-500 text-black":"bg-zinc-800 text-zinc-400"}`,children:[p.jsx(OR,{className:"w-3 h-3"})," Loop ",n.loopBars]}),p.jsx("button",{onClick:()=>d({loopBars:n.loopBars===8?1:n.loopBars*2}),className:"px-2 py-1.5 rounded text-[10px] font-black uppercase bg-zinc-800 text-zinc-400",children:"Ã2"}),p.jsxs("button",{onMouseDown:_,onMouseUp:S,onMouseLeave:S,onTouchStart:_,onTouchEnd:S,disabled:!n.track,className:"flex-1 py-1.5 rounded text-[10px] font-black uppercase bg-zinc-800 text-rose-400 hover:bg-rose-500 hover:text-black active:bg-rose-500 active:text-black disabled:opacity-40 inline-flex items-center justify-center gap-1",title:"Hold to censor",children:[p.jsx(sD,{className:"w-3 h-3"})," Censor"]})]}
176),p.jsxs("div",{className:"grid grid-cols-5 gap-1 mb-2",children:[p.jsxs("button",{onClick:()=>d({fxEcho:!n.fxEcho}),disabled:!n.track,className:`py-1.5 rounded text-[9px] font-black uppercase inline-flex items-center justify-center gap-1 ${n.fxEcho?"bg-fuchsia-500 text-black":"bg-zinc-800 text-zinc-400"} disabled:opacity-40`,children:[p.jsx(eg,{className:"w-3 h-3"})," Echo"]}),p.jsxs("button",{onClick:()=>d({fxReverb:!n.fxReverb}),disabled:!n.track,className:`py-1.5 rounded text-[9px] font-black uppercase inline-flex items-center justify-center gap-1 ${n.fxReverb?"bg-sky-500 text-black":"bg-zinc-800 text-zinc-400"} disabled:opacity-40`,children:[p.jsx(CI,{className:"w-3 h-3"})," Reverb"]}),p.jsxs("button",{onClick:()=>d({fxFlanger:!n.fxFlanger}),disabled:!n.track,className:`py-1.5 rounded text-[9px] font-black uppercase inline-flex items-center justify-center gap-1 ${n.fxFlanger?"bg-violet-500 text-black":"bg-zinc-800 text-zinc-400"} disabled:opacity-40`,children:[p.jsx(kR,{className:"w-3 h-3"})," Flanger"]}),p.jsxs("button",{onClick:()=>d({fxBitcrush:!n.fxBitcrush}),disabled:!n.track,className:`py-1.5 rounded text-[9px] font-black uppercase inline-flex items-center justify-center gap-1 ${n.fxBitcrush?"bg-orange-500 text-black":"bg-zinc-800 text-zinc-400"} disabled:opacity-40`,children:[p.jsx(PR,{className:"w-3 h-3"})," Crush"]}),p.jsxs("button",{onClick:()=>d({fxPhaser:!n.fxPhaser}),disabled:!n.track,className:`py-1.5 rounded text-[9px] font-black uppercase inline-flex items-center justify-center gap-1 ${n.fxPhaser?"bg-emerald-400 text-black":"bg-zinc-800 text-zinc-400"} disabled:opacity-40`,children:[p.jsx(tI,{className:"w-3 h-3"})," Phaser"]})]}),p.jsxs("div",{className:"grid grid-cols-5 gap-2 mb-3",children:[p.jsx(ea,{label:"ECHO",value:Math.round(n.fxEchoWet*100),min:0,max:100,accent:"#e879f9",onChange:ue=>d({fxEchoWet:ue/100})}),p.jsx(ea,{label:"REV",value:Math.round(n.fxReverbWet*100),min:0,max:100,accent:"#38bdf8",onChange:ue=>d({fxReverbWet:ue/100})}),p.jsx(ea,{label:"FLNG",value:Math.round(n.fxFlangerWet*100),min:0,max:100,accent:"#a78bfa",onChange:ue=>d({fxFlangerWet:ue/100})}),p.jsx(ea,{label:"CRSH",value:Math.round(n.fxBitcrushWet*100),min:0,max:100,accent:"#fb923c",onChange:ue=>d({fxBitcrushWet:ue/100})}),p.jsx(ea,{label:"PHSR",value:Math.round(n.fxPhaserWet*100),min:0,max:100,accent:"#34d399",onChange:ue=>d({fxPhaserWet:ue/100})})]}),p.jsxs("div",{className:"grid grid-cols-3 gap-1 mb-3",children:[p.jsxs("button",{onClick:()=>d({keyLock:!n.keyLock}),className:`py-1 rounded text-[9px] font-black uppercase inline-flex items-center justify-center gap-1 ${n.keyLock?"bg-amber-400 text-black":"bg-zinc-800 text-zinc-400"}`,children:[n.keyLock?p.jsx(AD,{className:"w-3 h-3"}):p.jsx(RD,{className:"w-3 h-3"})," Key"]}),p.jsx("button",{onClick:()=>d({slip:!n.slip}),className:`py-1 rounded text-[9px] font-black uppercase ${n.slip?"bg-emerald-400 text-black":"bg-zinc-800 text-zinc-400"}`,children:"Slip"}),p.jsx("button",{onClick:()=>d({quantize:!n.quantize}),className:`py-1 rounded text-[9px] font-black uppercase ${n.quantize?"bg-cyan-400 text-black":"bg-zinc-800 text-zinc-400"}`,children:"Quant"})]}),p.jsxs("div",{className:"grid grid-cols-3 gap-2 mb-3",children:[p.jsx(ea,{label:"HI",value:n.eqHigh,min:-12,max:12,accent:t,onChange:ue=>d({eqHigh:ue})}),p.jsx(ea,{label:"MID",value:n.eqMid,min:-12,max:12,accent:t,onChange:ue=>d({eqMid:ue})}),p.jsx(ea,{label:"LOW",value:n.eqLow,min:-12,max:12,accent:t,onChange:ue=>d({eqLow:ue})})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-2 mb-3",children:[p.jsx(_S,{label:"Filter",value:n.filter,min:-1,max:1,step:.01,accent:t,onChange:ue=>d({filter:ue}),center:!0}),p.jsx(_S,{label:"Trim",value:n.trim,min:0,max:1.5,step:.01,accent:t,onChange:ue=>d({trim:ue})})]}),p.jsxs("div",{className:"mb-2",children:[p.jsxs("div",{className:"flex justify-between text-[9px] font-black uppercase tracking-wider text-zinc-500 mb-1",children:[p.jsx("span",{children:"Pitch"}),p.jsxs("span",{style:{color:t},children:[n.pitch>0?"+":"",n.pitch.toFixed(1),"%"]})]}),p.jsx("input",{type:"range",min:-8,max:8,step:.1,value:n.pitch,onChange:ue=>d({pitch:parseFloat(ue.target.value)}),className:"w-full",style:{accentColor:t}})]}),p.jsxs("div",{className:"flex items-center justify-between text-[10px] font-mono text-zinc-500",children:[p.jsxs("button",{onClick:()=>d({cueMonitor:!n.cueMonitor}),className:`flex items-center gap-1 px-2 py-0.5 rounded ${n.cueMonitor?"bg-zinc-700 text-white":""}`,children:[p.jsx(sl,{className:"w-3 h-3"})," CUE"]}),p.jsxs("span",{children:[wd(n.progress)," / ",wd(n.duration)," · -",wd(Math.max(0,n.duration-n.progress))]})]}),p.jsx("audio",{ref:r,onTimeUpdate:ue=>E(ue.currentTarget.currentTime,ue.currentTarget.duration||0),onLoadedMetadata:ue=>E(0,ue.currentTarget.duration||0),onEnded:x,crossOrigin:"anonymous"}),p.jsx("style",{children:"@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }"}),!n.track&&p.jsx("div",{className:"absolute inset-0 pointer-events-none flex items-center justify-center text-[10px] font-black uppercase tracking-wider text-zinc-700",children:P?"RELEASE TO LOAD":""}
176),p.jsx("input",{type:"range",min:0,max:1,step:.001,value:F,onChange:ue=>l(parseFloat(ue.target.value)),disabled:!n.track,className:"sr-only","aria-label":"Seek"})]})}function Tee({crossfade:e,setCrossfade:t,masterVol:n,setMasterVol:r,masterMeter:s,deckA:i,deckB:l,onSync:d}){return p.jsxs("div",{className:"rounded-xl border border-zinc-800 bg-gradient-to-b from-zinc-900 to-black p-3 flex flex-col",children:[p.jsx("div",{className:"text-center text-[10px] font-black tracking-[0.2em] text-zinc-500 mb-2",children:"MASTER"}),p.jsx("div",{className:"flex justify-center gap-1 mb-3 h-2",children:Array.from({length:20}).map((h,f)=>{const g=s*20>f,y=f<12?"#22c55e":f<17?"#eab308":"#ef4444";return p.jsx("span",{className:"w-1.5 rounded-sm",style:{background:g?y:"#27272a"}},f)})}),p.jsxs("div",{className:"flex gap-3 justify-center mb-3",children:[p.jsx(xm,{label:"A",value:i.channelGain,accent:os,meter:i.meter}),p.jsx(xm,{label:"MSTR",value:n,accent:"#ffffff",meter:s,onChange:r}),p.jsx(xm,{label:"B",value:l.channelGain,accent:as,meter:l.meter})]}),p.jsxs("div",{className:"text-center mb-2",children:[p.jsxs("div",{className:"grid grid-cols-3 gap-1 text-[9px] font-mono mb-1",children:[p.jsx("div",{className:"text-zinc-500",children:"A"}),p.jsx("div",{className:"text-zinc-500",children:"Î"}),p.jsx("div",{className:"text-zinc-500",children:"B"})]}),p.jsxs("div",{className:"grid grid-cols-3 gap-1 text-sm font-black tabular-nums",children:[p.jsx("div",{style:{color:os},children:(i.bpm*(1+i.pitch/100)).toFixed(1)}),p.jsx("div",{className:"text-zinc-400",children:Math.abs(i.bpm*(1+i.pitch/100)-l.bpm*(1+l.pitch/100)).toFixed(1)}),p.jsx("div",{style:{color:as},children:(l.bpm*(1+l.pitch/100)).toFixed(1)})]}),p.jsxs("button",{onClick:d,className:"mt-2 w-full py-1.5 rounded bg-emerald-500/15 border border-emerald-500/40 text-emerald-400 text-[10px] font-black uppercase tracking-wider flex items-center justify-center gap-1",children:[p.jsx(PR,{className:"w-3 h-3"})," Sync B â A"]})]}),p.jsxs("div",{className:"mt-auto",children:[p.jsxs("div",{className:"flex items-center justify-between text-[9px] font-black uppercase tracking-wider text-zinc-500 mb-1",children:[p.jsx("span",{style:{color:os},children:"A"}),p.jsx("span",{children:"CROSSFADER"}),p.jsx("span",{style:{color:as},children:"B"})]}),p.jsx("div",{className:"relative h-8 bg-zinc-950 rounded-md border border-zinc-800 px-1 flex items-center",children:p.jsx("input",{type:"range",min:0,max:1,step:.01,value:e,onChange:h=>t(parseFloat(h.target.value)),className:"w-full appearance-none bg-transparent",style:{accentColor:"#fff"}})})]})]})}function ea({label:e,value:t,min:n,max:r,accent:s,onChange:i}){const l=(t-n)/(r-n)*270-135,d=T.useRef(!1),h=T.useRef(0),f=T.useRef(0),g=y=>{d.current=!0,h.current=y.clientY,f.current=t;const b=S=>{if(!d.current)return;const E=h.current-S.clientY,x=r-n;i(Math.max(n,Math.min(r,f.current+E/120*x)))},_=()=>{d.current=!1,window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",_)};window.addEventListener("mousemove",b),window.addEventListener("mouseup",_)};return p.jsxs("div",{className:"flex flex-col items-center gap-1 select-none",children:[p.jsxs("div",{onMouseDown:g,onDoubleClick:()=>i((n+r)/2),className:"relative w-10 h-10 rounded-full bg-gradient-to-br from-zinc-700 to-zinc-900 border border-zinc-700 shadow-inner cursor-ns-resize",style:{boxShadow:"0 0 0 1px rgba(0,0,0,0.6), inset 0 0 6px rgba(0,0,0,0.6)"},children:[p.jsx("div",{className:"absolute inset-0 rounded-full",style:{transform:`rotate(${l}deg)`},children:p.jsx("div",{className:"absolute top-1 left-1/2 -translate-x-1/2 w-0.5 h-3 rounded-full",style:{background:s}})}),p.jsx("div",{className:"absolute inset-2 rounded-full bg-black/40"})]}),p.jsx("div",{className:"text-[8px] font-black tracking-wider text-zinc-500 uppercase",children:e}),p.jsxs("div",{className:"text-[9px] tabular-nums",style:{color:s},children:[t>0?"+":"",t.toFixed(0)]})]})}function _S({label:e,value:t,min:n,max:r,step:s,accent:i,onChange:l,center:d}){return p.jsxs("label",{className:"flex flex-col gap-1",children:[p.jsxs("div",{className:"flex justify-between text-[9px] font-black uppercase tracking-wider text-zinc-500",children:[p.jsx("span",{children:e}),p.jsxs("span",{style:{color:i},children:[d&&t>0?"+":"",t.toFixed(2)]})]}),p.jsx("input",{type:"range",min:n,max:r,step:s,value:t,onChange:h=>l(parseFloat(h.target.value)),onDoubleClick:()=>l(d?0:(n+r)/2),className:"w-full",style:{accentColor:i}})]})}function xm({label:e,value:t,accent:n,meter:r,onChange:s}){return p.jsxs("div",{className:"flex flex-col items-center gap-1",children:[p.jsx("div",{className:"text-[9px] font-black tracking-wider text-zinc-500",children:e}),p.jsxs("div",{className:"relative h-32 w-8 bg-zinc-950 rounded border border-zinc-800 flex items-stretch p-1 gap-1",children:[p.jsx("div",{className:"w-1.5 bg-zinc-900 rounded-sm relative overflow-hidden",children:p.jsx("div",{className:"absolute bottom-0 left-0 right-0 transition-all",style:{height:`${r*100}%`,background:"linear-gradient(to top, #22c55e, #eab308, #ef4444)"}})}),p.jsxs("div",{className:"flex-1 relative",children:[p.jsx("div",{className:"absolute left-1/2 -translate-x-1/2 w-0.5 h-full bg-zinc-800"}
176),p.jsx("input",{type:"range",min:0,max:1,step:.01,value:t,disabled:!s,onChange:i=>s?.(parseFloat(i.target.value)),className:"absolute inset-0 opacity-0 cursor-ns-resize",style:{writingMode:"vertical-lr",direction:"rtl"}}),p.jsx("div",{className:"absolute left-1/2 -translate-x-1/2 w-5 h-3 rounded-sm border shadow",style:{bottom:`${t*100}%`,transform:"translate(-50%, 50%)",background:n,borderColor:"#000"}})]})]})]})}function kee({deck:e,accent:t,onSeek:n}){const r=T.useMemo(()=>{const i=(e.track?.id||"0").split("").reduce((l,d)=>l+d.charCodeAt(0),0);return Array.from({length:80},(l,d)=>{const h=Math.sin((d+i)*.6)*Math.cos((d+i)*.13);return .25+Math.abs(h)*.75})},[e.track?.id]),s=e.duration>0?e.progress/e.duration:0;return p.jsxs("div",{className:"relative h-12 bg-black rounded border border-zinc-800 overflow-hidden cursor-pointer",onClick:i=>{const l=i.currentTarget.getBoundingClientRect();n((i.clientX-l.left)/l.width)},children:[p.jsx("div",{className:"absolute inset-0 flex items-center gap-px px-1",children:r.map((i,l)=>{const h=l/r.length<s;return p.jsx("span",{className:"flex-1 rounded-sm",style:{height:`${i*100}%`,background:h?t:"#3f3f46",opacity:h?.95:.55}},l)})}),p.jsx("div",{className:"absolute top-0 bottom-0 w-px bg-white shadow-[0_0_8px_rgba(255,255,255,0.8)]",style:{left:`${s*100}%`}}),e.hotCues.map((i,l)=>i&&e.duration>0?p.jsx("div",{className:"absolute top-0 bottom-0 w-0.5",style:{left:`${i.time/e.duration*100}%`,background:i.color}},l):null)]})}function Cee({chat:e,input:t,setInput:n,onSend:r,listeners:s}){const i=T.useRef(null),l=T.useRef(!0),[d,h]=T.useState(!1);T.useEffect(()=>{const g=i.current;g&&(l.current?g.scrollTop=g.scrollHeight:h(!0))},[e.length]);const f=()=>{const g=i.current;if(!g)return;const y=g.scrollHeight-g.scrollTop-g.clientHeight<24;l.current=y,y&&d&&h(!1)};return p.jsxs("div",{className:"relative rounded-2xl border border-border bg-gradient-to-b from-zinc-950 to-black flex flex-col h-full min-h-[260px]",children:[p.jsxs("div",{className:"p-3 border-b border-zinc-800 flex items-center gap-2",children:[p.jsx(il,{className:"w-4 h-4 text-primary"}),p.jsx("div",{className:"text-xs font-black uppercase tracking-wider",children:"Live Chat Room"}),p.jsxs("span",{className:"ml-auto text-[10px] font-bold text-emerald-400 flex items-center gap-1",children:[p.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"})," ",s]})]}),p.jsx("div",{ref:i,onScroll:f,className:"flex-1 min-h-0 overflow-y-auto overscroll-contain p-3 space-y-2",children:e.length===0?p.jsx("div",{className:"text-xs text-zinc-500",children:"Quiet in here. Start the set."}):e.map(g=>p.jsxs("div",{className:"text-xs",children:[p.jsxs("div",{className:"flex items-baseline gap-2",children:[p.jsx("span",{className:"font-black",style:{color:g.color},children:g.user}),p.jsx("span",{className:"text-[9px] text-zinc-600",children:new Date(g.ts).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]}),p.jsx("div",{className:"text-zinc-200",children:g.text})]},g.id))}),d&&p.jsx("button",{type:"button",onClick:()=>{const g=i.current;g&&(g.scrollTop=g.scrollHeight,l.current=!0,h(!1))},className:"absolute bottom-16 left-1/2 -translate-x-1/2 inline-flex items-center gap-1 rounded-full bg-primary text-primary-foreground text-[11px] font-bold px-3 py-1.5 shadow-lg",children:"New messages â"}),p.jsxs("div",{className:"p-2 border-t border-zinc-800 flex gap-2",children:[p.jsx("input",{value:t,onChange:g=>n(g.target.value),onKeyDown:g=>{g.key==="Enter"&&r()},placeholder:"Say something to the roomâ¦",className:"flex-1 px-3 py-2 rounded-lg bg-zinc-900 text-xs border border-zinc-800 focus:outline-none focus:border-primary"}),p.jsx("button",{onClick:r,className:"px-3 rounded-lg bg-primary text-primary-foreground",children:p.jsx(zg,{className:"w-4 h-4"})})]})]})}function Oee({crossfade:e,setCrossfade:t,masterVol:n,setMasterVol:r,masterMeter:s}){return p.jsxs("div",{className:"rounded-2xl border border-border bg-gradient-to-b from-zinc-950 to-black p-3 grid sm:grid-cols-2 gap-3",children:[p.jsxs("label",{className:"flex flex-col gap-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between text-[10px] font-black uppercase tracking-wider text-zinc-400",children:[p.jsx("span",{children:"Crossfader"}),p.jsxs("span",{children:["A ",Math.round((1-e)*100)," · ",Math.round(e*100)," B"]})]}
176),p.jsx("input",{type:"range",min:0,max:1,step:.01,value:e,onChange:i=>t(parseFloat(i.target.value)),className:"w-full",style:{accentColor:"oklch(0.72 0.20 50)"}})]}),p.jsxs("label",{className:"flex flex-col gap-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between text-[10px] font-black uppercase tracking-wider text-zinc-400",children:[p.jsxs("span",{className:"inline-flex items-center gap-1",children:[p.jsx(jR,{className:"w-3 h-3"})," Master"]}),p.jsxs("span",{children:[Math.round(n*100),"%"]})]}),p.jsxs("div",{className:"relative",children:[p.jsx("input",{type:"range",min:0,max:1.2,step:.01,value:n,onChange:i=>r(parseFloat(i.target.value)),className:"w-full",style:{accentColor:"#fff"}}),p.jsx("div",{className:"mt-1 h-1 rounded-full bg-zinc-900 overflow-hidden",children:p.jsx("div",{className:"h-full transition-all",style:{width:`${Math.round(s*100)}%`,background:s>.85?"#ef4444":s>.6?"#eab308":"#22c55e"}})})]})]})]})}function $ee({loading:e,tracks:t,q:n,setQ:r,onLoadA:s,onLoadB:i}){const l=T.useRef(null),d=T.useRef(null),h=T.useRef(!1);T.useEffect(()=>{if(n.trim())return;const g=d.current;if(!g)return;let y=0,b=performance.now();const _=S=>{const E=S-b;if(b=S,!h.current){const x=g.scrollHeight-g.clientHeight;if(x>0){let k=g.scrollTop+E*.045;k>=x&&(k=0),g.scrollTop=k}}y=requestAnimationFrame(_)};return y=requestAnimationFrame(_),()=>cancelAnimationFrame(y)},[n,t.length]);const f=g=>{const y=g.target.files?.[0];if(!y)return;const b=URL.createObjectURL(y),_={id:`local-${Date.now()}`,title:y.name.replace(/\.[^.]+$/,""),audio_url:b,cover_url:null,genre:"Local file",owner_id:"local"};s(_),g.target.value=""};return p.jsxs("div",{className:"rounded-2xl border border-border bg-gradient-to-b from-zinc-950 to-black p-3 flex flex-col h-[calc(100vh-7rem)] min-h-[520px] lg:sticky lg:top-4",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[p.jsx(Lg,{className:"w-4 h-4 text-primary"}),p.jsx("div",{className:"text-xs font-black uppercase tracking-wider",children:"Library"})]}),p.jsxs("div",{className:"relative mb-2",children:[p.jsx($R,{className:"w-3.5 h-3.5 absolute left-2 top-2.5 text-zinc-500"}),p.jsx("input",{value:n,onChange:g=>r(g.target.value),placeholder:"Search tracksâ¦",className:"w-full bg-zinc-950 border border-zinc-800 rounded-lg pl-7 pr-2 py-1.5 text-xs focus:outline-none focus:border-primary"})]}),p.jsx("input",{ref:l,type:"file",accept:"audio/*",onChange:f,className:"hidden"}),p.jsxs("button",{onClick:()=>l.current?.click(),className:"mb-2 inline-flex items-center justify-center gap-1.5 text-[10px] font-black uppercase tracking-wider px-2 py-1.5 rounded-lg bg-primary text-primary-foreground hover:opacity-90",children:[p.jsx(yd,{className:"w-3 h-3"})," Upload audio"]}),p.jsx("div",{ref:d,onMouseEnter:()=>{h.current=!0},onMouseLeave:()=>{h.current=!1},className:"flex-1 min-h-0 overflow-y-auto pr-1 space-y-1.5",children:e?p.jsx("div",{className:"text-[11px] text-zinc-500",children:"Loading catalogâ¦"}):t.length===0?p.jsx("div",{className:"text-[11px] text-zinc-500",children:"No tracks match."}):t.map(g=>p.jsxs("div",{draggable:!0,onDragStart:y=>{y.dataTransfer.setData("application/json",JSON.stringify(g)),y.dataTransfer.effectAllowed="copy"},className:"group flex items-center gap-2 rounded-lg bg-zinc-950/60 hover:bg-zinc-900 border border-zinc-800 p-1.5 cursor-grab active:cursor-grabbing",children:[p.jsx("div",{className:"w-8 h-8 rounded shrink-0 bg-zinc-800 overflow-hidden",children:g.cover_url&&p.jsx("img",{src:_o(g.cover_url,960),alt:"",className:"w-full h-full object-cover",loading:"lazy",decoding:"async"})}),p.jsxs("div",{className:"min-w-0 flex-1",children:[p.jsx("div",{className:"text-[11px] font-bold truncate text-white",children:g.title}),p.jsxs("div",{className:"text-[9px] text-zinc-500 truncate",children:[g.genre??"â"," · ",iT(g).toFixed(0)," BPM"]})]}),p.jsxs("div",{className:"flex gap-1 opacity-0 group-hover:opacity-100 transition",children:[p.jsx("button",{onClick:()=>s(g),className:"text-[9px] font-black px-1.5 py-0.5 rounded",style:{background:os,color:"#000"},children:"âA"}),p.jsx("button",{onClick:()=>i(g),className:"text-[9px] font-black px-1.5 py-0.5 rounded text-white",style:{background:as},children:"âB"})]})]},g.id))}),p.jsxs("div",{className:"text-[9px] text-zinc-600 mt-2 flex items-center gap-1",children:[p.jsx(sl,{className:"w-3 h-3"})," Auto-scrolling · hover to pause · drag onto a deck"]})]})}function wd(e){if(!isFinite(e)||e<=0)return"0:00";const t=Math.floor(e/60),n=Math.floor(e%60).toString().padStart(2,"0");return`${t}:${n}`}function Mee({deckA:e,deckB:t,onSeek:n}){return p.jsxs("div",{className:"rounded-xl border border-zinc-800 bg-black p-2 space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between text-[9px] font-black tracking-wider text-zinc-500 uppercase px-1",children:[p.jsxs("span",{style:{color:os},children:["A · ",e.track?.title??"â empty â"]}),p.jsxs("span",{className:"tabular-nums",children:[(e.bpm*(1+e.pitch/100)).toFixed(1)," BPM"]})]}),p.jsx(wS,{deck:e,accent:os,onSeek:r=>n("A",r)}),p.jsx(wS,{deck:t,accent:as,onSeek:r=>n("B",r)}
176),p.jsxs("div",{className:"flex items-center justify-between text-[9px] font-black tracking-wider text-zinc-500 uppercase px-1",children:[p.jsxs("span",{style:{color:as},children:["B · ",t.track?.title??"â empty â"]}),p.jsxs("span",{className:"tabular-nums",children:[(t.bpm*(1+t.pitch/100)).toFixed(1)," BPM"]})]})]})}function wS({deck:e,accent:t,onSeek:n}){const r=T.useMemo(()=>{const i=(e.track?.id||"0").split("").reduce((l,d)=>l+d.charCodeAt(0),0);return Array.from({length:160},(l,d)=>{const h=Math.sin((d+i)*.27)*Math.cos((d+i)*.09)+Math.sin((d+i)*.71)*.4;return .18+Math.abs(h)*.82})},[e.track?.id]),s=e.duration>0?e.progress/e.duration:0;return p.jsxs("div",{onClick:i=>{const l=i.currentTarget.getBoundingClientRect();n((i.clientX-l.left)/l.width)},className:"relative h-16 bg-zinc-950 rounded border border-zinc-900 overflow-hidden cursor-pointer",children:[p.jsx("div",{className:"absolute inset-0 flex items-center gap-px px-0.5",children:r.map((i,l)=>{const d=l/r.length<s;return p.jsx("span",{className:"flex-1 rounded-[1px]",style:{height:`${i*100}%`,background:d?t:"#3f3f46",opacity:d?.95:.5}},l)})}),Array.from({length:16}).map((i,l)=>p.jsx("div",{className:"absolute top-0 bottom-0 w-px bg-white/10",style:{left:`${l/16*100}%`}},l)),p.jsx("div",{className:"absolute top-0 bottom-0 w-px bg-white shadow-[0_0_8px_rgba(255,255,255,0.8)]",style:{left:`${s*100}%`}}),e.hotCues.map((i,l)=>i&&e.duration>0?p.jsx("div",{className:"absolute top-0 w-1 h-2",style:{left:`${i.time/e.duration*100}%`,background:i.color}},l):null),e.duration>0&&e.cuePoint>0&&p.jsx("div",{className:"absolute top-0 bottom-0 w-px bg-amber-400",style:{left:`${e.cuePoint/e.duration*100}%`}})]})}function Nee({ensureAudio:e}){const t=n=>{const r=e();!r.ctx||!r.master||(r.ctx.state==="suspended"&&r.ctx.resume(),n.play(r.ctx,r.master))};return p.jsxs("div",{className:"rounded-2xl border border-border bg-gradient-to-b from-zinc-950 to-black p-3",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[p.jsx(jR,{className:"w-4 h-4 text-primary"}),p.jsx("div",{className:"text-xs font-black uppercase tracking-wider",children:"SP-16 Sampler · DJ FX"}),p.jsx("div",{className:"text-[10px] text-muted-foreground ml-auto",children:"Tap to trigger · horns, sirens, scratch, crowd · routed to master"})]}),p.jsx("div",{className:"grid grid-cols-4 sm:grid-cols-8 gap-2",children:xee.map(n=>p.jsx("button",{onMouseDown:()=>t(n),className:"aspect-square rounded-lg border border-zinc-800 text-[10px] font-black uppercase tracking-wider text-black hover:scale-[1.03] active:scale-95 transition-transform",style:{background:`linear-gradient(180deg, ${n.color}, color-mix(in oklab, ${n.color} 60%, #000))`},children:n.name},n.name))})]})}const jee=()=>$(()=>import("./dashboard.mc-60e9ca6cf6.ads-CCCl2OA7.js"),[]),Pee=j("/_authenticated/dashboard/mc-60e9ca6cf6/ads")({component:N(jee,"component")}),Dee=()=>$(()=>import("./dashboard.mc-60e9ca6cf6.disc-print-BLxIP9I6.js"),__vite__mapDeps([524,389,239,103,162,525])),Iee=j("/_authenticated/dashboard/mc-60e9ca6cf6/disc-print")({head:()=>({meta:[{title:"Disc Print Queue â MO STREAMS"},{name:"description",content:"Review artist-built MO STREAMS Digital DISC layouts, approve them and download print-ready PDFs."},{property:"og:title",content:"Disc Print Queue â MO STREAMS"},{property:"og:description",content:"Approve artist disc designs and send print-ready files to the print shop."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:N(Dee,"component")}),Lee=j("/_authenticated/dashboard/modisc-studio/")({beforeLoad:()=>{throw Nt({to:"/dashboard/modiscs",replace:!0})}}),zee=j("/_authenticated/dashboard/modisc-studio/new")({beforeLoad:()=>{throw Nt({to:"/dashboard/modiscs/new",replace:!0})}}),Bee=j("/_authenticated/dashboard/modiscs/")({beforeLoad:()=>{throw Nt({to:"/dashboard/disc-studio",replace:!0})}}),Uee=()=>$(()=>import("./dashboard.modiscs._id-DatmRYyV.js"),__vite__mapDeps([526,103,86,226,173,161,162,98,17,525])),Vee=j("/_authenticated/dashboard/modiscs/$id")({component:N(Uee,"component")}),Fee=()=>$(()=>import("./dashboard.modiscs.new-CHPfGuAg.js"),__vite__mapDeps([527,87,326,86,258,175,17,158,145,98,40])),qee=j("/_authenticated/dashboard/modiscs/new")({validateSearch:e=>({start:e.start==="upload"?"upload":void 0}),component:N(Fee,"component")}),Hee=j("/_authenticated/dashboard/nft/new")({beforeLoad:()=>{throw Nt({to:"/dashboard/modiscs/new",search:{},replace:!0})}}),Gee=()=>$(()=>import("./dashboard.producer.beat-maker-Cz_ZPd_U.js"),__vite__mapDeps([528,225,120,40,226,98,23])),Kee=j("/_authenticated/dashboard/producer/beat-maker")({head:()=>({meta:[{title:"Beat Maker â Producer Studio"},{name:"description",content:"Create instrumentals in-browser with a 16-step sequencer, multiple drum
176kits, AI beat generator, and one-click WAV export."}]}),component:N(Gee,"component")}),Zee=()=>$(()=>import("./dashboard.producer.studio-fullscreen-DBoUcrpG.js"),__vite__mapDeps([529,225,120,40,226,378])),Wee=j("/_authenticated/dashboard/producer/studio-fullscreen")({head:()=>({meta:[{title:"MO STREAMS STUDIO â Producer Edition"},{name:"description",content:"Full-screen FL Studioâstyle DAW with live broadcast and integrated fan chat."}]}),component:N(Zee,"component")}),Yee=()=>$(()=>import("./mc-60e9ca6cf6.dashboards.index-B-aJLVFM.js"),__vite__mapDeps([530,72,73])),Jee=j("/_authenticated/mc-60e9ca6cf6/dashboards/")({component:N(Yee,"component")}),Qee=()=>$(()=>import("./mc-60e9ca6cf6.dashboards._role-NtUt2y3g.js"),__vite__mapDeps([531,239,173,229,40,230,77,231,86,92,148,149,150,25,151,9,51,91,152,38,120,153,124,154,155,58,156,157,158,159,13,160,83,161,162,163,164,165,166,42,167,168,169,170,171,172,70,6,145,174,175,41,176,177,224,225,226,227,114,115,228,111,12,112,87,113,116,117,57,56,118,119,121,122,123,47,125,126,127,72,128,129,2,3,4,5,10,130,82,131,132,133,98,134,93,43,105])),Xee=j("/_authenticated/mc-60e9ca6cf6/dashboards/$role")({component:N(Qee,"component")}),ete=()=>$(()=>import("./mc-60e9ca6cf6.releases.new-CgPwztiM.js"),[]),tte=()=>$(()=>import("./mc-60e9ca6cf6.releases.new-CGT-zYYe.js"),[]),nte=()=>$(()=>import("./mc-60e9ca6cf6.releases.new-BNRW4Yox.js"),__vite__mapDeps([532,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,254,255,168,256,136,209,257,68,3,9,104,44,150,145,226,258,72,163,175,40,120,50,51,396,507])),rte=j("/_authenticated/mc-60e9ca6cf6/releases/new")({head:()=>({meta:[{title:"Add release â MO Streams admin"}]}),component:N(nte,"component"),errorComponent:N(tte,"errorComponent"),notFoundComponent:N(ete,"notFoundComponent")}),ote=()=>$(()=>import("./mc-60e9ca6cf6.submissions._id-BMs8Cmfg.js"),__vite__mapDeps([533,255,223,176,258,173])),ate=j("/_authenticated/mc-60e9ca6cf6/submissions/$id")({component:N(ote,"component")}),ste=()=>$(()=>import("./mc-60e9ca6cf6.videos._id-DKfY2jly.js"),__vite__mapDeps([534,416,165,417,183,321,177,144,77,300,27,42,91,302,322,190,41,112,223,98,269,145,139])),ite=j("/_authenticated/mc-60e9ca6cf6/videos/$id")({component:N(ste,"component")}),cte=()=>$(()=>import("./network.channels._slug-zNKLJyvi.js"),__vite__mapDeps([535,325])),lte=j("/_authenticated/network/channels/$slug")({component:N(cte,"component")}),ute=()=>$(()=>import("./network.collab.index-D-uB_WEp.js"),__vite__mapDeps([536,26,9,50,223,67,68,3,4,69,6,70,537,40,83])),dte=j("/_authenticated/network/collab/")({component:N(ute,"component")}),hte=()=>$(()=>import("./network.collab._id-CUlgo-oO.js"),__vite__mapDeps([538,26,9,50,223,189,5,3,67,68,4,69,6,70,537,212,40])),fte=j("/_authenticated/network/collab/$id")({component:N(hte,"component")}),pte=()=>$(()=>import("./network.dm._userId-CeRvLZLQ.js"),__vite__mapDeps([539,266,267])),mte=j("/_authenticated/network/dm/$userId")({component:N(pte,"component")}),gte=()=>$(()=>import("./network.services.mine-CS1pSrUZ.js"),__vite__mapDeps([540,26,9,50,223,67,68,3,4,69,6,70,500,40,120])),yte=j("/_authenticated/network/services/mine")({component:N(gte,"component")}),vte=()=>$(()=>import("./network.services.quotes-U0vfjDpR.js"),__vite__mapDeps([541,26,9,50,223,67,68,3,4,69,6,70,452,500,41])),bte=j("/_authenticated/network/services/quotes")({component:N(vte,"component")}),_te=()=>$(()=>import("./network.u._handle-r8a6zkgW.js"),__vite__mapDeps([542,306,307,124,260,269,402,403,120,13,105,38,338,339,14,141,114,115,320,90,321,166,393])),wte=j("/_authenticated/network/u/$handle")({validateSearch:e=>({adminEdit:e.adminEdit==="1"||e.adminEdit===!0}),component:N(_te,"component")}),Ste=()=>$(()=>import("./tracks._id.edit-T72aiVdm.js"),[]),xte=()=>$(()=>import("./tracks._id.edit-BozvebKI.js"),[]),Rte=()=>$(()=>import("./tracks._id.edit-b7h_JoRP.js"),__vite__mapDeps([543,256,544,98,210,258,130,226])),Ete=j("/_authenticated/tracks/$id/edit")({head:()=>({meta:[{title:"Edit track â MO Streams admin"}]}),component:N(Rte,"component"),errorComponent:N(xte,"errorComponent"),notFoundComponent:N(Ste,"notFoundComponent")}),Ate=()=>$(()=>import("./vault.artist._handle-DxjnvRnZ.js"),__vite__mapDeps([545,250,9,101,102,103,104,173,40,44,251,98,105,150])),Tte=j("/_authenticated/vault/artist/$handle")({head:({params:e})=>({meta:[{title:`${e.handle} · Collector Hub | MO STREAMS`},{name:"description",content:`Every MO STREAMS Digital DISC you own from @${e.handle}, plus their videos, merch and booking.`},{property:"og:title",content:`@${e.handle} · Collector Hub`},{property:"og:description",content:"Your certified discs from this artist, with links to their videos, merch and bookings."},{property:"og:type",content:"profile"},{name:"twitter:card",content:"summary_large_image"}]}),component:N(Ate,"component")}),kte=()=>$(()=>import("./videos._id.edit-CXmSvbGI.js"),[]),Cte=()=>$(()=>import("./videos._id.edit-Dq3P6A_l.js"),[]),Ote=()=>$(()=>import("./videos._id.edit-knELbVk6.js"),__vite__mapDeps([546,189,5,3,67,68,4,69,6,70,544,98,210,226,258,145,7,130,120])),$te=j("/_authenticated/videos/$id/edit")({head:()=>({meta:[{title:"Edit video â MO Streams"}]}
176),component:N(Ote,"component"),errorComponent:N(Cte,"errorComponent"),notFoundComponent:N(kte,"notFoundComponent")}),Mte=()=>$(()=>import("./dashboard.artist.events._id-qWNRWFd7.js"),__vite__mapDeps([547,102,103,98,17,58])),Nte=j("/_authenticated/dashboard/artist/events/$id")({component:N(Mte,"component")}),jte=h8.update({id:"/",path:"/",getParentRoute:()=>xe}),re=p8.update({id:"/_authenticated",getParentRoute:()=>xe}),Pte=y8.update({id:"/about",path:"/about",getParentRoute:()=>xe}),Dte=b8.update({id:"/ads-partner",path:"/ads-partner",getParentRoute:()=>xe}),Ite=w8.update({id:"/affiliates",path:"/affiliates",getParentRoute:()=>xe}),Lte=x8.update({id:"/artist-advice",path:"/artist-advice",getParentRoute:()=>xe}),zte=E8.update({id:"/artist-services",path:"/artist-services",getParentRoute:()=>xe}),cT=T8.update({id:"/beats",path:"/beats",getParentRoute:()=>xe}),Bte=C8.update({id:"/blog",path:"/blog",getParentRoute:()=>xe}),lT=$8.update({id:"/book-an-artist",path:"/book-an-artist",getParentRoute:()=>xe}),Ute=N8.update({id:"/careers",path:"/careers",getParentRoute:()=>xe}),Vte=P8.update({id:"/changelog",path:"/changelog",getParentRoute:()=>xe}),Fte=B8.update({id:"/charts",path:"/charts",getParentRoute:()=>xe}),qte=V8.update({id:"/compare-distribution",path:"/compare-distribution",getParentRoute:()=>xe}),Hte=q8.update({id:"/contact",path:"/contact",getParentRoute:()=>xe}),Gte=G8.update({id:"/cookies",path:"/cookies",getParentRoute:()=>xe}),Kte=Z8.update({id:"/copyright",path:"/copyright",getParentRoute:()=>xe}),Fr=Y8.update({id:"/demo",path:"/demo",getParentRoute:()=>xe}),Zte=Q8.update({id:"/dj-pool",path:"/dj-pool",getParentRoute:()=>xe}),uT=ez.update({id:"/events",path:"/events",getParentRoute:()=>xe}),Wte=nz.update({id:"/explore",path:"/explore",getParentRoute:()=>xe}),Yte=az.update({id:"/forgot-password",path:"/forgot-password",getParentRoute:()=>xe}),Jte=iz.update({id:"/help-center",path:"/help-center",getParentRoute:()=>xe}),fy=lz.update({id:"/login",path:"/login",getParentRoute:()=>xe}),Qte=dz.update({id:"/marketplace",path:"/marketplace",getParentRoute:()=>xe}),Xte=fz.update({id:"/merch",path:"/merch",getParentRoute:()=>xe}),ene=mz.update({id:"/modiscs",path:"/modiscs",getParentRoute:()=>xe}),tne=bz.update({id:"/music-library",path:"/music-library",getParentRoute:()=>xe}),nne=wz.update({id:"/network-room",path:"/network-room",getParentRoute:()=>xe}),rne=xz.update({id:"/partners",path:"/partners",getParentRoute:()=>xe}),one=Ez.update({id:"/policy",path:"/policy",getParentRoute:()=>xe}),ane=Tz.update({id:"/press",path:"/press",getParentRoute:()=>xe}),sne=Cz.update({id:"/preview-dashboards",path:"/preview-dashboards",getParentRoute:()=>xe}),ine=$z.update({id:"/preview-dj-mix",path:"/preview-dj-mix",getParentRoute:()=>xe}),cne=Nz.update({id:"/pricing",path:"/pricing",getParentRoute:()=>xe}),lne=Pz.update({id:"/privacy",path:"/privacy",getParentRoute:()=>xe}),dT=Iz.update({id:"/redeem",path:"/redeem",getParentRoute:()=>xe}),une=zz.update({id:"/reset-password",path:"/reset-password",getParentRoute:()=>xe}),dne=Uz.update({id:"/reviews",path:"/reviews",getParentRoute:()=>xe}),hne=Fz.update({id:"/royalty-accounting",path:"/royalty-accounting",getParentRoute:()=>xe}),fne=Hz.update({id:"/sell-your-music",path:"/sell-your-music",getParentRoute:()=>xe}),yh=Kz.update({id:"/signup",path:"/signup",getParentRoute:()=>xe}),pne=Wz.update({id:"/status",path:"/status",getParentRoute:()=>xe}),mne=Jz.update({id:"/submit-radio",path:"/submit-radio",getParentRoute:()=>xe}),gne=Xz.update({id:"/sync-licensing",path:"/sync-licensing",getParentRoute:()=>xe}),yne=tB.update({id:"/terms",path:"/terms",getParentRoute:()=>xe}),vne=rB.update({id:"/vault-hV9FfJIQoaAvC9apox8dDPE3",path:"/vault-hV9FfJIQoaAvC9apox8dDPE3",getParentRoute:()=>xe}),bne=aB.update({id:"/video-distribution",path:"/video-distribution",getParentRoute:()=>xe}),_ne=iB.update({id:"/advertising",path:"/advertising",getParentRoute:()=>re}),wne=lB.update({id:"/analytics",path:"/analytics",getParentRoute:()=>re}),Sne=dB.update({id:"/audience",path:"/audience",getParentRoute:()=>re}),vh=fB.update({id:"/billing",path:"/billing",getParentRoute:()=>re}),xne=mB.update({id:"/blocklist",path:"/blocklist",getParentRoute:()=>re}),Rne=yB.update({id:"/chart-registration",path:"/chart-registration",getParentRoute:()=>re}),Ene=bB.update({id:"/copyright-registration",path:"/copyright-registration",getParentRoute:()=>re}),Ane=wB.update({id:"/cover-song-licensing",path:"/cover-song-licensing",getParentRoute:()=>re}),st=xB.update({id:"/dashboard",path:"/dashboard",getParentRoute:()=>re}),Tne=OB.update({id:"/data",path:"/data",getParentRoute:()=>re}),kne=BB.update({id:"/discover",path:"/discover",getParentRoute:()=>re}),Cne=VB.update({id:"/discs",path:"/discs",getParentRoute:()=>re}),One=HB.update({id:"/distribute",path:"/distribute",getParentRoute:()=>re}),$ne=KB.update({id:"/follow-requests",path:"/follow-requests",getParentRoute:()=>re}),Mne=WB.update({id:"/greenlist",path:"/greenlist",getParentRoute:()=>re}),Nne=JB.update({id:"/insights",path:"/insights",getParentRoute:()=>re}),jne=XB.update({id:"/kyc",path:"/kyc",getParentRoute:()=>re}),py=tU.update({id:"/marketplace",path:"/marketplace",getParentRoute:()=>re}),Pne=aU.update({id:"/messages",path:"/messages",getParentRoute:()=>re}),Dne=iU.update({id:"/moderation",path:"/moderation",getParentRoute:()=>re}
176),Ine=lU.update({id:"/my-collectibles",path:"/my-collectibles",getParentRoute:()=>re}),Lne=dU.update({id:"/my-library",path:"/my-library",getParentRoute:()=>re}),zne=hU.update({id:"/my-modiscs",path:"/my-modiscs",getParentRoute:()=>re}),ps=pU.update({id:"/network",path:"/network",getParentRoute:()=>re}),Bne=gU.update({id:"/notifications",path:"/notifications",getParentRoute:()=>re}),hT=Yq.update({id:"/onboarding",path:"/onboarding",getParentRoute:()=>re}),Une=Qq.update({id:"/payouts",path:"/payouts",getParentRoute:()=>re}),Vne=eH.update({id:"/priority-pitch",path:"/priority-pitch",getParentRoute:()=>re}),Fne=nH.update({id:"/profile-defender",path:"/profile-defender",getParentRoute:()=>re}),qne=oH.update({id:"/promote-my-music",path:"/promote-my-music",getParentRoute:()=>re}),Hne=sH.update({id:"/publishing-administration",path:"/publishing-administration",getParentRoute:()=>re}),Gne=cH.update({id:"/release-links",path:"/release-links",getParentRoute:()=>re}),Kne=uH.update({id:"/release-schedule",path:"/release-schedule",getParentRoute:()=>re}),Zne=hH.update({id:"/reports",path:"/reports",getParentRoute:()=>re}),Wne=pH.update({id:"/rewards",path:"/rewards",getParentRoute:()=>re}),Yne=gH.update({id:"/rights",path:"/rights",getParentRoute:()=>re}),fT=vH.update({id:"/rooms",path:"/rooms",getParentRoute:()=>re}),Jne=_H.update({id:"/royalty-splits",path:"/royalty-splits",getParentRoute:()=>re}),Qne=SH.update({id:"/sales",path:"/sales",getParentRoute:()=>re}),Xne=RH.update({id:"/social-usage",path:"/social-usage",getParentRoute:()=>re}),my=AH.update({id:"/submit",path:"/submit",getParentRoute:()=>re}),ere=kH.update({id:"/usage-discovery",path:"/usage-discovery",getParentRoute:()=>re}),pT=OH.update({id:"/vault",path:"/vault",getParentRoute:()=>re}),mT=MH.update({id:"/wallet",path:"/wallet",getParentRoute:()=>re}),tre=jH.update({id:"/advertise/",path:"/advertise/",getParentRoute:()=>xe}),nre=DH.update({id:"/advertise/pricing",path:"/advertise/pricing",getParentRoute:()=>xe}),rre=LH.update({id:"/artist/$handle",path:"/artist/$handle",getParentRoute:()=>xe}),ore=FH.update({id:"/back/$slug",path:"/back/$slug",getParentRoute:()=>xe}),are=qH.update({id:"/$beatId",path:"/$beatId",getParentRoute:()=>cT}),sre=GH.update({id:"/$listingId",path:"/$listingId",getParentRoute:()=>lT}),ire=ZH.update({id:"/book/$handle",path:"/book/$handle",getParentRoute:()=>xe}),cre=YH.update({id:"/channel/$handle",path:"/channel/$handle",getParentRoute:()=>xe}),lre=tG.update({id:"/collect/$slug",path:"/collect/$slug",getParentRoute:()=>xe}),ure=sG.update({id:"/$role",path:"/$role",getParentRoute:()=>Fr}),dre=cG.update({id:"/advertising",path:"/advertising",getParentRoute:()=>Fr}),hre=uG.update({id:"/data",path:"/data",getParentRoute:()=>Fr}),fre=hG.update({id:"/debug-traces",path:"/debug-traces",getParentRoute:()=>Fr}),pre=pG.update({id:"/network-collab",path:"/network-collab",getParentRoute:()=>Fr}),mre=gG.update({id:"/network-services",path:"/network-services",getParentRoute:()=>Fr}),gre=vG.update({id:"/rooms",path:"/rooms",getParentRoute:()=>Fr}),yre=bG.update({id:"/dj/$handle",path:"/dj/$handle",getParentRoute:()=>xe}),vre=RG.update({id:"/epk/$handle",path:"/epk/$handle",getParentRoute:()=>xe}),bre=AG.update({id:"/$slug",path:"/$slug",getParentRoute:()=>uT}),_re=kG.update({id:"/g/$slug",path:"/g/$slug",getParentRoute:()=>xe}),wre=OG.update({id:"/l/$slug",path:"/l/$slug",getParentRoute:()=>xe}),Sre=MG.update({id:"/legal/dpa",path:"/legal/dpa",getParentRoute:()=>xe}),xre=jG.update({id:"/live/$handle",path:"/live/$handle",getParentRoute:()=>xe}),Rre=DG.update({id:"/",path:"/",getParentRoute:()=>fy}),Ere=zG.update({id:"/$role",path:"/$role",getParentRoute:()=>fy}),Are=UG.update({id:"/mixtape/$slug",path:"/mixtape/$slug",getParentRoute:()=>xe}),Tre=FG.update({id:"/modisc/$slug",path:"/modisc/$slug",getParentRoute:()=>xe}),kre=qG.update({id:"/podcast/$episodeId",path:"/podcast/$episodeId",getParentRoute:()=>xe}),Cre=HG.update({id:"/podcasts/$episodeId",path:"/podcasts/$episodeId",getParentRoute:()=>xe}),Ore=ZG.update({id:"/radio/",path:"/radio/",getParentRoute:()=>xe}),$re=YG.update({id:"/$code",path:"/$code",getParentRoute:()=>dT}),Mre=nK.update({id:"/release/$slug",path:"/release/$slug",getParentRoute:()=>xe}),Nre=sK.update({id:"/services/$slug",path:"/services/$slug",getParentRoute:()=>xe}),jre=cK.update({id:"/check-email",path:"/check-email",getParentRoute:()=>yh}),Pre=uK.update({id:"/pending",path:"/pending",getParentRoute:()=>yh}),Dre=hK.update({id:"/trial-hold",path:"/trial-hold",getParentRoute:()=>yh}),Ire=pK.update({id:"/store/",path:"/store/",getParentRoute:()=>xe}),Lre=yK.update({id:"/store/$handle",path:"/store/$handle",getParentRoute:()=>xe}),zre=bK.update({id:"/tip/$handle",path:"/tip/$handle",getParentRoute:()=>xe}),Bre=wK.update({id:"/tools/link-preview",path:"/tools/link-preview",getParentRoute:()=>xe}
176),Ure=xK.update({id:"/track-order/$token",path:"/track-order/$token",getParentRoute:()=>xe}),Vre=OK.update({id:"/track/$id",path:"/track/$id",getParentRoute:()=>xe}),Fre=MK.update({id:"/verify/$hash",path:"/verify/$hash",getParentRoute:()=>xe}),qre=NK.update({id:"/video/$videoId",path:"/video/$videoId",getParentRoute:()=>xe}),Hre=LK.update({id:"/watch/$videoId",path:"/watch/$videoId",getParentRoute:()=>xe}),Gre=VK.update({id:"/.lovable/oauth/consent",path:"/.lovable/oauth/consent",getParentRoute:()=>xe}),Kre=qK.update({id:"/account/privacy",path:"/account/privacy",getParentRoute:()=>re}),Zre=GK.update({id:"/advertiser/apply",path:"/advertiser/apply",getParentRoute:()=>re}),gy=ZK.update({id:"/advertiser/campaigns",path:"/advertiser/campaigns",getParentRoute:()=>re}),Wre=YK.update({id:"/advertiser/dashboard",path:"/advertiser/dashboard",getParentRoute:()=>re}),Yre=QK.update({id:"/advertiser/reports",path:"/advertiser/reports",getParentRoute:()=>re}),Jre=tZ.update({id:"/verify",path:"/verify",getParentRoute:()=>vh}),Qre=rZ.update({id:"/channel/settings",path:"/channel/settings",getParentRoute:()=>re}),Xre=iZ.update({id:"/curator/inbox",path:"/curator/inbox",getParentRoute:()=>re}),eoe=lZ.update({id:"/backers",path:"/backers",getParentRoute:()=>st}),toe=dZ.update({id:"/channel-monetization",path:"/channel-monetization",getParentRoute:()=>st}),noe=fZ.update({id:"/collectibles",path:"/collectibles",getParentRoute:()=>st}),roe=mZ.update({id:"/disc-build",path:"/disc-build",getParentRoute:()=>st}),ooe=yZ.update({id:"/disc-orders",path:"/disc-orders",getParentRoute:()=>st}),aoe=bZ.update({id:"/disc-pressing",path:"/disc-pressing",getParentRoute:()=>st}),gT=wZ.update({id:"/disc-studio",path:"/disc-studio",getParentRoute:()=>st}),soe=xZ.update({id:"/gallery",path:"/gallery",getParentRoute:()=>st}),ioe=EZ.update({id:"/geo",path:"/geo",getParentRoute:()=>st}),coe=TZ.update({id:"/import-track",path:"/import-track",getParentRoute:()=>st}),loe=CZ.update({id:"/import-video",path:"/import-video",getParentRoute:()=>st}),uoe=OZ.update({id:"/limited-editions",path:"/limited-editions",getParentRoute:()=>st}),doe=MZ.update({id:"/live-replays",path:"/live-replays",getParentRoute:()=>st}),yy=jZ.update({id:"/mc-60e9ca6cf6",path:"/mc-60e9ca6cf6",getParentRoute:()=>st}),hoe=DZ.update({id:"/merch",path:"/merch",getParentRoute:()=>st}),bh=LZ.update({id:"/modiscs",path:"/modiscs",getParentRoute:()=>st}),foe=BZ.update({id:"/music-library",path:"/music-library",getParentRoute:()=>st}),poe=VZ.update({id:"/my-channel",path:"/my-channel",getParentRoute:()=>st}),moe=qZ.update({id:"/profile",path:"/profile",getParentRoute:()=>st}),goe=GZ.update({id:"/seo",path:"/seo",getParentRoute:()=>st}),yoe=ZZ.update({id:"/shorts",path:"/shorts",getParentRoute:()=>st}),voe=YZ.update({id:"/social",path:"/social",getParentRoute:()=>st}),boe=QZ.update({id:"/sound-chart",path:"/sound-chart",getParentRoute:()=>st}),_oe=eW.update({id:"/uploads",path:"/uploads",getParentRoute:()=>st}),woe=nW.update({id:"/dj/crate",path:"/dj/crate",getParentRoute:()=>re}),Soe=oW.update({id:"/$id",path:"/$id",getParentRoute:()=>py}),xoe=sW.update({id:"/upload",path:"/upload",getParentRoute:()=>py}),Roe=cW.update({id:"/mc-60e9ca6cf6/",path:"/mc-60e9ca6cf6/",getParentRoute:()=>re}),Eoe=uW.update({id:"/mc-60e9ca6cf6/account-approvals",path:"/mc-60e9ca6cf6/account-approvals",getParentRoute:()=>re}),Aoe=hW.update({id:"/mc-60e9ca6cf6/ad-inquiries",path:"/mc-60e9ca6cf6/ad-inquiries",getParentRoute:()=>re}),Toe=pW.update({id:"/mc-60e9ca6cf6/ad-partners",path:"/mc-60e9ca6cf6/ad-partners",getParentRoute:()=>re}),koe=gW.update({id:"/mc-60e9ca6cf6/ad-pricing",path:"/mc-60e9ca6cf6/ad-pricing",getParentRoute:()=>re}),Coe=vW.update({id:"/mc-60e9ca6cf6/ads-analytics",path:"/mc-60e9ca6cf6/ads-analytics",getParentRoute:()=>re}),Ooe=_W.update({id:"/mc-60e9ca6cf6/affiliate-ads",path:"/mc-60e9ca6cf6/affiliate-ads",getParentRoute:()=>re}),$oe=SW.update({id:"/mc-60e9ca6cf6/ai-disclosures",path:"/mc-60e9ca6cf6/ai-disclosures",getParentRoute:()=>re}),Moe=RW.update({id:"/mc-60e9ca6cf6/analytics",path:"/mc-60e9ca6cf6/analytics",getParentRoute:()=>re}),Noe=AW.update({id:"/mc-60e9ca6cf6/approvals",path:"/mc-60e9ca6cf6/approvals",getParentRoute:()=>re}),joe=kW.update({id:"/mc-60e9ca6cf6/audio-ads",path:"/mc-60e9ca6cf6/audio-ads",getParentRoute:()=>re}),Poe=OW.update({id:"/mc-60e9ca6cf6/booking-deposits",path:"/mc-60e9ca6cf6/booking-deposits",getParentRoute:()=>re}),Doe=MW.update({id:"/mc-60e9ca6cf6/booking-questions",path:"/mc-60e9ca6cf6/booking-questions",getParentRoute:()=>re}),Ioe=jW.update({id:"/mc-60e9ca6cf6/booking-requests",path:"/mc-60e9ca6cf6/booking-requests",getParentRoute:()=>re}),Loe=DW.update({id:"/mc-60e9ca6cf6/booking-wallet",path:"/mc-60e9ca6cf6/booking-wallet",getParentRoute:()=>re}),zoe=LW.update({id:"/mc-60e9ca6cf6/boost",path:"/mc-60e9ca6cf6/boost",getParentRoute:()=>re}),Boe=BW.update({id:"/mc-60e9ca6cf6/catalog-import",path:"/mc-60e9ca6cf6/catalog-import",getParentRoute:()=>re}),Uoe=VW.update({id:"/mc-60e9ca6cf6/cohorts",path:"/mc-60e9ca6cf6/cohorts",getParentRoute:()=>re}),Voe=qW.update({id:"/mc-60e9ca6cf6/collectibles",path:"/mc-60e9ca6cf6/collectibles",getParentRoute:()=>re}),Foe=GW.update({id:"/mc-60e9ca6cf6/comments",path:"/mc-60e9ca6cf6/comments",getParentRoute:()=>re}),qoe=ZW.update({id:"/mc-60e9ca6cf6/content",path:"/mc-60e9ca6cf6/content",getParentRoute:()=>re}),Hoe=YW.update({id:"/mc-60e9ca6cf6/create-account",path:"/mc-60e9ca6cf6/create-account",getParentRoute:()=>re}),Goe=QW.update({id:"/mc-60e9ca6cf6/data-warehouse",path:"/mc-60e9ca6cf6/data-warehouse",getParentRoute:()=>re}),Koe=eY.update({id:"/mc-60e9ca6cf6/ddex",path:"/mc-60e9ca6cf6/ddex",getParentRoute:()=>re}),Zoe=nY.update({id:"/mc-60e9ca6cf6/debug-traces",path:"/mc-60e9ca6cf6/debug-traces",getParentRoute:()=>re}
176),Woe=oY.update({id:"/mc-60e9ca6cf6/demo-sessions",path:"/mc-60e9ca6cf6/demo-sessions",getParentRoute:()=>re}),Yoe=sY.update({id:"/mc-60e9ca6cf6/disc-code-units",path:"/mc-60e9ca6cf6/disc-code-units",getParentRoute:()=>re}),Joe=cY.update({id:"/mc-60e9ca6cf6/drm",path:"/mc-60e9ca6cf6/drm",getParentRoute:()=>re}),Qoe=uY.update({id:"/mc-60e9ca6cf6/engagement",path:"/mc-60e9ca6cf6/engagement",getParentRoute:()=>re}),Xoe=hY.update({id:"/mc-60e9ca6cf6/escrow-disputes",path:"/mc-60e9ca6cf6/escrow-disputes",getParentRoute:()=>re}),eae=pY.update({id:"/mc-60e9ca6cf6/featured-beats",path:"/mc-60e9ca6cf6/featured-beats",getParentRoute:()=>re}),tae=gY.update({id:"/mc-60e9ca6cf6/fingerprints",path:"/mc-60e9ca6cf6/fingerprints",getParentRoute:()=>re}),nae=vY.update({id:"/mc-60e9ca6cf6/flags",path:"/mc-60e9ca6cf6/flags",getParentRoute:()=>re}),rae=_Y.update({id:"/mc-60e9ca6cf6/form-submissions",path:"/mc-60e9ca6cf6/form-submissions",getParentRoute:()=>re}),oae=SY.update({id:"/mc-60e9ca6cf6/giveaway-codes",path:"/mc-60e9ca6cf6/giveaway-codes",getParentRoute:()=>re}),aae=RY.update({id:"/mc-60e9ca6cf6/growth",path:"/mc-60e9ca6cf6/growth",getParentRoute:()=>re}),sae=AY.update({id:"/mc-60e9ca6cf6/infra",path:"/mc-60e9ca6cf6/infra",getParentRoute:()=>re}),iae=kY.update({id:"/mc-60e9ca6cf6/investor-report",path:"/mc-60e9ca6cf6/investor-report",getParentRoute:()=>re}),cae=OY.update({id:"/mc-60e9ca6cf6/kyc",path:"/mc-60e9ca6cf6/kyc",getParentRoute:()=>re}),lae=MY.update({id:"/mc-60e9ca6cf6/local-pay",path:"/mc-60e9ca6cf6/local-pay",getParentRoute:()=>re}),uae=jY.update({id:"/mc-60e9ca6cf6/luminate",path:"/mc-60e9ca6cf6/luminate",getParentRoute:()=>re}),dae=DY.update({id:"/mc-60e9ca6cf6/master-vault",path:"/mc-60e9ca6cf6/master-vault",getParentRoute:()=>re}),hae=LY.update({id:"/mc-60e9ca6cf6/merch-review",path:"/mc-60e9ca6cf6/merch-review",getParentRoute:()=>re}),fae=BY.update({id:"/mc-60e9ca6cf6/messages",path:"/mc-60e9ca6cf6/messages",getParentRoute:()=>re}),pae=VY.update({id:"/mc-60e9ca6cf6/moderation",path:"/mc-60e9ca6cf6/moderation",getParentRoute:()=>re}),mae=qY.update({id:"/mc-60e9ca6cf6/money",path:"/mc-60e9ca6cf6/money",getParentRoute:()=>re}),gae=ZY.update({id:"/mc-60e9ca6cf6/music-upload",path:"/mc-60e9ca6cf6/music-upload",getParentRoute:()=>re}),yae=YY.update({id:"/mc-60e9ca6cf6/paid-gig-roster",path:"/mc-60e9ca6cf6/paid-gig-roster",getParentRoute:()=>re}),vae=QY.update({id:"/mc-60e9ca6cf6/payment-gateways",path:"/mc-60e9ca6cf6/payment-gateways",getParentRoute:()=>re}),bae=eJ.update({id:"/mc-60e9ca6cf6/paypal",path:"/mc-60e9ca6cf6/paypal",getParentRoute:()=>re}),_ae=nJ.update({id:"/mc-60e9ca6cf6/people",path:"/mc-60e9ca6cf6/people",getParentRoute:()=>re}),wae=oJ.update({id:"/mc-60e9ca6cf6/qc",path:"/mc-60e9ca6cf6/qc",getParentRoute:()=>re}),Sae=sJ.update({id:"/mc-60e9ca6cf6/quick-ads",path:"/mc-60e9ca6cf6/quick-ads",getParentRoute:()=>re}),xae=cJ.update({id:"/mc-60e9ca6cf6/reaction-live",path:"/mc-60e9ca6cf6/reaction-live",getParentRoute:()=>re}),Rae=uJ.update({id:"/mc-60e9ca6cf6/reconciliation",path:"/mc-60e9ca6cf6/reconciliation",getParentRoute:()=>re}),Eae=hJ.update({id:"/mc-60e9ca6cf6/rights",path:"/mc-60e9ca6cf6/rights",getParentRoute:()=>re}),Aae=pJ.update({id:"/mc-60e9ca6cf6/royalties",path:"/mc-60e9ca6cf6/royalties",getParentRoute:()=>re}),Tae=gJ.update({id:"/mc-60e9ca6cf6/royalty-admin",path:"/mc-60e9ca6cf6/royalty-admin",getParentRoute:()=>re}),kae=vJ.update({id:"/mc-60e9ca6cf6/security",path:"/mc-60e9ca6cf6/security",getParentRoute:()=>re}),Cae=_J.update({id:"/mc-60e9ca6cf6/security-log",path:"/mc-60e9ca6cf6/security-log",getParentRoute:()=>re}),Oae=SJ.update({id:"/mc-60e9ca6cf6/seo",path:"/mc-60e9ca6cf6/seo",getParentRoute:()=>re}),$ae=RJ.update({id:"/mc-60e9ca6cf6/settings",path:"/mc-60e9ca6cf6/settings",getParentRoute:()=>re}),Mae=AJ.update({id:"/mc-60e9ca6cf6/social-usage",path:"/mc-60e9ca6cf6/social-usage",getParentRoute:()=>re}),Nae=kJ.update({id:"/mc-60e9ca6cf6/storage",path:"/mc-60e9ca6cf6/storage",getParentRoute:()=>re}),yT=OJ.update({id:"/mc-60e9ca6cf6/submissions",path:"/mc-60e9ca6cf6/submissions",getParentRoute:()=>re}),jae=MJ.update({id:"/mc-60e9ca6cf6/submissions-queue",path:"/mc-60e9ca6cf6/submissions-queue",getParentRoute:()=>re}),Pae=jJ.update({id:"/mc-60e9ca6cf6/subscriptions",path:"/mc-60e9ca6cf6/subscriptions",getParentRoute:()=>re}),Dae=DJ.update({id:"/mc-60e9ca6cf6/system-debug",path:"/mc-60e9ca6cf6/system-debug",getParentRoute:()=>re}),Iae=LJ.update({id:"/mc-60e9ca6cf6/takedowns",path:"/mc-60e9ca6cf6/takedowns",getParentRoute:()=>re}),Lae=BJ.update({id:"/mc-60e9ca6cf6/team",path:"/mc-60e9ca6cf6/team",getParentRoute:()=>re}),zae=VJ.update({id:"/mc-60e9ca6cf6/toolost",path:"/mc-60e9ca6cf6/toolost",getParentRoute:()=>re}),Bae=qJ.update({id:"/mc-60e9ca6cf6/traffic",path:"/mc-60e9ca6cf6/traffic",getParentRoute:()=>re}),Uae=GJ.update({id:"/mc-60e9ca6cf6/units",path:"/mc-60e9ca6cf6/units",getParentRoute:()=>re}),Vae=ZJ.update({id:"/mc-60e9ca6cf6/wallet-master",path:"/mc-60e9ca6cf6/wallet-master",getParentRoute:()=>re}),Fae=YJ.update({id:"/",path:"/",getParentRoute:()=>ps}),vy=QJ.update({id:"/collab",path:"/collab",getParentRoute:()=>ps}),by=eQ.update({id:"/services",path:"/services",getParentRoute:()=>ps}),qae=nQ.update({id:"/genres",path:"/genres",getParentRoute:()=>hT}),Hae=oQ.update({id:"/playlists/",path:"/playlists/",getParentRoute:()=>re}),Gae=sQ.update({id:"/playlists/$id",path:"/playlists/$id",getParentRoute:()=>re}),Kae=cQ.update({id:"/releases/studio",path:"/releases/studio",getParentRoute:()=>re}),Zae=uQ.update({id:"/$id",path:"/$id",getParentRoute:()=>fT}),Wae=hQ.update({id:"/settings/notifications",path:"/settings/notifications",getParentRoute:()=>re}),Yae=pQ.update({id:"/studio/hub",path:"/studio/hub",getParentRoute:()=>re}),Jae=gQ.update({id:"/faq",path:"/faq",getParentRoute:()=>my}),Qae=vQ.update({id:"/release",path:"/release",getParentRoute:()=>my}),vT=_Q.update({id:"/tracks/$id",path:"/tracks/$id",getParentRoute:()=>re}
176),Xae=SQ.update({id:"/upload/",path:"/upload/",getParentRoute:()=>re}),ese=RQ.update({id:"/upload/beat",path:"/upload/beat",getParentRoute:()=>re}),tse=AQ.update({id:"/upload/dj-mix",path:"/upload/dj-mix",getParentRoute:()=>re}),nse=TQ.update({id:"/upload/podcast",path:"/upload/podcast",getParentRoute:()=>re}),rse=CQ.update({id:"/upload/track",path:"/upload/track",getParentRoute:()=>re}),ose=$Q.update({id:"/upload/video",path:"/upload/video",getParentRoute:()=>re}),bT=NQ.update({id:"/videos/$id",path:"/videos/$id",getParentRoute:()=>re}),ase=PQ.update({id:"/history",path:"/history",getParentRoute:()=>mT}),sse=IQ.update({id:"/dashboard/channel-monetization",path:"/dashboard/channel-monetization",getParentRoute:()=>Fr}),ise=zQ.update({id:"/dashboard/social",path:"/dashboard/social",getParentRoute:()=>Fr}),cse=HQ.update({id:"/embed/track/$id",path:"/embed/track/$id",getParentRoute:()=>xe}),lse=KQ.update({id:"/store/album/$slug",path:"/store/album/$slug",getParentRoute:()=>xe}),use=WQ.update({id:"/store/artist/$handle",path:"/store/artist/$handle",getParentRoute:()=>xe}),dse=JQ.update({id:"/$id",path:"/$id",getParentRoute:()=>gy}),hse=XQ.update({id:"/new",path:"/new",getParentRoute:()=>gy}),fse=tX.update({id:"/paypal/cancel",path:"/paypal/cancel",getParentRoute:()=>vh}),pse=oX.update({id:"/paypal/return",path:"/paypal/return",getParentRoute:()=>vh}),mse=sX.update({id:"/artist/booking",path:"/artist/booking",getParentRoute:()=>st}),_T=cX.update({id:"/artist/events",path:"/artist/events",getParentRoute:()=>st}),gse=uX.update({id:"/bookings/questions",path:"/bookings/questions",getParentRoute:()=>st}),yse=hX.update({id:"/",path:"/",getParentRoute:()=>gT}),vse=Eee.update({id:"/dj/mix",path:"/dj/mix",getParentRoute:()=>st}),bse=Pee.update({id:"/ads",path:"/ads",getParentRoute:()=>yy}),_se=Iee.update({id:"/disc-print",path:"/disc-print",getParentRoute:()=>yy}),wse=Lee.update({id:"/modisc-studio/",path:"/modisc-studio/",getParentRoute:()=>st}),Sse=zee.update({id:"/modisc-studio/new",path:"/modisc-studio/new",getParentRoute:()=>st}),xse=Bee.update({id:"/",path:"/",getParentRoute:()=>bh}),Rse=Vee.update({id:"/$id",path:"/$id",getParentRoute:()=>bh}),Ese=qee.update({id:"/new",path:"/new",getParentRoute:()=>bh}),Ase=Hee.update({id:"/nft/new",path:"/nft/new",getParentRoute:()=>st}),Tse=Kee.update({id:"/producer/beat-maker",path:"/producer/beat-maker",getParentRoute:()=>st}),kse=Wee.update({id:"/producer/studio-fullscreen",path:"/producer/studio-fullscreen",getParentRoute:()=>st}),Cse=Jee.update({id:"/mc-60e9ca6cf6/dashboards/",path:"/mc-60e9ca6cf6/dashboards/",getParentRoute:()=>re}),Ose=Xee.update({id:"/mc-60e9ca6cf6/dashboards/$role",path:"/mc-60e9ca6cf6/dashboards/$role",getParentRoute:()=>re}),$se=rte.update({id:"/mc-60e9ca6cf6/releases/new",path:"/mc-60e9ca6cf6/releases/new",getParentRoute:()=>re}),Mse=ate.update({id:"/$id",path:"/$id",getParentRoute:()=>yT}),Nse=ite.update({id:"/mc-60e9ca6cf6/videos/$id",path:"/mc-60e9ca6cf6/videos/$id",getParentRoute:()=>re}),jse=lte.update({id:"/channels/$slug",path:"/channels/$slug",getParentRoute:()=>ps}),Pse=dte.update({id:"/",path:"/",getParentRoute:()=>vy}),Dse=fte.update({id:"/$id",path:"/$id",getParentRoute:()=>vy}),Ise=mte.update({id:"/dm/$userId",path:"/dm/$userId",getParentRoute:()=>ps}),Lse=yte.update({id:"/mine",path:"/mine",getParentRoute:()=>by}),zse=bte.update({id:"/quotes",path:"/quotes",getParentRoute:()=>by}),Bse=wte.update({id:"/u/$handle",path:"/u/$handle",getParentRoute:()=>ps}),Use=Ete.update({id:"/edit",path:"/edit",getParentRoute:()=>vT}),Vse=Tte.update({id:"/artist/$handle",path:"/artist/$handle",getParentRoute:()=>pT}),Fse=$te.update({id:"/edit",path:"/edit",getParentRoute:()=>bT}),qse=Nte.update({id:"/$id",path:"/$id",getParentRoute:()=>_T}),Hse={AuthenticatedBillingVerifyRoute:Jre,AuthenticatedBillingPaypalCancelRoute:fse,AuthenticatedBillingPaypalReturnRoute:pse},Gse=vh._addFileChildren(Hse),Kse={AuthenticatedDashboardDiscStudioIndexRoute:yse},Zse=gT._addFileChildren(Kse),Wse={AuthenticatedDashboardMc60e9ca6cf6AdsRoute:bse,AuthenticatedDashboardMc60e9ca6cf6DiscPrintRoute:_se},Yse=yy._addFileChildren(Wse),Jse={AuthenticatedDashboardModiscsIdRoute:Rse,AuthenticatedDashboardModiscsNewRoute:Ese,AuthenticatedDashboardModiscsIndexRoute:xse},Qse=bh._addFileChildren(Jse),Xse={AuthenticatedDashboardArtistEventsIdRoute:qse},eie=_T._addFileChildren(Xse),tie={AuthenticatedDashboardBackersRoute:eoe,AuthenticatedDashboardChannelMonetizationRoute:toe,AuthenticatedDashboardCollectiblesRoute:noe,AuthenticatedDashboardDiscBuildRoute:roe,AuthenticatedDashboardDiscOrdersRoute:ooe,AuthenticatedDashboardDiscPressingRoute:aoe,AuthenticatedDashboardDiscStudioRoute:Zse,AuthenticatedDashboardGalleryRoute:soe,AuthenticatedDashboardGeoRoute:ioe,AuthenticatedDashboardImportTrackRoute:coe,AuthenticatedDashboardImportVideoRoute:loe,AuthenticatedDashboardLimitedEditionsRoute:uoe,AuthenticatedDashboardLiveReplaysRoute:doe,AuthenticatedDashboardMc60e9ca6cf6Route:Yse,AuthenticatedDashboardMerchRoute:hoe,AuthenticatedDashboardModiscsRoute:Qse,AuthenticatedDashboardMusicLibraryRoute:foe,AuthenticatedDashboardMyChannelRoute:poe,AuthenticatedDashboardProfileRoute:moe,AuthenticatedDashboardSeoRoute:goe,AuthenticatedDashboardShortsRoute:yoe,AuthenticatedDashboardSocialRoute:voe,AuthenticatedDashboardSoundChartRoute:boe,AuthenticatedDashboardUploadsRoute:_oe,AuthenticatedDashboardArtistBookingRoute:mse,AuthenticatedDashboardArtistEventsRoute:eie,AuthenticatedDashboardBookingsQuestionsRoute:gse,AuthenticatedDashboardDjMixRoute:vse,AuthenticatedDashboardModiscStudioNewRoute:Sse,AuthenticatedDashboardNftNewRoute:Ase,AuthenticatedDashboardProducerBeatMakerRoute:Tse,AuthenticatedDashboardProducerStudioFullscreenRoute:kse,AuthenticatedDashboardModiscStudioIndexRoute:wse},nie=st._addFileChildren(tie),rie={AuthenticatedMarketplaceIdRoute:Soe,AuthenticatedMarketplaceUploadRoute:xoe},oie=py._addFileChildren(rie),aie={AuthenticatedNetworkCollabIdRoute:Dse,AuthenticatedNetworkCollabIndexRoute:Pse},sie=vy._addFileChildren(aie),iie={AuthenticatedNetworkServicesMineRoute:Lse,AuthenticatedNetworkServicesQuotesRoute:zse},cie=by._addFileChildren(iie),lie={AuthenticatedNetworkCollabRoute:sie,AuthenticatedNetworkServicesRoute:cie,AuthenticatedNetworkIndexRoute:Fae,AuthenticatedNetworkChannelsSlugRoute:jse,AuthenticatedNetworkDmUserIdRoute:Ise,AuthenticatedNetworkUHandleRoute:Bse},uie=ps._addFileChildren(lie),die={AuthenticatedOnboardingGenresRoute:qae},hie=hT._addFileChildren(die),fie={AuthenticatedRoomsIdRoute:Zae}
176,pie=fT._addFileChildren(fie),mie={AuthenticatedSubmitFaqRoute:Jae,AuthenticatedSubmitReleaseRoute:Qae},gie=my._addFileChildren(mie),yie={AuthenticatedVaultArtistHandleRoute:Vse},vie=pT._addFileChildren(yie),bie={AuthenticatedWalletHistoryRoute:ase},_ie=mT._addFileChildren(bie),wie={AuthenticatedAdvertiserCampaignsIdRoute:dse,AuthenticatedAdvertiserCampaignsNewRoute:hse},Sie=gy._addFileChildren(wie),xie={AuthenticatedMc60e9ca6cf6SubmissionsIdRoute:Mse},Rie=yT._addFileChildren(xie),Eie={AuthenticatedTracksIdEditRoute:Use},Aie=vT._addFileChildren(Eie),Tie={AuthenticatedVideosIdEditRoute:Fse},kie=bT._addFileChildren(Tie),Cie={AuthenticatedAdvertisingRoute:_ne,AuthenticatedAnalyticsRoute:wne,AuthenticatedAudienceRoute:Sne,AuthenticatedBillingRoute:Gse,AuthenticatedBlocklistRoute:xne,AuthenticatedChartRegistrationRoute:Rne,AuthenticatedCopyrightRegistrationRoute:Ene,AuthenticatedCoverSongLicensingRoute:Ane,AuthenticatedDashboardRoute:nie,AuthenticatedDataRoute:Tne,AuthenticatedDiscoverRoute:kne,AuthenticatedDiscsRoute:Cne,AuthenticatedDistributeRoute:One,AuthenticatedFollowRequestsRoute:$ne,AuthenticatedGreenlistRoute:Mne,AuthenticatedInsightsRoute:Nne,AuthenticatedKycRoute:jne,AuthenticatedMarketplaceRoute:oie,AuthenticatedMessagesRoute:Pne,AuthenticatedModerationRoute:Dne,AuthenticatedMyCollectiblesRoute:Ine,AuthenticatedMyLibraryRoute:Lne,AuthenticatedMyModiscsRoute:zne,AuthenticatedNetworkRoute:uie,AuthenticatedNotificationsRoute:Bne,AuthenticatedOnboardingRoute:hie,AuthenticatedPayoutsRoute:Une,AuthenticatedPriorityPitchRoute:Vne,AuthenticatedProfileDefenderRoute:Fne,AuthenticatedPromoteMyMusicRoute:qne,AuthenticatedPublishingAdministrationRoute:Hne,AuthenticatedReleaseLinksRoute:Gne,AuthenticatedReleaseScheduleRoute:Kne,AuthenticatedReportsRoute:Zne,AuthenticatedRewardsRoute:Wne,AuthenticatedRightsRoute:Yne,AuthenticatedRoomsRoute:pie,AuthenticatedRoyaltySplitsRoute:Jne,AuthenticatedSalesRoute:Qne,AuthenticatedSocialUsageRoute:Xne,AuthenticatedSubmitRoute:gie,AuthenticatedUsageDiscoveryRoute:ere,AuthenticatedVaultRoute:vie,AuthenticatedWalletRoute:_ie,AuthenticatedAccountPrivacyRoute:Kre,AuthenticatedAdvertiserApply
176Route:Zre,AuthenticatedAdvertiserCampaignsRoute:Sie,AuthenticatedAdvertiserDashboardRoute:Wre,AuthenticatedAdvertiserReportsRoute:Yre,AuthenticatedChannelSettingsRoute:Qre,AuthenticatedCuratorInboxRoute:Xre,AuthenticatedDjCrateRoute:woe,AuthenticatedMc60e9ca6cf6AccountApprovalsRoute:Eoe,AuthenticatedMc60e9ca6cf6AdInquiriesRoute:Aoe,AuthenticatedMc60e9ca6cf6AdPartnersRoute:Toe,AuthenticatedMc60e9ca6cf6AdPricingRoute:koe,AuthenticatedMc60e9ca6cf6AdsAnalyticsRoute:Coe,AuthenticatedMc60e9ca6cf6AffiliateAdsRoute:Ooe,AuthenticatedMc60e9ca6cf6AiDisclosuresRoute:$oe,AuthenticatedMc60e9ca6cf6AnalyticsRoute:Moe,AuthenticatedMc60e9ca6cf6ApprovalsRoute:Noe,AuthenticatedMc60e9ca6cf6AudioAdsRoute:joe,AuthenticatedMc60e9ca6cf6BookingDepositsRoute:Poe,AuthenticatedMc60e9ca6cf6BookingQuestionsRoute:Doe,AuthenticatedMc60e9ca6cf6BookingRequestsRoute:Ioe,AuthenticatedMc60e9ca6cf6BookingWalletRoute:Loe,AuthenticatedMc60e9ca6cf6BoostRoute:zoe,AuthenticatedMc60e9ca6cf6CatalogImportRoute:Boe,AuthenticatedMc60e9ca6cf6CohortsRoute:Uoe,AuthenticatedMc60e9ca6cf6CollectiblesRoute:Voe,AuthenticatedMc60e9ca6cf6CommentsRoute:Foe,AuthenticatedMc60e9ca6cf6ContentRoute:qoe,AuthenticatedMc60e9ca6cf6CreateAccountRoute:Hoe,AuthenticatedMc60e9ca6cf6DataWarehouseRoute:Goe,AuthenticatedMc60e9ca6cf6DdexRoute:Koe,AuthenticatedMc60e9ca6cf6DebugTracesRoute:Zoe,AuthenticatedMc60e9ca6cf6DemoSessionsRoute:Woe,AuthenticatedMc60e9ca6cf6DiscCodeUnitsRoute:Yoe,AuthenticatedMc60e9ca6cf6DrmRoute:Joe,AuthenticatedMc60e9ca6cf6EngagementRoute:Qoe,AuthenticatedMc60e9ca6cf6EscrowDisputesRoute:Xoe,AuthenticatedMc60e9ca6cf6FeaturedBeatsRoute:eae,AuthenticatedMc60e9ca6cf6FingerprintsRoute:tae,AuthenticatedMc60e9ca6cf6FlagsRoute:nae,AuthenticatedMc60e9ca6cf6FormSubmissionsRoute:rae,AuthenticatedMc60e9ca6cf6GiveawayCodesRoute:oae,AuthenticatedMc60e9ca6cf6GrowthRoute:aae,AuthenticatedMc60e9ca6cf6InfraRoute:sae,AuthenticatedMc60e9ca6cf6InvestorReportRoute:iae,AuthenticatedMc60e9ca6cf6KycRoute:cae,AuthenticatedMc60e9ca6cf6LocalPayRoute:lae,AuthenticatedMc60e9ca6cf6LuminateRoute:uae,AuthenticatedMc60e9ca6cf6MasterVaultRoute:dae,AuthenticatedMc60e9ca6cf6MerchReviewRoute:hae,AuthenticatedMc60e9ca6cf6MessagesRoute:fae,AuthenticatedMc60e9ca6cf6ModerationRoute:pae,AuthenticatedMc60e9ca6cf6MoneyRoute:mae,AuthenticatedMc60e9ca6cf6MusicUploadRoute:gae,AuthenticatedMc60e9ca6cf6PaidGigRosterRoute:yae,AuthenticatedMc60e9ca6cf6PaymentGatewaysRoute:vae,AuthenticatedMc60e9ca6cf6PaypalRoute:bae,AuthenticatedMc60e9ca6cf6PeopleRoute:_ae,AuthenticatedMc60e9ca6cf6QcRoute:wae,AuthenticatedMc60e9ca6cf6QuickAdsRoute:Sae,AuthenticatedMc60e9ca6cf6ReactionLiveRoute:xae,AuthenticatedMc60e9ca6cf6ReconciliationRoute:Rae,AuthenticatedMc60e9ca6cf6RightsRoute:Eae,AuthenticatedMc60e9ca6cf6RoyaltiesRoute:Aae,AuthenticatedMc60e9ca6cf6RoyaltyAdminRoute:Tae,AuthenticatedMc60e9ca6cf6SecurityRoute:kae,AuthenticatedMc60e9ca6cf6SecurityLogRoute:Cae,AuthenticatedMc60e9ca6cf6SeoRoute:Oae,AuthenticatedMc60e9ca6cf6SettingsRoute:$ae,AuthenticatedMc60e9ca6cf6SocialUsageRoute:Mae,AuthenticatedMc60e9ca6cf6StorageRoute:Nae,AuthenticatedMc60e9ca6cf6SubmissionsRoute:Rie,AuthenticatedMc60e9ca6cf6SubmissionsQueueRoute:jae,AuthenticatedMc60e9ca6cf6SubscriptionsRoute:Pae,AuthenticatedMc60e9ca6cf6SystemDebugRoute:Dae,AuthenticatedMc60e9ca6cf6TakedownsRoute:Iae,AuthenticatedMc60e9ca6cf6TeamRoute:Lae,AuthenticatedMc60e9ca6cf6ToolostRoute:zae,AuthenticatedMc60e9ca6cf6TrafficRoute:Bae,AuthenticatedMc60e9ca6cf6UnitsRoute:Uae,AuthenticatedMc60e9ca6cf6WalletMasterRoute:Vae,AuthenticatedPlaylistsIdRoute:Gae,AuthenticatedReleasesStudioRoute:Kae,AuthenticatedSettingsNotificationsRoute:Wae,AuthenticatedStudioHubRoute:Yae,AuthenticatedTracksIdRoute:Aie,AuthenticatedUploadBeatRoute:ese,AuthenticatedUploadDjMixRoute:tse,AuthenticatedUploadPodcastRoute:nse,AuthenticatedUploadTrackRoute:rse,AuthenticatedUploadVideoRoute:ose,AuthenticatedVideosIdRoute:kie,AuthenticatedMc60e9ca6cf6IndexRoute:Roe,AuthenticatedPlaylistsIndexRoute:Hae,AuthenticatedUploadIndexRoute:Xae,AuthenticatedMc60e9ca6cf6DashboardsRoleRoute:Ose,AuthenticatedMc60e9ca6cf6ReleasesNewRoute:$se,AuthenticatedMc60e9ca6cf6VideosIdRoute:Nse,AuthenticatedMc60e9ca6cf6DashboardsIndexRoute:Cse},Oie=re._addFileChildren(Cie),$ie={BeatsBeatIdRoute:are},Mie=cT._addFileChildren($ie),Nie={BookAnArtistListingIdRoute:sre},jie=lT._addFileChildren(Nie),Pie={DemoRoleRoute:ure,DemoAdvertisingRoute:dre,DemoDataRoute:hre,DemoDebugTracesRoute:fre,DemoNetworkCollabRoute:pre,DemoNetworkServicesRoute:mre,DemoRoomsRoute:gre,DemoDashboardChannelMonetizationRoute:sse,DemoDashboardSocialRoute:ise},Die=Fr._addFileChildren(Pie),Iie={EventsSlugRoute:bre},Lie=uT._addFileChildren(Iie),zie={LoginRoleRoute:Ere,LoginIndexRoute:Rre},Bie=fy._addFileChildren(zie),Uie={RedeemCodeRoute:$re},Vie=dT._addFileChildren(Uie),Fie={SignupCheckEmailRoute:jre,SignupPendingRoute:Pre,SignupTrialHoldRoute:Dre},qie=yh._addFileChildren(Fie),Hie={IndexRoute:jte,AuthenticatedRoute:Oie,AboutRoute:Pte,AdsPartnerRoute:Dte,AffiliatesRoute:Ite,ArtistAdviceRoute:Lte,ArtistServicesRoute:zte,BeatsRoute:Mie,BlogRoute:Bte,BookAnArtistRoute:jie,CareersRoute:Ute,ChangelogRoute:Vte,ChartsRoute:Fte,CompareDistributionRoute:qte,ContactRoute:Hte,Co
176okiesRoute:Gte,CopyrightRoute:Kte,DemoRoute:Die,DjPoolRoute:Zte,EventsRoute:Lie,ExploreRoute:Wte,ForgotPasswordRoute:Yte,HelpCenterRoute:Jte,LoginRoute:Bie,MarketplaceRoute:Qte,MerchRoute:Xte,ModiscsRoute:ene,MusicLibraryRoute:tne,NetworkRoomRoute:nne,PartnersRoute:rne,PolicyRoute:one,PressRoute:ane,PreviewDashboardsRoute:sne,PreviewDjMixRoute:ine,PricingRoute:cne,PrivacyRoute:lne,RedeemRoute:Vie,ResetPasswordRoute:une,ReviewsRoute:dne,RoyaltyAccountingRoute:hne,SellYourMusicRoute:fne,SignupRoute:qie,StatusRoute:pne,SubmitRadioRoute:mne,SyncLicensingRoute:gne,TermsRoute:yne,VaultHV9FfJIQoaAvC9apox8dDPE3Route:vne,VideoDistributionRoute:bne,AdvertisePricingRoute:nre,ArtistHandleRoute:rre,BackSlugRoute:ore,BookHandleRoute:ire,ChannelHandleRoute:cre,CollectSlugRoute:lre,DjHandleRoute:yre,EpkHandleRoute:vre,GSlugRoute:_re,LSlugRoute:wre,LegalDpaRoute:Sre,LiveHandleRoute:xre,MixtapeSlugRoute:Are,ModiscSlugRoute:Tre,PodcastEpisodeIdRoute:kre,PodcastsEpisodeIdRoute:Cre,ReleaseSlugRoute:Mre,ServicesSlugRoute:Nre,StoreHandleRoute:Lre,TipHandleRoute:zre,ToolsLinkPreviewRoute:Bre,TrackOrderTokenRoute:Ure,TrackIdRoute:Vre,VerifyHashRoute:Fre,VideoVideoIdRoute:qre,WatchVideoIdRoute:Hre,AdvertiseIndexRoute:tre,RadioIndexRoute:Ore,StoreIndexRoute:Ire,DotlovableOauthConsentRoute:Gre,EmbedTrackIdRoute:cse,StoreAlbumSlugRoute:lse,StoreArtistHandleRoute:use},Gie=xe._addFileChildren(Hie);function Kie(){return p.jsx("div",{className:"grid min-h-screen place-items-center bg-background px-6 text-foreground",children:p.jsxs("div",{className:"max-w-md text-center",children:[p.jsx("h1",{className:"text-7xl font-bold tracking-tight",children:"404"}),p.jsx("p",{className:"mt-4 text-sm text-muted-foreground",children:"The page you're looking for doesn't exist or has been moved."}),p.jsx("a",{href:"/",className:"mt-6 inline-block rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:opacity-90",children:"Go home"})]})})}function Zie({error:e,reset:t}){const n=Lt(),r=()=>{n.invalidate(),t()},s=e.__crashEvent??null;return T.useEffect(()=>{console.error(e);const i=Br({area:"router.defaultErrorComponent",error:e});i&&(e.__crashEvent=i);const l=window.setInterval(()=>{console.warn("[debug-auto-recovery] Retrying route after captured error.",{route:window.location.pathname,message:e.message,at:new Date().toISOString()}),r()},3e4);return()=>window.clearInterval(l)},[e]),p.jsx("div",{className:"grid min-h-screen place-items-center bg-background px-6 text-foreground",children:p.jsxs("div",{className:"max-w-md text-center",children:[p.jsx("h1",{className:"text-xl font-semibold tracking-tight",children:"Something went wrong"}),p.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"The automatic debug recovery captured this and will retry every 30 seconds."}),s?p.jsxs("p",{className:"mt-2 text-xs text-muted-foreground/80",children:["Trace ID ",p.jsx("code",{className:"font-mono",children:s.id})," · open ",p.jsx("a",{className:"underline",href:"/mc-60e9ca6cf6/debug-traces",children:"/debug-traces"})," to inspect."]}):null,p.jsxs("div",{className:"mt-6 flex flex-wrap justify-center gap-2",children:[p.jsx("button",{onClick:r,className:"rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:opacity-90",children:"Try again"}),p.jsx("a",{href:"/",className:"rounded-md border border-border bg-card px-4 py-2 text-sm font-medium text-foreground hover:bg-secondary",children:"Go home"})]})]})})}const Wie=()=>{const e=new VP({defaultOptions:{queries:{staleTime:6e4,gcTime:3e5,refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:1}},queryCache:new RR({onError:(n,r)=>{Br({area:"react-query.query",error:n,source:Array.isArray(r.queryKey)?r.queryKey.map(String).join("/"):String(r.queryKey),meta:{queryHash:r.queryHash}})}}),mutationCache:new xR({onError:(n,r,s,i)=>{Br({area:"react-query.mutation",error:n,source:i.options.mutationKey?i.options.mutationKey.map(String).join("/"):"anonymous"})}})});return GM({routeTree:Gie,context:{queryClient:e},scrollRestoration:!0,defaultStaleTime:6e4,defaultPreload:!1,defaultGcTime:5*6e4,defaultPendingMs:150,defaultPendingMinMs:0,defaultErrorComponent:Zie,defaultNotFoundComponent:Kie})};async function Yie(){const e=await Wie();let t;if(Hw){const n=await Hw.getOptions();n.serializationAdapters=n.serializationAdapters??[],window.__TSS_START_OPTIONS__=n,t=n.seri
176alizationAdapters,e.options.defaultSsr=n.defaultSsr}else t=[],window.__TSS_START_OPTIONS__={serializationAdapters:t};return t.push(Z$),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:"",serializationAdapters:t}),e.stores.matchesId.get().length||await Q$(e),e}var Jie=Yie;async function Qie(){const e=await Jie();return window.$_TSR?.h(),e}var Rm;function Xie(){return Rm||(Rm=Qie()),p.jsx(nM,{promise:Rm,children:e=>p.jsx(WM,{router:e})})}T.startTransition(()=>{Uk.hydrateRoot(document,p.jsx(T.StrictMode,{children:p.jsx(Xie,{})}))});export{zx as $,c9 as A,GE as B,l1 as C,s9 as D,d1 as E,Dce as F,uce as G,sl as H,jce as I,Lce as J,zce as K,An as L,Lg as M,Dg as N,r1 as O,KD as P,p8 as Q,cl as R,ll as S,y1 as T,NR as U,Ci as V,ii as W,fa as X,fle as Y,wX as Z,$ as _,jE as a,Ig as a$,MD as a0,tD as a1,am as a2,hy as a3,dg as a4,mce as a5,HD as a6,g1 as a7,B8 as a8,yd as a9,LR as aA,im as aB,DR as aC,bn as aD,W4 as aE,rD as aF,_e as aG,kg as aH,d9 as aI,Oi as aJ,ke as aK,ze as aL,Oe as aM,vl as aN,Km as aO,nl as aP,UP as aQ,yn as aR,Un as aS,vR as aT,PR as aU,v9 as aV,E9 as aW,u9 as aX,p1 as aY,YE as aZ,J9 as a_,jx as aa,fce as ab,H4 as ac,Wa as ad,_l as ae,J4 as af,X4 as ag,Lt as ah,It as ai,Ox as aj,jc as ak,az as al,h1 as am,ih as an,ul as ao,Ug as ap,bl as aq,VR as ar,fr as as,Er as at,Rr as au,eL as av,WI as aw,m5 as ax,WR as ay,BR as az,PE as b,yX as b$,SS as b0,al as b1,mz as b2,CI as b3,bz as b4,jR as b5,Br as b6,ace as b7,hI as b8,il as b9,KX as bA,sce as bB,xX as bC,hle as bD,Yd as bE,_D as bF,QX as bG,v1 as bH,f1 as bI,JX as bJ,OD as bK,ece as bL,vE as bM,yI as bN,m1 as bO,RK as bP,Td as bQ,yo as bR,kB as bS,$I as bT,QE as bU,VB as bV,uI as bW,HB as bX,qE as bY,gX as bZ,Jce as b_,OR as ba,AD as bb,Ju as bc,zg as bd,pI as be,gD as bf,u1 as bg,c1 as bh,si as bi,kR as bj,CR as bk,Yu as bl,XX as bm,_i as bn,Ha as bo,AB as bp,ple as bq,Iz as br,Kz as bs,pE as bt,gE as bu,Hg as bv,Gg as bw,ry as bx,aB as by,qX as bz,Ae as c,LK as c$,vX as c0,Hce as c1,Gce as c2,Kce as c3,Zce as c4,Wce as c5,tle as c6,nle as c7,rle as c8,ole as c9,AG as cA,fP as cB,OG as cC,jG as cD,zG as cE,UG as cF,FG as cG,ZG as cH,YG as cI,tce as cJ,nK as cK,QG as cL,e4 as cM,DP as cN,oce as cO,sK as cP,mS as cQ,cK as cR,Pce as cS,uK as cT,hK as cU,Ice as cV,yK as cW,bK as cX,xK as cY,OK as cZ,MK as c_,ele as ca,Xce as cb,Yce as cc,Qce as cd,ale as ce,Sce as cf,RD as cg,OH as ch,LH as ci,Rce as cj,gce as ck,FH as cl,GH as cm,ZH as cn,YH as co,$9 as cp,tG as cq,kce as cr,z4 as cs,sG as ct,nG as cu,pce as cv,ice as cw,lce as cx,cce as cy,RG as cz,TB as d,jK as d0,VK as d1,zK as d2,vce as d3,yce as d4,xce as d5,wce as d6,bce as d7,_ce as d8,sm as d9,NQ as dA,HQ as dB,UQ as dC,KQ as dD,WQ as dE,Nce as dF,JQ as dG,XD as dH,pD as dI,sD as dJ,tI as dK,xee as dL,Vee as dM,qee as dN,Xee as dO,ate as dP,ite as dQ,lte as dR,fte as dS,mte as dT,wte as dU,Ete as dV,Tte as dW,$te as dX,Nte as dY,hce as dZ,oW as da,Nc as db,qce as dc,Bce as dd,Uce as de,Vce as df,Fce as dg,dce as dh,Ece as di,Ace as dj,Tce as dk,sle as dl,ile as dm,cle as dn,lle as dp,ule as dq,dle as dr,sQ as ds,Cce as dt,$ce as du,cQ as dv,Oce as dw,Mce as dx,pM as dy,uQ as dz,DE as e,l9 as f,V4 as g,gi as h,Qn as i,p as j,h8 as k,k9 as l,Ud as m,$R as n,MR as o,eg as p,Bd as q,T as r,qe as s,_o as t,Bx as u,gd as v,Bg as w,kD as x,pd as y,gl as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.