const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/FindBestCompanies-DZLMGMSI.js","assets/vendor-radix-DNp60FuA.js","assets/vendor-react-DL0tRKZA.js","assets/vendor-query-CKQAY9LX.js","assets/supabase-queries-C4jwBnTx.js","assets/useJobs-BcJy3TPh.js","assets/skeleton-Dsa0O-T7.js","assets/companyLogos-DKj1kb25.js","assets/whatsapp-bfrw3Kdz.js","assets/index-BxeYe70z.js","assets/index-D0VLSXYk.js","assets/vendor-supabase-B4f4CcZD.js","assets/vendor-charts-CPng-d0O.js","assets/TalentPlatformPromo-Xscog7Sv.js","assets/card-D8WTMV8f.js","assets/trending-up-Dsxo6Qpt.js","assets/arrow-right-rKYFvd8j.js","assets/message-circle-S93igkAc.js","assets/euro-CUo8ioOr.js","assets/HEXAwardsPromo-BgBmx8Pg.js","assets/trophy-BMlnbphj.js","assets/ConfirmedPartners-arZJMUS6.js","assets/arrow-left-CGOpPBg4.js","assets/external-link-BanA5UKX.js","assets/Footer-CxLqhqCI.js","assets/index-BscdM2yK.js","assets/use-mobile-DG-UVPpq.js","assets/brain-CdQ1esqI.js","assets/handshake-Cv5pZAI8.js","assets/cpu-CUCLg3gv.js","assets/SafeComponentWrapper-CcaAueey.js","assets/home-v2-CYMoQq0D.js","assets/AIChatBubble-FvDTktDT.js","assets/input-BB7xZgTE.js","assets/scroll-area-Bc-yGBO6.js","assets/index-CtQ7N6qa.js","assets/bot-jTvkWrXT.js","assets/loader-circle-B3bILLBX.js","assets/send-A68K9khq.js","assets/LiveAvatarWidget-DV_hG08T.js","assets/MessagesDiagnostic-B318Foaf.js","assets/textarea-BhIK2NWX.js","assets/job-categories-C27KOOY8.js","assets/ab02-D_FOufr2.js","assets/CategoryIcon-NzdMPTmZ.js","assets/lucide-react-BsSJystp.js","assets/activity-DaQDNMBk.js","assets/archive-B3TBOtWG.js","assets/arrow-up-down-DpIo2864.js","assets/award-CfqlU1Zx.js","assets/badge-check-p5Ua2JJe.js","assets/ban-CP1-W2KL.js","assets/banknote-DEGejwMD.js","assets/bell-CoNTn65h.js","assets/book-open-gYtsHviU.js","assets/bookmark-DfgCeg6O.js","assets/briefcase-Cvx1Ta5W.js","assets/bug-BxTVZp2q.js","assets/building-2-Dso2q-g6.js","assets/building-Ol8oAf6Q.js","assets/calendar-days-D1U3rWSd.js","assets/calendar-cEoeiJER.js","assets/camera-C5kwwEJE.js","assets/chart-column-BkcdIlLk.js","assets/check-BObc5dIP.js","assets/chevron-down-CinJG4so.js","assets/chevron-left-Ccf5FZB0.js","assets/chevron-right-DiLsh-Na.js","assets/chevron-up-QKqoLVJt.js","assets/chevrons-up-down-DBsEl1g1.js","assets/circle-alert-CZZxKquo.js","assets/circle-check-big-Z9rEE01O.js","assets/circle-check-VVNKVdwg.js","assets/pound-sterling-DfVlRdZN.js","assets/circle-play-CBATGxPf.js","assets/circle-x-V63VHO2o.js","assets/circle-CiJcs3i9.js","assets/clock-BbD_GbdK.js","assets/cloud-dAz6uo_n.js","assets/code-BakG97TX.js","assets/layout-grid-D7b5tzGp.js","assets/columns-2-vhQhnaMj.js","assets/copy-BKCYpLmo.js","assets/credit-card-BgVZv_7n.js","assets/crown-CIV7ixVe.js","assets/database-3VMXebgS.js","assets/dollar-sign-ViAIwAyr.js","assets/download-DDuri5ei.js","assets/ellipsis-vertical-DV88dUik.js","assets/ellipsis-CHX63Eki.js","assets/eye-off-DMaBMyBk.js","assets/eye-DIFaUC5Z.js","assets/twitter-6bdVH3pg.js","assets/file-check-DaJ9Lcna.js","assets/mouse-pointer-click-D-WyUpWy.js","assets/file-down-Ck-FMTxf.js","assets/wrench-pHrp3oG6.js","assets/file-text-DDcLZCeU.js","assets/trash-Biiit5yk.js","assets/filter-Co1-OWOz.js","assets/github-BziHf18s.js","assets/globe-D1LjJM6W.js","assets/graduation-cap-Bp_78YLS.js","assets/grid-3x3-DDBvPbDj.js","assets/grip-vertical-DsROuxN4.js","assets/heart-BCVG5zii.js","assets/house-ruwaZvly.js","assets/image-_9gpbUhd.js","assets/info-DDEp8TFm.js","assets/user-x-D01FqLn8.js","assets/volume-x-DJp7dcdS.js","assets/panel-left-Dw_px4VQ.js","assets/lightbulb-CYFVePec.js","assets/link-CocE0tAr.js","assets/linkedin-TDtuKCnP.js","assets/list-F5Pl9BMh.js","assets/lock-open-BOmoG1ES.js","assets/lock-CTACZCqM.js","assets/shield-off-IrShcxsz.js","assets/mail-LeGJPHXY.js","assets/map-pin-zDJSH_K2.js","assets/smile-C28sw-P-.js","assets/message-square-DWdcaHlW.js","assets/mic-I58q2d0n.js","assets/trending-down-BIY7eY3e.js","assets/monitor-CFUsrR85.js","assets/panel-right-B4ifu0Ni.js","assets/music-YVqHgIUD.js","assets/package-CcbxN2u8.js","assets/palette-Ci-Bl-nh.js","assets/pause-D2rFIW1W.js","assets/pen-line-B8A5xL18.js","assets/pen-BoQr90pw.js","assets/pencil-CtU5uR3r.js","assets/percent-D6625Hvo.js","assets/phone-B-eFs33-.js","assets/plus-D_XtziWy.js","assets/power-CHAfqFxD.js","assets/receipt-BELrXd-Q.js","assets/refresh-cw-BIkBMTOC.js","assets/reply-DM_c_DyE.js","assets/rotate-ccw-DeRBFW8m.js","assets/save-BDNyMG3_.js","assets/search-DoB3KYub.js","assets/server-bSk5M_nF.js","assets/settings-DqKcmPkT.js","assets/share-2-BIwKMe1P.js","assets/shield-eUCpoBE-.js","assets/smartphone-knG5ZdWi.js","assets/square-check-big-7WzPAwL-.js","assets/square-pen-B0llRjsM.js","assets/square-BpBzm56r.js","assets/star-off-D6ny76eG.js","assets/star-CjF5yTb8.js","assets/target-Dr0eM-bK.js","assets/test-tube-yWsX3Wlq.js","assets/timer-CnyDGaK_.js","assets/trash-2-Bs2MloGq.js","assets/triangle-alert-CiUGUU8g.js","assets/type-D5n3X-Bm.js","assets/upload-DO0cKPJ6.js","assets/user-check-BhA6uYcF.js","assets/user-minus-BWtD0KEU.js","assets/user-plus-BtXgYAKS.js","assets/users-round-ClKpmk2m.js","assets/users-ClfLoubw.js","assets/video-off-B3wprVlV.js","assets/video-BCH4AQAZ.js","assets/volume-2-DtC9G5oa.js","assets/wand-sparkles-DoFzNuFg.js","assets/wifi-off-c6MMFQAH.js","assets/wifi-D7pI5QZn.js","assets/zap-D7doC180.js","assets/zoom-out-Bmq9xMtj.js","assets/Explore-job-Bn7RC76o.js","assets/BreadcrumbWrapper-BJqeXZE7.js","assets/job-apply-qXvKDSi6.js","assets/useResumeUploads-Dm7LAytc.js","assets/useProfileMutations-t_XeOqky.js","assets/country-select-CKsA0YD0.js","assets/command-CPi2JqDy.js","assets/popover-Dr3E9hwQ.js","assets/countries-jDUnRHCO.js","assets/th-generated-icon-CcDaMvWl.js","assets/HeroSection-wLFSKvnL.js","assets/alert-By0Cm1U4.js","assets/job-application-success-B5HJ3Guq.js","assets/job-apply-enhanced-CZlLL4NP.js","assets/index.esm-Djp0AcWf.js","assets/useCVImageAnalysis-CI2URS38.js","assets/CVAnalysisResults-DUcQYi1G.js","assets/progress-CpLm5Qmj.js","assets/job-post-BGKCpA1c.js","assets/useAuthGuard-Ct7fQJB-.js","assets/JobFormModal-LLPMp2uf.js","assets/zod-BE_N1COS.js","assets/useHeyGenCredits-DfeuuXPF.js","assets/alert-dialog-C7r1yPXv.js","assets/tabs-C-5ulF9K.js","assets/form-B40qC90I.js","assets/label-BaEEUFvK.js","assets/switch-D3Qnurb9.js","assets/select-Cgb96SXY.js","assets/useJobPostingLimits-twEwg8gf.js","assets/collapsible-CQUSqfX7.js","assets/index-QYM6e06U.js","assets/useGenerateInterviewQuestions-bXJXTxSS.js","assets/hover-card-CTDM9T_B.js","assets/useUserCompanies-Dt_hSFJE.js","assets/RichTextEditor-BPMpkdDj.js","assets/quill.snow-DUf4VmQi.js","assets/quill-DZrYvFpI.css","assets/JobShareButton-DNtoZxvC.js","assets/coerce-yi8LZkXn.js","assets/JobCreationWizard-DPcYVl9g.js","assets/useCompanyProfile-BkuvA3jU.js","assets/useIndustries-Dw3nECmf.js","assets/useEmployerSubscriptionCheck-EJ3LAbxn.js","assets/LoadingSpinner-CUQr5E8C.js","assets/ErrorState-R0RTSTVn.js","assets/job-list-_n5_Qr7-.js","assets/Feature-Bc81rjIZ.js","assets/index-luXPprhF.js","assets/CompanyLogo-COTywlkX.js","assets/dateUtils-B9qxNWi9.js","assets/format-NXe5WdhZ.js","assets/en-US-DsJ0-K0a.js","assets/HTMLContent-DsPGG4ZZ.js","assets/PublicPagination-_H6i5uaP.js","assets/useJobApplicationStatus-DgFpYQvw.js","assets/formatDistanceToNow-F80pU6-C.js","assets/constructNow-Cf1joT6_.js","assets/differenceInCalendarMonths-DnfRIrCK.js","assets/endOfDay-DfXidCUT.js","assets/endOfMonth-DO4kXUER.js","assets/getRoundingMethod-D0I6Z7xl.js","assets/slider-BzaSEVUg.js","assets/job-detail-one-DfbfJf-O.js","assets/ViewTracker-4wE-g_Qe.js","assets/useViewTracking-yBZ7MG8T.js","assets/overview-CY-FfVse.js","assets/FAQAccordion-D757lUdu.js","assets/useFAQs-i361gk1A.js","assets/accordion-DCBNGscq.js","assets/useContactForm-Bf7Vj6yY.js","assets/ValidationErrorDialog-lfrFv_9n.js","assets/guides-BPNF1qfJ.js","assets/aboutus-ClytMOWD.js","assets/services-DQOmXjo4.js","assets/pricing-aQfLmUpG.js","assets/useSubscriptions-B8zMDN6_.js","assets/usePublicSubscriptionPlans-DzbcQs3H.js","assets/useClaimFreePlan-B1P_gGGq.js","assets/CheckoutModal-CMsRv6pY.js","assets/ForEmployers-X8v2Y8b6.js","assets/ForCandidates-C0gg9ZJF.js","assets/FreeCVAnalysis-CVuRfVzG.js","assets/list-BmxcAmDM.js","assets/dropdown-menu-Bosd5ozw.js","assets/detail-FX8lXkCe.js","assets/useCompanyJobs-4PiA-ZGn.js","assets/InterviewLanding-Nr7JudlK.js","assets/InterviewHeader-DZ4NWSwG.js","assets/DeviceSetup-CM0vF91l.js","assets/checkbox-DgwJ5v94.js","assets/InterviewSessionInterface-DbBggQxI.js","assets/useAudioUpload-Bsxq87wn.js","assets/MediaStreamRegistry-Bpg6oxe-.js","assets/components-Bz2b1Fa9-BsFvOpBY.js","assets/InterviewComplete-CBjauvEh.js","assets/list-DsUg_MI6.js","assets/usePublicCandidates-CllpnJS8.js","assets/detail-B2LGOehE.js","assets/index-LkGwrL6j.js","assets/useSkillsDisplayFeature-CTglcnK-.js","assets/useUserExperience-CTSj_1Bt.js","assets/candidate-profile-setting-jF5W7CYI.js","assets/separator-A7gS34zV.js","assets/useDeleteAccount-BJqYAyf_.js","assets/ConfirmDialog-BLFrd9i7.js","assets/ExperienceManager-DnsfCkPT.js","assets/useCandidateReferences-B_DV19Lj.js","assets/password-input-BycF9bkH.js","assets/auth-validation-Pa3ShdjD.js","assets/VerifyReference-COmxh6XJ.js","assets/radio-group-D9-KqKv7.js","assets/VerifyEmployment-Ce5G-0B6.js","assets/BlogDrafts-thnm1BI_.js","assets/dashboard-BeEVET7k.js","assets/useStandaloneCVAnalysis-BNEL2ZwL.js","assets/retryUtils-BfehAtoq.js","assets/ProfileBanner-Y29rIqj4.js","assets/useCandidateApplications-DGyRARyW.js","assets/useCandidateBookmarks-gJx9w6Wg.js","assets/useJobAlerts-BsxyI-e8.js","assets/useCandidateInterviews-DLq_aGmT.js","assets/applications-DkiBlQx-.js","assets/ResumeViewer-jlrwKZLB.js","assets/useSignedUrl-BoaEBhD4.js","assets/useUserPermissions-CDunqcZn.js","assets/saved-jobs-DPxqd5YP.js","assets/job-alerts-hZGTzAwi.js","assets/useJobAlertsFeature-B8rQhQh_.js","assets/interviews-B9hNq5az.js","assets/useInterviewSession-DP5-34Vl.js","assets/useInterviewTemplates-D9gztqnM.js","assets/startOfMonth-BBChitSM.js","assets/isSameMonth-bmDatZ02.js","assets/isToday-BTFZLcJF.js","assets/messages-8H28LHKk.js","assets/useSendMessage-Cwb4Sq2t.js","assets/resume-JA8D7e4s.js","assets/useResumeTemplates-BqTqH073.js","assets/settings-CR-DDg-A.js","assets/usePrivacySettings-l3w78nH5.js","assets/dashboard-B_EdxP26.js","assets/JobApplicationsModal-AeSHa5nb.js","assets/table-ByixeiqB.js","assets/CVAnalysisModal-CHT8y5NL.js","assets/useEmployerApplications-dwYDM1QQ.js","assets/DeleteJobModal-B2WXsWT3.js","assets/CandidateProfileModal-DtwbAzY3.js","assets/useEmployerInterviews-DngbCRbm.js","assets/VerificationCenter-CBjQDePP.js","assets/SendMessageModal-DJ0V5VNA.js","assets/RescheduleModal-SM8MnmCp.js","assets/calendar-DWMvbyHy.js","assets/addDays-NOLZi58N.js","assets/addMonths-CqkG0KAv.js","assets/useRescheduleInterview-BnfXh_b0.js","assets/EmployerInterviewReportModal-O0wHL8Tn.js","assets/InterviewAnalysisViewer-DAvqNK6A.js","assets/useSelfHealingFreePlanClaim-DYubOtkb.js","assets/jobs-BKHK31Kq.js","assets/JobInterviewsModal-CkjAa_bX.js","assets/useAdminInterviews-B3Y_G_4V.js","assets/useOptimizedJobStats-CaMWpr4z.js","assets/applications-DP8B5rHA.js","assets/ApplicationFilters-BQd7nsT5.js","assets/useEmployerCVAnalysis-FYR6chDy.js","assets/UserPagination-Da2GzXDo.js","assets/pagination-DDPoop0c.js","assets/CandidateDetailPage-C6ynW1X6.js","assets/interviews-CUOTOayW.js","assets/InterviewAnalysisStatus-DhY7-O2b.js","assets/useDebounce-lY7OyNdM.js","assets/applications-CY023IUQ.js","assets/useAdminApplications-B33tg3d0.js","assets/useRequirePermissions-DUesDtuN.js","assets/analytics-zzzCPjbP.js","assets/company-profile-Bzo1NhTf.js","assets/billing-Db_1tB8O.js","assets/settings-BwmtMqyY.js","assets/job-detail-BT3K9xet.js","assets/interview-templates-wt4gd0YM.js","assets/contact-BCEBNzEM.js","assets/TransformYourHiring-BXje80E5.js","assets/BlogShareButton-CIc5253L.js","assets/CandidateExperienceROI-Cg2TYbRf.js","assets/CvsToSkillsRecruitment-DGTPmMQl.js","assets/IrelandWageParadox-Fp7reagy.js","assets/Ireland2026SalaryGuide-CcgTO4OT.js","assets/SmartTechnologyFutureHiring-B0wh5qSu.js","assets/DiversityEquityInclusionPolicy-CpB00Sd4.js","assets/SustainableProcurementPolicy-tCkOOiCC.js","assets/Maintenance-n28lbaNT.js","assets/error-CbCdRGGi.js","assets/thankyou-CGz4N1n6.js","assets/privacy-CdOMMoKf.js","assets/terms-CNm_E65T.js","assets/login-DttWBnXV.js","assets/signup--ROZveD4.js","assets/SignupRoleSelection-D2V7Eoey.js","assets/reset-password-CNPaOvdd.js","assets/PasswordResetComplete-P8m3tpZd.js","assets/AuthCallback-BCHZBUmQ.js","assets/blogs--zv9G_Ld.js","assets/useBlogPosts-Dl3ne3sX.js","assets/blog-detail-ByVK2qQd.js","assets/NotFound-BHkBZz7q.js","assets/AccessDenied-Dd2oL4qa.js","assets/Unsubscribe-DpGYXiBo.js","assets/AdminLayout-BDW4s4DB.js","assets/sidebar-DSbR3Gkc.js","assets/useAdminMenuItems-B0TEgHn8.js","assets/useRequireAdminAccess-NQW9nbHW.js","assets/EmployerLayout-DmSfYBuz.js","assets/CandidateLayout-KfXKdtEe.js","assets/AdminDashboard-DDZ5JH03.js","assets/AllUsers-C18lO4dA.js","assets/useRoles-CsKbg2Ga.js","assets/useUserStatusMutations-CSTj_is9.js","assets/UserRoles-2GsET5Zd.js","assets/UserVerification-CrCrkHIp.js","assets/SuspendedUsers-DoMgo7w_.js","assets/AllJobs-Ca8LMz4F.js","assets/RoleContextIndicator-UYMg75zu.js","assets/useOptimizedAdminJobs-BkSNnWPz.js","assets/useJobExport-XMLWfZfq.js","assets/AllJobsOptimized-DlueVqh1.js","assets/JobsApproval-CYZOzsou.js","assets/FeaturedJobs-DWszt2TC.js","assets/ReportedJobs-BEf4J-Rw.js","assets/JobCategories-DauJss_G.js","assets/avatar-settings-DZltupik.js","assets/useHeyGenVoices-CdTu3pdl.js","assets/InterviewSettings-DPED2Gfe.js","assets/RateLimitManagement-CA_40a-e.js","assets/AITesting-C534A2O7.js","assets/AvatarTestInterface-DIj7Ivfg.js","assets/useCompanies-BT-CcIL_.js","assets/AIAnalytics-Doya48NT.js","assets/HeygenTaskTester-BTFD38vI.js","assets/HeyGenAPILogs-jRQrMabi.js","assets/subDays-k-tBhF0Y.js","assets/subMonths-Jkn24AQ9.js","assets/SiteContent-BQ66oWeY.js","assets/BlogManagement-fEtudDbg.js","assets/MediaLibrary-Dmeavc5f.js","assets/PagesSEO-Bt80VVSB.js","assets/EmptyState-DPo2AwQk.js","assets/Messages-BSrtLXkc.js","assets/EmailTemplates-DEZcEBCS.js","assets/useEmailTemplates-DiO4HBSP.js","assets/Notifications-BEz_HMqp.js","assets/OverviewAnalytics-D_jgS_R9.js","assets/UserAnalytics-DnhKfdw9.js","assets/JobAnalytics-H-mSu9f0.js","assets/FinancialReports-DsrYTXi7.js","assets/SystemPerformance-Df4D7vw3.js","assets/RealTimePerformance-CSv3QvMF.js","assets/PredictiveInsights-CkNCO6Cx.js","assets/SystemSettings-DHFbkEh6.js","assets/useEmailSystemStatus-B46gVjbr.js","assets/ProjectStatus-C7TXDVVS.js","assets/AllCompanies-BLrLibYV.js","assets/useCompanyVerification-fAZ46tQ4.js","assets/CompanyVerification-CXsaqrcB.js","assets/CompanyApplications-DuR6JZPD.js","assets/AdminMenuEditor-IaxIdTN0.js","assets/AdminProfileSettings-BI1B_7pL.js","assets/AutoInterviewManager-e-qS9sE6.js","assets/ResumeTemplates-DuFqbNtx.js","assets/ResumeTemplatePreview-mSj625FN.js","assets/ResumeBuilder-QiaUCV8M.js","assets/HTMLTemplatePreview-QktKyd1v.js","assets/AdminResumeTemplates-X59vtxtO.js","assets/useAdminResumeTemplates-C9f5dKMt.js","assets/HTMLResumeTemplateEditor-D2f9PEfB.js","assets/ResumeTemplatePreview-BC5GvddE.js","assets/EmailManagementPage-BYz0AQ14.js","assets/EmailCampaignsPage-DDU0HVpD.js","assets/ScheduledInterviews-BPTJ1m43.js","assets/interview-diagnostics-BlmQP-1F.js","assets/InterviewWorkflowTester-C5deGW-i.js","assets/AIInterviewTesting-CB8QXa5k.js","assets/InterviewFlowTest-Gw2s1qrd.js","assets/VideoAnalysisTestPage-BNPl1vZ7.js","assets/EndToEndVideoAnalysisTest-B4BTPhwr.js","assets/VideoRecordingTestInterface-5klr8D4W.js","assets/TemplatePrototype-CXZCLsAg.js","assets/SeedTemplates-CifJLUPx.js","assets/Plans-BN-7NeaG.js","assets/PSAVerificationPage-B6TtVxp2.js"])))=>i.map(i=>d[i]);
import{j as u,S as pv,c as vf,P as Xt,u as Fr,a as Ga,b as hv,C as yf,A as mv,d as gv,R as vv,T as yv,O as bf,e as _f,f as bv,g as Sf,D as wf,h as _v,i as Sv,k as wv,l as xv,m as Ev,n as xf,B as kv,V as Ef,o as Tv,p as Iv,q as Nt,r as Cv,s as Rv,t as Av}from"./vendor-radix-DNp60FuA.js";import{a as Ya,r as m,c as V,u as js,L as ut,b as Ov,R as yl,f as Pv,B as Mv,h as Lv,i as x,N as lt}from"./vendor-react-DL0tRKZA.js";import{c as Nv,_ as k}from"./vendor-supabase-B4f4CcZD.js";import{u as cn,a as jv,b as Dv,Q as $v,c as bl}from"./vendor-query-CKQAY9LX.js";import{c as kf,_ as zv,a as Fv,b as Vv,d as J}from"./vendor-charts-CPng-d0O.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var Tf,_l=Ya;Tf=_l.createRoot,_l.hydrateRoot;const Bv="https://wqfvydcajnbtsqpjaikl.supabase.co",Uv="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6IndxZnZ5ZGNham5idHNxcGphaWtsIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTU4NzU4NDEsImV4cCI6MjA3MTQ1MTg0MX0.bKObU2VjrVbVE13lxuHIj2Y1XkkDnVQAYa5mBD7ic_w",he=Nv(Bv,Uv,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),Hv=3,Wv=3e3;let yi=0;function Zv(){return yi=(yi+1)%Number.MAX_SAFE_INTEGER,yi.toString()}const bi=new Map,Sl=e=>{if(bi.has(e))return;const t=setTimeout(()=>{bi.delete(e),Mr({type:"REMOVE_TOAST",toastId:e})},Wv);bi.set(e,t)},qv=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Hv)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Sl(n):e.toasts.forEach(r=>{Sl(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Wo=[];let Zo={toasts:[]};function Mr(e){Zo=qv(Zo,e),Wo.forEach(t=>{t(Zo)})}function na({...e}){const t=Zv(),n=o=>Mr({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Mr({type:"DISMISS_TOAST",toastId:t});return Mr({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Ka(){const[e,t]=m.useState(Zo);return m.useEffect(()=>(Wo.push(t),()=>{const n=Wo.indexOf(t);n>-1&&Wo.splice(n,1)}),[e]),{...e,toast:na,dismiss:n=>Mr({type:"DISMISS_TOAST",toastId:n})}}function P(e,t,n){function r(c,a){var l;Object.defineProperty(c,"_zod",{value:c._zod??{},enumerable:!1}),(l=c._zod).traits??(l.traits=new Set),c._zod.traits.add(e),t(c,a);for(const d in i.prototype)d in c||Object.defineProperty(c,d,{value:i.prototype[d].bind(c)});c._zod.constr=i,c._zod.def=a}const o=(n==null?void 0:n.Parent)??Object;class s extends o{}Object.defineProperty(s,"name",{value:e});function i(c){var a;const l=n!=null&&n.Parent?new s:this;r(l,c),(a=l._zod).deferred??(a.deferred=[]);for(const d of l._zod.deferred)d();return l}return Object.defineProperty(i,"init",{value:r}),Object.defineProperty(i,Symbol.hasInstance,{value:c=>{var a,l;return n!=null&&n.Parent&&c instanceof n.Parent?!0:(l=(a=c==null?void 0:c._zod)==null?void 0:a.traits)==null?void 0:l.has(e)}}),Object.defineProperty(i,"name",{value:e}),i}class Qn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class If extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Cf={};function In(e){return Cf}function Gv(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function ra(e,t){return typeof t=="bigint"?t.toString():t}function Ja(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Xa(e){return e==null}function Qa(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Yv(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let o=(r.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(r)){const a=r.match(/\d?e-(\d?)/);a!=null&&a[1]&&(o=Number.parseInt(a[1]))}const s=n>o?n:o,i=Number.parseInt(e.toFixed(s).replace(".","")),c=Number.parseInt(t.toFixed(s).replace(".",""));return i%c/10**s}const wl=Symbol("evaluating");function ke(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==wl)return r===void 0&&(r=wl,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Kv(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function fn(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function pr(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function xl(e){return JSON.stringify(e)}const Rf="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function as(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Jv=Ja(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Vr(e){if(as(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(as(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Af(e){return Vr(e)?{...e}:e}const Xv=new Set(["string","number","symbol"]);function nr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function pn(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function G(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0: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 Qv(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const ey={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 ty(e,t){const n=e._zod.def,r=pr(e._zod.def,{get shape(){const o={};for(const s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(o[s]=n.shape[s])}return fn(this,"shape",o),o},checks:[]});return pn(e,r)}function ny(e,t){const n=e._zod.def,r=pr(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete o[s]}return fn(this,"shape",o),o},checks:[]});return pn(e,r)}function ry(e,t){if(!Vr(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const o=pr(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return fn(this,"shape",s),s},checks:[]});return pn(e,o)}function oy(e,t){if(!Vr(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...e._zod.def,get shape(){const r={...e._zod.def.shape,...t};return fn(this,"shape",r),r},checks:e._zod.def.checks};return pn(e,n)}function sy(e,t){const n=pr(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return fn(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return pn(e,n)}function iy(e,t,n){const r=pr(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(n)for(const i in n){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(s[i]=e?new e({type:"optional",innerType:o[i]}):o[i])}else for(const i in o)s[i]=e?new e({type:"optional",innerType:o[i]}):o[i];return fn(this,"shape",s),s},checks:[]});return pn(t,r)}function ay(e,t,n){const r=pr(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(n)for(const i in n){if(!(i in s))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(s[i]=new e({type:"nonoptional",innerType:o[i]}))}else for(const i in o)s[i]=new e({type:"nonoptional",innerType:o[i]});return fn(this,"shape",s),s},checks:[]});return pn(t,r)}function qn(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function Of(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function bo(e){return typeof e=="string"?e:e==null?void 0:e.message}function Cn(e,t,n){var o,s,i,c,a,l;const r={...e,path:e.path??[]};if(!e.message){const d=bo((i=(s=(o=e.inst)==null?void 0:o._zod.def)==null?void 0:s.error)==null?void 0:i.call(s,e))??bo((c=t==null?void 0:t.error)==null?void 0:c.call(t,e))??bo((a=n.customError)==null?void 0:a.call(n,e))??bo((l=n.localeError)==null?void 0:l.call(n,e))??"Invalid input";r.message=d}return delete r.inst,delete r.continue,t!=null&&t.reportInput||delete r.input,r}function ec(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Br(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Pf=(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,ra,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Mf=P("$ZodError",Pf),Lf=P("$ZodError",Pf,{Parent:Error});function cy(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function ly(e,t){const n=t||function(s){return s.message},r={_errors:[]},o=s=>{for(const i of s.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(c=>o({issues:c}));else if(i.code==="invalid_key")o({issues:i.issues});else if(i.code==="invalid_element")o({issues:i.issues});else if(i.path.length===0)r._errors.push(n(i));else{let c=r,a=0;for(;a<i.path.length;){const l=i.path[a];a===i.path.length-1?(c[l]=c[l]||{_errors:[]},c[l]._errors.push(n(i))):c[l]=c[l]||{_errors:[]},c=c[l],a++}}};return o(e),r}const tc=e=>(t,n,r,o)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},i=t._zod.run({value:n,issues:[]},s);if(i instanceof Promise)throw new Qn;if(i.issues.length){const c=new((o==null?void 0:o.Err)??e)(i.issues.map(a=>Cn(a,s,In())));throw Rf(c,o==null?void 0:o.callee),c}return i.value},nc=e=>async(t,n,r,o)=>{const s=r?Object.assign(r,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},s);if(i instanceof Promise&&(i=await i),i.issues.length){const c=new((o==null?void 0:o.Err)??e)(i.issues.map(a=>Cn(a,s,In())));throw Rf(c,o==null?void 0:o.callee),c}return i.value},Ds=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new Qn;return s.issues.length?{success:!1,error:new(e??Mf)(s.issues.map(i=>Cn(i,o,In())))}:{success:!0,data:s.value}},uy=Ds(Lf),$s=e=>async(t,n,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(i=>Cn(i,o,In())))}:{success:!0,data:s.value}},dy=$s(Lf),fy=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return tc(e)(t,n,o)},py=e=>(t,n,r)=>tc(e)(t,n,r),hy=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return nc(e)(t,n,o)},my=e=>async(t,n,r)=>nc(e)(t,n,r),gy=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Ds(e)(t,n,o)},vy=e=>(t,n,r)=>Ds(e)(t,n,r),yy=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return $s(e)(t,n,o)},by=e=>async(t,n,r)=>$s(e)(t,n,r),_y=/^[cC][^\s-]{8,}$/,Sy=/^[0-9a-z]+$/,wy=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,xy=/^[0-9a-vA-V]{20}$/,Ey=/^[A-Za-z0-9]{27}$/,ky=/^[a-zA-Z0-9_-]{21}$/,Ty=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Iy=/^([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})$/,El=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)$/,Cy=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ry="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Ay(){return new RegExp(Ry,"u")}const Oy=/^(?:(?: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])$/,Py=/^(([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})$/,My=/^((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])$/,Ly=/^(([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])$/,Ny=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Nf=/^[A-Za-z0-9_-]*$/,jy=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Dy=/^\+(?:[0-9]){6,14}[0-9]$/,jf="(?:(?:\\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])))",$y=new RegExp(`^${jf}$`);function Df(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 zy(e){return new RegExp(`^${Df(e)}$`)}function Fy(e){const t=Df({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(`^${jf}T(?:${r})$`)}const Vy=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},By=/^\d+$/,Uy=/^-?\d+(?:\.\d+)?/i,Hy=/true|false/i,Wy=/^[^A-Z]*$/,Zy=/^[^a-z]*$/,rt=P("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),$f={number:"number",bigint:"bigint",object:"date"},zf=P("$ZodCheckLessThan",(e,t)=>{rt.init(e,t);const n=$f[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,s=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<s&&(t.inclusive?o.maximum=t.value:o.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:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ff=P("$ZodCheckGreaterThan",(e,t)=>{rt.init(e,t);const n=$f[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,s=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>s&&(t.inclusive?o.minimum=t.value:o.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:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),qy=P("$ZodCheckMultipleOf",(e,t)=>{rt.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):Yv(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})}}),Gy=P("$ZodCheckNumberFormat",(e,t)=>{var i;rt.init(e,t),t.format=t.format||"float64";const n=(i=t.format)==null?void 0:i.includes("int"),r=n?"int":"number",[o,s]=ey[t.format];e._zod.onattach.push(c=>{const a=c._zod.bag;a.format=t.format,a.minimum=o,a.maximum=s,n&&(a.pattern=By)}),e._zod.check=c=>{const a=c.value;if(n){if(!Number.isInteger(a)){c.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?c.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}):c.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort});return}}a<o&&c.issues.push({origin:"number",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),a>s&&c.issues.push({origin:"number",input:a,code:"too_big",maximum:s,inst:e})}}),Yy=P("$ZodCheckMaxLength",(e,t)=>{var n;rt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Xa(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const i=ec(o);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Ky=P("$ZodCheckMinLength",(e,t)=>{var n;rt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Xa(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const i=ec(o);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Jy=P("$ZodCheckLengthEquals",(e,t)=>{var n;rt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Xa(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,s=o.length;if(s===t.length)return;const i=ec(o),c=s>t.length;r.issues.push({origin:i,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),zs=P("$ZodCheckStringFormat",(e,t)=>{var n,r;rt.init(e,t),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Xy=P("$ZodCheckRegex",(e,t)=>{zs.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})}}),Qy=P("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Wy),zs.init(e,t)}),eb=P("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Zy),zs.init(e,t)}),tb=P("$ZodCheckIncludes",(e,t)=>{rt.init(e,t);const n=nr(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),nb=P("$ZodCheckStartsWith",(e,t)=>{rt.init(e,t);const n=new RegExp(`^${nr(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.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})}}),rb=P("$ZodCheckEndsWith",(e,t)=>{rt.init(e,t);const n=new RegExp(`.*${nr(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.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})}}),ob=P("$ZodCheckOverwrite",(e,t)=>{rt.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class sb{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(`
`).filter(i=>i),o=Math.min(...r.map(i=>i.length-i.trimStart().length)),s=r.map(i=>i.slice(o)).map(i=>" ".repeat(this.indent*2)+i);for(const i of s)this.content.push(i)}compile(){const t=Function,n=this==null?void 0:this.args,o=[...((this==null?void 0:this.content)??[""]).map(s=>` ${s}`)];return new t(...n,o.join(`
`))}}const ib={major:4,minor:1,patch:3},Ce=P("$ZodType",(e,t)=>{var o;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ib;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=[]),(o=e._zod.deferred)==null||o.push(()=>{e._zod.run=e._zod.parse});else{const s=(c,a,l)=>{let d=qn(c),f;for(const p of a){if(p._zod.def.when){if(!p._zod.def.when(c))continue}else if(d)continue;const h=c.issues.length,g=p._zod.check(c);if(g instanceof Promise&&(l==null?void 0:l.async)===!1)throw new Qn;if(f||g instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await g,c.issues.length!==h&&(d||(d=qn(c,h)))});else{if(c.issues.length===h)continue;d||(d=qn(c,h))}}return f?f.then(()=>c):c},i=(c,a,l)=>{if(qn(c))return c.aborted=!0,c;const d=s(a,r,l);if(d instanceof Promise){if(l.async===!1)throw new Qn;return d.then(f=>e._zod.parse(f,l))}return e._zod.parse(d,l)};e._zod.run=(c,a)=>{if(a.skipChecks)return e._zod.parse(c,a);if(a.direction==="backward"){const d=e._zod.parse({value:c.value,issues:[]},{...a,skipChecks:!0});return d instanceof Promise?d.then(f=>i(f,c,a)):i(d,c,a)}const l=e._zod.parse(c,a);if(l instanceof Promise){if(a.async===!1)throw new Qn;return l.then(d=>s(d,r,a))}return s(l,r,a)}}e["~standard"]={validate:s=>{var i;try{const c=uy(e,s);return c.success?{value:c.data}:{issues:(i=c.error)==null?void 0:i.issues}}catch{return dy(e,s).then(a=>{var l;return a.success?{value:a.data}:{issues:(l=a.error)==null?void 0:l.issues}})}},vendor:"zod",version:1}}),rc=P("$ZodString",(e,t)=>{var n;Ce.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Vy(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Re=P("$ZodStringFormat",(e,t)=>{zs.init(e,t),rc.init(e,t)}),ab=P("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Iy),Re.init(e,t)}),cb=P("$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=El(r))}else t.pattern??(t.pattern=El());Re.init(e,t)}),lb=P("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Cy),Re.init(e,t)}),ub=P("$ZodURL",(e,t)=>{Re.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),o=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:jy.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.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=o.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),db=P("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Ay()),Re.init(e,t)}),fb=P("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=ky),Re.init(e,t)}),pb=P("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=_y),Re.init(e,t)}),hb=P("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Sy),Re.init(e,t)}),mb=P("$ZodULID",(e,t)=>{t.pattern??(t.pattern=wy),Re.init(e,t)}),gb=P("$ZodXID",(e,t)=>{t.pattern??(t.pattern=xy),Re.init(e,t)}),vb=P("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Ey),Re.init(e,t)}),yb=P("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Fy(t)),Re.init(e,t)}),bb=P("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=$y),Re.init(e,t)}),_b=P("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=zy(t)),Re.init(e,t)}),Sb=P("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Ty),Re.init(e,t)}),wb=P("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Oy),Re.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv4"})}),xb=P("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Py),Re.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.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})}}}),Eb=P("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=My),Re.init(e,t)}),kb=P("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Ly),Re.init(e,t),e._zod.check=n=>{const[r,o]=n.value.split("/");try{if(!o)throw new Error;const s=Number(o);if(`${s}`!==o)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Vf(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Tb=P("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Ny),Re.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{Vf(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Ib(e){if(!Nf.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Vf(n)}const Cb=P("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Nf),Re.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{Ib(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Rb=P("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Dy),Re.init(e,t)});function Ab(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const Ob=P("$ZodJWT",(e,t)=>{Re.init(e,t),e._zod.check=n=>{Ab(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Bf=P("$ZodNumber",(e,t)=>{Ce.init(e,t),e._zod.pattern=e._zod.bag.pattern??Uy,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const s=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...s?{received:s}:{}}),n}}),Pb=P("$ZodNumber",(e,t)=>{Gy.init(e,t),Bf.init(e,t)}),Mb=P("$ZodBoolean",(e,t)=>{Ce.init(e,t),e._zod.pattern=Hy,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),Lb=P("$ZodAny",(e,t)=>{Ce.init(e,t),e._zod.parse=n=>n}),Nb=P("$ZodUnknown",(e,t)=>{Ce.init(e,t),e._zod.parse=n=>n}),jb=P("$ZodNever",(e,t)=>{Ce.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function kl(e,t,n){e.issues.length&&t.issues.push(...Of(n,e.issues)),t.value[n]=e.value}const Db=P("$ZodArray",(e,t)=>{Ce.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const s=[];for(let i=0;i<o.length;i++){const c=o[i],a=t.element._zod.run({value:c,issues:[]},r);a instanceof Promise?s.push(a.then(l=>kl(l,n,i))):kl(a,n,i)}return s.length?Promise.all(s).then(()=>n):n}});function cs(e,t,n,r){e.issues.length&&t.issues.push(...Of(n,e.issues)),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Uf(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=Qv(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Hf(e,t,n,r,o,s){const i=[],c=o.keySet,a=o.catchall._zod,l=a.def.type;for(const d of Object.keys(t)){if(c.has(d))continue;if(l==="never"){i.push(d);continue}const f=a.run({value:t[d],issues:[]},r);f instanceof Promise?e.push(f.then(p=>cs(p,n,d,t))):cs(f,n,d,t)}return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:s}),e.length?Promise.all(e).then(()=>n):n}const $b=P("$ZodObject",(e,t)=>{Ce.init(e,t);const n=Ja(()=>Uf(t));ke(e._zod,"propValues",()=>{const i=t.shape,c={};for(const a in i){const l=i[a]._zod;if(l.values){c[a]??(c[a]=new Set);for(const d of l.values)c[a].add(d)}}return c});const r=as,o=t.catchall;let s;e._zod.parse=(i,c)=>{s??(s=n.value);const a=i.value;if(!r(a))return i.issues.push({expected:"object",code:"invalid_type",input:a,inst:e}),i;i.value={};const l=[],d=s.shape;for(const f of s.keys){const h=d[f]._zod.run({value:a[f],issues:[]},c);h instanceof Promise?l.push(h.then(g=>cs(g,i,f,a))):cs(h,i,f,a)}return o?Hf(l,a,i,c,n.value,e):l.length?Promise.all(l).then(()=>i):i}}),zb=P("$ZodObjectJIT",(e,t)=>{$b.init(e,t);const n=e._zod.parse,r=Ja(()=>Uf(t)),o=p=>{const h=new sb(["shape","payload","ctx"]),g=r.value,v=S=>{const E=xl(S);return`shape[${E}]._zod.run({ value: input[${E}], issues: [] }, ctx)`};h.write("const input = payload.value;");const y=Object.create(null);let b=0;for(const S of g.keys)y[S]=`key_${b++}`;h.write("const newResult = {}");for(const S of g.keys){const E=y[S],T=xl(S);h.write(`const ${E} = ${v(S)};`),h.write(`
if (${E}.issues.length) {
payload.issues = payload.issues.concat(${E}.issues.map(iss => ({
...iss,
path: iss.path ? [${T}, ...iss.path] : [${T}]
})));
}
if (${E}.value === undefined) {
if (${T} in input) {
newResult[${T}] = undefined;
}
} else {
newResult[${T}] = ${E}.value;
}
`)}h.write("payload.value = newResult;"),h.write("return payload;");const _=h.compile();return(S,E)=>_(p,S,E)};let s;const i=as,c=!Cf.jitless,l=c&&Jv.value,d=t.catchall;let f;e._zod.parse=(p,h)=>{f??(f=r.value);const g=p.value;return i(g)?c&&l&&(h==null?void 0:h.async)===!1&&h.jitless!==!0?(s||(s=o(t.shape)),p=s(p,h),d?Hf([],g,p,h,f,e):p):n(p,h):(p.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),p)}});function Tl(e,t,n,r){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const o=e.filter(s=>!qn(s));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(s=>s.issues.map(i=>Cn(i,r,In())))}),t)}const Fb=P("$ZodUnion",(e,t)=>{Ce.init(e,t),ke(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),ke(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),ke(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),ke(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${o.map(s=>Qa(s.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(o,s)=>{if(n)return r(o,s);let i=!1;const c=[];for(const a of t.options){const l=a._zod.run({value:o.value,issues:[]},s);if(l instanceof Promise)c.push(l),i=!0;else{if(l.issues.length===0)return l;c.push(l)}}return i?Promise.all(c).then(a=>Tl(a,o,e,s)):Tl(c,o,e,s)}}),Vb=P("$ZodIntersection",(e,t)=>{Ce.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,s=t.left._zod.run({value:o,issues:[]},r),i=t.right._zod.run({value:o,issues:[]},r);return s instanceof Promise||i instanceof Promise?Promise.all([s,i]).then(([a,l])=>Il(n,a,l)):Il(n,s,i)}});function oa(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(Vr(e)&&Vr(t)){const n=Object.keys(t),r=Object.keys(e).filter(s=>n.indexOf(s)!==-1),o={...e,...t};for(const s of r){const i=oa(e[s],t[s]);if(!i.valid)return{valid:!1,mergeErrorPath:[s,...i.mergeErrorPath]};o[s]=i.data}return{valid:!0,data:o}}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 o=e[r],s=t[r],i=oa(o,s);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Il(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),qn(e))return e;const r=oa(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const Bb=P("$ZodEnum",(e,t)=>{Ce.init(e,t);const n=Gv(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(o=>Xv.has(typeof o)).map(o=>typeof o=="string"?nr(o):o.toString()).join("|")})$`),e._zod.parse=(o,s)=>{const i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:n,input:i,inst:e}),o}}),Ub=P("$ZodLiteral",(e,t)=>{if(Ce.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?nr(n):n?nr(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,r)=>{const o=n.value;return e._zod.values.has(o)||n.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),n}}),Hb=P("$ZodTransform",(e,t)=>{Ce.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new If(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(i=>(n.value=i,n));if(o instanceof Promise)throw new Qn;return n.value=o,n}});function Cl(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Wb=P("$ZodOptional",(e,t)=>{Ce.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ke(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ke(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Qa(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>Cl(s,n.value)):Cl(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),Zb=P("$ZodNullable",(e,t)=>{Ce.init(e,t),ke(e._zod,"optin",()=>t.innerType._zod.optin),ke(e._zod,"optout",()=>t.innerType._zod.optout),ke(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Qa(n.source)}|null)$`):void 0}),ke(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)}),qb=P("$ZodDefault",(e,t)=>{Ce.init(e,t),e._zod.optin="optional",ke(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 o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>Rl(s,t)):Rl(o,t)}});function Rl(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Gb=P("$ZodPrefault",(e,t)=>{Ce.init(e,t),e._zod.optin="optional",ke(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))}),Yb=P("$ZodNonOptional",(e,t)=>{Ce.init(e,t),ke(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 o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>Al(s,e)):Al(o,e)}});function Al(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 Kb=P("$ZodCatch",(e,t)=>{Ce.init(e,t),ke(e._zod,"optin",()=>t.innerType._zod.optin),ke(e._zod,"optout",()=>t.innerType._zod.optout),ke(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(i=>Cn(i,r,In()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(s=>Cn(s,r,In()))},input:n.value}),n.issues=[]),n)}}),Jb=P("$ZodNaN",(e,t)=>{Ce.init(e,t),e._zod.parse=(n,r)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),Xb=P("$ZodPipe",(e,t)=>{Ce.init(e,t),ke(e._zod,"values",()=>t.in._zod.values),ke(e._zod,"optin",()=>t.in._zod.optin),ke(e._zod,"optout",()=>t.out._zod.optout),ke(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const s=t.out._zod.run(n,r);return s instanceof Promise?s.then(i=>_o(i,t.in,r)):_o(s,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(s=>_o(s,t.out,r)):_o(o,t.out,r)}});function _o(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Qb=P("$ZodReadonly",(e,t)=>{Ce.init(e,t),ke(e._zod,"propValues",()=>t.innerType._zod.propValues),ke(e._zod,"values",()=>t.innerType._zod.values),ke(e._zod,"optin",()=>t.innerType._zod.optin),ke(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(Ol):Ol(o)}});function Ol(e){return e.value=Object.freeze(e.value),e}const e_=P("$ZodCustom",(e,t)=>{rt.init(e,t),Ce.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(s=>Pl(s,n,r,e));Pl(o,n,r,e)}});function Pl(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Br(o))}}class t_{constructor(){this._map=new Map,this._idmap=new Map}add(t,...n){const r=n[0];if(this._map.set(t,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,t)}return this}clear(){return this._map=new Map,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 o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function n_(){return new t_}const So=n_();function r_(e,t){return new e({type:"string",...G(t)})}function o_(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...G(t)})}function Ml(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...G(t)})}function s_(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...G(t)})}function i_(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...G(t)})}function a_(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...G(t)})}function c_(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...G(t)})}function l_(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...G(t)})}function u_(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...G(t)})}function d_(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...G(t)})}function f_(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...G(t)})}function p_(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...G(t)})}function h_(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...G(t)})}function m_(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...G(t)})}function g_(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...G(t)})}function v_(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...G(t)})}function y_(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...G(t)})}function b_(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...G(t)})}function __(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...G(t)})}function S_(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...G(t)})}function w_(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...G(t)})}function x_(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...G(t)})}function E_(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...G(t)})}function k_(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...G(t)})}function T_(e,t){return new e({type:"string",format:"date",check:"string_format",...G(t)})}function I_(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...G(t)})}function C_(e,t){return new e({type:"string",format:"duration",check:"string_format",...G(t)})}function R_(e,t){return new e({type:"number",checks:[],...G(t)})}function D$(e,t){return new e({type:"number",coerce:!0,checks:[],...G(t)})}function A_(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...G(t)})}function O_(e,t){return new e({type:"boolean",...G(t)})}function P_(e){return new e({type:"any"})}function M_(e){return new e({type:"unknown"})}function L_(e,t){return new e({type:"never",...G(t)})}function N_(e,t){return new e({type:"nan",...G(t)})}function Ll(e,t){return new zf({check:"less_than",...G(t),value:e,inclusive:!1})}function _i(e,t){return new zf({check:"less_than",...G(t),value:e,inclusive:!0})}function Nl(e,t){return new Ff({check:"greater_than",...G(t),value:e,inclusive:!1})}function Si(e,t){return new Ff({check:"greater_than",...G(t),value:e,inclusive:!0})}function jl(e,t){return new qy({check:"multiple_of",...G(t),value:e})}function Wf(e,t){return new Yy({check:"max_length",...G(t),maximum:e})}function ls(e,t){return new Ky({check:"min_length",...G(t),minimum:e})}function Zf(e,t){return new Jy({check:"length_equals",...G(t),length:e})}function j_(e,t){return new Xy({check:"string_format",format:"regex",...G(t),pattern:e})}function D_(e){return new Qy({check:"string_format",format:"lowercase",...G(e)})}function $_(e){return new eb({check:"string_format",format:"uppercase",...G(e)})}function z_(e,t){return new tb({check:"string_format",format:"includes",...G(t),includes:e})}function F_(e,t){return new nb({check:"string_format",format:"starts_with",...G(t),prefix:e})}function V_(e,t){return new rb({check:"string_format",format:"ends_with",...G(t),suffix:e})}function ro(e){return new ob({check:"overwrite",tx:e})}function B_(e){return ro(t=>t.normalize(e))}function U_(){return ro(e=>e.trim())}function H_(){return ro(e=>e.toLowerCase())}function W_(){return ro(e=>e.toUpperCase())}function Z_(e,t,n){return new e({type:"array",element:t,...G(n)})}function q_(e,t,n){return new e({type:"custom",check:"custom",fn:t,...G(n)})}function G_(e){const t=Y_(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(Br(r,n.value,t._zod.def));else{const o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),n.issues.push(Br(o))}},e(n.value,n)));return t}function Y_(e,t){const n=new rt({check:"custom",...G(t)});return n._zod.check=e,n}const K_=P("ZodISODateTime",(e,t)=>{yb.init(e,t),Oe.init(e,t)});function J_(e){return k_(K_,e)}const X_=P("ZodISODate",(e,t)=>{bb.init(e,t),Oe.init(e,t)});function Q_(e){return T_(X_,e)}const e0=P("ZodISOTime",(e,t)=>{_b.init(e,t),Oe.init(e,t)});function t0(e){return I_(e0,e)}const n0=P("ZodISODuration",(e,t)=>{Sb.init(e,t),Oe.init(e,t)});function r0(e){return C_(n0,e)}const qf=(e,t)=>{Mf.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>ly(e,n)},flatten:{value:n=>cy(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,ra,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,ra,2)}},isEmpty:{get(){return e.issues.length===0}}})},o0=P("ZodError",qf),xt=P("ZodError",qf,{Parent:Error}),s0=tc(xt),i0=nc(xt),a0=Ds(xt),c0=$s(xt),l0=fy(xt),u0=py(xt),d0=hy(xt),f0=my(xt),p0=gy(xt),h0=vy(xt),m0=yy(xt),g0=by(xt),Ae=P("ZodType",(e,t)=>(Ce.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),e.clone=(n,r)=>pn(e,n,r),e.brand=()=>e,e.register=(n,r)=>(n.add(e,r),e),e.parse=(n,r)=>s0(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>a0(e,n,r),e.parseAsync=async(n,r)=>i0(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>c0(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>l0(e,n,r),e.decode=(n,r)=>u0(e,n,r),e.encodeAsync=async(n,r)=>d0(e,n,r),e.decodeAsync=async(n,r)=>f0(e,n,r),e.safeEncode=(n,r)=>p0(e,n,r),e.safeDecode=(n,r)=>h0(e,n,r),e.safeEncodeAsync=async(n,r)=>m0(e,n,r),e.safeDecodeAsync=async(n,r)=>g0(e,n,r),e.refine=(n,r)=>e.check(fS(n,r)),e.superRefine=n=>e.check(pS(n)),e.overwrite=n=>e.check(ro(n)),e.optional=()=>Fl(e),e.nullable=()=>Vl(e),e.nullish=()=>Fl(Vl(e)),e.nonoptional=n=>oS(e,n),e.array=()=>H0(e),e.or=n=>q0([e,n]),e.and=n=>Y0(e,n),e.transform=n=>Bl(e,X0(n)),e.default=n=>tS(e,n),e.prefault=n=>rS(e,n),e.catch=n=>iS(e,n),e.pipe=n=>Bl(e,n),e.readonly=()=>uS(e),e.describe=n=>{const r=e.clone();return So.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){var n;return(n=So.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return So.get(e);const r=e.clone();return So.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Gf=P("_ZodString",(e,t)=>{rc.init(e,t),Ae.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(j_(...r)),e.includes=(...r)=>e.check(z_(...r)),e.startsWith=(...r)=>e.check(F_(...r)),e.endsWith=(...r)=>e.check(V_(...r)),e.min=(...r)=>e.check(ls(...r)),e.max=(...r)=>e.check(Wf(...r)),e.length=(...r)=>e.check(Zf(...r)),e.nonempty=(...r)=>e.check(ls(1,...r)),e.lowercase=r=>e.check(D_(r)),e.uppercase=r=>e.check($_(r)),e.trim=()=>e.check(U_()),e.normalize=(...r)=>e.check(B_(...r)),e.toLowerCase=()=>e.check(H_()),e.toUpperCase=()=>e.check(W_())}),v0=P("ZodString",(e,t)=>{rc.init(e,t),Gf.init(e,t),e.email=n=>e.check(o_(y0,n)),e.url=n=>e.check(l_(b0,n)),e.jwt=n=>e.check(E_(L0,n)),e.emoji=n=>e.check(u_(_0,n)),e.guid=n=>e.check(Ml(Dl,n)),e.uuid=n=>e.check(s_(wo,n)),e.uuidv4=n=>e.check(i_(wo,n)),e.uuidv6=n=>e.check(a_(wo,n)),e.uuidv7=n=>e.check(c_(wo,n)),e.nanoid=n=>e.check(d_(S0,n)),e.guid=n=>e.check(Ml(Dl,n)),e.cuid=n=>e.check(f_(w0,n)),e.cuid2=n=>e.check(p_(x0,n)),e.ulid=n=>e.check(h_(E0,n)),e.base64=n=>e.check(S_(O0,n)),e.base64url=n=>e.check(w_(P0,n)),e.xid=n=>e.check(m_(k0,n)),e.ksuid=n=>e.check(g_(T0,n)),e.ipv4=n=>e.check(v_(I0,n)),e.ipv6=n=>e.check(y_(C0,n)),e.cidrv4=n=>e.check(b_(R0,n)),e.cidrv6=n=>e.check(__(A0,n)),e.e164=n=>e.check(x_(M0,n)),e.datetime=n=>e.check(J_(n)),e.date=n=>e.check(Q_(n)),e.time=n=>e.check(t0(n)),e.duration=n=>e.check(r0(n))});function mt(e){return r_(v0,e)}const Oe=P("ZodStringFormat",(e,t)=>{Re.init(e,t),Gf.init(e,t)}),y0=P("ZodEmail",(e,t)=>{lb.init(e,t),Oe.init(e,t)}),Dl=P("ZodGUID",(e,t)=>{ab.init(e,t),Oe.init(e,t)}),wo=P("ZodUUID",(e,t)=>{cb.init(e,t),Oe.init(e,t)}),b0=P("ZodURL",(e,t)=>{ub.init(e,t),Oe.init(e,t)}),_0=P("ZodEmoji",(e,t)=>{db.init(e,t),Oe.init(e,t)}),S0=P("ZodNanoID",(e,t)=>{fb.init(e,t),Oe.init(e,t)}),w0=P("ZodCUID",(e,t)=>{pb.init(e,t),Oe.init(e,t)}),x0=P("ZodCUID2",(e,t)=>{hb.init(e,t),Oe.init(e,t)}),E0=P("ZodULID",(e,t)=>{mb.init(e,t),Oe.init(e,t)}),k0=P("ZodXID",(e,t)=>{gb.init(e,t),Oe.init(e,t)}),T0=P("ZodKSUID",(e,t)=>{vb.init(e,t),Oe.init(e,t)}),I0=P("ZodIPv4",(e,t)=>{wb.init(e,t),Oe.init(e,t)}),C0=P("ZodIPv6",(e,t)=>{xb.init(e,t),Oe.init(e,t)}),R0=P("ZodCIDRv4",(e,t)=>{Eb.init(e,t),Oe.init(e,t)}),A0=P("ZodCIDRv6",(e,t)=>{kb.init(e,t),Oe.init(e,t)}),O0=P("ZodBase64",(e,t)=>{Tb.init(e,t),Oe.init(e,t)}),P0=P("ZodBase64URL",(e,t)=>{Cb.init(e,t),Oe.init(e,t)}),M0=P("ZodE164",(e,t)=>{Rb.init(e,t),Oe.init(e,t)}),L0=P("ZodJWT",(e,t)=>{Ob.init(e,t),Oe.init(e,t)}),Yf=P("ZodNumber",(e,t)=>{Bf.init(e,t),Ae.init(e,t),e.gt=(r,o)=>e.check(Nl(r,o)),e.gte=(r,o)=>e.check(Si(r,o)),e.min=(r,o)=>e.check(Si(r,o)),e.lt=(r,o)=>e.check(Ll(r,o)),e.lte=(r,o)=>e.check(_i(r,o)),e.max=(r,o)=>e.check(_i(r,o)),e.int=r=>e.check($l(r)),e.safe=r=>e.check($l(r)),e.positive=r=>e.check(Nl(0,r)),e.nonnegative=r=>e.check(Si(0,r)),e.negative=r=>e.check(Ll(0,r)),e.nonpositive=r=>e.check(_i(0,r)),e.multipleOf=(r,o)=>e.check(jl(r,o)),e.step=(r,o)=>e.check(jl(r,o)),e.finite=()=>e;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});function N0(e){return R_(Yf,e)}const j0=P("ZodNumberFormat",(e,t)=>{Pb.init(e,t),Yf.init(e,t)});function $l(e){return A_(j0,e)}const D0=P("ZodBoolean",(e,t)=>{Mb.init(e,t),Ae.init(e,t)});function $0(e){return O_(D0,e)}const z0=P("ZodAny",(e,t)=>{Lb.init(e,t),Ae.init(e,t)});function $$(){return P_(z0)}const F0=P("ZodUnknown",(e,t)=>{Nb.init(e,t),Ae.init(e,t)});function zl(){return M_(F0)}const V0=P("ZodNever",(e,t)=>{jb.init(e,t),Ae.init(e,t)});function B0(e){return L_(V0,e)}const U0=P("ZodArray",(e,t)=>{Db.init(e,t),Ae.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(ls(n,r)),e.nonempty=n=>e.check(ls(1,n)),e.max=(n,r)=>e.check(Wf(n,r)),e.length=(n,r)=>e.check(Zf(n,r)),e.unwrap=()=>e.element});function H0(e,t){return Z_(U0,e,t)}const W0=P("ZodObject",(e,t)=>{zb.init(e,t),Ae.init(e,t),ke(e,"shape",()=>t.shape),e.keyof=()=>qo(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:zl()}),e.loose=()=>e.clone({...e._zod.def,catchall:zl()}),e.strict=()=>e.clone({...e._zod.def,catchall:B0()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>ry(e,n),e.safeExtend=n=>oy(e,n),e.merge=n=>sy(e,n),e.pick=n=>ty(e,n),e.omit=n=>ny(e,n),e.partial=(...n)=>iy(Kf,e,n[0]),e.required=(...n)=>ay(Jf,e,n[0])});function oo(e,t){const n={type:"object",get shape(){return fn(this,"shape",e?Kv(e):{}),this.shape},...G(t)};return new W0(n)}const Z0=P("ZodUnion",(e,t)=>{Fb.init(e,t),Ae.init(e,t),e.options=t.options});function q0(e,t){return new Z0({type:"union",options:e,...G(t)})}const G0=P("ZodIntersection",(e,t)=>{Vb.init(e,t),Ae.init(e,t)});function Y0(e,t){return new G0({type:"intersection",left:e,right:t})}const sa=P("ZodEnum",(e,t)=>{Bb.init(e,t),Ae.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const s={};for(const i of r)if(n.has(i))s[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new sa({...t,checks:[],...G(o),entries:s})},e.exclude=(r,o)=>{const s={...t.entries};for(const i of r)if(n.has(i))delete s[i];else throw new Error(`Key ${i} not found in enum`);return new sa({...t,checks:[],...G(o),entries:s})}});function qo(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new sa({type:"enum",entries:n,...G(t)})}const K0=P("ZodLiteral",(e,t)=>{Ub.init(e,t),Ae.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function ia(e,t){return new K0({type:"literal",values:Array.isArray(e)?e:[e],...G(t)})}const J0=P("ZodTransform",(e,t)=>{Hb.init(e,t),Ae.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new If(e.constructor.name);n.addIssue=s=>{if(typeof s=="string")n.issues.push(Br(s,n.value,t));else{const i=s;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(Br(i))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(s=>(n.value=s,n)):(n.value=o,n)}});function X0(e){return new J0({type:"transform",transform:e})}const Kf=P("ZodOptional",(e,t)=>{Wb.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Fl(e){return new Kf({type:"optional",innerType:e})}const Q0=P("ZodNullable",(e,t)=>{Zb.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Vl(e){return new Q0({type:"nullable",innerType:e})}const eS=P("ZodDefault",(e,t)=>{qb.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function tS(e,t){return new eS({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Af(t)}})}const nS=P("ZodPrefault",(e,t)=>{Gb.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType});function rS(e,t){return new nS({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Af(t)}})}const Jf=P("ZodNonOptional",(e,t)=>{Yb.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType});function oS(e,t){return new Jf({type:"nonoptional",innerType:e,...G(t)})}const sS=P("ZodCatch",(e,t)=>{Kb.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function iS(e,t){return new sS({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const aS=P("ZodNaN",(e,t)=>{Jb.init(e,t),Ae.init(e,t)});function z$(e){return N_(aS,e)}const cS=P("ZodPipe",(e,t)=>{Xb.init(e,t),Ae.init(e,t),e.in=t.in,e.out=t.out});function Bl(e,t){return new cS({type:"pipe",in:e,out:t})}const lS=P("ZodReadonly",(e,t)=>{Qb.init(e,t),Ae.init(e,t),e.unwrap=()=>e._zod.def.innerType});function uS(e){return new lS({type:"readonly",innerType:e})}const dS=P("ZodCustom",(e,t)=>{e_.init(e,t),Ae.init(e,t)});function fS(e,t={}){return q_(dS,e,t)}function pS(e){return G_(e)}const $t=e=>e?e.replace(/\x00/g,"").replace(/\\u0000/g,"").replace(/[\x01-\x08\x0B\x0C\x0E-\x1F\x7F]/g,"").replace(/\s+/g," ").trim():"",Fs=mt().trim().email({message:"Invalid email address"}).max(255,{message:"Email must be less than 255 characters"}).transform($t),hS=mt().min(8,{message:"Password must be at least 8 characters long"}).max(128,{message:"Password must be less than 128 characters"}).regex(/[a-z]/,{message:"Password must contain at least one lowercase letter"}).regex(/[A-Z]/,{message:"Password must contain at least one uppercase letter"}).regex(/\d/,{message:"Password must contain at least one number"}).regex(/[^A-Za-z0-9]/,{message:"Password must contain at least one special character"}),Ur=mt().trim().min(1,{message:"Name cannot be empty"}).max(100,{message:"Name must be less than 100 characters"}).regex(/^[a-zA-Z\s'-]+$/,{message:"Name can only contain letters, spaces, hyphens, and apostrophes"}).transform($t),mS=mt().trim().regex(/^\+?[1-9]\d{7,14}$/,{message:"Invalid phone number. Use international format (e.g., +353871231234)"}).transform($t),Xf=mt().trim().url({message:"Invalid URL format"}).max(2048,{message:"URL must be less than 2048 characters"}).refine(e=>{try{const t=new URL(e);return["http:","https:"].includes(t.protocol)}catch{return!1}},{message:"Only HTTP and HTTPS URLs are allowed"}),aa=mt().trim().max(5e3,{message:"Text must be less than 5000 characters"}).transform($t),gS=mt().trim().min(2,{message:"Job title must be at least 2 characters"}).max(200,{message:"Job title must be less than 200 characters"}).regex(/^[a-zA-Z0-9\s\-\.\(\)\&\/]+$/,{message:"Job title contains invalid characters"}).transform($t),vS=mt().trim().min(1,{message:"Company name is required"}).max(150,{message:"Company name must be less than 150 characters"}).regex(/^[a-zA-Z0-9\s\-\.\(\)\&']+$/,{message:"Company name contains invalid characters"}).transform($t),Qf=mt().trim().max(200,{message:"Location must be less than 200 characters"}).regex(/^[a-zA-Z0-9\s\-\.,]+$/,{message:"Location contains invalid characters"}).transform($t),Ul=N0().int({message:"Salary must be a whole number"}).min(0,{message:"Salary cannot be negative"}).max(1e7,{message:"Salary exceeds maximum allowed value"});oo({name:Ur,email:Fs,subject:mt().trim().min(1,{message:"Subject is required"}).max(200,{message:"Subject must be less than 200 characters"}).transform($t),message:mt().trim().min(10,{message:"Message must be at least 10 characters"}).max(5e3,{message:"Message must be less than 5000 characters"}).transform($t)});const yS=oo({email:Fs,password:mt().min(1,{message:"Password is required"})}),bS=oo({email:Fs,password:hS,firstName:Ur,lastName:Ur});oo({title:gS,company:vS.optional(),location:Qf,description:mt().trim().min(50,{message:"Job description must be at least 50 characters"}).max(5e3,{message:"Job description must be less than 5000 characters"}).transform($t),requirements:aa.optional(),benefits:aa.optional(),salaryMin:Ul.optional(),salaryMax:Ul.optional(),salaryPeriod:qo(["hourly","weekly","monthly","annual"]).optional(),jobType:qo(["full_time","part_time","contract","internship","temporary"]),experienceLevel:qo(["entry","mid","senior","executive"]),isRemote:$0(),website:Xf.optional().or(ia(""))});oo({firstName:Ur,lastName:Ur,bio:aa.optional(),location:Qf.optional(),phone:mS.optional().or(ia("")),website:Xf.optional().or(ia(""))});function wi(e,t){try{return{success:!0,data:e.parse(t)}}catch(n){return n instanceof o0?{success:!1,errors:n.issues.map(o=>o.message)}:{success:!1,errors:["Validation failed"]}}}const ep=m.createContext(void 0),xo=()=>/Android|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i.test(navigator.userAgent),Ln=()=>{const e=m.useContext(ep);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e},Hl=({children:e})=>{const[t,n]=m.useState(!0),[r,o]=m.useState(null),[s,i]=m.useState(null),[c,a]=m.useState(null),[l,d]=m.useState(!1),f=_=>{if(typeof window<"u"){const S=_==="admin"||_==="manager"?"/admin":_==="employer"?"/employer-dashboard":_==="candidate"?"/candidate":"/";window.location.href=S}};m.useEffect(()=>{const{data:{subscription:_}}=he.auth.onAuthStateChange(async(S,E)=>{i(E),o((E==null?void 0:E.user)??null),E!=null&&E.user?setTimeout(async()=>{var T,I;try{console.debug("[AuthContext] Fetching user role for:",E.user.id);const{data:w,error:R}=await he.from("user_roles").select("role").eq("user_id",E.user.id).order("role").limit(1);if(R){console.warn("[AuthContext] Error fetching user role:",(R==null?void 0:R.message)||JSON.stringify(R)),a(null);const A=window.location.pathname,O=A==="/auth/reset-password-complete",L=localStorage.getItem("postAuthRedirect");if(!O&&(A.startsWith("/auth/")||A==="/login"||A==="/signup")){if(L){console.debug("[AuthContext] User authenticated, redirecting to postAuthRedirect:",L),window.location.href=L,localStorage.removeItem("postAuthRedirect");return}localStorage.getItem("pendingEmployerPlan")!==null||f("candidate")}}else if(w&&w.length>0){const A=((T=w[0])==null?void 0:T.role)||null;console.debug("[AuthContext] User role fetched:",A),a(A);const O=window.location.pathname,L=O==="/auth/reset-password-complete",M=localStorage.getItem("pendingEmployerPlan")!==null,F=localStorage.getItem("postAuthRedirect");if(!L&&(O.startsWith("/auth/")||O==="/login"||O==="/signup")){if(F){console.debug("[AuthContext] User authenticated, redirecting to postAuthRedirect:",F),window.location.href=F,localStorage.removeItem("postAuthRedirect");return}M||(console.debug("[AuthContext] User authenticated on auth page, redirecting to role dashboard"),f(A))}}else{const A=(I=E.user.user_metadata)==null?void 0:I.role,O=A==="employer"||A==="candidate"?A:"candidate";console.warn("[AuthContext] No role found for user - creating role from metadata:",O);const{error:L}=await he.from("user_roles").insert({user_id:E.user.id,role:O});if(L)console.error("[AuthContext] Failed to create default role:",(L==null?void 0:L.message)||JSON.stringify(L)),a(null);else{a(O);const M=window.location.pathname,F=M==="/auth/reset-password-complete",j=localStorage.getItem("postAuthRedirect");if(!F&&(M.startsWith("/auth/")||M==="/login"||M==="/signup")){if(j){console.debug("[AuthContext] User authenticated, redirecting to postAuthRedirect:",j),window.location.href=j,localStorage.removeItem("postAuthRedirect");return}localStorage.getItem("pendingEmployerPlan")!==null||f(O)}}}}catch(w){console.error("[AuthContext] Exception fetching user role:",w instanceof Error?w.message:JSON.stringify(w)),a(null)}finally{l||d(!0)}},0):(a(null),l||d(!0)),n(!1)});return he.auth.getSession().then(({data:{session:S}})=>{i(S),o((S==null?void 0:S.user)??null),n(!1)}),()=>_.unsubscribe()},[]);const p=()=>{Object.keys(localStorage).forEach(_=>{(_.startsWith("supabase.auth.")||_.includes("sb-"))&&localStorage.removeItem(_)})},b={user:r,session:s,loading:t,signUp:async(_,S,E)=>{var T,I;try{const w=wi(bS,{email:_,password:S,firstName:E.first_name,lastName:E.last_name});if(!w.success)return{error:{message:((T=w.errors)==null?void 0:T.join(", "))||"Invalid input data"}};if(!xo())try{const{data:F,error:j}=await he.functions.invoke("rate-limit-check",{body:{endpoint:"auth_signup",maxAttempts:15,windowMinutes:15,blockMinutes:15}});if(j)console.warn("Rate limit check failed:",j);else if(F&&!F.allowed)return{error:{message:F.reason||"Too many signup attempts. Please try again later.",code:"rate_limited"},rateLimit:{blockedUntil:F.blocked_until||null,attemptsUsed:F.attempts_used??null,maxAttempts:F.max_attempts??null}}}catch(F){console.warn("Rate limit check failed:",F)}if(p(),!(c==="admin")&&!["employer","candidate"].includes(E.role))return{error:{message:"Invalid role selected. Please choose either Employer or Candidate."}};const A=()=>`${window.location.origin}/auth/callback`,{data:O,error:L}=await he.auth.signUp({email:_,password:S,options:{emailRedirectTo:A(),data:{first_name:E.first_name,last_name:E.last_name,role:E.role,signup_url:window.location.href}}});if(L)return{error:L};const M=!O.session&&O.user&&!O.user.email_confirmed_at;return O.user&&setTimeout(async()=>{try{await he.functions.invoke("send-admin-alert",{body:{alert_type:"new_user_signup",severity:"low",message:`New ${E.role} account created: ${E.first_name} ${E.last_name} (${_})`,metadata:{user_id:O.user.id,email:_,signup_url:window.location.href,name:`${E.first_name} ${E.last_name}`,role:E.role,created_at:new Date().toISOString()}}})}catch(F){console.warn("Failed to send admin alert for signup:",F)}},0),{error:null,userId:(I=O.user)==null?void 0:I.id,needsVerification:M}}catch(w){return console.error("Signup error:",w),{error:w}}},signIn:async(_,S)=>{var E,T,I;try{const w=wi(yS,{email:_,password:S});if(!w.success)return{error:{message:((E=w.errors)==null?void 0:E.join(", "))||"Invalid email or password format"},needsEmailVerification:!1};if(!xo())try{const{data:O,error:L}=await he.functions.invoke("rate-limit-check",{body:{endpoint:"auth_login",maxAttempts:10,windowMinutes:15,blockMinutes:30,recordAttempt:!1}});if(L)(L==null?void 0:L.name)==="FunctionsFetchError"?console.debug("Rate limit check skipped (network issue)"):console.warn("Rate limit check failed:",L);else if(O&&!O.allowed)return{error:{message:O.reason||"Too many login attempts. Please try again later.",code:"rate_limited"},needsEmailVerification:!1,rateLimit:{blockedUntil:O.blocked_until||null,attemptsUsed:O.attempts_used??null,maxAttempts:O.max_attempts??null}}}catch(O){(O==null?void 0:O.name)==="FunctionsFetchError"?console.debug("Rate limit check skipped (network issue)"):console.warn("Rate limit check failed:",O)}p();try{await he.auth.signOut({scope:"global"})}catch{}const{data:R,error:A}=await he.auth.signInWithPassword({email:_,password:S});if(A){if(!xo())try{await he.functions.invoke("rate-limit-check",{body:{endpoint:"auth_login",maxAttempts:10,windowMinutes:15,blockMinutes:30,recordAttempt:!0}})}catch(L){console.warn("Failed to record failed login attempt:",L)}const O=(T=A.message)==null?void 0:T.includes("Email not confirmed");return{error:A,needsEmailVerification:O}}if((I=R==null?void 0:R.session)!=null&&I.access_token&&!xo())try{const{error:O}=await he.functions.invoke("clear-rate-limit",{body:{endpoint:"auth_login"},headers:{Authorization:`Bearer ${R.session.access_token}`}});O?console.error("❌ Failed to clear rate limit:",O):console.log("✅ Rate limit cleared successfully")}catch(O){console.error("❌ Failed to clear rate limit:",O)}return{error:null,needsEmailVerification:!1}}catch(w){return console.error("Signin error:",w),{error:w,needsEmailVerification:!1}}},signOut:async()=>{try{p();try{await he.auth.signOut({scope:"global"})}catch{}}catch(_){console.error("Signout error:",_)}},resetPassword:async _=>{var S;try{const E=wi(Fs,_);if(!E.success)return{error:{message:((S=E.errors)==null?void 0:S.join(", "))||"Invalid email format"}};const T=()=>`${window.location.origin}/auth/reset-password-complete`,{error:I}=await he.auth.resetPasswordForEmail(_,{redirectTo:T()});return na(I?{variant:"destructive",title:"Reset Password Error",description:I.message}:{title:"Success",description:"Password reset email sent. Please check your inbox."}),{error:I}}catch(E){return console.error("Reset password error:",E),{error:E}}},userRole:c};return u.jsx(ep.Provider,{value:b,children:e})},_S=()=>typeof navigator>"u"?!1:/iPhone|iPad|iPod/.test(navigator.userAgent)&&/WebKit/.test(navigator.userAgent),SS=e=>{const t=_S();return cn({queryKey:["notification-preferences",e],queryFn:async()=>{try{const{data:n,error:r}=await he.from("user_notification_preferences").select("*").eq("user_id",e).maybeSingle();return r?(console.debug("[NotificationPreferences] Supabase error:",r.message),null):n}catch(n){return n instanceof TypeError&&n.message.includes("Load failed")?(console.debug("[NotificationPreferences] Safari network timing error - will retry"),null):(console.debug("[NotificationPreferences] Fetch error:",n),null)}},enabled:!!e,staleTime:10*60*1e3,retry:t?3:2,retryDelay:t?2e3:1e3})},F$=()=>{const{toast:e}=Ka(),t=jv();return Dv({mutationFn:async({userId:n,data:r})=>{const{data:o,error:s}=await he.from("user_notification_preferences").update(r).eq("user_id",n).select().maybeSingle();if(s&&s.code!=="PGRST116")throw s;if(!o){const{data:i,error:c}=await he.from("user_notification_preferences").insert({user_id:n,...r}).select().single();if(c)throw c;return i}return o},onSuccess:(n,{userId:r})=>{t.invalidateQueries({queryKey:["notification-preferences",r]}),e({title:"Success",description:"Notification preferences updated successfully"})},onError:n=>{e({title:"Error",description:n.message||"Failed to update notification preferences",variant:"destructive"})}})};function wS(){const{toast:e}=Ka(),[t,n]=m.useState("default"),[r,o]=m.useState(!1);m.useEffect(()=>{"Notification"in window&&(o(!0),n(Notification.permission))},[]);const s=async()=>{if(!r)return e({title:"Browser notifications not supported",description:"Your browser doesn't support notifications",variant:"destructive"}),"denied";try{const d=await Notification.requestPermission();return n(d),d==="granted"?e({title:"Notifications enabled",description:"You'll now receive browser notifications"}):d==="denied"&&e({title:"Notifications blocked",description:"Please enable notifications in your browser settings to receive alerts",variant:"destructive"}),d}catch(d){return console.error("Error requesting notification permission:",d),e({title:"Error",description:"Failed to request notification permission",variant:"destructive"}),"denied"}},i=d=>{if(!r||t!=="granted")return null;try{const f=new Notification(d.title,{body:d.body,icon:d.icon||"/fav_icon.webp",tag:d.tag,requireInteraction:d.requireInteraction||!1});return d.requireInteraction||setTimeout(()=>{f.close()},5e3),f}catch(f){return console.error("Error creating notification:",f),null}};return{isSupported:r,permission:t,requestPermission:s,showNotification:i,showJobAlert:(d,f)=>i({title:"New Job Match!",body:`${d} at ${f}`,tag:"job-alert",requireInteraction:!0}),showInterviewReminder:(d,f)=>i({title:"Interview Reminder",body:`Your interview for ${d} is ${f}`,tag:"interview-reminder",requireInteraction:!0}),showApplicationUpdate:(d,f)=>i({title:"Application Update",body:`Your application for ${f} has been ${d}`,tag:"application-update"})}}const xS=e=>({pending:"Your application is under review",verification_required:"Your CV requires verification - please check your email",reviewed:"Your application has been reviewed",interviewed:"You have completed an interview",offered:"Congratulations! You have received a job offer",accepted:"Your acceptance has been confirmed",hired:"Welcome aboard! You have been hired",rejected:"Unfortunately, your application was not successful this time"})[e]||"Your application status has been updated",ES=e=>new Date(e).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}),kS=e=>new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),TS=()=>({sendApplicationUpdateEmail:async r=>{try{const{error:o}=await he.functions.invoke("send-email-centralized",{body:{to:r.candidateEmail,template_type:"application_status",template_variables:{candidate_name:r.candidateName,job_title:r.jobTitle,company_name:r.companyName,status:r.status,status_message:xS(r.status)}}});if(o)throw console.error("Error sending application update email:",o),o}catch(o){console.error("Failed to send application update email:",o)}},sendInterviewReminderEmail:async r=>{try{const{error:o}=await he.functions.invoke("send-email-centralized",{body:{to:r.candidateEmail,template_type:"interview_reminder",template_variables:{candidate_name:r.candidateName,job_title:r.jobTitle,company_name:r.companyName,interview_date:ES(r.scheduledAt),interview_time:kS(r.scheduledAt),interview_url:r.interviewUrl}}});if(o)throw console.error("Error sending interview reminder email:",o),o}catch(o){console.error("Failed to send interview reminder email:",o)}},sendJobAlertEmail:async r=>{try{const{error:o}=await he.functions.invoke("send-email-centralized",{body:{to:r.candidateEmail,template_type:"job_alert",template_variables:{candidate_name:r.candidateName,jobs:r.jobs}}});if(o)throw console.error("Error sending job alert email:",o),o}catch(o){console.error("Failed to send job alert email:",o)}}}),IS=({userId:e,children:t})=>{const[n,r]=m.useState(!1);m.useEffect(()=>{const g=setTimeout(()=>r(!0),500);return()=>clearTimeout(g)},[e]);const{data:o,isError:s,error:i}=SS(n?e:""),{showJobAlert:c,showInterviewReminder:a,showApplicationUpdate:l,permission:d}=wS(),{sendApplicationUpdateEmail:f,sendInterviewReminderEmail:p,sendJobAlertEmail:h}=TS();return m.useEffect(()=>{s&&i&&console.debug("[NotificationCenter] Preferences loading issue:",i)},[s,i]),m.useEffect(()=>{if(!o)return;console.log("[NotificationCenter] Active with userId:",e);const g=async v=>{const{type:y,data:b}=v.detail,{data:_}=await he.from("profiles").select("email, first_name, last_name").eq("id",e).single();if(!_)return;const S=`${_.first_name||""} ${_.last_name||""}`.trim()||"User";switch(y){case"job_alert":o.job_alerts&&(o.browser_notifications&&d==="granted"&&c(b.jobTitle,b.companyName),await h({candidateEmail:_.email,candidateName:S,jobs:b.jobs||[{title:b.jobTitle,company:b.companyName,url:b.jobUrl||""}]}));break;case"interview_reminder":o.interview_reminders&&(o.browser_notifications&&d==="granted"&&a(b.jobTitle,b.timeUntil),await p({candidateEmail:_.email,candidateName:S,jobTitle:b.jobTitle,companyName:b.companyName,scheduledAt:b.scheduledAt,interviewUrl:b.interviewUrl}));break;case"application_update":o.application_updates&&(o.browser_notifications&&d==="granted"&&l(b.status,b.jobTitle),await f({candidateEmail:_.email,candidateName:S,jobTitle:b.jobTitle,companyName:b.companyName,status:b.status}));break}};return window.addEventListener("app-notification",g),()=>{window.removeEventListener("app-notification",g)}},[e,o,d,c,a,l,f,p,h]),u.jsx(u.Fragment,{children:t})},CS=({children:e})=>{const{user:t}=Ln();return t!=null&&t.id?u.jsx(IS,{userId:t.id,children:e}):(console.log("[NotificationCenter] Skipping activation - no user"),u.jsx(u.Fragment,{children:e}))},V$=(e,t)=>{const n=new CustomEvent("app-notification",{detail:{type:e,data:t}});window.dispatchEvent(n)};var tp={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Wl=V.createContext&&V.createContext(tp),RS=["attr","size","title"];function AS(e,t){if(e==null)return{};var n=OS(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function OS(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function us(){return us=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},us.apply(this,arguments)}function Zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ds(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zl(Object(n),!0).forEach(function(r){PS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PS(e,t,n){return t=MS(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MS(e){var t=LS(e,"string");return typeof t=="symbol"?t:t+""}function LS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function np(e){return e&&e.map((t,n)=>V.createElement(t.tag,ds({key:n},t.attr),np(t.child)))}function ee(e){return t=>V.createElement(NS,us({attr:ds({},e.attr)},t),np(e.child))}function NS(e){var t=n=>{var{attr:r,size:o,title:s}=e,i=AS(e,RS),c=o||n.size||"1em",a;return n.className&&(a=n.className),e.className&&(a=(a?a+" ":"")+e.className),V.createElement("svg",us({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,i,{className:a,style:ds(ds({color:e.color||n.color},n.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),s&&V.createElement("title",null,s),e.children)};return Wl!==void 0?V.createElement(Wl.Consumer,null,n=>t(n)):t(tp)}function B$(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12.01",y2:"16"},child:[]}]})(e)}function U$(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"7",y1:"17",x2:"17",y2:"7"},child:[]},{tag:"polyline",attr:{points:"7 7 17 7 17 17"},child:[]}]})(e)}function H$(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"},child:[]},{tag:"path",attr:{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"},child:[]}]})(e)}function W$(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"},child:[]}]})(e)}function Z$(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"2",y:"7",width:"20",height:"14",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"},child:[]}]})(e)}function q$(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"13",r:"4"},child:[]}]})(e)}function G$(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"},child:[]},{tag:"polyline",attr:{points:"22 4 12 14.01 9 11.01"},child:[]}]})(e)}function Eo(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"6 9 12 15 18 9"},child:[]}]})(e)}function Y$(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"polyline",attr:{points:"12 6 12 12 16 14"},child:[]}]})(e)}function K$(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"},child:[]}]})(e)}function J$(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 20h9"},child:[]},{tag:"path",attr:{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"},child:[]}]})(e)}function X$(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"},child:[]},{tag:"path",attr:{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"},child:[]}]})(e)}function Q$(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"},child:[]}]})(e)}function e4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"},child:[]},{tag:"polyline",attr:{points:"14 2 14 8 20 8"},child:[]},{tag:"line",attr:{x1:"16",y1:"13",x2:"8",y2:"13"},child:[]},{tag:"line",attr:{x1:"16",y1:"17",x2:"8",y2:"17"},child:[]},{tag:"polyline",attr:{points:"10 9 9 9 8 9"},child:[]}]})(e)}function t4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"2",y1:"12",x2:"22",y2:"12"},child:[]},{tag:"path",attr:{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"},child:[]}]})(e)}function jS(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"7",height:"7"},child:[]},{tag:"rect",attr:{x:"14",y:"3",width:"7",height:"7"},child:[]},{tag:"rect",attr:{x:"14",y:"14",width:"7",height:"7"},child:[]},{tag:"rect",attr:{x:"3",y:"14",width:"7",height:"7"},child:[]}]})(e)}function n4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"path",attr:{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"},child:[]},{tag:"line",attr:{x1:"12",y1:"17",x2:"12.01",y2:"17"},child:[]}]})(e)}function r4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"2",y:"2",width:"20",height:"20",rx:"5",ry:"5"},child:[]},{tag:"path",attr:{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"},child:[]},{tag:"line",attr:{x1:"17.5",y1:"6.5",x2:"17.51",y2:"6.5"},child:[]}]})(e)}function o4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"},child:[]},{tag:"rect",attr:{x:"2",y:"9",width:"4",height:"12"},child:[]},{tag:"circle",attr:{cx:"4",cy:"4",r:"2"},child:[]}]})(e)}function s4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"2",x2:"12",y2:"6"},child:[]},{tag:"line",attr:{x1:"12",y1:"18",x2:"12",y2:"22"},child:[]},{tag:"line",attr:{x1:"4.93",y1:"4.93",x2:"7.76",y2:"7.76"},child:[]},{tag:"line",attr:{x1:"16.24",y1:"16.24",x2:"19.07",y2:"19.07"},child:[]},{tag:"line",attr:{x1:"2",y1:"12",x2:"6",y2:"12"},child:[]},{tag:"line",attr:{x1:"18",y1:"12",x2:"22",y2:"12"},child:[]},{tag:"line",attr:{x1:"4.93",y1:"19.07",x2:"7.76",y2:"16.24"},child:[]},{tag:"line",attr:{x1:"16.24",y1:"7.76",x2:"19.07",y2:"4.93"},child:[]}]})(e)}function i4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M7 11V7a5 5 0 0 1 10 0v4"},child:[]}]})(e)}function DS(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"},child:[]},{tag:"polyline",attr:{points:"16 17 21 12 16 7"},child:[]},{tag:"line",attr:{x1:"21",y1:"12",x2:"9",y2:"12"},child:[]}]})(e)}function a4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"},child:[]},{tag:"polyline",attr:{points:"22,6 12,13 2,6"},child:[]}]})(e)}function c4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"10",r:"3"},child:[]}]})(e)}function $S(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"3",y1:"12",x2:"21",y2:"12"},child:[]},{tag:"line",attr:{x1:"3",y1:"6",x2:"21",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"18",x2:"21",y2:"18"},child:[]}]})(e)}function l4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"},child:[]}]})(e)}function u4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"},child:[]}]})(e)}function d4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"8",y1:"21",x2:"16",y2:"21"},child:[]},{tag:"line",attr:{x1:"12",y1:"17",x2:"12",y2:"21"},child:[]}]})(e)}function f4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"},child:[]}]})(e)}function p4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"5",x2:"12",y2:"19"},child:[]},{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]}]})(e)}function h4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"2",y:"2",width:"20",height:"8",rx:"2",ry:"2"},child:[]},{tag:"rect",attr:{x:"2",y:"14",width:"20",height:"8",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"6.01",y2:"6"},child:[]},{tag:"line",attr:{x1:"6",y1:"18",x2:"6.01",y2:"18"},child:[]}]})(e)}function zS(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"3"},child:[]},{tag:"path",attr:{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"},child:[]}]})(e)}function m4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"3 6 5 6 21 6"},child:[]},{tag:"path",attr:{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"},child:[]},{tag:"line",attr:{x1:"10",y1:"11",x2:"10",y2:"17"},child:[]},{tag:"line",attr:{x1:"14",y1:"11",x2:"14",y2:"17"},child:[]}]})(e)}function g4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"},child:[]}]})(e)}function v4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"},child:[]},{tag:"polyline",attr:{points:"17 8 12 3 7 8"},child:[]},{tag:"line",attr:{x1:"12",y1:"3",x2:"12",y2:"15"},child:[]}]})(e)}function y4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"},child:[]},{tag:"circle",attr:{cx:"8.5",cy:"7",r:"4"},child:[]},{tag:"polyline",attr:{points:"17 11 19 13 23 9"},child:[]}]})(e)}function b4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"},child:[]},{tag:"circle",attr:{cx:"8.5",cy:"7",r:"4"},child:[]},{tag:"line",attr:{x1:"20",y1:"8",x2:"20",y2:"14"},child:[]},{tag:"line",attr:{x1:"23",y1:"11",x2:"17",y2:"11"},child:[]}]})(e)}function FS(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"},child:[]},{tag:"circle",attr:{cx:"12",cy:"7",r:"4"},child:[]}]})(e)}function _4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"},child:[]},{tag:"circle",attr:{cx:"9",cy:"7",r:"4"},child:[]},{tag:"path",attr:{d:"M23 21v-2a4 4 0 0 0-3-3.87"},child:[]},{tag:"path",attr:{d:"M16 3.13a4 4 0 0 1 0 7.75"},child:[]}]})(e)}function S4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"15",y1:"9",x2:"9",y2:"15"},child:[]},{tag:"line",attr:{x1:"9",y1:"9",x2:"15",y2:"15"},child:[]}]})(e)}function VS(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(e)}function w4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"},child:[]},{tag:"polygon",attr:{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},child:[]}]})(e)}const x4=e=>cn({queryKey:["profiles",e],queryFn:async()=>{let t=he.from("profiles").select("id, first_name, last_name, email, avatar_url, bio, location, created_at, status").order("created_at",{ascending:!1});const{data:n,error:r}=await t;if(r)throw console.error(`Error fetching profiles: ${(r==null?void 0:r.message)||"Unknown error"} (code: ${(r==null?void 0:r.code)||"N/A"})`),r;return n},staleTime:5*60*1e3}),E4=e=>cn({queryKey:["admin-profiles",e],queryFn:async()=>{let t=he.from("profiles").select("*").order("created_at",{ascending:!1});e!=null&&e.status&&(t=t.eq("status",e.status)),e!=null&&e.limit&&(t=t.limit(e.limit));const{data:n,error:r}=await t;if(r)throw console.error(`Error fetching admin profiles: ${(r==null?void 0:r.message)||"Unknown error"} (code: ${(r==null?void 0:r.code)||"N/A"})`),r;return n},staleTime:5*60*1e3}),rp=e=>cn({queryKey:["profile",e],queryFn:async()=>{const{data:t,error:n}=await he.from("profiles").select("id, first_name, last_name, email, avatar_url, bio, location, created_at, status").eq("id",e).single();if(n){if(n.code==="PGRST116")return null;throw console.error(`Error fetching profile: ${(n==null?void 0:n.message)||"Unknown error"} (code: ${(n==null?void 0:n.code)||"N/A"})`),n}return t},enabled:!!e,staleTime:10*60*1e3}),k4=()=>{const{user:e}=Ln();return cn({queryKey:["own-profile",e==null?void 0:e.id],queryFn:async()=>{if(!(e!=null&&e.id))return null;const{data:t,error:n}=await he.from("profiles").select("*").eq("id",e.id).maybeSingle();if(n){if(n.code==="PGRST116")return null;throw console.error(`Error fetching own profile: ${(n==null?void 0:n.message)||"Unknown error"} (code: ${(n==null?void 0:n.code)||"N/A"})`),n}return t},enabled:!!(e!=null&&e.id),staleTime:5*60*1e3})},ql=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Gl=kf,oc=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Gl(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(l=>{const d=n==null?void 0:n[l],f=s==null?void 0:s[l];if(d===null)return null;const p=ql(d)||ql(f);return o[l][p]}),c=n&&Object.entries(n).reduce((l,d)=>{let[f,p]=d;return p===void 0||(l[f]=p),l},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,d)=>{let{class:f,className:p,...h}=d;return Object.entries(h).every(g=>{let[v,y]=g;return Array.isArray(y)?y.includes({...s,...c}[v]):{...s,...c}[v]===y})?[...l,f,p]:l},[]);return Gl(e,i,a,n==null?void 0:n.class,n==null?void 0:n.className)},sc="-",BS=e=>{const t=HS(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const c=i.split(sc);return c[0]===""&&c.length!==1&&c.shift(),op(c,t)||US(i)},getConflictingClassGroupIds:(i,c)=>{const a=n[i]||[];return c&&r[i]?[...a,...r[i]]:a}}},op=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?op(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(sc);return(i=t.validators.find(({validator:c})=>c(s)))==null?void 0:i.classGroupId},Yl=/^\[(.+)\]$/,US=e=>{if(Yl.test(e)){const t=Yl.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},HS=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return ZS(Object.entries(e.classGroups),n).forEach(([s,i])=>{ca(i,r,s,t)}),r},ca=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Kl(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(WS(o)){ca(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{ca(i,Kl(t,s),n,r)})})},Kl=(e,t)=>{let n=e;return t.split(sc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},WS=e=>e.isThemeGetter,ZS=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,c])=>[t+i,c])):s);return[n,o]}):e,qS=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},sp="!",GS=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=c=>{const a=[];let l=0,d=0,f;for(let y=0;y<c.length;y++){let b=c[y];if(l===0){if(b===o&&(r||c.slice(y,y+s)===t)){a.push(c.slice(d,y)),d=y+s;continue}if(b==="/"){f=y;continue}}b==="["?l++:b==="]"&&l--}const p=a.length===0?c:c.substring(d),h=p.startsWith(sp),g=h?p.substring(1):p,v=f&&f>d?f-d:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:v}};return n?c=>n({className:c,parseClassName:i}):i},YS=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},KS=e=>({cache:qS(e.cacheSize),parseClassName:GS(e),...BS(e)}),JS=/\s+/,XS=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(JS);let c="";for(let a=i.length-1;a>=0;a-=1){const l=i[a],{modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:h}=n(l);let g=!!h,v=r(g?p.substring(0,h):p);if(!v){if(!g){c=l+(c.length>0?" "+c:c);continue}if(v=r(p),!v){c=l+(c.length>0?" "+c:c);continue}g=!1}const y=YS(d).join(":"),b=f?y+sp:y,_=b+v;if(s.includes(_))continue;s.push(_);const S=o(v,g);for(let E=0;E<S.length;++E){const T=S[E];s.push(b+T)}c=l+(c.length>0?" "+c:c)}return c};function QS(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=ip(t))&&(r&&(r+=" "),r+=n);return r}const ip=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ip(e[r]))&&(n&&(n+=" "),n+=t);return n};function ew(e,...t){let n,r,o,s=i;function i(a){const l=t.reduce((d,f)=>f(d),e());return n=KS(l),r=n.cache.get,o=n.cache.set,s=c,c(a)}function c(a){const l=r(a);if(l)return l;const d=XS(a,n);return o(a,d),d}return function(){return s(QS.apply(null,arguments))}}const Ie=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},ap=/^\[(?:([a-z-]+):)?(.+)\]$/i,tw=/^\d+\/\d+$/,nw=new Set(["px","full","screen"]),rw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ow=/\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$/,sw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,iw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,aw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ft=e=>er(e)||nw.has(e)||tw.test(e),nn=e=>hr(e,"length",mw),er=e=>!!e&&!Number.isNaN(Number(e)),xi=e=>hr(e,"number",er),Ir=e=>!!e&&Number.isInteger(Number(e)),cw=e=>e.endsWith("%")&&er(e.slice(0,-1)),ie=e=>ap.test(e),rn=e=>rw.test(e),lw=new Set(["length","size","percentage"]),uw=e=>hr(e,lw,cp),dw=e=>hr(e,"position",cp),fw=new Set(["image","url"]),pw=e=>hr(e,fw,vw),hw=e=>hr(e,"",gw),Cr=()=>!0,hr=(e,t,n)=>{const r=ap.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},mw=e=>ow.test(e)&&!sw.test(e),cp=()=>!1,gw=e=>iw.test(e),vw=e=>aw.test(e),yw=()=>{const e=Ie("colors"),t=Ie("spacing"),n=Ie("blur"),r=Ie("brightness"),o=Ie("borderColor"),s=Ie("borderRadius"),i=Ie("borderSpacing"),c=Ie("borderWidth"),a=Ie("contrast"),l=Ie("grayscale"),d=Ie("hueRotate"),f=Ie("invert"),p=Ie("gap"),h=Ie("gradientColorStops"),g=Ie("gradientColorStopPositions"),v=Ie("inset"),y=Ie("margin"),b=Ie("opacity"),_=Ie("padding"),S=Ie("saturate"),E=Ie("scale"),T=Ie("sepia"),I=Ie("skew"),w=Ie("space"),R=Ie("translate"),A=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",ie,t],M=()=>[ie,t],F=()=>["",Ft,nn],j=()=>["auto",er,ie],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],N=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],C=()=>["","0",ie],W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[er,ie];return{cacheSize:500,separator:":",theme:{colors:[Cr],spacing:[Ft,nn],blur:["none","",rn,ie],brightness:B(),borderColor:[e],borderRadius:["none","","full",rn,ie],borderSpacing:M(),borderWidth:F(),contrast:B(),grayscale:C(),hueRotate:B(),invert:C(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[cw,nn],inset:L(),margin:L(),opacity:B(),padding:M(),saturate:B(),scale:B(),sepia:C(),skew:B(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",ie]}],container:["container"],columns:[{columns:[rn]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"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"],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:[...Z(),ie]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ir,ie]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ie]}],grow:[{grow:C()}],shrink:[{shrink:C()}],order:[{order:["first","last","none",Ir,ie]}],"grid-cols":[{"grid-cols":[Cr]}],"col-start-end":[{col:["auto",{span:["full",Ir,ie]},ie]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[Cr]}],"row-start-end":[{row:["auto",{span:[Ir,ie]},ie]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ie]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ie]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[w]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[w]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ie,t]}],"min-w":[{"min-w":[ie,t,"min","max","fit"]}],"max-w":[{"max-w":[ie,t,"none","full","min","max","fit","prose",{screen:[rn]},rn]}],h:[{h:[ie,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ie,t,"auto","min","max","fit"]}],"font-size":[{text:["base",rn,nn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",xi]}],"font-family":[{font:[Cr]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ie]}],"line-clamp":[{"line-clamp":["none",er,xi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ft,ie]}],"list-image":[{"list-image":["none",ie]}],"list-style-type":[{list:["none","disc","decimal",ie]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ft,nn]}],"underline-offset":[{"underline-offset":["auto",Ft,ie]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),dw]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",uw]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pw]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:H()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[Ft,ie]}],"outline-w":[{outline:[Ft,nn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Ft,nn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",rn,hw]}],"shadow-color":[{shadow:[Cr]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...N(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":N()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",rn,ie]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[S]}],sepia:[{sepia:[T]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ie]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",ie]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",ie]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Ir,ie]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ie]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",ie]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",ie]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ft,nn,xi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-s","border-color-e","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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-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"]}}},bw=ew(yw);function Be(...e){return bw(kf(e))}const _w=oc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-all duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 touch-target active:scale-95",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 active:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 active:bg-destructive/80",outline:"border border-input bg-background text-foreground hover:bg-accent hover:text-accent-foreground active:bg-accent/80",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 active:bg-secondary/70",ghost:"text-foreground hover:bg-accent hover:text-accent-foreground active:bg-accent/80",link:"text-primary underline-offset-4 hover:underline active:text-primary/80"},size:{default:"min-h-[44px] px-4 py-2",sm:"min-h-[40px] rounded-md px-3",lg:"min-h-[48px] rounded-md px-8",icon:"h-10 w-10 min-h-[44px] min-w-[44px]",touch:"min-h-[48px] min-w-[48px] px-4 py-3"}},defaultVariants:{variant:"default",size:"default"}}),Lr=m.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,type:o,...s},i)=>{const c=r?pv:"button",a=r?void 0:o??"button";return u.jsx(c,{className:Be(_w({variant:t,size:n,className:e})),ref:i,...s,...!r&&{type:a}})});Lr.displayName="Button";var ic="Avatar",[Sw,T4]=vf(ic),[ww,lp]=Sw(ic),up=m.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,s]=m.useState("idle");return u.jsx(ww,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:u.jsx(Xt.span,{...r,ref:t})})});up.displayName=ic;var dp="AvatarImage",fp=m.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,i=lp(dp,n),c=xw(r,s.referrerPolicy),a=Fr(l=>{o(l),i.onImageLoadingStatusChange(l)});return Ga(()=>{c!=="idle"&&a(c)},[c,a]),c==="loaded"?u.jsx(Xt.img,{...s,ref:t,src:r}):null});fp.displayName=dp;var pp="AvatarFallback",hp=m.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=lp(pp,n),[i,c]=m.useState(r===void 0);return m.useEffect(()=>{if(r!==void 0){const a=window.setTimeout(()=>c(!0),r);return()=>window.clearTimeout(a)}},[r]),i&&s.imageLoadingStatus!=="loaded"?u.jsx(Xt.span,{...o,ref:t}):null});hp.displayName=pp;function xw(e,t){const[n,r]=m.useState("idle");return Ga(()=>{if(!e){r("error");return}let o=!0;const s=new window.Image,i=c=>()=>{o&&r(c)};return r("loading"),s.onload=i("loaded"),s.onerror=i("error"),s.src=e,t&&(s.referrerPolicy=t),()=>{o=!1}},[e,t]),n}var mp=up,gp=fp,vp=hp;const yp=m.forwardRef(({className:e,...t},n)=>u.jsx(mp,{ref:n,className:Be("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));yp.displayName=mp.displayName;const bp=m.forwardRef(({className:e,...t},n)=>u.jsx(gp,{ref:n,className:Be("aspect-square h-full w-full",e),...t}));bp.displayName=gp.displayName;const _p=m.forwardRef(({className:e,...t},n)=>u.jsx(vp,{ref:n,className:Be("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));_p.displayName=vp.displayName;/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ew=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sp=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var kw={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"};/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Tw=m.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...c},a)=>m.createElement("svg",{ref:a,...kw,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Sp("lucide",o),...c},[...i.map(([l,d])=>m.createElement(l,d)),...Array.isArray(s)?s:[s]]));/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Vs=(e,t)=>{const n=m.forwardRef(({className:r,...o},s)=>m.createElement(Tw,{ref:s,iconNode:t,className:Sp(`lucide-${Ew(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Iw=Vs("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Cw=Vs("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Rw=Vs("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wp=Vs("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Aw={sm:"h-8 w-8",md:"h-10 w-10",lg:"h-16 w-16",xl:"h-24 w-24"},Ow={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-8 w-8",xl:"h-12 w-12"};function Pw({src:e,alt:t="Profile avatar",fallbackText:n,size:r="md",className:o,retryCount:s=0,onError:i}){const c=a=>{if(!a)return;if(s===0)return a;const l=a.includes("?")?"&":"?";return`${a}${l}t=${Date.now()}-${s}`};return u.jsxs(yp,{className:Be(Aw[r],o),children:[u.jsx(bp,{src:c(e),alt:t,className:"object-cover",onError:i}),u.jsx(_p,{className:"bg-muted text-muted-foreground",children:n?u.jsx("span",{className:"font-semibold",children:n.slice(0,2).toUpperCase()}):u.jsx(Rw,{className:Ow[r]})})]})}const Mw="/talenthunter-logo.webp",Lw=[{title:"Home",link:"/"},{title:"For Job Seekers",megaMenu:!0,submenu:[{title:"Get Started",link:"/for-candidates"},{title:"Find Jobs",link:"/job-list"},{title:"Browse Companies",link:"/employer-list"},{title:"Help Center",link:"/helpcenter-overview"},{title:"Training",link:"https://ifctraininghub.com/",external:!0}]},{title:"For Employers",megaMenu:!0,submenu:[{title:"Get Started",link:"/for-employers"},{title:"Pricing Plans",link:"/pricing"},{title:"Our Services",link:"/services"}]},{title:"Blogs",submenu:[{title:"2026 Ireland Salary Guide",link:"/ireland-2026-salary-guide"},{title:"Smart Tech is the Future of Hiring",link:"/smart-technology-future-hiring"},{title:"Ireland's Wage Paradox",link:"/ireland-wage-paradox"},{title:"CVs to Skills: Redefining Recruitment",link:"/cvs-to-skills-recruitment"},{title:"Transparent Recruitment Platform",link:"/transform-your-hiring"},{title:"Candidate Experience ROI",link:"/candidate-experience-roi"},{title:"Diversity, Equity, and Inclusion Policy",link:"/diversity-equity-inclusion-policy"},{title:"Sustainable Procurement Policy",link:"/sustainable-procurement-policy"},{title:"AI-Powered Recruitment in Ireland",link:"https://www.siliconrepublic.com/careers/ai-powered-recruitment-impact-ireland-tech-space-skills-working-life",external:!0},{title:"WFH vs Remote: Why It Matters",link:"https://www.linkedin.com/pulse/wfh-vs-remote-why-distinction-matters-parents-gen-z-r8ogf/?trackingId=Ms9BP5E8NjKsITzCbZG3lg%3D%3D",external:!0}]},{title:"About",submenu:[{title:"About Us",link:"/aboutus"},{title:"Contact Us",link:"/contact"}]}];function Nw({navClass:e,topnavClass:t,isContainerFluid:n}){var H,N,D;const[r,o]=m.useState(!1),[s,i]=m.useState(!1),[c,a]=m.useState(null),[l,d]=m.useState(new Set),[f,p]=m.useState(!1),[h,g]=m.useState(null),{user:v,userRole:y,signOut:b,loading:_}=Ln(),{data:S,error:E}=rp((v==null?void 0:v.id)||""),T=js(),I=Lw,w=()=>{switch(y){case"admin":return"/admin";case"manager":return"/admin";case"employer":return"/employer-dashboard";case"candidate":return"/candidate";default:return"/candidate"}},R=()=>{switch(y){case"admin":return"/admin/profile";case"manager":return"/admin/profile";case"employer":return"/employer-dashboard/company-profile";case"candidate":return"/candidate-profile";default:return"/candidate-profile"}},A=()=>{switch(y){case"admin":return"/admin/settings";case"manager":return"/admin/settings";case"employer":return"/employer-dashboard/settings";case"candidate":return"/candidate/settings";default:return"/candidate/settings"}};m.useEffect(()=>{const C=()=>{const W=document.body.scrollTop||document.documentElement.scrollTop;p(W>=50);const B=document.getElementById("back-to-top");B&&(W>500?(B.classList.add("flex"),B.classList.remove("hidden")):(B.classList.add("hidden"),B.classList.remove("flex")))};return window.addEventListener("scroll",C),()=>window.removeEventListener("scroll",C)},[]);const O=()=>{o(!r),a(null),d(new Set)},L=C=>{const W=new Set(l);W.has(C)?W.delete(C):W.add(C),d(W)},M=C=>{h&&(clearTimeout(h),g(null)),a(C)},F=()=>{const C=setTimeout(()=>{a(null)},150);g(C)},j=(C,W=!1,B="")=>{const U=W?`${B}-nested`:B;return u.jsx("div",{className:`mobile-submenu ${l.has(U)?"open":""}
${W?"ml-6 mt-1":"ml-4 mt-2"} space-y-1 bg-gray-50 dark:bg-slate-800
rounded-md overflow-hidden shadow-sm border border-gray-200 dark:border-gray-700`,children:C.map(($,ne)=>u.jsx("div",{className:"relative",children:$.submenu?u.jsxs(u.Fragment,{children:[u.jsxs("button",{type:"button","aria-expanded":l.has(`${$.title}-nested`),onClick:Se=>{Se.stopPropagation(),Se.preventDefault();const oe=`${$.title}-nested`;L(oe)},className:`w-full text-left px-3 py-2.5 text-sm font-medium text-gray-800 dark:text-gray-100
hover:bg-gray-100 dark:hover:bg-slate-700 flex items-center justify-between rounded-md
transition-colors duration-200
${l.has(`${$.title}-nested`)?"bg-gray-100 dark:bg-slate-700 text-emerald-600":""}`,children:[$.title,u.jsx(Eo,{className:`ml-2 w-4 h-4 transform transition-transform duration-200
${l.has(`${$.title}-nested`)?"rotate-180":""}`})]}),l.has(`${$.title}-nested`)&&u.jsx("div",{className:"submenu-nested",children:j($.submenu,!0,$.title)})]}):$.external?u.jsx("a",{href:$.link,target:"_blank",rel:"noopener noreferrer",className:`block px-3 py-2.5 text-sm text-gray-700 dark:text-gray-200
hover:bg-gray-100 dark:hover:bg-slate-700 hover:text-emerald-600
rounded-md font-medium transition-colors duration-200`,onClick:()=>{o(!1),d(new Set)},children:$.title}):u.jsx(ut,{to:$.link,className:`block px-3 py-2.5 text-sm text-gray-700 dark:text-gray-200
hover:bg-gray-100 dark:hover:bg-slate-700 hover:text-emerald-600
rounded-md font-medium transition-colors duration-200`,onClick:()=>{o(!1),d(new Set)},children:$.title})},ne))})},Z=(C,W=!1,B="",U=!1)=>U?u.jsx("div",{className:`absolute top-full left-0 mt-0 min-w-[280px] bg-white dark:bg-slate-900 shadow-xl rounded-md border border-gray-100 dark:border-gray-800 py-3 z-50
${c===B?"block":"hidden group-hover:block"}
transition-all duration-200 ease-in-out opacity-0 group-hover:opacity-100`,onMouseEnter:()=>{h&&(clearTimeout(h),g(null))},onMouseLeave:F,children:C.map(($,ne)=>u.jsx("div",{children:$.external?u.jsx("a",{href:$.link,target:"_blank",rel:"noopener noreferrer",className:`block px-5 py-2.5 text-sm text-gray-700 dark:text-gray-200
hover:bg-emerald-50 dark:hover:bg-emerald-900/20 hover:text-emerald-600 font-medium`,onClick:()=>{o(!1),a(null)},children:$.title}):u.jsx(ut,{to:$.link||"#",className:`block px-5 py-2.5 text-sm text-gray-700 dark:text-gray-200
hover:bg-emerald-50 dark:hover:bg-emerald-900/20 hover:text-emerald-600 font-medium`,onClick:()=>{o(!1),a(null)},children:$.title})},ne))}):u.jsx("div",{className:`${W?"absolute left-full top-0 ml-0":"absolute top-full left-0 mt-0"}
min-w-[200px] bg-white dark:bg-slate-900 shadow-lg rounded-md border border-gray-100 dark:border-gray-800 py-2 z-50
${c===`${B}${W?"-nested":""}`?"block":"hidden group-hover:block"}
transition-all duration-200 ease-in-out opacity-0 group-hover:opacity-100`,onMouseEnter:()=>{h&&(clearTimeout(h),g(null))},onMouseLeave:F,children:C.map(($,ne)=>u.jsx("div",{className:"group/nested relative",children:$.submenu?u.jsxs(u.Fragment,{children:[u.jsxs("button",{className:`w-full text-left px-4 py-2 text-sm text-gray-700 dark:text-gray-200
hover:bg-gray-100 dark:hover:bg-gray-800 flex items-center justify-between hover:text-emerald-600`,children:[$.title,u.jsx(Eo,{className:"ml-2 w-4 h-4"})]}),u.jsx("div",{className:"hidden group-hover/nested:block",children:Z($.submenu,!0,$.title,!1)})]}):$.external?u.jsx("a",{href:$.link,target:"_blank",rel:"noopener noreferrer",className:`block px-4 py-2 text-sm text-gray-700 dark:text-gray-200
hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-emerald-600`,onClick:()=>{o(!1),a(null)},children:$.title}):u.jsx(ut,{to:$.link||"#",className:`block px-4 py-2 text-sm text-gray-700 dark:text-gray-200
hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-emerald-600`,onClick:()=>{o(!1),a(null)},children:$.title})},ne))});return u.jsx("nav",{id:"topnav",style:{backgroundColor:f?"hsla(0, 0%, 0%, 0.8)":"transparent",backdropFilter:f?"blur(4px)":"none"},className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${f?"nav-sticky shadow-md":""} ${t||""}`,children:u.jsxs("div",{className:`${n?"container-fluid md:px-8 px-3":"container mx-auto px-4"}`,children:[u.jsxs("div",{className:`flex items-center transition-all duration-300 ${f?"h-16":"h-24"}`,children:[u.jsx(ut,{to:"/",className:"inline-flex items-center shrink-0",children:u.jsx("img",{src:Mw,className:`w-auto shrink-0 object-contain transition-all duration-300 ${f?"h-[48px]":"h-[64px]"}`,alt:"Talent Hunter Logo"})}),u.jsx("div",{className:"hidden lg:flex items-center space-x-8 text-white ml-[50px]",children:I.map((C,W)=>u.jsx("div",{className:"group relative",onMouseEnter:()=>C.submenu&&M(C.title),onMouseLeave:()=>C.submenu&&F(),children:C.submenu?u.jsxs(u.Fragment,{children:[u.jsxs("button",{className:"flex items-center space-x-1 hover:text-emerald-600 dark:hover:text-emerald-400 font-medium text-white",children:[u.jsx("span",{children:C.title}),u.jsx(Eo,{className:"text-xs"})]}),Z(C.submenu,!1,C.title,C.megaMenu||!1)]}):C.external?u.jsx("a",{href:C.link,target:"_blank",rel:"noopener noreferrer",className:"hover:text-emerald-600 dark:hover:text-emerald-400 font-medium text-white",children:C.title}):u.jsx(ut,{to:C.link,className:"hover:text-emerald-600 dark:hover:text-emerald-400 font-medium text-white",children:C.title})},W))}),u.jsxs("div",{className:"flex items-center space-x-4 ml-auto",children:[!_&&(v?u.jsxs("div",{className:"relative",children:[u.jsx("button",{onClick:()=>i(!s),className:"flex items-center justify-center w-9 h-9 rounded-full bg-emerald-600 hover:bg-emerald-700 transition-colors overflow-hidden",children:u.jsx(Pw,{src:E||S==null?void 0:S.avatar_url,fallbackText:E?(H=v==null?void 0:v.email)==null?void 0:H[0].toUpperCase():S!=null&&S.first_name&&(S!=null&&S.last_name)?`${S.first_name[0]}${S.last_name[0]}`:((N=S==null?void 0:S.first_name)==null?void 0:N[0])||((D=v==null?void 0:v.email)==null?void 0:D[0].toUpperCase()),size:"sm",className:"w-full h-full"})}),s&&u.jsx("div",{className:"absolute right-0 mt-2 w-44 bg-white dark:bg-slate-900 rounded-md shadow-lg border border-gray-100 dark:border-gray-800 z-50",children:u.jsxs("div",{className:"py-2",children:[u.jsxs(ut,{to:w(),className:"flex items-center px-4 py-2 text-sm text-gray-700 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-emerald-600",onClick:()=>i(!1),children:[u.jsx(jS,{className:"mr-2"}),"Dashboard"]}),u.jsxs(ut,{to:R(),className:"flex items-center px-4 py-2 text-sm text-gray-700 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-emerald-600",onClick:()=>i(!1),children:[u.jsx(FS,{className:"mr-2"}),"Profile"]}),u.jsxs(ut,{to:A(),className:"flex items-center px-4 py-2 text-sm text-gray-700 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-emerald-600",onClick:()=>i(!1),children:[u.jsx(zS,{className:"mr-2"}),"Settings"]}),u.jsx("hr",{className:"my-2 border-gray-100 dark:border-gray-800"}),u.jsxs("button",{onClick:()=>{i(!1),b()},className:"flex items-center w-full px-4 py-2 text-sm text-gray-700 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-emerald-600",children:[u.jsx(DS,{className:"mr-2"}),"Logout"]})]})})]}):u.jsxs("div",{className:"flex items-center space-x-2",children:[T.pathname!=="/signup"&&u.jsx(ut,{to:T.pathname==="/for-employers"?"/for-candidates":"/for-employers",children:u.jsx(Lr,{variant:"ghost",size:"sm",className:"hidden sm:inline-flex text-white hover:text-white",children:T.pathname==="/for-employers"?"For Candidates":"For Employers"})}),u.jsx(ut,{to:"/login",children:u.jsx(Lr,{variant:"ghost",size:"sm",className:"text-white hover:text-white",children:"Login"})}),u.jsx(ut,{to:"/signup",children:u.jsx(Lr,{size:"sm",className:"bg-emerald-600 hover:bg-emerald-700 text-white",children:"Sign Up"})})]})),u.jsx("button",{onClick:O,className:`lg:hidden flex items-center justify-center w-9 h-9 hover:text-emerald-600 focus:outline-none ${f||e!=null&&e.includes("nav-light")?"text-white":"text-gray-700 dark:text-gray-200"}`,children:r?u.jsx(VS,{size:20}):u.jsx($S,{size:20})})]})]}),r&&u.jsx("div",{className:"lg:hidden absolute top-full left-0 right-0 bg-white dark:bg-slate-900 border-t border-gray-100 dark:border-gray-800 shadow-lg max-h-screen overflow-y-auto",children:u.jsx("div",{className:"px-4 py-4 space-y-2",children:I.map((C,W)=>u.jsx("div",{children:C.submenu?u.jsxs(u.Fragment,{children:[u.jsxs("button",{type:"button","aria-expanded":l.has(C.title),onClick:()=>L(C.title),className:"w-full flex items-center justify-between px-3 py-2 text-gray-700 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-800 rounded-md",children:[u.jsx("span",{className:"font-medium",children:C.title}),u.jsx(Eo,{className:`transform transition-transform duration-200 ${l.has(C.title)?"rotate-180":""}`})]}),l.has(C.title)&&u.jsx("div",{className:"mobile-submenu-container",children:j(C.submenu,!1,C.title)})]}):C.link?u.jsx(ut,{to:C.link,className:"block px-3 py-2 text-gray-700 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-800 rounded-md font-medium",onClick:()=>{o(!1),d(new Set)},children:C.title}):null},W))})})]})})}const jw=oc("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),xp=m.forwardRef(({className:e,variant:t,...n},r)=>u.jsx("div",{ref:r,className:Be(jw({variant:t}),e),...n}));xp.displayName="Badge";const Dw=gv,$w=vv,zw=yv,Ep=m.forwardRef(({className:e,sideOffset:t=6,...n},r)=>u.jsx(hv,{children:u.jsxs(yf,{ref:r,sideOffset:t,className:Be("z-[9999] rounded-md border bg-popover text-popover-foreground px-3 py-1.5 text-sm shadow-lg animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n,children:[n.children,u.jsx(mv,{className:"fill-border"})]})}));Ep.displayName=yf.displayName;var Fw=e=>{switch(e){case"success":return Uw;case"info":return Ww;case"warning":return Hw;case"error":return Zw;default:return null}},Vw=Array(12).fill(0),Bw=({visible:e})=>V.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},V.createElement("div",{className:"sonner-spinner"},Vw.map((t,n)=>V.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),Uw=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.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"})),Hw=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},V.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"})),Ww=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.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"})),Zw=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.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"})),qw=()=>{let[e,t]=V.useState(document.hidden);return V.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},la=1,Gw=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:la++,s=this.toasts.find(c=>c.id===o),i=e.dismissible===void 0?!0:e.dismissible;return s?this.toasts=this.toasts.map(c=>c.id===o?(this.publish({...c,...e,id:o,title:n}),{...c,...e,id:o,dismissible:i,title:n}):c):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0;return r.then(async s=>{if(Kw(s)&&!s.ok){o=!1;let i=typeof t.error=="function"?await t.error(`HTTP error! status: ${s.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${s.status}`):t.description;this.create({id:n,type:"error",message:i,description:c})}else if(t.success!==void 0){o=!1;let i=typeof t.success=="function"?await t.success(s):t.success,c=typeof t.description=="function"?await t.description(s):t.description;this.create({id:n,type:"success",message:i,description:c})}}).catch(async s=>{if(t.error!==void 0){o=!1;let i=typeof t.error=="function"?await t.error(s):t.error,c=typeof t.description=="function"?await t.description(s):t.description;this.create({id:n,type:"error",message:i,description:c})}}).finally(()=>{var s;o&&(this.dismiss(n),n=void 0),(s=t.finally)==null||s.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||la++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},dt=new Gw,Yw=(e,t)=>{let n=(t==null?void 0:t.id)||la++;return dt.addToast({title:e,...t,id:n}),n},Kw=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Jw=Yw,Xw=()=>dt.toasts,Jl=Object.assign(Jw,{success:dt.success,info:dt.info,warning:dt.warning,error:dt.error,custom:dt.custom,message:dt.message,promise:dt.promise,dismiss:dt.dismiss,loading:dt.loading},{getHistory:Xw});function Qw(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Qw(`:where(html[dir="ltr"]),:where([data-sonner-toaster][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%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][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%)}:where([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:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([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);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([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 #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([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)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([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;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left: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;background:var(--gray1);color:var(--gray12);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}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([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}:where([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}:where([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, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--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-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-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--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, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--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-rich-colors=true][data-sonner-toast][data-type=success],[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],[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],[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],[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:nth-child(1){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)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{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 ko(e){return e.label!==void 0}var ex=3,tx="32px",nx=4e3,rx=356,ox=14,sx=20,ix=200;function ax(...e){return e.filter(Boolean).join(" ")}var cx=e=>{var t,n,r,o,s,i,c,a,l,d;let{invert:f,toast:p,unstyled:h,interacting:g,setHeights:v,visibleToasts:y,heights:b,index:_,toasts:S,expanded:E,removeToast:T,defaultRichColors:I,closeButton:w,style:R,cancelButtonStyle:A,actionButtonStyle:O,className:L="",descriptionClassName:M="",duration:F,position:j,gap:Z,loadingIcon:H,expandByDefault:N,classNames:D,icons:C,closeButtonAriaLabel:W="Close toast",pauseWhenPageIsHidden:B,cn:U}=e,[$,ne]=V.useState(!1),[Se,oe]=V.useState(!1),[$e,Ne]=V.useState(!1),[st,it]=V.useState(!1),[yn,en]=V.useState(0),[kr,at]=V.useState(0),yt=V.useRef(null),At=V.useRef(null),Tr=_===0,Fn=_+1<=y,Ze=p.type,ce=p.dismissible!==!1,ct=p.className||"",ue=p.descriptionClassName||"",ze=V.useMemo(()=>b.findIndex(se=>se.toastId===p.id)||0,[b,p.id]),Xe=V.useMemo(()=>{var se;return(se=p.closeButton)!=null?se:w},[p.closeButton,w]),ge=V.useMemo(()=>p.duration||F||nx,[p.duration,F]),bn=V.useRef(0),Vn=V.useRef(0),hl=V.useRef(0),Bn=V.useRef(null),[ml,lv]=j.split("-"),gl=V.useMemo(()=>b.reduce((se,Te,we)=>we>=ze?se:se+Te.height,0),[b,ze]),vl=qw(),uv=p.invert||f,vi=Ze==="loading";Vn.current=V.useMemo(()=>ze*Z+gl,[ze,gl]),V.useEffect(()=>{ne(!0)},[]),V.useLayoutEffect(()=>{if(!$)return;let se=At.current,Te=se.style.height;se.style.height="auto";let we=se.getBoundingClientRect().height;se.style.height=Te,at(we),v(Ot=>Ot.find(Pt=>Pt.toastId===p.id)?Ot.map(Pt=>Pt.toastId===p.id?{...Pt,height:we}:Pt):[{toastId:p.id,height:we,position:p.position},...Ot])},[$,p.title,p.description,v,p.id]);let tn=V.useCallback(()=>{oe(!0),en(Vn.current),v(se=>se.filter(Te=>Te.toastId!==p.id)),setTimeout(()=>{T(p)},ix)},[p,T,v,Vn]);V.useEffect(()=>{if(p.promise&&Ze==="loading"||p.duration===1/0||p.type==="loading")return;let se,Te=ge;return E||g||B&&vl?(()=>{if(hl.current<bn.current){let we=new Date().getTime()-bn.current;Te=Te-we}hl.current=new Date().getTime()})():Te!==1/0&&(bn.current=new Date().getTime(),se=setTimeout(()=>{var we;(we=p.onAutoClose)==null||we.call(p,p),tn()},Te)),()=>clearTimeout(se)},[E,g,N,p,ge,tn,p.promise,Ze,B,vl]),V.useEffect(()=>{let se=At.current;if(se){let Te=se.getBoundingClientRect().height;return at(Te),v(we=>[{toastId:p.id,height:Te,position:p.position},...we]),()=>v(we=>we.filter(Ot=>Ot.toastId!==p.id))}},[v,p.id]),V.useEffect(()=>{p.delete&&tn()},[tn,p.delete]);function dv(){return C!=null&&C.loading?V.createElement("div",{className:"sonner-loader","data-visible":Ze==="loading"},C.loading):H?V.createElement("div",{className:"sonner-loader","data-visible":Ze==="loading"},H):V.createElement(Bw,{visible:Ze==="loading"})}return V.createElement("li",{"aria-live":p.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:At,className:U(L,ct,D==null?void 0:D.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,D==null?void 0:D.default,D==null?void 0:D[Ze],(n=p==null?void 0:p.classNames)==null?void 0:n[Ze]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:I,"data-styled":!(p.jsx||p.unstyled||h),"data-mounted":$,"data-promise":!!p.promise,"data-removed":Se,"data-visible":Fn,"data-y-position":ml,"data-x-position":lv,"data-index":_,"data-front":Tr,"data-swiping":$e,"data-dismissible":ce,"data-type":Ze,"data-invert":uv,"data-swipe-out":st,"data-expanded":!!(E||N&&$),style:{"--index":_,"--toasts-before":_,"--z-index":S.length-_,"--offset":`${Se?yn:Vn.current}px`,"--initial-height":N?"auto":`${kr}px`,...R,...p.style},onPointerDown:se=>{vi||!ce||(yt.current=new Date,en(Vn.current),se.target.setPointerCapture(se.pointerId),se.target.tagName!=="BUTTON"&&(Ne(!0),Bn.current={x:se.clientX,y:se.clientY}))},onPointerUp:()=>{var se,Te,we,Ot;if(st||!ce)return;Bn.current=null;let Pt=Number(((se=At.current)==null?void 0:se.style.getPropertyValue("--swipe-amount").replace("px",""))||0),yo=new Date().getTime()-((Te=yt.current)==null?void 0:Te.getTime()),fv=Math.abs(Pt)/yo;if(Math.abs(Pt)>=sx||fv>.11){en(Vn.current),(we=p.onDismiss)==null||we.call(p,p),tn(),it(!0);return}(Ot=At.current)==null||Ot.style.setProperty("--swipe-amount","0px"),Ne(!1)},onPointerMove:se=>{var Te;if(!Bn.current||!ce)return;let we=se.clientY-Bn.current.y,Ot=se.clientX-Bn.current.x,Pt=(ml==="top"?Math.min:Math.max)(0,we),yo=se.pointerType==="touch"?10:2;Math.abs(Pt)>yo?(Te=At.current)==null||Te.style.setProperty("--swipe-amount",`${we}px`):Math.abs(Ot)>yo&&(Bn.current=null)}},Xe&&!p.jsx?V.createElement("button",{"aria-label":W,"data-disabled":vi,"data-close-button":!0,onClick:vi||!ce?()=>{}:()=>{var se;tn(),(se=p.onDismiss)==null||se.call(p,p)},className:U(D==null?void 0:D.closeButton,(o=p==null?void 0:p.classNames)==null?void 0:o.closeButton)},V.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"},V.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),V.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,p.jsx||V.isValidElement(p.title)?p.jsx||p.title:V.createElement(V.Fragment,null,Ze||p.icon||p.promise?V.createElement("div",{"data-icon":"",className:U(D==null?void 0:D.icon,(s=p==null?void 0:p.classNames)==null?void 0:s.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||dv():null,p.type!=="loading"?p.icon||(C==null?void 0:C[Ze])||Fw(Ze):null):null,V.createElement("div",{"data-content":"",className:U(D==null?void 0:D.content,(i=p==null?void 0:p.classNames)==null?void 0:i.content)},V.createElement("div",{"data-title":"",className:U(D==null?void 0:D.title,(c=p==null?void 0:p.classNames)==null?void 0:c.title)},p.title),p.description?V.createElement("div",{"data-description":"",className:U(M,ue,D==null?void 0:D.description,(a=p==null?void 0:p.classNames)==null?void 0:a.description)},p.description):null),V.isValidElement(p.cancel)?p.cancel:p.cancel&&ko(p.cancel)?V.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||A,onClick:se=>{var Te,we;ko(p.cancel)&&ce&&((we=(Te=p.cancel).onClick)==null||we.call(Te,se),tn())},className:U(D==null?void 0:D.cancelButton,(l=p==null?void 0:p.classNames)==null?void 0:l.cancelButton)},p.cancel.label):null,V.isValidElement(p.action)?p.action:p.action&&ko(p.action)?V.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||O,onClick:se=>{var Te,we;ko(p.action)&&(se.defaultPrevented||((we=(Te=p.action).onClick)==null||we.call(Te,se),tn()))},className:U(D==null?void 0:D.actionButton,(d=p==null?void 0:p.classNames)==null?void 0:d.actionButton)},p.action.label):null))};function Xl(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var lx=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:o,closeButton:s,className:i,offset:c,theme:a="light",richColors:l,duration:d,style:f,visibleToasts:p=ex,toastOptions:h,dir:g=Xl(),gap:v=ox,loadingIcon:y,icons:b,containerAriaLabel:_="Notifications",pauseWhenPageIsHidden:S,cn:E=ax}=e,[T,I]=V.useState([]),w=V.useMemo(()=>Array.from(new Set([n].concat(T.filter(B=>B.position).map(B=>B.position)))),[T,n]),[R,A]=V.useState([]),[O,L]=V.useState(!1),[M,F]=V.useState(!1),[j,Z]=V.useState(a!=="system"?a:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=V.useRef(null),N=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),D=V.useRef(null),C=V.useRef(!1),W=V.useCallback(B=>{var U;(U=T.find($=>$.id===B.id))!=null&&U.delete||dt.dismiss(B.id),I($=>$.filter(({id:ne})=>ne!==B.id))},[T]);return V.useEffect(()=>dt.subscribe(B=>{if(B.dismiss){I(U=>U.map($=>$.id===B.id?{...$,delete:!0}:$));return}setTimeout(()=>{Ov.flushSync(()=>{I(U=>{let $=U.findIndex(ne=>ne.id===B.id);return $!==-1?[...U.slice(0,$),{...U[$],...B},...U.slice($+1)]:[B,...U]})})})}),[]),V.useEffect(()=>{if(a!=="system"){Z(a);return}a==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Z("dark"):Z("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:B})=>{Z(B?"dark":"light")})},[a]),V.useEffect(()=>{T.length<=1&&L(!1)},[T]),V.useEffect(()=>{let B=U=>{var $,ne;r.every(Se=>U[Se]||U.code===Se)&&(L(!0),($=H.current)==null||$.focus()),U.code==="Escape"&&(document.activeElement===H.current||(ne=H.current)!=null&&ne.contains(document.activeElement))&&L(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[r]),V.useEffect(()=>{if(H.current)return()=>{D.current&&(D.current.focus({preventScroll:!0}),D.current=null,C.current=!1)}},[H.current]),T.length?V.createElement("section",{"aria-label":`${_} ${N}`,tabIndex:-1},w.map((B,U)=>{var $;let[ne,Se]=B.split("-");return V.createElement("ol",{key:B,dir:g==="auto"?Xl():g,tabIndex:-1,ref:H,className:i,"data-sonner-toaster":!0,"data-theme":j,"data-y-position":ne,"data-x-position":Se,style:{"--front-toast-height":`${(($=R[0])==null?void 0:$.height)||0}px`,"--offset":typeof c=="number"?`${c}px`:c||tx,"--width":`${rx}px`,"--gap":`${v}px`,...f},onBlur:oe=>{C.current&&!oe.currentTarget.contains(oe.relatedTarget)&&(C.current=!1,D.current&&(D.current.focus({preventScroll:!0}),D.current=null))},onFocus:oe=>{oe.target instanceof HTMLElement&&oe.target.dataset.dismissible==="false"||C.current||(C.current=!0,D.current=oe.relatedTarget)},onMouseEnter:()=>L(!0),onMouseMove:()=>L(!0),onMouseLeave:()=>{M||L(!1)},onPointerDown:oe=>{oe.target instanceof HTMLElement&&oe.target.dataset.dismissible==="false"||F(!0)},onPointerUp:()=>F(!1)},T.filter(oe=>!oe.position&&U===0||oe.position===B).map((oe,$e)=>{var Ne,st;return V.createElement(cx,{key:oe.id,icons:b,index:$e,toast:oe,defaultRichColors:l,duration:(Ne=h==null?void 0:h.duration)!=null?Ne:d,className:h==null?void 0:h.className,descriptionClassName:h==null?void 0:h.descriptionClassName,invert:t,visibleToasts:p,closeButton:(st=h==null?void 0:h.closeButton)!=null?st:s,interacting:M,position:B,style:h==null?void 0:h.style,unstyled:h==null?void 0:h.unstyled,classNames:h==null?void 0:h.classNames,cancelButtonStyle:h==null?void 0:h.cancelButtonStyle,actionButtonStyle:h==null?void 0:h.actionButtonStyle,removeToast:W,toasts:T.filter(it=>it.position==oe.position),heights:R.filter(it=>it.position==oe.position),setHeights:A,expandByDefault:o,gap:v,loadingIcon:y,expanded:O,pauseWhenPageIsHidden:S,cn:E})}))})):null};const Ql={log:(...e)=>{},error:(...e)=>{console.error(...e)},warn:(...e)=>{console.warn(...e)},info:(...e)=>{},debug:(...e)=>{}},ac=()=>{const[e,t]=m.useState({}),[n,r]=m.useState(!0),o=async()=>{try{const{data:i,error:c}=await he.from("site_settings").select("key, value");if(c)throw c;const a=(i==null?void 0:i.reduce((l,d)=>{try{l[d.key]=typeof d.value=="string"?JSON.parse(d.value):d.value}catch{l[d.key]=d.value}return l},{}))||{};t(a)}catch(i){const c=(i==null?void 0:i.message)||"Unknown error",a=(i==null?void 0:i.code)||"N/A",l=c.includes("Failed to fetch")||c.includes("Load failed");Ql.error(`Error fetching site settings: ${c} (code: ${a})`),l||Jl.error("Failed to load settings")}finally{r(!1)}},s=async(i,c)=>{var a;try{const l=(a=(await he.auth.getUser()).data.user)==null?void 0:a.id,d=new Date().toISOString(),{data:f,error:p}=await he.from("site_settings").update({value:c,updated_at:d,updated_by:l}).eq("key",i).select();if(!p&&f&&f.length>0){t(h=>({...h,[i]:c}));return}if(!p&&(!f||f.length===0)){const{error:h}=await he.from("site_settings").insert({key:i,value:c,updated_at:d,updated_by:l});if(h)if(h.code==="23505"){const{error:g}=await he.from("site_settings").update({value:c,updated_at:d,updated_by:l}).eq("key",i);if(g)throw g}else throw h}else if(p)throw p;t(h=>({...h,[i]:c}))}catch(l){const d=(l==null?void 0:l.message)||"Unknown error",f=(l==null?void 0:l.code)||"N/A";throw Ql.error(`Error updating setting '${i}': ${d} (code: ${f})`),Jl.error("Failed to update setting"),l}};return m.useEffect(()=>{o()},[]),{settings:e,loading:n,updateSetting:s,refetch:o}},ux=()=>{var h,g,v;const{user:e,userRole:t}=Ln(),{data:n}=rp(e==null?void 0:e.id),{settings:r}=ac(),o=t==="admin",s=(n==null?void 0:n.email)==="gerhalligan@gmail.com",i=o||(r==null?void 0:r.interview_templates_enabled)!==!1,c=o||(r==null?void 0:r.ai_chat_enabled)===!0,a=o||(r==null?void 0:r.employer_privacy_settings_enabled)!==!1,l=o||(((h=r==null?void 0:r.beta_features)==null?void 0:h.reference_verification_enabled)??!1),d=o||(((g=r==null?void 0:r.beta_features)==null?void 0:g.pre_recorded_interviews_enabled)??!1),f=o||(r==null?void 0:r.show_beta_badges)===!0,p=o||((v=r==null?void 0:r.beta_features)==null?void 0:v.video_analysis_enabled)!==!1;return{isAdmin:o,canAccessBetaSettings:s,interviewTemplatesEnabled:i,aiChatEnabled:c,employerPrivacySettingsEnabled:a,referenceVerificationEnabled:l,verificationEnabled:l,preRecordedInterviewsEnabled:d,showBetaBadges:f,videoAnalysisEnabled:p}},dx=_v,I4=Sv,fx=wv,kp=m.forwardRef(({className:e,...t},n)=>u.jsx(bf,{ref:n,className:Be("fixed inset-0 z-40 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}));kp.displayName=bf.displayName;const Tp=m.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(fx,{children:[u.jsx(kp,{}),u.jsxs(_f,{ref:r,className:Be("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-4 sm:p-6 pt-6 sm:pt-8 shadow-lg opacity-100 duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,u.jsxs(bv,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background 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:[u.jsx(wp,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Tp.displayName=_f.displayName;const px=({className:e,...t})=>u.jsx("div",{className:Be("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});px.displayName="DialogHeader";const hx=({className:e,...t})=>u.jsx("div",{className:Be("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});hx.displayName="DialogFooter";const mx=m.forwardRef(({className:e,...t},n)=>u.jsx(Sf,{ref:n,className:Be("text-lg font-semibold leading-none tracking-tight",e),...t}));mx.displayName=Sf.displayName;const gx=m.forwardRef(({className:e,...t},n)=>u.jsx(wf,{ref:n,className:Be("text-sm text-muted-foreground",e),...t}));gx.displayName=wf.displayName;const vx="https://wqfvydcajnbtsqpjaikl.supabase.co/storage/v1/object/public/media-library/th_intro_video_home_page.mp4",yx="/images/hero-video-poster.png",bx=()=>{const[e,t]=m.useState(!1),n=m.useRef(null),r=()=>{t(!0)},o=s=>{t(s),!s&&n.current&&n.current.pause()};return m.useEffect(()=>{e&&n.current&&n.current.play().catch(()=>{})},[e]),u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"rounded-xl overflow-hidden shadow-2xl bg-gray-900",children:[u.jsxs("div",{className:"flex items-center gap-2 px-4 py-3 bg-gray-800 border-b border-gray-700",children:[u.jsxs("div",{className:"flex gap-1.5",children:[u.jsx("div",{className:"w-3 h-3 rounded-full bg-red-500"}),u.jsx("div",{className:"w-3 h-3 rounded-full bg-yellow-500"}),u.jsx("div",{className:"w-3 h-3 rounded-full bg-green-500"})]}),u.jsx("div",{className:"flex-1 mx-4",children:u.jsx("div",{className:"bg-gray-700 rounded-md px-3 py-1 text-xs text-gray-400 text-center",children:"talenthunter.app"})})]}),u.jsxs("div",{className:"relative cursor-pointer group",onClick:r,children:[u.jsx("img",{src:yx,alt:"AI Hiring Platform Demo",className:"w-full h-auto"}),u.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/30 group-hover:bg-black/40 transition-all",children:u.jsx("div",{className:"w-20 h-20 rounded-full bg-white/90 group-hover:bg-white flex items-center justify-center shadow-xl transition-all group-hover:scale-110",children:u.jsx(Iw,{className:"w-8 h-8 text-emerald-600 ml-1",fill:"currentColor"})})})]})]}),u.jsx(dx,{open:e,onOpenChange:o,children:u.jsx(Tp,{className:"max-w-5xl p-0 bg-black border-none [&>button]:text-white [&>button]:hover:bg-white/20",children:u.jsx("video",{ref:n,controls:!0,className:"w-full h-auto rounded-lg",onEnded:()=>t(!1),children:u.jsx("source",{src:vx,type:"video/mp4"})})})})]})};function Rn(e){"@babel/helpers - typeof";return Rn=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},Rn(e)}function _x(e,t){if(Rn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ip(e){var t=_x(e,"string");return Rn(t)=="symbol"?t:t+""}function Pr(e,t,n){return(t=Ip(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eu(Object(n),!0).forEach(function(r){Pr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sx(e){if(Array.isArray(e))return e}function wx(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,i,c=[],a=!0,l=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);a=!0);}catch(d){l=!0,o=d}finally{try{if(!a&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}function ua(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cp(e,t){if(e){if(typeof e=="string")return ua(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ua(e,t):void 0}}function xx(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bt(e,t){return Sx(e)||wx(e,t)||Cp(e,t)||xx()}function Qt(e,t){if(e==null)return{};var n,r,o=zv(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ex=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function kx(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,o=r===void 0?!1:r,s=e.defaultValue,i=s===void 0?null:s,c=e.inputValue,a=e.menuIsOpen,l=e.onChange,d=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,h=e.value,g=Qt(e,Ex),v=m.useState(c!==void 0?c:n),y=Bt(v,2),b=y[0],_=y[1],S=m.useState(a!==void 0?a:o),E=Bt(S,2),T=E[0],I=E[1],w=m.useState(h!==void 0?h:i),R=Bt(w,2),A=R[0],O=R[1],L=m.useCallback(function(D,C){typeof l=="function"&&l(D,C),O(D)},[l]),M=m.useCallback(function(D,C){var W;typeof d=="function"&&(W=d(D,C)),_(W!==void 0?W:D)},[d]),F=m.useCallback(function(){typeof p=="function"&&p(),I(!0)},[p]),j=m.useCallback(function(){typeof f=="function"&&f(),I(!1)},[f]),Z=c!==void 0?c:b,H=a!==void 0?a:T,N=h!==void 0?h:A;return K(K({},g),{},{inputValue:Z,menuIsOpen:H,onChange:L,onInputChange:M,onMenuClose:j,onMenuOpen:F,value:N})}function Tx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ip(r.key),r)}}function Ix(e,t,n){return t&&tu(e.prototype,t),n&&tu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cx(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fv(e,t)}function fs(e){return fs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fs(e)}function Rp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rp=function(){return!!e})()}function Rx(e,t){if(t&&(Rn(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vv(e)}function Ax(e){var t=Rp();return function(){var n,r=fs(e);if(t){var o=fs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rx(this,n)}}function Ox(e){if(Array.isArray(e))return ua(e)}function Px(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mx(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cc(e){return Ox(e)||Px(e)||Cp(e)||Mx()}var Lx=!1;function Nx(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function jx(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Dx=function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!Lx:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(jx(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Nx(o);try{s.insertRule(r,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),qe="-ms-",ps="-moz-",ve="-webkit-",Ap="comm",lc="rule",uc="decl",$x="@import",Op="@keyframes",zx="@layer",Fx=Math.abs,Bs=String.fromCharCode,Vx=Object.assign;function Bx(e,t){return We(e,0)^45?(((t<<2^We(e,0))<<2^We(e,1))<<2^We(e,2))<<2^We(e,3):0}function Pp(e){return e.trim()}function Ux(e,t){return(e=t.exec(e))?e[0]:e}function ye(e,t,n){return e.replace(t,n)}function da(e,t){return e.indexOf(t)}function We(e,t){return e.charCodeAt(t)|0}function Hr(e,t,n){return e.slice(t,n)}function Mt(e){return e.length}function dc(e){return e.length}function To(e,t){return t.push(e),e}function Hx(e,t){return e.map(t).join("")}var Us=1,rr=1,Mp=0,tt=0,De=0,mr="";function Hs(e,t,n,r,o,s,i){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Us,column:rr,length:i,return:""}}function Rr(e,t){return Vx(Hs("",null,null,"",null,null,0),e,{length:-e.length},t)}function Wx(){return De}function Zx(){return De=tt>0?We(mr,--tt):0,rr--,De===10&&(rr=1,Us--),De}function pt(){return De=tt<Mp?We(mr,tt++):0,rr++,De===10&&(rr=1,Us++),De}function Dt(){return We(mr,tt)}function Go(){return tt}function so(e,t){return Hr(mr,e,t)}function Wr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Lp(e){return Us=rr=1,Mp=Mt(mr=e),tt=0,[]}function Np(e){return mr="",e}function Yo(e){return Pp(so(tt-1,fa(e===91?e+2:e===40?e+1:e)))}function qx(e){for(;(De=Dt())&&De<33;)pt();return Wr(e)>2||Wr(De)>3?"":" "}function Gx(e,t){for(;--t&&pt()&&!(De<48||De>102||De>57&&De<65||De>70&&De<97););return so(e,Go()+(t<6&&Dt()==32&&pt()==32))}function fa(e){for(;pt();)switch(De){case e:return tt;case 34:case 39:e!==34&&e!==39&&fa(De);break;case 40:e===41&&fa(e);break;case 92:pt();break}return tt}function Yx(e,t){for(;pt()&&e+De!==57;)if(e+De===84&&Dt()===47)break;return"/*"+so(t,tt-1)+"*"+Bs(e===47?e:pt())}function Kx(e){for(;!Wr(Dt());)pt();return so(e,tt)}function Jx(e){return Np(Ko("",null,null,null,[""],e=Lp(e),0,[0],e))}function Ko(e,t,n,r,o,s,i,c,a){for(var l=0,d=0,f=i,p=0,h=0,g=0,v=1,y=1,b=1,_=0,S="",E=o,T=s,I=r,w=S;y;)switch(g=_,_=pt()){case 40:if(g!=108&&We(w,f-1)==58){da(w+=ye(Yo(_),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:w+=Yo(_);break;case 9:case 10:case 13:case 32:w+=qx(g);break;case 92:w+=Gx(Go()-1,7);continue;case 47:switch(Dt()){case 42:case 47:To(Xx(Yx(pt(),Go()),t,n),a);break;default:w+="/"}break;case 123*v:c[l++]=Mt(w)*b;case 125*v:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+d:b==-1&&(w=ye(w,/\f/g,"")),h>0&&Mt(w)-f&&To(h>32?ru(w+";",r,n,f-1):ru(ye(w," ","")+";",r,n,f-2),a);break;case 59:w+=";";default:if(To(I=nu(w,t,n,l,d,o,c,S,E=[],T=[],f),s),_===123)if(d===0)Ko(w,t,I,I,E,s,f,c,T);else switch(p===99&&We(w,3)===110?100:p){case 100:case 108:case 109:case 115:Ko(e,I,I,r&&To(nu(e,I,I,0,0,o,c,S,o,E=[],f),T),o,T,f,c,r?E:T);break;default:Ko(w,I,I,I,[""],T,0,c,T)}}l=d=h=0,v=b=1,S=w="",f=i;break;case 58:f=1+Mt(w),h=g;default:if(v<1){if(_==123)--v;else if(_==125&&v++==0&&Zx()==125)continue}switch(w+=Bs(_),_*v){case 38:b=d>0?1:(w+="\f",-1);break;case 44:c[l++]=(Mt(w)-1)*b,b=1;break;case 64:Dt()===45&&(w+=Yo(pt())),p=Dt(),d=f=Mt(S=w+=Kx(Go())),_++;break;case 45:g===45&&Mt(w)==2&&(v=0)}}return s}function nu(e,t,n,r,o,s,i,c,a,l,d){for(var f=o-1,p=o===0?s:[""],h=dc(p),g=0,v=0,y=0;g<r;++g)for(var b=0,_=Hr(e,f+1,f=Fx(v=i[g])),S=e;b<h;++b)(S=Pp(v>0?p[b]+" "+_:ye(_,/&\f/g,p[b])))&&(a[y++]=S);return Hs(e,t,n,o===0?lc:c,a,l,d)}function Xx(e,t,n){return Hs(e,t,n,Ap,Bs(Wx()),Hr(e,2,-2),0)}function ru(e,t,n,r){return Hs(e,t,n,uc,Hr(e,0,r),Hr(e,r+1,-1),r)}function tr(e,t){for(var n="",r=dc(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Qx(e,t,n,r){switch(e.type){case zx:if(e.children.length)break;case $x:case uc:return e.return=e.return||e.value;case Ap:return"";case Op:return e.return=e.value+"{"+tr(e.children,r)+"}";case lc:e.value=e.props.join(",")}return Mt(n=tr(e.children,r))?e.return=e.value+"{"+n+"}":""}function eE(e){var t=dc(e);return function(n,r,o,s){for(var i="",c=0;c<t;c++)i+=e[c](n,r,o,s)||"";return i}}function tE(e){return function(t){t.root||(t=t.return)&&e(t)}}function nE(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var rE=function(t,n,r){for(var o=0,s=0;o=s,s=Dt(),o===38&&s===12&&(n[r]=1),!Wr(s);)pt();return so(t,tt)},oE=function(t,n){var r=-1,o=44;do switch(Wr(o)){case 0:o===38&&Dt()===12&&(n[r]=1),t[r]+=rE(tt-1,n,r);break;case 2:t[r]+=Yo(o);break;case 4:if(o===44){t[++r]=Dt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Bs(o)}while(o=pt());return t},sE=function(t,n){return Np(oE(Lp(t),n))},ou=new WeakMap,iE=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!ou.get(r))&&!o){ou.set(t,!0);for(var s=[],i=sE(n,s),c=r.props,a=0,l=0;a<i.length;a++)for(var d=0;d<c.length;d++,l++)t.props[l]=s[a]?i[a].replace(/&\f/g,c[d]):c[d]+" "+i[a]}}},aE=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function jp(e,t){switch(Bx(e,t)){case 5103:return ve+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ve+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ve+e+ps+e+qe+e+e;case 6828:case 4268:return ve+e+qe+e+e;case 6165:return ve+e+qe+"flex-"+e+e;case 5187:return ve+e+ye(e,/(\w+).+(:[^]+)/,ve+"box-$1$2"+qe+"flex-$1$2")+e;case 5443:return ve+e+qe+"flex-item-"+ye(e,/flex-|-self/,"")+e;case 4675:return ve+e+qe+"flex-line-pack"+ye(e,/align-content|flex-|-self/,"")+e;case 5548:return ve+e+qe+ye(e,"shrink","negative")+e;case 5292:return ve+e+qe+ye(e,"basis","preferred-size")+e;case 6060:return ve+"box-"+ye(e,"-grow","")+ve+e+qe+ye(e,"grow","positive")+e;case 4554:return ve+ye(e,/([^-])(transform)/g,"$1"+ve+"$2")+e;case 6187:return ye(ye(ye(e,/(zoom-|grab)/,ve+"$1"),/(image-set)/,ve+"$1"),e,"")+e;case 5495:case 3959:return ye(e,/(image-set\([^]*)/,ve+"$1$`$1");case 4968:return ye(ye(e,/(.+:)(flex-)?(.*)/,ve+"box-pack:$3"+qe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ve+e+e;case 4095:case 3583:case 4068:case 2532:return ye(e,/(.+)-inline(.+)/,ve+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Mt(e)-1-t>6)switch(We(e,t+1)){case 109:if(We(e,t+4)!==45)break;case 102:return ye(e,/(.+:)(.+)-([^]+)/,"$1"+ve+"$2-$3$1"+ps+(We(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~da(e,"stretch")?jp(ye(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(We(e,t+1)!==115)break;case 6444:switch(We(e,Mt(e)-3-(~da(e,"!important")&&10))){case 107:return ye(e,":",":"+ve)+e;case 101:return ye(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ve+(We(e,14)===45?"inline-":"")+"box$3$1"+ve+"$2$3$1"+qe+"$2box$3")+e}break;case 5936:switch(We(e,t+11)){case 114:return ve+e+qe+ye(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ve+e+qe+ye(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ve+e+qe+ye(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ve+e+qe+e+e}return e}var cE=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case uc:t.return=jp(t.value,t.length);break;case Op:return tr([Rr(t,{value:ye(t.value,"@","@"+ve)})],o);case lc:if(t.length)return Hx(t.props,function(s){switch(Ux(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return tr([Rr(t,{props:[ye(s,/:(read-\w+)/,":"+ps+"$1")]})],o);case"::placeholder":return tr([Rr(t,{props:[ye(s,/:(plac\w+)/,":"+ve+"input-$1")]}),Rr(t,{props:[ye(s,/:(plac\w+)/,":"+ps+"$1")]}),Rr(t,{props:[ye(s,/:(plac\w+)/,qe+"input-$1")]})],o)}return""})}},lE=[cE],uE=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var y=v.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||lE,s={},i,c=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var y=v.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)s[y[b]]=!0;c.push(v)});var a,l=[iE,aE];{var d,f=[Qx,tE(function(v){d.insert(v)})],p=eE(l.concat(o,f)),h=function(y){return tr(Jx(y),p)};a=function(y,b,_,S){d=_,h(y?y+"{"+b.styles+"}":b.styles),S&&(g.inserted[b.name]=!0)}}var g={key:n,sheet:new Dx({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:a};return g.sheet.hydrate(c),g},Dp={exports:{}},_e={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var He=typeof Symbol=="function"&&Symbol.for,fc=He?Symbol.for("react.element"):60103,pc=He?Symbol.for("react.portal"):60106,Ws=He?Symbol.for("react.fragment"):60107,Zs=He?Symbol.for("react.strict_mode"):60108,qs=He?Symbol.for("react.profiler"):60114,Gs=He?Symbol.for("react.provider"):60109,Ys=He?Symbol.for("react.context"):60110,hc=He?Symbol.for("react.async_mode"):60111,Ks=He?Symbol.for("react.concurrent_mode"):60111,Js=He?Symbol.for("react.forward_ref"):60112,Xs=He?Symbol.for("react.suspense"):60113,dE=He?Symbol.for("react.suspense_list"):60120,Qs=He?Symbol.for("react.memo"):60115,ei=He?Symbol.for("react.lazy"):60116,fE=He?Symbol.for("react.block"):60121,pE=He?Symbol.for("react.fundamental"):60117,hE=He?Symbol.for("react.responder"):60118,mE=He?Symbol.for("react.scope"):60119;function vt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case fc:switch(e=e.type,e){case hc:case Ks:case Ws:case qs:case Zs:case Xs:return e;default:switch(e=e&&e.$$typeof,e){case Ys:case Js:case ei:case Qs:case Gs:return e;default:return t}}case pc:return t}}}function $p(e){return vt(e)===Ks}_e.AsyncMode=hc;_e.ConcurrentMode=Ks;_e.ContextConsumer=Ys;_e.ContextProvider=Gs;_e.Element=fc;_e.ForwardRef=Js;_e.Fragment=Ws;_e.Lazy=ei;_e.Memo=Qs;_e.Portal=pc;_e.Profiler=qs;_e.StrictMode=Zs;_e.Suspense=Xs;_e.isAsyncMode=function(e){return $p(e)||vt(e)===hc};_e.isConcurrentMode=$p;_e.isContextConsumer=function(e){return vt(e)===Ys};_e.isContextProvider=function(e){return vt(e)===Gs};_e.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===fc};_e.isForwardRef=function(e){return vt(e)===Js};_e.isFragment=function(e){return vt(e)===Ws};_e.isLazy=function(e){return vt(e)===ei};_e.isMemo=function(e){return vt(e)===Qs};_e.isPortal=function(e){return vt(e)===pc};_e.isProfiler=function(e){return vt(e)===qs};_e.isStrictMode=function(e){return vt(e)===Zs};_e.isSuspense=function(e){return vt(e)===Xs};_e.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ws||e===Ks||e===qs||e===Zs||e===Xs||e===dE||typeof e=="object"&&e!==null&&(e.$$typeof===ei||e.$$typeof===Qs||e.$$typeof===Gs||e.$$typeof===Ys||e.$$typeof===Js||e.$$typeof===pE||e.$$typeof===hE||e.$$typeof===mE||e.$$typeof===fE)};_e.typeOf=vt;Dp.exports=_e;var gE=Dp.exports,zp=gE,vE={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},yE={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Fp={};Fp[zp.ForwardRef]=vE;Fp[zp.Memo]=yE;var bE=!0;function _E(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Vp=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||bE===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},SE=function(t,n,r){Vp(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function wE(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var xE={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},EE=!1,kE=/[A-Z]|^ms/g,TE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Bp=function(t){return t.charCodeAt(1)===45},su=function(t){return t!=null&&typeof t!="boolean"},Ei=nE(function(e){return Bp(e)?e:e.replace(kE,"-$&").toLowerCase()}),iu=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(TE,function(r,o,s){return Lt={name:o,styles:s,next:Lt},o})}return xE[t]!==1&&!Bp(t)&&typeof n=="number"&&n!==0?n+"px":n},IE="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Zr(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Lt={name:o.name,styles:o.styles,next:Lt},o.name;var s=n;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)Lt={name:i.name,styles:i.styles,next:Lt},i=i.next;var c=s.styles+";";return c}return CE(e,t,n)}case"function":{if(e!==void 0){var a=Lt,l=n(e);return Lt=a,Zr(e,t,l)}break}}var d=n;return d}function CE(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Zr(e,t,n[o])+";";else for(var s in n){var i=n[s];if(typeof i!="object"){var c=i;su(c)&&(r+=Ei(s)+":"+iu(s,c)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&EE)throw new Error(IE);if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var a=0;a<i.length;a++)su(i[a])&&(r+=Ei(s)+":"+iu(s,i[a])+";");else{var l=Zr(e,t,i);switch(s){case"animation":case"animationName":{r+=Ei(s)+":"+l+";";break}default:r+=s+"{"+l+"}"}}}}return r}var au=/label:\s*([^\s;{]+)\s*(;|$)/g,Lt;function Up(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Lt=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=Zr(n,t,s);else{var i=s;o+=i[0]}for(var c=1;c<e.length;c++)if(o+=Zr(n,t,e[c]),r){var a=s;o+=a[c]}au.lastIndex=0;for(var l="",d;(d=au.exec(o))!==null;)l+="-"+d[1];var f=wE(o)+l;return{name:f,styles:o,next:Lt}}var RE=function(t){return t()},AE=yl.useInsertionEffect?yl.useInsertionEffect:!1,OE=AE||RE,PE=!1,Hp=m.createContext(typeof HTMLElement<"u"?uE({key:"css"}):null);Hp.Provider;var ME=function(t){return m.forwardRef(function(n,r){var o=m.useContext(Hp);return t(n,o,r)})},LE=m.createContext({}),mc={}.hasOwnProperty,pa="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",NE=function(t,n){var r={};for(var o in n)mc.call(n,o)&&(r[o]=n[o]);return r[pa]=t,r},jE=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Vp(n,r,o),OE(function(){return SE(n,r,o)}),null},DE=ME(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[pa],s=[r],i="";typeof e.className=="string"?i=_E(t.registered,s,e.className):e.className!=null&&(i=e.className+" ");var c=Up(s,void 0,m.useContext(LE));i+=t.key+"-"+c.name;var a={};for(var l in e)mc.call(e,l)&&l!=="css"&&l!==pa&&!PE&&(a[l]=e[l]);return a.className=i,n&&(a.ref=n),m.createElement(m.Fragment,null,m.createElement(jE,{cache:t,serialized:c,isStringTag:typeof o=="string"}),m.createElement(o,a))}),$E=DE,Y=function(t,n){var r=arguments;if(n==null||!mc.call(n,"css"))return m.createElement.apply(void 0,r);var o=r.length,s=new Array(o);s[0]=$E,s[1]=NE(t,n);for(var i=2;i<o;i++)s[i]=r[i];return m.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Y||(Y={}));function gc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Up(t)}function zE(){var e=gc.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function FE(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ha=m.useLayoutEffect,VE=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],hs=function(){};function BE(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function UE(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var s=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&s.push("".concat(BE(e,i)));return s.filter(function(c){return c}).map(function(c){return String(c).trim()}).join(" ")}var cu=function(t){return XE(t)?t.filter(Boolean):Rn(t)==="object"&&t!==null?[t]:[]},Wp=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=Qt(t,VE);return K({},n)},Me=function(t,n,r){var o=t.cx,s=t.getStyles,i=t.getClassNames,c=t.className;return{css:s(n,t),className:o(r??{},i(n,t),c)}};function ti(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function HE(e){return ti(e)?window.innerHeight:e.clientHeight}function Zp(e){return ti(e)?window.pageYOffset:e.scrollTop}function ms(e,t){if(ti(e)){window.scrollTo(0,t);return}e.scrollTop=t}function WE(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function ZE(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Io(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:hs,o=Zp(e),s=t-o,i=10,c=0;function a(){c+=i;var l=ZE(c,o,s,n);ms(e,l),c<n?window.requestAnimationFrame(a):r(e)}a()}function lu(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?ms(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&ms(e,Math.max(t.offsetTop-o,0))}function qE(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function uu(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function GE(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var qp=!1,YE={get passive(){return qp=!0}},Co=typeof window<"u"?window:{};Co.addEventListener&&Co.removeEventListener&&(Co.addEventListener("p",hs,YE),Co.removeEventListener("p",hs,!1));var KE=qp;function JE(e){return e!=null}function XE(e){return Array.isArray(e)}function Ro(e,t,n){return e?t:n}var QE=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var s=Object.entries(t).filter(function(i){var c=Bt(i,1),a=c[0];return!r.includes(a)});return s.reduce(function(i,c){var a=Bt(c,2),l=a[0],d=a[1];return i[l]=d,i},{})},e1=["children","innerProps"],t1=["children","innerProps"];function n1(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,s=e.shouldScroll,i=e.isFixedPosition,c=e.controlHeight,a=WE(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var d=a.getBoundingClientRect(),f=d.height,p=n.getBoundingClientRect(),h=p.bottom,g=p.height,v=p.top,y=n.offsetParent.getBoundingClientRect(),b=y.top,_=i?window.innerHeight:HE(a),S=Zp(a),E=parseInt(getComputedStyle(n).marginBottom,10),T=parseInt(getComputedStyle(n).marginTop,10),I=b-T,w=_-v,R=I+S,A=f-S-v,O=h-_+S+E,L=S+v-T,M=160;switch(o){case"auto":case"bottom":if(w>=g)return{placement:"bottom",maxHeight:t};if(A>=g&&!i)return s&&Io(a,O,M),{placement:"bottom",maxHeight:t};if(!i&&A>=r||i&&w>=r){s&&Io(a,O,M);var F=i?w-E:A-E;return{placement:"bottom",maxHeight:F}}if(o==="auto"||i){var j=t,Z=i?I:R;return Z>=r&&(j=Math.min(Z-E-c,t)),{placement:"top",maxHeight:j}}if(o==="bottom")return s&&ms(a,O),{placement:"bottom",maxHeight:t};break;case"top":if(I>=g)return{placement:"top",maxHeight:t};if(R>=g&&!i)return s&&Io(a,L,M),{placement:"top",maxHeight:t};if(!i&&R>=r||i&&I>=r){var H=t;return(!i&&R>=r||i&&I>=r)&&(H=i?I-T:R-T),s&&Io(a,L,M),{placement:"top",maxHeight:H}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}function r1(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Gp=function(t){return t==="auto"?"bottom":t},o1=function(t,n){var r,o=t.placement,s=t.theme,i=s.borderRadius,c=s.spacing,a=s.colors;return K((r={label:"menu"},Pr(r,r1(o),"100%"),Pr(r,"position","absolute"),Pr(r,"width","100%"),Pr(r,"zIndex",1),r),n?{}:{backgroundColor:a.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:c.menuGutter,marginTop:c.menuGutter})},Yp=m.createContext(null),s1=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,s=t.menuPlacement,i=t.menuPosition,c=t.menuShouldScrollIntoView,a=t.theme,l=m.useContext(Yp)||{},d=l.setPortalPlacement,f=m.useRef(null),p=m.useState(o),h=Bt(p,2),g=h[0],v=h[1],y=m.useState(null),b=Bt(y,2),_=b[0],S=b[1],E=a.spacing.controlHeight;return ha(function(){var T=f.current;if(T){var I=i==="fixed",w=c&&!I,R=n1({maxHeight:o,menuEl:T,minHeight:r,placement:s,shouldScroll:w,isFixedPosition:I,controlHeight:E});v(R.maxHeight),S(R.placement),d==null||d(R.placement)}},[o,s,i,c,r,d,E]),n({ref:f,placerProps:K(K({},t),{},{placement:_||Gp(s),maxHeight:g})})},i1=function(t){var n=t.children,r=t.innerRef,o=t.innerProps;return Y("div",J({},Me(t,"menu",{menu:!0}),{ref:r},o),n)},a1=i1,c1=function(t,n){var r=t.maxHeight,o=t.theme.spacing.baseUnit;return K({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},l1=function(t){var n=t.children,r=t.innerProps,o=t.innerRef,s=t.isMulti;return Y("div",J({},Me(t,"menuList",{"menu-list":!0,"menu-list--is-multi":s}),{ref:o},r),n)},Kp=function(t,n){var r=t.theme,o=r.spacing.baseUnit,s=r.colors;return K({textAlign:"center"},n?{}:{color:s.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},u1=Kp,d1=Kp,f1=function(t){var n=t.children,r=n===void 0?"No options":n,o=t.innerProps,s=Qt(t,e1);return Y("div",J({},Me(K(K({},s),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},p1=function(t){var n=t.children,r=n===void 0?"Loading...":n,o=t.innerProps,s=Qt(t,t1);return Y("div",J({},Me(K(K({},s),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},h1=function(t){var n=t.rect,r=t.offset,o=t.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},m1=function(t){var n=t.appendTo,r=t.children,o=t.controlElement,s=t.innerProps,i=t.menuPlacement,c=t.menuPosition,a=m.useRef(null),l=m.useRef(null),d=m.useState(Gp(i)),f=Bt(d,2),p=f[0],h=f[1],g=m.useMemo(function(){return{setPortalPlacement:h}},[]),v=m.useState(null),y=Bt(v,2),b=y[0],_=y[1],S=m.useCallback(function(){if(o){var w=qE(o),R=c==="fixed"?0:window.pageYOffset,A=w[p]+R;(A!==(b==null?void 0:b.offset)||w.left!==(b==null?void 0:b.rect.left)||w.width!==(b==null?void 0:b.rect.width))&&_({offset:A,rect:w})}},[o,c,p,b==null?void 0:b.offset,b==null?void 0:b.rect.left,b==null?void 0:b.rect.width]);ha(function(){S()},[S]);var E=m.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),o&&a.current&&(l.current=xv(o,a.current,S,{elementResize:"ResizeObserver"in window}))},[o,S]);ha(function(){E()},[E]);var T=m.useCallback(function(w){a.current=w,E()},[E]);if(!n&&c!=="fixed"||!b)return null;var I=Y("div",J({ref:T},Me(K(K({},t),{},{offset:b.offset,position:c,rect:b.rect}),"menuPortal",{"menu-portal":!0}),s),r);return Y(Yp.Provider,{value:g},n?Ya.createPortal(I,n):I)},g1=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},v1=function(t){var n=t.children,r=t.innerProps,o=t.isDisabled,s=t.isRtl;return Y("div",J({},Me(t,"container",{"--is-disabled":o,"--is-rtl":s}),r),n)},y1=function(t,n){var r=t.theme.spacing,o=t.isMulti,s=t.hasValue,i=t.selectProps.controlShouldRenderValue;return K({alignItems:"center",display:o&&s&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},b1=function(t){var n=t.children,r=t.innerProps,o=t.isMulti,s=t.hasValue;return Y("div",J({},Me(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":s}),r),n)},_1=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},S1=function(t){var n=t.children,r=t.innerProps;return Y("div",J({},Me(t,"indicatorsContainer",{indicators:!0}),r),n)},du,w1=["size"],x1=["innerProps","isRtl","size"],E1={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Jp=function(t){var n=t.size,r=Qt(t,w1);return Y("svg",J({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:E1},r))},vc=function(t){return Y(Jp,J({size:20},t),Y("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Xp=function(t){return Y(Jp,J({size:20},t),Y("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Qp=function(t,n){var r=t.isFocused,o=t.theme,s=o.spacing.baseUnit,i=o.colors;return K({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?i.neutral60:i.neutral20,padding:s*2,":hover":{color:r?i.neutral80:i.neutral40}})},k1=Qp,T1=function(t){var n=t.children,r=t.innerProps;return Y("div",J({},Me(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||Y(Xp,null))},I1=Qp,C1=function(t){var n=t.children,r=t.innerProps;return Y("div",J({},Me(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||Y(vc,null))},R1=function(t,n){var r=t.isDisabled,o=t.theme,s=o.spacing.baseUnit,i=o.colors;return K({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?i.neutral10:i.neutral20,marginBottom:s*2,marginTop:s*2})},A1=function(t){var n=t.innerProps;return Y("span",J({},n,Me(t,"indicatorSeparator",{"indicator-separator":!0})))},O1=zE(du||(du=FE([`
0%, 80%, 100% { opacity: 0; }
40% { opacity: 1; }
`]))),P1=function(t,n){var r=t.isFocused,o=t.size,s=t.theme,i=s.colors,c=s.spacing.baseUnit;return K({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?i.neutral60:i.neutral20,padding:c*2})},ki=function(t){var n=t.delay,r=t.offset;return Y("span",{css:gc({animation:"".concat(O1," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},M1=function(t){var n=t.innerProps,r=t.isRtl,o=t.size,s=o===void 0?4:o,i=Qt(t,x1);return Y("div",J({},Me(K(K({},i),{},{innerProps:n,isRtl:r,size:s}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),Y(ki,{delay:0,offset:r}),Y(ki,{delay:160,offset:!0}),Y(ki,{delay:320,offset:!r}))},L1=function(t,n){var r=t.isDisabled,o=t.isFocused,s=t.theme,i=s.colors,c=s.borderRadius,a=s.spacing;return K({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?i.neutral5:i.neutral0,borderColor:r?i.neutral10:o?i.primary:i.neutral20,borderRadius:c,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:o?i.primary:i.neutral30}})},N1=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,s=t.innerRef,i=t.innerProps,c=t.menuIsOpen;return Y("div",J({ref:s},Me(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":c}),i,{"aria-disabled":r||void 0}),n)},j1=N1,D1=["data"],$1=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},z1=function(t){var n=t.children,r=t.cx,o=t.getStyles,s=t.getClassNames,i=t.Heading,c=t.headingProps,a=t.innerProps,l=t.label,d=t.theme,f=t.selectProps;return Y("div",J({},Me(t,"group",{group:!0}),a),Y(i,J({},c,{selectProps:f,theme:d,getStyles:o,getClassNames:s,cx:r}),l),Y("div",null,n))},F1=function(t,n){var r=t.theme,o=r.colors,s=r.spacing;return K({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:s.baseUnit*3,paddingRight:s.baseUnit*3,textTransform:"uppercase"})},V1=function(t){var n=Wp(t);n.data;var r=Qt(n,D1);return Y("div",J({},Me(t,"groupHeading",{"group-heading":!0}),r))},B1=z1,U1=["innerRef","isDisabled","isHidden","inputClassName"],H1=function(t,n){var r=t.isDisabled,o=t.value,s=t.theme,i=s.spacing,c=s.colors;return K(K({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},W1),n?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:c.neutral80})},eh={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},W1={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":K({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},eh)},Z1=function(t){return K({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},eh)},q1=function(t){var n=t.cx,r=t.value,o=Wp(t),s=o.innerRef,i=o.isDisabled,c=o.isHidden,a=o.inputClassName,l=Qt(o,U1);return Y("div",J({},Me(t,"input",{"input-container":!0}),{"data-value":r||""}),Y("input",J({className:n({input:!0},a),ref:s,style:Z1(c),disabled:i},l)))},G1=q1,Y1=function(t,n){var r=t.theme,o=r.spacing,s=r.borderRadius,i=r.colors;return K({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:i.neutral10,borderRadius:s/2,margin:o.baseUnit/2})},K1=function(t,n){var r=t.theme,o=r.borderRadius,s=r.colors,i=t.cropWithEllipsis;return K({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:s.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},J1=function(t,n){var r=t.theme,o=r.spacing,s=r.borderRadius,i=r.colors,c=t.isFocused;return K({alignItems:"center",display:"flex"},n?{}:{borderRadius:s/2,backgroundColor:c?i.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},th=function(t){var n=t.children,r=t.innerProps;return Y("div",r,n)},X1=th,Q1=th;function ek(e){var t=e.children,n=e.innerProps;return Y("div",J({role:"button"},n),t||Y(vc,{size:14}))}var tk=function(t){var n=t.children,r=t.components,o=t.data,s=t.innerProps,i=t.isDisabled,c=t.removeProps,a=t.selectProps,l=r.Container,d=r.Label,f=r.Remove;return Y(l,{data:o,innerProps:K(K({},Me(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),s),selectProps:a},Y(d,{data:o,innerProps:K({},Me(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},n),Y(f,{data:o,innerProps:K(K({},Me(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},c),selectProps:a}))},nk=tk,rk=function(t,n){var r=t.isDisabled,o=t.isFocused,s=t.isSelected,i=t.theme,c=i.spacing,a=i.colors;return K({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:s?a.primary:o?a.primary25:"transparent",color:r?a.neutral20:s?a.neutral0:"inherit",padding:"".concat(c.baseUnit*2,"px ").concat(c.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:s?a.primary:a.primary50}})},ok=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,s=t.isSelected,i=t.innerRef,c=t.innerProps;return Y("div",J({},Me(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":s}),{ref:i,"aria-disabled":r},c),n)},sk=ok,ik=function(t,n){var r=t.theme,o=r.spacing,s=r.colors;return K({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:s.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},ak=function(t){var n=t.children,r=t.innerProps;return Y("div",J({},Me(t,"placeholder",{placeholder:!0}),r),n)},ck=ak,lk=function(t,n){var r=t.isDisabled,o=t.theme,s=o.spacing,i=o.colors;return K({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?i.neutral40:i.neutral80,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},uk=function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return Y("div",J({},Me(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},dk=uk,fk={ClearIndicator:C1,Control:j1,DropdownIndicator:T1,DownChevron:Xp,CrossIcon:vc,Group:B1,GroupHeading:V1,IndicatorsContainer:S1,IndicatorSeparator:A1,Input:G1,LoadingIndicator:M1,Menu:a1,MenuList:l1,MenuPortal:m1,LoadingMessage:p1,NoOptionsMessage:f1,MultiValue:nk,MultiValueContainer:X1,MultiValueLabel:Q1,MultiValueRemove:ek,Option:sk,Placeholder:ck,SelectContainer:v1,SingleValue:dk,ValueContainer:b1},pk=function(t){return K(K({},fk),t.components)},fu=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function hk(e,t){return!!(e===t||fu(e)&&fu(t))}function mk(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!hk(e[n],t[n]))return!1;return!0}function gk(e,t){t===void 0&&(t=mk);var n=null;function r(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return r.clear=function(){n=null},r}var vk={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},yk=function(t){return Y("span",J({css:vk},t))},pu=yk,bk={guidance:function(t){var n=t.isSearchable,r=t.isMulti,o=t.tabSelectsValue,s=t.context,i=t.isInitialFocus;switch(s){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,o=r===void 0?"":r,s=t.labels,i=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(s.length>1?"s":""," ").concat(s.join(","),", selected.");case"select-option":return i?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,o=t.options,s=t.label,i=s===void 0?"":s,c=t.selectValue,a=t.isDisabled,l=t.isSelected,d=t.isAppleDevice,f=function(v,y){return v&&v.length?"".concat(v.indexOf(y)+1," of ").concat(v.length):""};if(n==="value"&&c)return"value ".concat(i," focused, ").concat(f(c,r),".");if(n==="menu"&&d){var p=a?" disabled":"",h="".concat(l?" selected":"").concat(p);return"".concat(i).concat(h,", ").concat(f(o,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},_k=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,s=t.focusableOptions,i=t.isFocused,c=t.selectValue,a=t.selectProps,l=t.id,d=t.isAppleDevice,f=a.ariaLiveMessages,p=a.getOptionLabel,h=a.inputValue,g=a.isMulti,v=a.isOptionDisabled,y=a.isSearchable,b=a.menuIsOpen,_=a.options,S=a.screenReaderStatus,E=a.tabSelectsValue,T=a.isLoading,I=a["aria-label"],w=a["aria-live"],R=m.useMemo(function(){return K(K({},bk),f||{})},[f]),A=m.useMemo(function(){var Z="";if(n&&R.onChange){var H=n.option,N=n.options,D=n.removedValue,C=n.removedValues,W=n.value,B=function(Ne){return Array.isArray(Ne)?null:Ne},U=D||H||B(W),$=U?p(U):"",ne=N||C||void 0,Se=ne?ne.map(p):[],oe=K({isDisabled:U&&v(U,c),label:$,labels:Se},n);Z=R.onChange(oe)}return Z},[n,R,v,c,p]),O=m.useMemo(function(){var Z="",H=r||o,N=!!(r&&c&&c.includes(r));if(H&&R.onFocus){var D={focused:H,label:p(H),isDisabled:v(H,c),isSelected:N,options:s,context:H===r?"menu":"value",selectValue:c,isAppleDevice:d};Z=R.onFocus(D)}return Z},[r,o,p,v,R,s,c,d]),L=m.useMemo(function(){var Z="";if(b&&_.length&&!T&&R.onFilter){var H=S({count:s.length});Z=R.onFilter({inputValue:h,resultsMessage:H})}return Z},[s,h,b,R,_,S,T]),M=(n==null?void 0:n.action)==="initial-input-focus",F=m.useMemo(function(){var Z="";if(R.guidance){var H=o?"value":b?"menu":"input";Z=R.guidance({"aria-label":I,context:H,isDisabled:r&&v(r,c),isMulti:g,isSearchable:y,tabSelectsValue:E,isInitialFocus:M})}return Z},[I,r,o,g,v,y,b,R,c,E,M]),j=Y(m.Fragment,null,Y("span",{id:"aria-selection"},A),Y("span",{id:"aria-focused"},O),Y("span",{id:"aria-results"},L),Y("span",{id:"aria-guidance"},F));return Y(m.Fragment,null,Y(pu,{id:l},M&&j),Y(pu,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!M&&j))},Sk=_k,ma=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],wk=new RegExp("["+ma.map(function(e){return e.letters}).join("")+"]","g"),nh={};for(var Ti=0;Ti<ma.length;Ti++)for(var Ii=ma[Ti],Ci=0;Ci<Ii.letters.length;Ci++)nh[Ii.letters[Ci]]=Ii.base;var rh=function(t){return t.replace(wk,function(n){return nh[n]})},xk=gk(rh),hu=function(t){return t.replace(/^\s+|\s+$/g,"")},Ek=function(t){return"".concat(t.label," ").concat(t.value)},kk=function(t){return function(n,r){if(n.data.__isNew__)return!0;var o=K({ignoreCase:!0,ignoreAccents:!0,stringify:Ek,trim:!0,matchFrom:"any"},t),s=o.ignoreCase,i=o.ignoreAccents,c=o.stringify,a=o.trim,l=o.matchFrom,d=a?hu(r):r,f=a?hu(c(n)):c(n);return s&&(d=d.toLowerCase(),f=f.toLowerCase()),i&&(d=xk(d),f=rh(f)),l==="start"?f.substr(0,d.length)===d:f.indexOf(d)>-1}},Tk=["innerRef"];function Ik(e){var t=e.innerRef,n=Qt(e,Tk),r=QE(n,"onExited","in","enter","exit","appear");return Y("input",J({ref:t},r,{css:gc({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Ck=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function Rk(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,s=e.onTopLeave,i=m.useRef(!1),c=m.useRef(!1),a=m.useRef(0),l=m.useRef(null),d=m.useCallback(function(y,b){if(l.current!==null){var _=l.current,S=_.scrollTop,E=_.scrollHeight,T=_.clientHeight,I=l.current,w=b>0,R=E-T-S,A=!1;R>b&&i.current&&(r&&r(y),i.current=!1),w&&c.current&&(s&&s(y),c.current=!1),w&&b>R?(n&&!i.current&&n(y),I.scrollTop=E,A=!0,i.current=!0):!w&&-b>S&&(o&&!c.current&&o(y),I.scrollTop=0,A=!0,c.current=!0),A&&Ck(y)}},[n,r,o,s]),f=m.useCallback(function(y){d(y,y.deltaY)},[d]),p=m.useCallback(function(y){a.current=y.changedTouches[0].clientY},[]),h=m.useCallback(function(y){var b=a.current-y.changedTouches[0].clientY;d(y,b)},[d]),g=m.useCallback(function(y){if(y){var b=KE?{passive:!1}:!1;y.addEventListener("wheel",f,b),y.addEventListener("touchstart",p,b),y.addEventListener("touchmove",h,b)}},[h,p,f]),v=m.useCallback(function(y){y&&(y.removeEventListener("wheel",f,!1),y.removeEventListener("touchstart",p,!1),y.removeEventListener("touchmove",h,!1))},[h,p,f]);return m.useEffect(function(){if(t){var y=l.current;return g(y),function(){v(y)}}},[t,g,v]),function(y){l.current=y}}var mu=["boxSizing","height","overflow","paddingRight","position"],gu={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function vu(e){e.cancelable&&e.preventDefault()}function yu(e){e.stopPropagation()}function bu(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function _u(){return"ontouchstart"in window||navigator.maxTouchPoints}var Su=!!(typeof window<"u"&&window.document&&window.document.createElement),Ar=0,Un={capture:!1,passive:!1};function Ak(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,o=m.useRef({}),s=m.useRef(null),i=m.useCallback(function(a){if(Su){var l=document.body,d=l&&l.style;if(r&&mu.forEach(function(g){var v=d&&d[g];o.current[g]=v}),r&&Ar<1){var f=parseInt(o.current.paddingRight,10)||0,p=document.body?document.body.clientWidth:0,h=window.innerWidth-p+f||0;Object.keys(gu).forEach(function(g){var v=gu[g];d&&(d[g]=v)}),d&&(d.paddingRight="".concat(h,"px"))}l&&_u()&&(l.addEventListener("touchmove",vu,Un),a&&(a.addEventListener("touchstart",bu,Un),a.addEventListener("touchmove",yu,Un))),Ar+=1}},[r]),c=m.useCallback(function(a){if(Su){var l=document.body,d=l&&l.style;Ar=Math.max(Ar-1,0),r&&Ar<1&&mu.forEach(function(f){var p=o.current[f];d&&(d[f]=p)}),l&&_u()&&(l.removeEventListener("touchmove",vu,Un),a&&(a.removeEventListener("touchstart",bu,Un),a.removeEventListener("touchmove",yu,Un)))}},[r]);return m.useEffect(function(){if(t){var a=s.current;return i(a),function(){c(a)}}},[t,i,c]),function(a){s.current=a}}var Ok=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},Pk={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Mk(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=r===void 0?!0:r,s=e.onBottomArrive,i=e.onBottomLeave,c=e.onTopArrive,a=e.onTopLeave,l=Rk({isEnabled:o,onBottomArrive:s,onBottomLeave:i,onTopArrive:c,onTopLeave:a}),d=Ak({isEnabled:n}),f=function(h){l(h),d(h)};return Y(m.Fragment,null,n&&Y("div",{onClick:Ok,css:Pk}),t(f))}var Lk={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Nk=function(t){var n=t.name,r=t.onFocus;return Y("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:Lk,value:"",onChange:function(){}})},jk=Nk;function yc(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Dk(){return yc(/^iPhone/i)}function oh(){return yc(/^Mac/i)}function $k(){return yc(/^iPad/i)||oh()&&navigator.maxTouchPoints>1}function zk(){return Dk()||$k()}function Fk(){return oh()||zk()}var Vk=function(t){return t.label},Bk=function(t){return t.label},Uk=function(t){return t.value},Hk=function(t){return!!t.isDisabled},Wk={clearIndicator:I1,container:g1,control:L1,dropdownIndicator:k1,group:$1,groupHeading:F1,indicatorsContainer:_1,indicatorSeparator:R1,input:H1,loadingIndicator:P1,loadingMessage:d1,menu:o1,menuList:c1,menuPortal:h1,multiValue:Y1,multiValueLabel:K1,multiValueRemove:J1,noOptionsMessage:u1,option:rk,placeholder:ik,singleValue:lk,valueContainer:y1},Zk={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},qk=4,sh=4,Gk=38,Yk=sh*2,Kk={baseUnit:sh,controlHeight:Gk,menuGutter:Yk},Ri={borderRadius:qk,colors:Zk,spacing:Kk},Jk={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:uu(),captureMenuScroll:!uu(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:kk(),formatGroupLabel:Vk,getOptionLabel:Bk,getOptionValue:Uk,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Hk,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!GE(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function wu(e,t,n,r){var o=ch(e,t,n),s=lh(e,t,n),i=ah(e,t),c=gs(e,t);return{type:"option",data:t,isDisabled:o,isSelected:s,label:i,value:c,index:r}}function Jo(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(i,c){return wu(e,i,t,c)}).filter(function(i){return Eu(e,i)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var s=wu(e,n,t,r);return Eu(e,s)?s:void 0}).filter(JE)}function ih(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,cc(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function xu(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,cc(r.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(r.index,"-").concat(o.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function Xk(e,t){return ih(Jo(e,t))}function Eu(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,s=t.isSelected,i=t.label,c=t.value;return(!dh(e)||!s)&&uh(e,{label:i,value:c,data:o},r)}function Qk(e,t){var n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){var s=t.indexOf(n);if(s>-1)return n;if(o<t.length)return t[o]}return null}function eT(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Ai=function(t,n){var r,o=(r=t.find(function(s){return s.data===n}))===null||r===void 0?void 0:r.id;return o||null},ah=function(t,n){return t.getOptionLabel(n)},gs=function(t,n){return t.getOptionValue(n)};function ch(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function lh(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=gs(e,t);return n.some(function(o){return gs(e,o)===r})}function uh(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var dh=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},tT=1,fh=function(e){Cx(n,e);var t=Ax(n);function n(r){var o;if(Tx(this,n),o=t.call(this,r),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(a){o.controlRef=a},o.focusedOptionRef=null,o.getFocusedOptionRef=function(a){o.focusedOptionRef=a},o.menuListRef=null,o.getMenuListRef=function(a){o.menuListRef=a},o.inputRef=null,o.getInputRef=function(a){o.inputRef=a},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(a,l){var d=o.props,f=d.onChange,p=d.name;l.name=p,o.ariaOnChange(a,l),f(a,l)},o.setValue=function(a,l,d){var f=o.props,p=f.closeMenuOnSelect,h=f.isMulti,g=f.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:g}),p&&(o.setState({inputIsHiddenAfterUpdate:!h}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(a,{action:l,option:d})},o.selectOption=function(a){var l=o.props,d=l.blurInputOnSelect,f=l.isMulti,p=l.name,h=o.state.selectValue,g=f&&o.isOptionSelected(a,h),v=o.isOptionDisabled(a,h);if(g){var y=o.getOptionValue(a);o.setValue(h.filter(function(b){return o.getOptionValue(b)!==y}),"deselect-option",a)}else if(!v)f?o.setValue([].concat(cc(h),[a]),"select-option",a):o.setValue(a,"select-option");else{o.ariaOnChange(a,{action:"select-option",option:a,name:p});return}d&&o.blurInput()},o.removeValue=function(a){var l=o.props.isMulti,d=o.state.selectValue,f=o.getOptionValue(a),p=d.filter(function(g){return o.getOptionValue(g)!==f}),h=Ro(l,p,p[0]||null);o.onChange(h,{action:"remove-value",removedValue:a}),o.focusInput()},o.clearValue=function(){var a=o.state.selectValue;o.onChange(Ro(o.props.isMulti,[],null),{action:"clear",removedValues:a})},o.popValue=function(){var a=o.props.isMulti,l=o.state.selectValue,d=l[l.length-1],f=l.slice(0,l.length-1),p=Ro(a,f,f[0]||null);d&&o.onChange(p,{action:"pop-value",removedValue:d})},o.getFocusedOptionId=function(a){return Ai(o.state.focusableOptionsWithIds,a)},o.getFocusableOptionsWithIds=function(){return xu(Jo(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var a=arguments.length,l=new Array(a),d=0;d<a;d++)l[d]=arguments[d];return UE.apply(void 0,[o.props.classNamePrefix].concat(l))},o.getOptionLabel=function(a){return ah(o.props,a)},o.getOptionValue=function(a){return gs(o.props,a)},o.getStyles=function(a,l){var d=o.props.unstyled,f=Wk[a](l,d);f.boxSizing="border-box";var p=o.props.styles[a];return p?p(f,l):f},o.getClassNames=function(a,l){var d,f;return(d=(f=o.props.classNames)[a])===null||d===void 0?void 0:d.call(f,l)},o.getElementId=function(a){return"".concat(o.state.instancePrefix,"-").concat(a)},o.getComponents=function(){return pk(o.props)},o.buildCategorizedOptions=function(){return Jo(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return ih(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(a,l){o.setState({ariaSelection:K({value:a},l)})},o.onMenuMouseDown=function(a){a.button===0&&(a.stopPropagation(),a.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(a){o.blockOptionHover=!1},o.onControlMouseDown=function(a){if(!a.defaultPrevented){var l=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&o.onMenuClose():l&&o.openMenu("first"):(l&&(o.openAfterFocus=!0),o.focusInput()),a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.preventDefault()}},o.onDropdownIndicatorMouseDown=function(a){if(!(a&&a.type==="mousedown"&&a.button!==0)&&!o.props.isDisabled){var l=o.props,d=l.isMulti,f=l.menuIsOpen;o.focusInput(),f?(o.setState({inputIsHiddenAfterUpdate:!d}),o.onMenuClose()):o.openMenu("first"),a.preventDefault()}},o.onClearIndicatorMouseDown=function(a){a&&a.type==="mousedown"&&a.button!==0||(o.clearValue(),a.preventDefault(),o.openAfterFocus=!1,a.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(a){typeof o.props.closeMenuOnScroll=="boolean"?a.target instanceof HTMLElement&&ti(a.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(a)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(a){var l=a.touches,d=l&&l.item(0);d&&(o.initialTouchX=d.clientX,o.initialTouchY=d.clientY,o.userIsDragging=!1)},o.onTouchMove=function(a){var l=a.touches,d=l&&l.item(0);if(d){var f=Math.abs(d.clientX-o.initialTouchX),p=Math.abs(d.clientY-o.initialTouchY),h=5;o.userIsDragging=f>h||p>h}},o.onTouchEnd=function(a){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(a.target)&&o.menuListRef&&!o.menuListRef.contains(a.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(a){o.userIsDragging||o.onControlMouseDown(a)},o.onClearIndicatorTouchEnd=function(a){o.userIsDragging||o.onClearIndicatorMouseDown(a)},o.onDropdownIndicatorTouchEnd=function(a){o.userIsDragging||o.onDropdownIndicatorMouseDown(a)},o.handleInputChange=function(a){var l=o.props.inputValue,d=a.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(d,{action:"input-change",prevInputValue:l}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(a){o.props.onFocus&&o.props.onFocus(a),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(a){var l=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(a),o.onInputChange("",{action:"input-blur",prevInputValue:l}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(a){if(!(o.blockOptionHover||o.state.focusedOption===a)){var l=o.getFocusableOptions(),d=l.indexOf(a);o.setState({focusedOption:a,focusedOptionId:d>-1?o.getFocusedOptionId(a):null})}},o.shouldHideSelectedOptions=function(){return dh(o.props)},o.onValueInputFocus=function(a){a.preventDefault(),a.stopPropagation(),o.focus()},o.onKeyDown=function(a){var l=o.props,d=l.isMulti,f=l.backspaceRemovesValue,p=l.escapeClearsValue,h=l.inputValue,g=l.isClearable,v=l.isDisabled,y=l.menuIsOpen,b=l.onKeyDown,_=l.tabSelectsValue,S=l.openMenuOnFocus,E=o.state,T=E.focusedOption,I=E.focusedValue,w=E.selectValue;if(!v&&!(typeof b=="function"&&(b(a),a.defaultPrevented))){switch(o.blockOptionHover=!0,a.key){case"ArrowLeft":if(!d||h)return;o.focusValue("previous");break;case"ArrowRight":if(!d||h)return;o.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(I)o.removeValue(I);else{if(!f)return;d?o.popValue():g&&o.clearValue()}break;case"Tab":if(o.isComposing||a.shiftKey||!y||!_||!T||S&&o.isOptionSelected(T,w))return;o.selectOption(T);break;case"Enter":if(a.keyCode===229)break;if(y){if(!T||o.isComposing)return;o.selectOption(T);break}return;case"Escape":y?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:h}),o.onMenuClose()):g&&p&&o.clearValue();break;case" ":if(h)return;if(!y){o.openMenu("first");break}if(!T)return;o.selectOption(T);break;case"ArrowUp":y?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":y?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!y)return;o.focusOption("pageup");break;case"PageDown":if(!y)return;o.focusOption("pagedown");break;case"Home":if(!y)return;o.focusOption("first");break;case"End":if(!y)return;o.focusOption("last");break;default:return}a.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++tT),o.state.selectValue=cu(r.value),r.menuIsOpen&&o.state.selectValue.length){var s=o.getFocusableOptionsWithIds(),i=o.buildFocusableOptions(),c=i.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=s,o.state.focusedOption=i[c],o.state.focusedOptionId=Ai(s,i[c])}return o}return Ix(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&lu(this.menuListRef,this.focusedOptionRef),Fk()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var s=this.props,i=s.isDisabled,c=s.menuIsOpen,a=this.state.isFocused;(a&&!i&&o.isDisabled||a&&c&&!o.menuIsOpen)&&this.focusInput(),a&&i&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!a&&!i&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(lu(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,s){this.props.onInputChange(o,s)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var s=this,i=this.state,c=i.selectValue,a=i.isFocused,l=this.buildFocusableOptions(),d=o==="first"?0:l.length-1;if(!this.props.isMulti){var f=l.indexOf(c[0]);f>-1&&(d=f)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:l[d],focusedOptionId:this.getFocusedOptionId(l[d])},function(){return s.onMenuOpen()})}},{key:"focusValue",value:function(o){var s=this.state,i=s.selectValue,c=s.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=i.indexOf(c);c||(a=-1);var l=i.length-1,d=-1;if(i.length){switch(o){case"previous":a===0?d=0:a===-1?d=l:d=a-1;break;case"next":a>-1&&a<l&&(d=a+1);break}this.setState({inputIsHidden:d!==-1,focusedValue:i[d]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",s=this.props.pageSize,i=this.state.focusedOption,c=this.getFocusableOptions();if(c.length){var a=0,l=c.indexOf(i);i||(l=-1),o==="up"?a=l>0?l-1:c.length-1:o==="down"?a=(l+1)%c.length:o==="pageup"?(a=l-s,a<0&&(a=0)):o==="pagedown"?(a=l+s,a>c.length-1&&(a=c.length-1)):o==="last"&&(a=c.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:c[a],focusedValue:null,focusedOptionId:this.getFocusedOptionId(c[a])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Ri):K(K({},Ri),this.props.theme):Ri}},{key:"getCommonProps",value:function(){var o=this.clearValue,s=this.cx,i=this.getStyles,c=this.getClassNames,a=this.getValue,l=this.selectOption,d=this.setValue,f=this.props,p=f.isMulti,h=f.isRtl,g=f.options,v=this.hasValue();return{clearValue:o,cx:s,getStyles:i,getClassNames:c,getValue:a,hasValue:v,isMulti:p,isRtl:h,options:g,selectOption:l,selectProps:f,setValue:d,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,s=o.isClearable,i=o.isMulti;return s===void 0?i:s}},{key:"isOptionDisabled",value:function(o,s){return ch(this.props,o,s)}},{key:"isOptionSelected",value:function(o,s){return lh(this.props,o,s)}},{key:"filterOption",value:function(o,s){return uh(this.props,o,s)}},{key:"formatOptionLabel",value:function(o,s){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,c=this.state.selectValue;return this.props.formatOptionLabel(o,{context:s,inputValue:i,selectValue:c})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,s=o.isDisabled,i=o.isSearchable,c=o.inputId,a=o.inputValue,l=o.tabIndex,d=o.form,f=o.menuIsOpen,p=o.required,h=this.getComponents(),g=h.Input,v=this.state,y=v.inputIsHidden,b=v.ariaSelection,_=this.commonProps,S=c||this.getElementId("input"),E=K(K(K({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":p,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?(b==null?void 0:b.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?m.createElement(g,J({},_,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:S,innerRef:this.getInputRef,isDisabled:s,isHidden:y,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:d,type:"text",value:a},E)):m.createElement(Ik,J({id:S,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:hs,onFocus:this.onInputFocus,disabled:s,tabIndex:l,inputMode:"none",form:d,value:""},E))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,s=this.getComponents(),i=s.MultiValue,c=s.MultiValueContainer,a=s.MultiValueLabel,l=s.MultiValueRemove,d=s.SingleValue,f=s.Placeholder,p=this.commonProps,h=this.props,g=h.controlShouldRenderValue,v=h.isDisabled,y=h.isMulti,b=h.inputValue,_=h.placeholder,S=this.state,E=S.selectValue,T=S.focusedValue,I=S.isFocused;if(!this.hasValue()||!g)return b?null:m.createElement(f,J({},p,{key:"placeholder",isDisabled:v,isFocused:I,innerProps:{id:this.getElementId("placeholder")}}),_);if(y)return E.map(function(R,A){var O=R===T,L="".concat(o.getOptionLabel(R),"-").concat(o.getOptionValue(R));return m.createElement(i,J({},p,{components:{Container:c,Label:a,Remove:l},isFocused:O,isDisabled:v,key:L,index:A,removeProps:{onClick:function(){return o.removeValue(R)},onTouchEnd:function(){return o.removeValue(R)},onMouseDown:function(F){F.preventDefault()}},data:R}),o.formatOptionLabel(R,"value"))});if(b)return null;var w=E[0];return m.createElement(d,J({},p,{data:w,isDisabled:v}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),s=o.ClearIndicator,i=this.commonProps,c=this.props,a=c.isDisabled,l=c.isLoading,d=this.state.isFocused;if(!this.isClearable()||!s||a||!this.hasValue()||l)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return m.createElement(s,J({},i,{innerProps:f,isFocused:d}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),s=o.LoadingIndicator,i=this.commonProps,c=this.props,a=c.isDisabled,l=c.isLoading,d=this.state.isFocused;if(!s||!l)return null;var f={"aria-hidden":"true"};return m.createElement(s,J({},i,{innerProps:f,isDisabled:a,isFocused:d}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),s=o.DropdownIndicator,i=o.IndicatorSeparator;if(!s||!i)return null;var c=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused;return m.createElement(i,J({},c,{isDisabled:a,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),s=o.DropdownIndicator;if(!s)return null;var i=this.commonProps,c=this.props.isDisabled,a=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return m.createElement(s,J({},i,{innerProps:l,isDisabled:c,isFocused:a}))}},{key:"renderMenu",value:function(){var o=this,s=this.getComponents(),i=s.Group,c=s.GroupHeading,a=s.Menu,l=s.MenuList,d=s.MenuPortal,f=s.LoadingMessage,p=s.NoOptionsMessage,h=s.Option,g=this.commonProps,v=this.state.focusedOption,y=this.props,b=y.captureMenuScroll,_=y.inputValue,S=y.isLoading,E=y.loadingMessage,T=y.minMenuHeight,I=y.maxMenuHeight,w=y.menuIsOpen,R=y.menuPlacement,A=y.menuPosition,O=y.menuPortalTarget,L=y.menuShouldBlockScroll,M=y.menuShouldScrollIntoView,F=y.noOptionsMessage,j=y.onMenuScrollToTop,Z=y.onMenuScrollToBottom;if(!w)return null;var H=function($,ne){var Se=$.type,oe=$.data,$e=$.isDisabled,Ne=$.isSelected,st=$.label,it=$.value,yn=v===oe,en=$e?void 0:function(){return o.onOptionHover(oe)},kr=$e?void 0:function(){return o.selectOption(oe)},at="".concat(o.getElementId("option"),"-").concat(ne),yt={id:at,onClick:kr,onMouseMove:en,onMouseOver:en,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:Ne};return m.createElement(h,J({},g,{innerProps:yt,data:oe,isDisabled:$e,isSelected:Ne,key:at,label:st,type:Se,value:it,isFocused:yn,innerRef:yn?o.getFocusedOptionRef:void 0}),o.formatOptionLabel($.data,"menu"))},N;if(this.hasOptions())N=this.getCategorizedOptions().map(function(U){if(U.type==="group"){var $=U.data,ne=U.options,Se=U.index,oe="".concat(o.getElementId("group"),"-").concat(Se),$e="".concat(oe,"-heading");return m.createElement(i,J({},g,{key:oe,data:$,options:ne,Heading:c,headingProps:{id:$e,data:U.data},label:o.formatGroupLabel(U.data)}),U.options.map(function(Ne){return H(Ne,"".concat(Se,"-").concat(Ne.index))}))}else if(U.type==="option")return H(U,"".concat(U.index))});else if(S){var D=E({inputValue:_});if(D===null)return null;N=m.createElement(f,g,D)}else{var C=F({inputValue:_});if(C===null)return null;N=m.createElement(p,g,C)}var W={minMenuHeight:T,maxMenuHeight:I,menuPlacement:R,menuPosition:A,menuShouldScrollIntoView:M},B=m.createElement(s1,J({},g,W),function(U){var $=U.ref,ne=U.placerProps,Se=ne.placement,oe=ne.maxHeight;return m.createElement(a,J({},g,W,{innerRef:$,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:S,placement:Se}),m.createElement(Mk,{captureEnabled:b,onTopArrive:j,onBottomArrive:Z,lockEnabled:L},function($e){return m.createElement(l,J({},g,{innerRef:function(st){o.getMenuListRef(st),$e(st)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:o.getElementId("listbox")},isLoading:S,maxHeight:oe,focusedOption:v}),N)}))});return O||A==="fixed"?m.createElement(d,J({},g,{appendTo:O,controlElement:this.controlRef,menuPlacement:R,menuPosition:A}),B):B}},{key:"renderFormField",value:function(){var o=this,s=this.props,i=s.delimiter,c=s.isDisabled,a=s.isMulti,l=s.name,d=s.required,f=this.state.selectValue;if(d&&!this.hasValue()&&!c)return m.createElement(jk,{name:l,onFocus:this.onValueInputFocus});if(!(!l||c))if(a)if(i){var p=f.map(function(v){return o.getOptionValue(v)}).join(i);return m.createElement("input",{name:l,type:"hidden",value:p})}else{var h=f.length>0?f.map(function(v,y){return m.createElement("input",{key:"i-".concat(y),name:l,type:"hidden",value:o.getOptionValue(v)})}):m.createElement("input",{name:l,type:"hidden",value:""});return m.createElement("div",null,h)}else{var g=f[0]?this.getOptionValue(f[0]):"";return m.createElement("input",{name:l,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,s=this.state,i=s.ariaSelection,c=s.focusedOption,a=s.focusedValue,l=s.isFocused,d=s.selectValue,f=this.getFocusableOptions();return m.createElement(Sk,J({},o,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:c,focusedValue:a,isFocused:l,selectValue:d,focusableOptions:f,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),s=o.Control,i=o.IndicatorsContainer,c=o.SelectContainer,a=o.ValueContainer,l=this.props,d=l.className,f=l.id,p=l.isDisabled,h=l.menuIsOpen,g=this.state.isFocused,v=this.commonProps=this.getCommonProps();return m.createElement(c,J({},v,{className:d,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:p,isFocused:g}),this.renderLiveRegion(),m.createElement(s,J({},v,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:p,isFocused:g,menuIsOpen:h}),m.createElement(a,J({},v,{isDisabled:p}),this.renderPlaceholderOrValue(),this.renderInput()),m.createElement(i,J({},v,{isDisabled:p}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,s){var i=s.prevProps,c=s.clearFocusValueOnUpdate,a=s.inputIsHiddenAfterUpdate,l=s.ariaSelection,d=s.isFocused,f=s.prevWasFocused,p=s.instancePrefix,h=o.options,g=o.value,v=o.menuIsOpen,y=o.inputValue,b=o.isMulti,_=cu(g),S={};if(i&&(g!==i.value||h!==i.options||v!==i.menuIsOpen||y!==i.inputValue)){var E=v?Xk(o,_):[],T=v?xu(Jo(o,_),"".concat(p,"-option")):[],I=c?Qk(s,_):null,w=eT(s,E),R=Ai(T,w);S={selectValue:_,focusedOption:w,focusedOptionId:R,focusableOptionsWithIds:T,focusedValue:I,clearFocusValueOnUpdate:!1}}var A=a!=null&&o!==i?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},O=l,L=d&&f;return d&&!L&&(O={value:Ro(b,_,_[0]||null),options:_,action:"initial-input-focus"},L=!f),(l==null?void 0:l.action)==="initial-input-focus"&&(O=null),K(K(K({},S),A),{},{prevProps:o,ariaSelection:O,prevWasFocused:L})}}]),n}(m.Component);fh.defaultProps=Jk;var nT=m.forwardRef(function(e,t){var n=kx(e);return m.createElement(fh,J({ref:t},n))}),ku=nT;function rT(e){return ee({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,64a40,40,0,1,0,40,40A40,40,0,0,0,128,64Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,128Zm0-112a88.1,88.1,0,0,0-88,88c0,31.4,14.51,64.68,42,96.25a254.19,254.19,0,0,0,41.45,38.3,8,8,0,0,0,9.18,0A254.19,254.19,0,0,0,174,200.25c27.45-31.57,42-64.85,42-96.25A88.1,88.1,0,0,0,128,16Zm0,206c-16.53-13-72-60.75-72-118a72,72,0,0,1,144,0C200,161.23,144.53,209,128,222Z"},child:[]}]})(e)}function Tu(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 6h-3V4c0-1.103-.897-2-2-2H9c-1.103 0-2 .897-2 2v2H4c-1.103 0-2 .897-2 2v11c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V8c0-1.103-.897-2-2-2zm-5-2v2H9V4h6zM4 8h16v4h-3v-2h-2v2H9v-2H7v2H4V8zm0 11v-5h3v2h2v-2h6v2h2v-2h3.001v5H4z"},child:[]}]})(e)}function C4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z"},child:[]},{tag:"path",attr:{d:"M9.999 13.587 7.7 11.292l-1.412 1.416 3.713 3.705 6.706-6.706-1.414-1.414z"},child:[]}]})(e)}function R4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"},child:[]},{tag:"path",attr:{d:"M12 11c-2 0-2-.63-2-1s.7-1 2-1 1.39.64 1.4 1h2A3 3 0 0 0 13 7.12V6h-2v1.09C9 7.42 8 8.71 8 10c0 1.12.52 3 4 3 2 0 2 .68 2 1s-.62 1-2 1c-1.84 0-2-.86-2-1H8c0 .92.66 2.55 3 2.92V18h2v-1.08c2-.34 3-1.63 3-2.92 0-1.12-.52-3-4-3z"},child:[]}]})(e)}function A4(e){return ee({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"circle",attr:{cx:"4.983",cy:"5.009",r:"2.188"},child:[]},{tag:"path",attr:{d:"M9.237 8.855v12.139h3.769v-6.003c0-1.584.298-3.118 2.262-3.118 1.937 0 1.961 1.811 1.961 3.218v5.904H21v-6.657c0-3.27-.704-5.783-4.526-5.783-1.835 0-3.065 1.007-3.568 1.96h-.051v-1.66H9.237zm-6.142 0H6.87v12.139H3.095z"},child:[]}]})(e)}const oT=()=>{const{data:e=[],isLoading:t}=cn({queryKey:["jobFilterCategories"],queryFn:async()=>{const{data:i,error:c}=await he.from("job_categories").select("id, name, slug").eq("is_active",!0).order("name");if(c)throw c;return i.map(a=>({value:a.id,label:a.name}))},staleTime:18e5}),{data:n=[],isLoading:r}=cn({queryKey:["jobFilterLocations"],queryFn:async()=>{const{data:i,error:c}=await he.from("jobs").select("location").eq("is_active",!0).not("location","is",null).not("location","eq","");if(c)throw c;return[...new Set(i.map(l=>l.location))].map(l=>({value:l,label:l}))},staleTime:10*60*1e3});return{categories:e,locations:n,jobTypeOptions:[{value:"full_time",label:"Full Time"},{value:"part_time",label:"Part Time"},{value:"contract",label:"Contract"},{value:"freelance",label:"Freelance"},{value:"internship",label:"Internship"}],experienceLevelOptions:[{value:"entry",label:"Entry Level"},{value:"junior",label:"Junior"},{value:"mid",label:"Mid Level"},{value:"senior",label:"Senior"},{value:"lead",label:"Lead"},{value:"executive",label:"Executive"}],isLoading:t||r}},sT=({onSearch:e,placeholder:t="Search your Keywords",className:n="",initialValues:r})=>{const{locations:o,jobTypeOptions:s,isLoading:i}=oT(),[c,a]=m.useState(r!=null&&r.location?{value:r.location,label:r.location}:null),[l,d]=m.useState(r!=null&&r.jobType&&s.find(h=>h.value===r.jobType)||null),f=h=>{h.preventDefault();const v=new FormData(h.currentTarget).get("keywords")||"";e==null||e({keywords:v,location:(c==null?void 0:c.value)||"",jobType:(l==null?void 0:l.value)||""})},p={control:h=>({...h,height:"60px",minHeight:"60px",border:"none",borderRadius:"0",backgroundColor:"transparent",paddingLeft:"40px",boxShadow:"none","&:hover":{border:"none"}}),valueContainer:h=>({...h,paddingLeft:"0",paddingTop:"0",paddingBottom:"0"}),input:h=>({...h,margin:"0",paddingTop:"0",paddingBottom:"0",color:"hsl(0, 0%, 98%)"}),placeholder:h=>({...h,color:"hsl(260, 10%, 50%)"}),singleValue:h=>({...h,color:"hsl(0, 0%, 98%)"}),indicatorSeparator:()=>({display:"none"}),dropdownIndicator:h=>({...h,color:"hsl(260, 10%, 50%)","&:hover":{color:"hsl(270, 100%, 65%)"}}),menuPortal:h=>({...h,zIndex:9999}),menu:h=>({...h,zIndex:9999,backgroundColor:"hsl(260, 25%, 10%)",border:"1px solid hsl(260, 20%, 20%)",borderRadius:"12px",boxShadow:"0 10px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.1)",overflow:"hidden"}),menuList:h=>({...h,padding:"8px"}),option:(h,g)=>({...h,backgroundColor:g.isSelected?"hsl(270, 100%, 65%)":g.isFocused?"hsla(270, 100%, 65%, 0.2)":"transparent",color:g.isSelected?"hsl(0, 0%, 100%)":"hsl(0, 0%, 90%)",borderRadius:"8px",padding:"10px 12px",cursor:"pointer","&:active":{backgroundColor:"hsla(270, 100%, 65%, 0.3)"}})};return u.jsx("div",{className:`bg-black/40 backdrop-blur-xl border border-white/10 shadow-[0_0_30px_rgba(168,85,247,0.15)] rounded-xl p-1.5 relative z-30 ${n}`,children:u.jsx("form",{onSubmit:f,children:u.jsx("div",{className:"registration-form text-start",children:u.jsxs("div",{className:"grid lg:grid-cols-4 md:grid-cols-2 grid-cols-1 lg:gap-0 gap-3",children:[u.jsxs("div",{className:"filter-search-form relative lg:border-r lg:border-white/10",children:[u.jsx(Tu,{className:"absolute top-1/2 -translate-y-1/2 left-4 z-10 text-primary text-xl"}),u.jsx("input",{name:"keywords",type:"text",className:"w-full h-[60px] pl-12 pr-4 bg-transparent border-0 rounded-l-lg text-foreground placeholder-muted-foreground focus:outline-none focus:ring-0",placeholder:t,defaultValue:(r==null?void 0:r.keywords)||""})]}),u.jsxs("div",{className:"filter-search-form relative lg:border-r lg:border-white/10",children:[u.jsx(rT,{className:"absolute top-1/2 -translate-y-1/2 left-4 z-10 text-primary text-xl"}),u.jsx(ku,{name:"location",placeholder:"Location",options:o,styles:p,menuPortalTarget:document.body,value:c,onChange:h=>a(h),isLoading:i})]}),u.jsxs("div",{className:"filter-search-form relative lg:border-r lg:border-white/10",children:[u.jsx(Tu,{className:"absolute top-1/2 -translate-y-1/2 left-4 z-10 text-primary text-xl"}),u.jsx(ku,{name:"jobType",placeholder:"Job Type",options:s,styles:p,menuPortalTarget:document.body,value:l,onChange:h=>d(h),isLoading:i})]}),u.jsx("button",{type:"submit",className:"h-[60px] px-5 font-semibold tracking-wide border-0 transition duration-300 ease-in-out text-base text-center bg-primary hover:bg-primary/90 text-primary-foreground w-full rounded-lg",children:"Search"})]})})})})},iT=()=>{Ln();const{showBetaBadges:e}=ux(),t=Pv(),n=r=>{const o=new URLSearchParams;r.keywords&&o.set("keywords",r.keywords),r.location&&o.set("location",r.location),r.jobType&&o.set("jobType",r.jobType),t(`/job-list?${o.toString()}`)};return u.jsx(u.Fragment,{children:u.jsxs("section",{className:"relative min-h-screen flex items-center bg-gradient-to-br from-black-900 via-black-800 to-emerald-900 overflow-hidden pt-24",children:[u.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[u.jsx("div",{className:"absolute top-1/4 left-1/4 w-96 h-96 bg-primary/20 rounded-full blur-3xl animate-pulse-breathe"}),u.jsx("div",{className:"absolute bottom-1/4 right-1/4 w-80 h-80 bg-accent/15 rounded-full blur-3xl animate-pulse-breathe",style:{animationDelay:"2s"}})]}),u.jsxs("div",{className:"container relative z-10 py-20",children:[e&&u.jsx(Dw,{delayDuration:200,children:u.jsxs($w,{children:[u.jsx(zw,{asChild:!0,children:u.jsxs(xp,{className:"bg-primary/20 border-primary/50 text-primary backdrop-blur-sm text-xs px-3 py-1.5 shadow-lg shadow-primary/20 inline-flex items-center gap-1.5 font-semibold cursor-help mb-8",children:[u.jsx(Cw,{className:"w-3 h-3"}),"In Beta"]})}),u.jsx(Ep,{side:"right",className:"max-w-xs z-[10000] bg-popover text-popover-foreground border-border",children:u.jsx("p",{children:"This platform is currently in beta testing. We're actively developing new features and improving the experience. Your feedback helps us make it better!"})})]})}),u.jsxs("div",{className:"grid lg:grid-cols-[1.4fr_1fr] gap-8 lg:gap-12 items-center max-w-7xl mx-auto",children:[u.jsxs("div",{className:"space-y-6 text-center lg:text-left",children:[u.jsxs("h1",{className:"text-4xl md:text-5xl lg:text-6xl xl:text-7xl leading-tight",children:[u.jsx("span",{className:"block text-foreground font-extralight",children:"Find Your Next Great "}),u.jsx("span",{className:"block bg-gradient-to-r from-primary via-accent to-primary bg-clip-text text-transparent pb-3 font-bold",children:"Hire, Faster"})]}),u.jsx("p",{className:"text-lg lg:text-xl text-muted-foreground max-w-xl mx-auto lg:mx-0 leading-relaxed",children:"Streamline your hiring with smart pre-screening, detailed CV analysis, and automated candidate assessment. Get quality matches and pre-screened applicants."})]}),u.jsx("div",{className:"flex justify-center lg:justify-end",children:u.jsx("div",{className:"relative w-full max-w-lg",children:u.jsx("div",{className:"p-4 bg-card/40 backdrop-blur-sm rounded-2xl border border-border/50 shadow-2xl shadow-primary/5",children:u.jsx(bx,{})})})})]}),u.jsxs("div",{className:"space-y-8 max-w-4xl mx-auto mt-12",children:[u.jsx("div",{className:"bg-black/60 backdrop-blur-xl rounded-2xl p-6 border border-white/20 shadow-[0_0_40px_rgba(168,85,247,0.25)]",children:u.jsx(sT,{onSearch:n,placeholder:"Job title, skills, or company",className:"!bg-transparent border-0 shadow-none"})}),u.jsx("div",{className:"flex flex-wrap gap-4 justify-center",children:u.jsx(ut,{to:"/job-list",children:u.jsx(Lr,{size:"lg",className:"bg-[hsl(270,100%,60%)] hover:bg-[hsl(270,100%,65%)] text-primary-foreground text-lg px-8 py-6 h-auto",children:"Browse All Jobs"})})})]})]}),u.jsx("div",{className:"absolute bottom-0 w-full h-px bg-gradient-to-r from-transparent via-border to-transparent"})]})})},q=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,pe=globalThis,xn="10.19.0";function Nn(){return ni(pe),pe}function ni(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||xn,t[xn]=t[xn]||{}}function gr(e,t,n=pe){const r=n.__SENTRY__=n.__SENTRY__||{},o=r[xn]=r[xn]||{};return o[e]||(o[e]=t())}const ph=["debug","info","warn","error","log","assert","trace"],aT="Sentry Logger ",vs={};function jn(e){if(!("console"in pe))return e();const t=pe.console,n={},r=Object.keys(vs);r.forEach(o=>{const s=vs[o];n[o]=t[o],t[o]=s});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function cT(){_c().enabled=!0}function lT(){_c().enabled=!1}function hh(){return _c().enabled}function uT(...e){bc("log",...e)}function dT(...e){bc("warn",...e)}function fT(...e){bc("error",...e)}function bc(e,...t){q&&hh()&&jn(()=>{pe.console[e](`${aT}[${e}]:`,...t)})}function _c(){return q?gr("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const z={enable:cT,disable:lT,isEnabled:hh,log:uT,warn:dT,error:fT},mh=50,An="?",Iu=/\(error: (.*)\)/,Cu=/captureMessage|captureException/;function gh(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{const s=[],i=n.split(`
`);for(let c=r;c<i.length;c++){let a=i[c];a.length>1024&&(a=a.slice(0,1024));const l=Iu.test(a)?a.replace(Iu,"$1"):a;if(!l.match(/\S*Error: /)){for(const d of t){const f=d(l);if(f){s.push(f);break}}if(s.length>=mh+o)break}}return hT(s.slice(o))}}function pT(e){return Array.isArray(e)?gh(...e):e}function hT(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Ao(t).function||"")&&t.pop(),t.reverse(),Cu.test(Ao(t).function||"")&&(t.pop(),Cu.test(Ao(t).function||"")&&t.pop()),t.slice(0,mh).map(n=>({...n,filename:n.filename||Ao(t).filename,function:n.function||An}))}function Ao(e){return e[e.length-1]||{}}const Oi="<anonymous>";function qt(e){try{return!e||typeof e!="function"?Oi:e.name||Oi}catch{return Oi}}function Ru(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const Xo={},Au={};function hn(e,t){Xo[e]=Xo[e]||[],Xo[e].push(t)}function mn(e,t){if(!Au[e]){Au[e]=!0;try{t()}catch(n){q&&z.error(`Error while instrumenting ${e}`,n)}}}function St(e,t){const n=e&&Xo[e];if(n)for(const r of n)try{r(t)}catch(o){q&&z.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${qt(r)}
Error:`,o)}}let Pi=null;function vh(e){const t="error";hn(t,e),mn(t,mT)}function mT(){Pi=pe.onerror,pe.onerror=function(e,t,n,r,o){return St("error",{column:r,error:o,line:n,msg:e,url:t}),Pi?Pi.apply(this,arguments):!1},pe.onerror.__SENTRY_INSTRUMENTED__=!0}let Mi=null;function yh(e){const t="unhandledrejection";hn(t,e),mn(t,gT)}function gT(){Mi=pe.onunhandledrejection,pe.onunhandledrejection=function(e){return St("unhandledrejection",e),Mi?Mi.apply(this,arguments):!0},pe.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const bh=Object.prototype.toString;function ri(e){switch(bh.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Gt(e,Error)}}function vr(e,t){return bh.call(e)===`[object ${t}]`}function _h(e){return vr(e,"ErrorEvent")}function Ou(e){return vr(e,"DOMError")}function vT(e){return vr(e,"DOMException")}function Ut(e){return vr(e,"String")}function Sc(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function qr(e){return e===null||Sc(e)||typeof e!="object"&&typeof e!="function"}function Gr(e){return vr(e,"Object")}function oi(e){return typeof Event<"u"&&Gt(e,Event)}function yT(e){return typeof Element<"u"&&Gt(e,Element)}function bT(e){return vr(e,"RegExp")}function yr(e){return!!(e!=null&&e.then&&typeof e.then=="function")}function _T(e){return Gr(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Gt(e,t){try{return e instanceof t}catch{return!1}}function Sh(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function wh(e){return typeof Request<"u"&&Gt(e,Request)}const wc=pe,ST=80;function wt(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let s=0,i=0;const c=" > ",a=c.length;let l;const d=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||ST;for(;n&&s++<r&&(l=wT(n,d),!(l==="html"||s>1&&i+o.length*a+l.length>=f));)o.push(l),i+=l.length,n=n.parentNode;return o.reverse().join(c)}catch{return"<unknown>"}}function wT(e,t){const n=e,r=[];if(!(n!=null&&n.tagName))return"";if(wc.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t!=null&&t.length?t.filter(i=>n.getAttribute(i)).map(i=>[i,n.getAttribute(i)]):null;if(o!=null&&o.length)o.forEach(i=>{r.push(`[${i[0]}="${i[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const i=n.className;if(i&&Ut(i)){const c=i.split(/\s+/);for(const a of c)r.push(`.${a}`)}}const s=["aria-label","type","name","title","alt"];for(const i of s){const c=n.getAttribute(i);c&&r.push(`[${i}="${c}"]`)}return r.join("")}function br(){try{return wc.document.location.href}catch{return""}}function xh(e){if(!wc.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function ys(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function bs(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const o=e[r];try{Sh(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Qo(e,t,n=!1){return Ut(e)?bT(t)?t.test(e):Ut(t)?n?e===t:e.includes(t):!1:!1}function Ht(e,t=[],n=!1){return t.some(r=>Qo(e,r,n))}function et(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const o=n(r);typeof o=="function"&&Eh(o,r);try{e[t]=o}catch{q&&z.log(`Failed to replace method "${t}" in object`,e)}}function gt(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{q&&z.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Eh(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,gt(e,"__sentry_original__",t)}catch{}}function xc(e){return e.__sentry_original__}function kh(e){if(ri(e))return{message:e.message,name:e.name,stack:e.stack,...Mu(e)};if(oi(e)){const t={type:e.type,target:Pu(e.target),currentTarget:Pu(e.currentTarget),...Mu(e)};return typeof CustomEvent<"u"&&Gt(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Pu(e){try{return yT(e)?wt(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Mu(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function xT(e,t=40){const n=Object.keys(kh(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return ys(r,t);for(let o=n.length;o>0;o--){const s=n.slice(0,o).join(", ");if(!(s.length>t))return o===n.length?s:ys(s,t)}return""}function ET(){const e=pe;return e.crypto||e.msCrypto}function ht(e=ET()){let t=()=>Math.random()*16;try{if(e!=null&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e!=null&&e.getRandomValues&&(t=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(t()&15)>>n/4).toString(16))}function Th(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function _n(e){const{message:t,event_id:n}=e;if(t)return t;const r=Th(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function ga(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function On(e,t){const n=Th(e);if(!n)return;const r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){const s={...o==null?void 0:o.data,...t.data};n.mechanism.data=s}}function Lu(e){if(kT(e))return!0;try{gt(e,"__sentry_captured__",!0)}catch{}return!1}function kT(e){try{return e.__sentry_captured__}catch{}}const Ih=1e3;function Dn(){return Date.now()/Ih}function TT(){const{performance:e}=pe;if(!(e!=null&&e.now)||!e.timeOrigin)return Dn;const t=e.timeOrigin;return()=>(t+e.now())/Ih}let Nu;function Ue(){return(Nu??(Nu=TT()))()}let Li;function IT(){var d;const{performance:e}=pe;if(!(e!=null&&e.now))return[void 0,"none"];const t=3600*1e3,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=o<t,i=(d=e.timing)==null?void 0:d.navigationStart,a=typeof i=="number"?Math.abs(i+n-r):t,l=a<t;return s||l?o<=a?[e.timeOrigin,"timeOrigin"]:[i,"navigationStart"]:[r,"dateNow"]}function ot(){return Li||(Li=IT()),Li[0]}function CT(e){const t=Ue(),n={sid:ht(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>AT(n)};return e&&or(n,e),n}function or(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Ue(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:ht()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function RT(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),or(e,n)}function AT(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function io(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=io(r[o],t[o],n-1));return r}function Yt(){return ht()}function Wt(){return ht().substring(16)}const va="_sentrySpan";function sr(e,t){t?gt(e,va,t):delete e[va]}function _s(e){return e[va]}const OT=100;class zt{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Yt(),sampleRand:Math.random()}}clone(){const t=new zt;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,sr(t,_s(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&or(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof zt?n.getScopeData():Gr(n)?t:void 0,{tags:o,extra:s,user:i,contexts:c,level:a,fingerprint:l=[],propagationContext:d}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...s},this._contexts={...this._contexts,...c},i&&Object.keys(i).length&&(this._user=i),a&&(this._level=a),l.length&&(this._fingerprint=l),d&&(this._propagationContext=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,sr(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Yt(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){var s;const r=typeof n=="number"?n:OT;if(r<=0)return this;const o={timestamp:Dn(),...t,message:t.message?ys(t.message,2048):t.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),(s=this._client)==null||s.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:_s(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=io(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=(n==null?void 0:n.event_id)||ht();if(!this._client)return q&&z.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){const o=(r==null?void 0:r.event_id)||ht();if(!this._client)return q&&z.warn("No client configured on scope - will not capture message!"),o;const s=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:s,...r,event_id:o},this),o}captureEvent(t,n){const r=(n==null?void 0:n.event_id)||ht();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(q&&z.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function PT(){return gr("defaultCurrentScope",()=>new zt)}function MT(){return gr("defaultIsolationScope",()=>new zt)}class LT{constructor(t,n){let r;t?r=t:r=new zt;let o;n?o=n:o=new zt,this._stack=[{scope:r}],this._isolationScope=o}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(o){throw this._popScope(),o}return yr(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function ir(){const e=Nn(),t=ni(e);return t.stack=t.stack||new LT(PT(),MT())}function NT(e){return ir().withScope(e)}function jT(e,t){const n=ir();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function ju(e){return ir().withScope(()=>e(ir().getIsolationScope()))}function DT(){return{withIsolationScope:ju,withScope:NT,withSetScope:jT,withSetIsolationScope:(e,t)=>ju(t),getCurrentScope:()=>ir().getScope(),getIsolationScope:()=>ir().getIsolationScope()}}function _r(e){const t=ni(e);return t.acs?t.acs:DT()}function be(){const e=Nn();return _r(e).getCurrentScope()}function Rt(){const e=Nn();return _r(e).getIsolationScope()}function $T(){return gr("globalScope",()=>new zt)}function $n(...e){const t=Nn(),n=_r(t);if(e.length===2){const[r,o]=e;return r?n.withSetScope(r,o):n.withScope(o)}return n.withScope(e[0])}function le(){return be().getClient()}function zT(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:o}=t,s={trace_id:n,span_id:o||Wt()};return r&&(s.parent_span_id=r),s}const It="sentry.source",Ec="sentry.sample_rate",Ch="sentry.previous_trace_sample_rate",Kt="sentry.op",Ve="sentry.origin",Yr="sentry.idle_span_finish_reason",ao="sentry.measurement_unit",co="sentry.measurement_value",Du="sentry.custom_span_name",kc="sentry.profile_id",Sr="sentry.exclusive_time",FT="sentry.link.type",VT=0,Rh=1,Fe=2;function BT(e){if(e<400&&e>=100)return{code:Rh};if(e>=400&&e<500)switch(e){case 401:return{code:Fe,message:"unauthenticated"};case 403:return{code:Fe,message:"permission_denied"};case 404:return{code:Fe,message:"not_found"};case 409:return{code:Fe,message:"already_exists"};case 413:return{code:Fe,message:"failed_precondition"};case 429:return{code:Fe,message:"resource_exhausted"};case 499:return{code:Fe,message:"cancelled"};default:return{code:Fe,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:Fe,message:"unimplemented"};case 503:return{code:Fe,message:"unavailable"};case 504:return{code:Fe,message:"deadline_exceeded"};default:return{code:Fe,message:"internal_error"}}return{code:Fe,message:"unknown_error"}}function Ah(e,t){e.setAttribute("http.response.status_code",t);const n=BT(t);n.message!=="unknown_error"&&e.setStatus(n)}const Oh="_sentryScope",Ph="_sentryIsolationScope";function UT(e){try{const t=pe.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function HT(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}function WT(e,t,n){e&&(gt(e,Ph,UT(n)),gt(e,Oh,t))}function Ss(e){const t=e;return{scope:t[Oh],isolationScope:HT(t[Ph])}}const Tc="sentry-",ZT=/^sentry-/,qT=8192;function Mh(e){const t=YT(e);if(!t)return;const n=Object.entries(t).reduce((r,[o,s])=>{if(o.match(ZT)){const i=o.slice(Tc.length);r[i]=s}return r},{});if(Object.keys(n).length>0)return n}function GT(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,o])=>(o&&(n[`${Tc}${r}`]=o),n),{});return KT(t)}function YT(e){if(!(!e||!Ut(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=$u(n);return Object.entries(r).forEach(([o,s])=>{t[o]=s}),t},{}):$u(e)}function $u(e){return e.split(",").map(t=>{const n=t.indexOf("=");if(n===-1)return[];const r=t.slice(0,n),o=t.slice(n+1);return[r,o].map(s=>{try{return decodeURIComponent(s.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function KT(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],o)=>{const s=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,i=o===0?s:`${t},${s}`;return i.length>qT?(q&&z.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):i},"")}const JT=/^o(\d+)\./,XT=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function QT(e){return e==="http"||e==="https"}function zn(e,t=!1){const{host:n,path:r,pass:o,port:s,projectId:i,protocol:c,publicKey:a}=e;return`${c}://${a}${t&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${i}`}function eI(e){const t=XT.exec(e);if(!t){jn(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,o="",s="",i="",c=""]=t.slice(1);let a="",l=c;const d=l.split("/");if(d.length>1&&(a=d.slice(0,-1).join("/"),l=d.pop()),l){const f=l.match(/^\d+/);f&&(l=f[0])}return Lh({host:s,pass:o,path:a,projectId:l,port:i,protocol:n,publicKey:r})}function Lh(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function tI(e){if(!q)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(z.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?QT(r)?t&&isNaN(parseInt(t,10))?(z.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(z.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(z.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function nI(e){const t=e.match(JT);return t==null?void 0:t[1]}function rI(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=nI(n)),r}function Nh(e){const t=typeof e=="string"?eI(e):Lh(e);if(!(!t||!tI(t)))return t}function Pn(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const jh=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function oI(e){if(!e)return;const t=e.match(jh);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function sI(e,t){const n=oI(e),r=Mh(t);if(!(n!=null&&n.traceId))return{traceId:Yt(),sampleRand:Math.random()};const o=iI(n,r);r&&(r.sample_rand=o.toString());const{traceId:s,parentSpanId:i,parentSampled:c}=n;return{traceId:s,parentSpanId:i,sampled:c,dsc:r||{},sampleRand:o}}function Dh(e=Yt(),t=Wt(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function $h(e=Yt(),t=Wt(),n){return`00-${e}-${t}-${n?"01":"00"}`}function iI(e,t){const n=Pn(t==null?void 0:t.sample_rand);if(n!==void 0)return n;const r=Pn(t==null?void 0:t.sample_rate);return r&&(e==null?void 0:e.parentSampled)!==void 0?e.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}const zh=0,Ic=1;let zu=!1;function aI(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:s,status:i,origin:c,links:a}=me(e);return{parent_span_id:s,span_id:t,trace_id:n,data:r,op:o,status:i,origin:c,links:a}}function cI(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:me(e).parent_span_id,s=Ss(e).scope,i=r?(s==null?void 0:s.getPropagationContext().propagationSpanId)||Wt():t;return{parent_span_id:o,span_id:i,trace_id:n}}function lI(e){const{traceId:t,spanId:n}=e.spanContext(),r=gn(e);return Dh(t,n,r)}function uI(e){const{traceId:t,spanId:n}=e.spanContext(),r=gn(e);return $h(t,n,r)}function Fh(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...o},attributes:s})=>({span_id:t,trace_id:n,sampled:r===Ic,attributes:s,...o}))}function En(e){return typeof e=="number"?Fu(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Fu(e.getTime()):Ue()}function Fu(e){return e>9999999999?e/1e3:e}function me(e){var r;if(fI(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(dI(e)){const{attributes:o,startTime:s,name:i,endTime:c,status:a,links:l}=e,d="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?(r=e.parentSpanContext)==null?void 0:r.spanId:void 0;return{span_id:t,trace_id:n,data:o,description:i,parent_span_id:d,start_timestamp:En(s),timestamp:En(c)||void 0,status:Vh(a),op:o[Kt],origin:o[Ve],links:Fh(l)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function dI(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function fI(e){return typeof e.getSpanJSON=="function"}function gn(e){const{traceFlags:t}=e.spanContext();return t===Ic}function Vh(e){if(!(!e||e.code===VT))return e.code===Rh?"ok":e.message||"unknown_error"}const kn="_sentryChildSpans",ya="_sentryRootSpan";function Bh(e,t){const n=e[ya]||e;gt(t,ya,n),e[kn]?e[kn].add(t):gt(e,kn,new Set([t]))}function pI(e,t){e[kn]&&e[kn].delete(t)}function es(e){const t=new Set;function n(r){if(!t.has(r)&&gn(r)){t.add(r);const o=r[kn]?Array.from(r[kn]):[];for(const s of o)n(s)}}return n(e),Array.from(t)}function Ge(e){return e[ya]||e}function Je(){const e=Nn(),t=_r(e);return t.getActiveSpan?t.getActiveSpan():_s(be())}function ba(){zu||(jn(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),zu=!0)}let Vu=!1;function hI(){if(Vu)return;function e(){const t=Je(),n=t&&Ge(t);if(n){const r="internal_error";q&&z.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:Fe,message:r})}}e.tag="sentry_tracingErrorCallback",Vu=!0,vh(e),yh(e)}function Ct(e){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||((n=le())==null?void 0:n.getOptions());return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function Bu(e){z.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function ws(e,t){if(!(t!=null&&t.length)||!e.description)return!1;for(const n of t){if(gI(n)){if(Qo(e.description,n))return q&&Bu(e),!0;continue}if(!n.name&&!n.op)continue;const r=n.name?Qo(e.description,n.name):!0,o=n.op?e.op&&Qo(e.op,n.op):!0;if(r&&o)return q&&Bu(e),!0}return!1}function mI(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const o of e)o.parent_span_id===r&&(o.parent_span_id=n)}function gI(e){return typeof e=="string"||e instanceof RegExp}const Cc="production",Uh="_frozenDsc";function ts(e,t){gt(e,Uh,t)}function Hh(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o={environment:n.environment||Cc,release:n.release,public_key:r,trace_id:e,org_id:rI(t)};return t.emit("createDsc",o),o}function Wh(e,t){const n=t.getPropagationContext();return n.dsc||Hh(n.traceId,e)}function Jt(e){var g;const t=le();if(!t)return{};const n=Ge(e),r=me(n),o=r.data,s=n.spanContext().traceState,i=(s==null?void 0:s.get("sentry.sample_rate"))??o[Ec]??o[Ch];function c(v){return(typeof i=="number"||typeof i=="string")&&(v.sample_rate=`${i}`),v}const a=n[Uh];if(a)return c(a);const l=s==null?void 0:s.get("sentry.dsc"),d=l&&Mh(l);if(d)return c(d);const f=Hh(e.spanContext().traceId,t),p=o[It],h=r.description;return p!=="url"&&h&&(f.transaction=h),Ct()&&(f.sampled=String(gn(n)),f.sample_rand=(s==null?void 0:s.get("sentry.sample_rand"))??((g=Ss(n).scope)==null?void 0:g.getPropagationContext().sampleRand.toString())),c(f),t.emit("createDsc",f,n),f}class ln{constructor(t={}){this._traceId=t.traceId||Yt(),this._spanId=t.spanId||Wt()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:zh}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function kt(e,t=100,n=1/0){try{return _a("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Zh(e,t=3,n=100*1024){const r=kt(e,t);return _I(r)>n?Zh(e,t-1,n):r}function _a(e,t,n=1/0,r=1/0,o=SI()){const[s,i]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const c=vI(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;const a=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(a===0)return c.replace("object ","");if(s(t))return"[Circular ~]";const l=t;if(l&&typeof l.toJSON=="function")try{const h=l.toJSON();return _a("",h,a-1,r,o)}catch{}const d=Array.isArray(t)?[]:{};let f=0;const p=kh(t);for(const h in p){if(!Object.prototype.hasOwnProperty.call(p,h))continue;if(f>=r){d[h]="[MaxProperties ~]";break}const g=p[h];d[h]=_a(h,g,a-1,r,o),f++}return i(t),d}function vI(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Sh(t))return"[VueViewModel]";if(_T(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${qt(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=yI(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function yI(e){const t=Object.getPrototypeOf(e);return t!=null&&t.constructor?t.constructor.name:"null prototype"}function bI(e){return~-encodeURI(e).split(/%..|./).length}function _I(e){return bI(JSON.stringify(e))}function SI(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function vn(e,t=[]){return[e,t]}function wI(e,t){const[n,r]=e;return[n,[...r,t]]}function Uu(e,t){const n=e[1];for(const r of n){const o=r[0].type;if(t(r,o))return!0}return!1}function Sa(e){const t=ni(pe);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function xI(e){const[t,n]=e;let r=JSON.stringify(t);function o(s){typeof r=="string"?r=typeof s=="string"?r+s:[Sa(r),s]:r.push(typeof s=="string"?Sa(s):s)}for(const s of n){const[i,c]=s;if(o(`
${JSON.stringify(i)}
`),typeof c=="string"||c instanceof Uint8Array)o(c);else{let a;try{a=JSON.stringify(c)}catch{a=JSON.stringify(kt(c))}o(a)}}return typeof r=="string"?r:EI(r)}function EI(e){const t=e.reduce((o,s)=>o+s.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function kI(e){return[{type:"span"},e]}function TI(e){const t=typeof e.data=="string"?Sa(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const II={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function Hu(e){return II[e]}function Rc(e){if(!(e!=null&&e.sdk))return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function qh(e,t,n,r){var s;const o=(s=e.sdkProcessingMetadata)==null?void 0:s.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:zn(r)},...o&&{trace:o}}}function CI(e,t){var r,o,s,i;if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...((r=e.sdk)==null?void 0:r.integrations)||[],...t.integrations||[]],packages:[...((o=e.sdk)==null?void 0:o.packages)||[],...t.packages||[]],settings:(s=e.sdk)!=null&&s.settings||t.settings?{...(i=e.sdk)==null?void 0:i.settings,...t.settings}:void 0},e}function RI(e,t,n,r){const o=Rc(n),s={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:zn(t)}},i="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return vn(s,[i])}function AI(e,t,n,r){const o=Rc(n),s=e.type&&e.type!=="replay_event"?e.type:"event";CI(e,n==null?void 0:n.sdk);const i=qh(e,o,r,t);return delete e.sdkProcessingMetadata,vn(i,[[{type:s},e]])}function OI(e,t){function n(h){return!!h.trace_id&&!!h.public_key}const r=Jt(e[0]),o=t==null?void 0:t.getDsn(),s=t==null?void 0:t.getOptions().tunnel,i={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!s&&o&&{dsn:zn(o)}},{beforeSendSpan:c,ignoreSpans:a}=(t==null?void 0:t.getOptions())||{},l=a!=null&&a.length?e.filter(h=>!ws(me(h),a)):e,d=e.length-l.length;d&&(t==null||t.recordDroppedEvent("before_send","span",d));const f=c?h=>{const g=me(h),v=c(g);return v||(ba(),g)}:me,p=[];for(const h of l){const g=f(h);g&&p.push(kI(g))}return vn(i,p)}function PI(e){if(!q)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=me(e),{spanId:o}=e.spanContext(),s=gn(e),i=Ge(e),c=i===e,a=`[Tracing] Starting ${s?"sampled":"unsampled"} ${c?"root ":""}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&l.push(`parent ID: ${r}`),!c){const{op:d,description:f}=me(i);l.push(`root ID: ${i.spanContext().spanId}`),d&&l.push(`root op: ${d}`),f&&l.push(`root description: ${f}`)}z.log(`${a}
${l.join(`
`)}`)}function MI(e){if(!q)return;const{description:t="< unknown name >",op:n="< unknown op >"}=me(e),{spanId:r}=e.spanContext(),s=Ge(e)===e,i=`[Tracing] Finishing "${n}" ${s?"root ":""}span "${t}" with ID ${r}`;z.log(i)}function LI(e,t,n,r=Je()){const o=r&&Ge(r);o&&(q&&z.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),o.addEvent(e,{[co]:t,[ao]:n}))}function Wu(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},o=r[ao],s=r[co];typeof o=="string"&&typeof s=="number"&&(t[n.name]={value:s,unit:o})}),t}const Zu=1e3;class si{constructor(t={}){this._traceId=t.traceId||Yt(),this._spanId=t.spanId||Wt(),this._startTime=t.startTimestamp||Ue(),this._links=t.links,this._attributes={},this.setAttributes({[Ve]:"manual",[Kt]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Ic:zh}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=En(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(It,"custom"),this}end(t){this._endTime||(this._endTime=En(t),MI(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Kt],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Vh(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Ve],profile_id:this._attributes[kc],exclusive_time:this._attributes[Sr],measurements:Wu(this._events),is_segment:this._isStandaloneSpan&&Ge(this)===this||void 0,segment_id:this._isStandaloneSpan?Ge(this).spanContext().spanId:void 0,links:Fh(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){q&&z.log("[Tracing] Adding an event to span:",t);const o=qu(n)?n:r||Ue(),s=qu(n)?{}:n||{},i={name:t,time:En(o),attributes:s};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=le();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===Ge(this)))return;if(this._isStandaloneSpan){this._sampled?jI(OI([this],t)):(q&&z.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(Ss(this).scope||be()).captureEvent(r)}_convertSpanToTransaction(){var d;if(!Gu(me(this)))return;this._name||(q&&z.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=Ss(this),r=(d=t==null?void 0:t.getScopeData().sdkProcessingMetadata)==null?void 0:d.normalizedRequest;if(this._sampled!==!0)return;const s=es(this).filter(f=>f!==this&&!NI(f)).map(f=>me(f)).filter(Gu),i=this._attributes[It];delete this._attributes[Du],s.forEach(f=>{delete f.data[Du]});const c={contexts:{trace:aI(this)},spans:s.length>Zu?s.sort((f,p)=>f.start_timestamp-p.start_timestamp).slice(0,Zu):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:Jt(this)},request:r,...i&&{transaction_info:{source:i}}},a=Wu(this._events);return a&&Object.keys(a).length&&(q&&z.log("[Measurements] Adding measurements to transaction event",JSON.stringify(a,void 0,2)),c.measurements=a),c}}function qu(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Gu(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function NI(e){return e instanceof si&&e.isStandaloneSpan()}function jI(e){const t=le();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function DI(e,t,n=()=>{},r=()=>{}){let o;try{o=e()}catch(s){throw t(s),n(),s}return $I(o,t,n,r)}function $I(e,t,n,r){return yr(e)?e.then(o=>(n(),r(o),o),o=>{throw t(o),n(),o}):(n(),r(e),e)}function zI(e,t,n){if(!Ct(e))return[!1];let r,o;typeof e.tracesSampler=="function"?(o=e.tracesSampler({...t,inheritOrSampleWith:c=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):c}),r=!0):t.parentSampled!==void 0?o=t.parentSampled:typeof e.tracesSampleRate<"u"&&(o=e.tracesSampleRate,r=!0);const s=Pn(o);if(s===void 0)return q&&z.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),[!1];if(!s)return q&&z.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,s,r];const i=n<s;return i||q&&z.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),[i,s,r]}const Gh="__SENTRY_SUPPRESS_TRACING__";function FI(e,t){const n=Oc();if(n.startSpan)return n.startSpan(e,t);const r=Kh(e),{forceTransaction:o,parentSpan:s,scope:i}=e,c=i==null?void 0:i.clone();return $n(c,()=>BI(s)(()=>{const l=be(),d=Jh(l,s),p=e.onlyIfParent&&!d?new ln:Yh({parentSpan:d,spanArguments:r,forceTransaction:o,scope:l});return sr(l,p),DI(()=>t(p),()=>{const{status:h}=me(p);p.isRecording()&&(!h||h==="ok")&&p.setStatus({code:Fe,message:"internal_error"})},()=>{p.end()})}))}function wr(e){const t=Oc();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=Kh(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?i=>$n(e.scope,i):o!==void 0?i=>Ac(o,i):i=>i())(()=>{const i=be(),c=Jh(i,o);return e.onlyIfParent&&!c?new ln:Yh({parentSpan:c,spanArguments:n,forceTransaction:r,scope:i})})}function Ac(e,t){const n=Oc();return n.withActiveSpan?n.withActiveSpan(e,t):$n(r=>(sr(r,e||void 0),t(r)))}function Yh({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Ct()){const i=new ln;if(n||!e){const c={sampled:"false",sample_rate:"0",transaction:t.name,...Jt(i)};ts(i,c)}return i}const o=Rt();let s;if(e&&!n)s=VI(e,r,t),Bh(e,s);else if(e){const i=Jt(e),{traceId:c,spanId:a}=e.spanContext(),l=gn(e);s=Yu({traceId:c,parentSpanId:a,...t},r,l),ts(s,i)}else{const{traceId:i,dsc:c,parentSpanId:a,sampled:l}={...o.getPropagationContext(),...r.getPropagationContext()};s=Yu({traceId:i,parentSpanId:a,...t},r,l),c&&ts(s,c)}return PI(s),WT(s,r,o),s}function Kh(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=En(e.startTime),delete r.startTime,r}return n}function Oc(){const e=Nn();return _r(e)}function Yu(e,t,n){var g;const r=le(),o=(r==null?void 0:r.getOptions())||{},{name:s=""}=e,i={spanAttributes:{...e.attributes},spanName:s,parentSampled:n};r==null||r.emit("beforeSampling",i,{decision:!1});const c=i.parentSampled??n,a=i.spanAttributes,l=t.getPropagationContext(),[d,f,p]=t.getScopeData().sdkProcessingMetadata[Gh]?[!1]:zI(o,{name:s,parentSampled:c,attributes:a,parentSampleRate:Pn((g=l.dsc)==null?void 0:g.sample_rate)},l.sampleRand),h=new si({...e,attributes:{[It]:"custom",[Ec]:f!==void 0&&p?f:void 0,...a},sampled:d});return!d&&r&&(q&&z.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",h),h}function VI(e,t,n){const{spanId:r,traceId:o}=e.spanContext(),s=t.getScopeData().sdkProcessingMetadata[Gh]?!1:gn(e),i=s?new si({...n,parentSpanId:r,traceId:o,sampled:s}):new ln({traceId:o});Bh(e,i);const c=le();return c&&(c.emit("spanStart",i),n.endTimestamp&&c.emit("spanEnd",i)),i}function Jh(e,t){if(t)return t;if(t===null)return;const n=_s(e);if(!n)return;const r=le();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Ge(n):n}function BI(e){return e!==void 0?t=>Ac(e,t):t=>t()}const ns={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},UI="heartbeatFailed",HI="idleTimeout",WI="finalTimeout",ZI="externalFinish";function Xh(e,t={}){const n=new Map;let r=!1,o,s=ZI,i=!t.disableAutoFinish;const c=[],{idleTimeout:a=ns.idleTimeout,finalTimeout:l=ns.finalTimeout,childSpanTimeout:d=ns.childSpanTimeout,beforeSpanEnd:f,trimIdleSpanEndTimestamp:p=!0}=t,h=le();if(!h||!Ct()){const w=new ln,R={sample_rate:"0",sampled:"false",...Jt(w)};return ts(w,R),w}const g=be(),v=Je(),y=qI(e);y.end=new Proxy(y.end,{apply(w,R,A){if(f&&f(y),R instanceof ln)return;const[O,...L]=A,M=O||Ue(),F=En(M),j=es(y).filter(W=>W!==y),Z=me(y);if(!j.length||!p)return I(F),Reflect.apply(w,R,[F,...L]);const H=h.getOptions().ignoreSpans,N=j==null?void 0:j.reduce((W,B)=>{const U=me(B);return!U.timestamp||H&&ws(U,H)?W:W?Math.max(W,U.timestamp):U.timestamp},void 0),D=Z.start_timestamp,C=Math.min(D?D+l/1e3:1/0,Math.max(D||-1/0,Math.min(F,N||1/0)));return I(C),Reflect.apply(w,R,[C,...L])}});function b(){o&&(clearTimeout(o),o=void 0)}function _(w){b(),o=setTimeout(()=>{!r&&n.size===0&&i&&(s=HI,y.end(w))},a)}function S(w){o=setTimeout(()=>{!r&&i&&(s=UI,y.end(w))},d)}function E(w){b(),n.set(w,!0);const R=Ue();S(R+d/1e3)}function T(w){if(n.has(w)&&n.delete(w),n.size===0){const R=Ue();_(R+a/1e3)}}function I(w){r=!0,n.clear(),c.forEach(F=>F()),sr(g,v);const R=me(y),{start_timestamp:A}=R;if(!A)return;R.data[Yr]||y.setAttribute(Yr,s),z.log(`[Tracing] Idle span "${R.op}" finished`);const L=es(y).filter(F=>F!==y);let M=0;L.forEach(F=>{F.isRecording()&&(F.setStatus({code:Fe,message:"cancelled"}),F.end(w),q&&z.log("[Tracing] Cancelling span since span ended early",JSON.stringify(F,void 0,2)));const j=me(F),{timestamp:Z=0,start_timestamp:H=0}=j,N=H<=w,D=(l+a)/1e3,C=Z-H<=D;if(q){const W=JSON.stringify(F,void 0,2);N?C||z.log("[Tracing] Discarding span since it finished after idle span final timeout",W):z.log("[Tracing] Discarding span since it happened after idle span was finished",W)}(!C||!N)&&(pI(y,F),M++)}),M>0&&y.setAttribute("sentry.idle_span_discarded_spans",M)}return c.push(h.on("spanStart",w=>{if(r||w===y||me(w).timestamp||w instanceof si&&w.isStandaloneSpan())return;es(y).includes(w)&&E(w.spanContext().spanId)})),c.push(h.on("spanEnd",w=>{r||T(w.spanContext().spanId)})),c.push(h.on("idleSpanEnableAutoFinish",w=>{w===y&&(i=!0,_(),n.size&&S())})),t.disableAutoFinish||_(),setTimeout(()=>{r||(y.setStatus({code:Fe,message:"deadline_exceeded"}),s=WI,y.end())},l),y}function qI(e){const t=wr(e);return sr(be(),t),q&&z.log("[Tracing] Started span is an idle span"),t}const Ni=0,Ku=1,Ju=2;function ii(e){return new Kr(t=>{t(e)})}function Pc(e){return new Kr((t,n)=>{n(e)})}class Kr{constructor(t){this._state=Ni,this._handlers=[],this._runExecutor(t)}then(t,n){return new Kr((r,o)=>{this._handlers.push([!1,s=>{if(!t)r(s);else try{r(t(s))}catch(i){o(i)}},s=>{if(!n)o(s);else try{r(n(s))}catch(i){o(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Kr((n,r)=>{let o,s;return this.then(i=>{s=!1,o=i,t&&t()},i=>{s=!0,o=i,t&&t()}).then(()=>{if(s){r(o);return}n(o)})})}_executeHandlers(){if(this._state===Ni)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Ku&&n[1](this._value),this._state===Ju&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(s,i)=>{if(this._state===Ni){if(yr(i)){i.then(r,o);return}this._state=s,this._value=i,this._executeHandlers()}},r=s=>{n(Ku,s)},o=s=>{n(Ju,s)};try{t(r,o)}catch(s){o(s)}}}function GI(e,t,n,r=0){try{const o=wa(t,n,e,r);return yr(o)?o:ii(o)}catch(o){return Pc(o)}}function wa(e,t,n,r){const o=n[r];if(!e||!o)return e;const s=o({...e},t);return q&&s===null&&z.log(`Event processor "${o.id||"?"}" dropped event`),yr(s)?s.then(i=>wa(i,t,n,r+1)):wa(s,t,n,r+1)}function YI(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:s}=t;KI(e,t),r&&QI(e,r),eC(e,n),JI(e,o),XI(e,s)}function Xu(e,t){const{extra:n,tags:r,user:o,contexts:s,level:i,sdkProcessingMetadata:c,breadcrumbs:a,fingerprint:l,eventProcessors:d,attachments:f,propagationContext:p,transactionName:h,span:g}=t;Oo(e,"extra",n),Oo(e,"tags",r),Oo(e,"user",o),Oo(e,"contexts",s),e.sdkProcessingMetadata=io(e.sdkProcessingMetadata,c,2),i&&(e.level=i),h&&(e.transactionName=h),g&&(e.span=g),a.length&&(e.breadcrumbs=[...e.breadcrumbs,...a]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function Oo(e,t,n){e[t]=io(e[t],n,1)}function KI(e,t){const{extra:n,tags:r,user:o,contexts:s,level:i,transactionName:c}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(o).length&&(e.user={...o,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),i&&(e.level=i),c&&e.type!=="transaction"&&(e.transaction=c)}function JI(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function XI(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function QI(e,t){e.contexts={trace:cI(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Jt(t),...e.sdkProcessingMetadata};const n=Ge(t),r=me(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function eC(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}let Po,Qu,Mo;function tC(e){const t=pe._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Mo&&n.length===Qu||(Qu=n.length,Mo=n.reduce((r,o)=>{Po||(Po={});const s=Po[o];if(s)r[s[0]]=s[1];else{const i=e(o);for(let c=i.length-1;c>=0;c--){const a=i[c],l=a==null?void 0:a.filename,d=t[o];if(l&&d){r[l]=d,Po[o]=[l,d];break}}}return r},{})),Mo}function Qh(e,t,n,r,o,s){const{normalizeDepth:i=3,normalizeMaxBreadth:c=1e3}=e,a={...t,event_id:t.event_id||n.event_id||ht(),timestamp:t.timestamp||Dn()},l=n.integrations||e.integrations.map(y=>y.name);nC(a,e),sC(a,l),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&rC(a,e.stackParser);const d=aC(r,n.captureContext);n.mechanism&&On(a,n.mechanism);const f=o?o.getEventProcessors():[],p=$T().getScopeData();if(s){const y=s.getScopeData();Xu(p,y)}if(d){const y=d.getScopeData();Xu(p,y)}const h=[...n.attachments||[],...p.attachments];h.length&&(n.attachments=h),YI(a,p);const g=[...f,...p.eventProcessors];return GI(g,a,n).then(y=>(y&&oC(y),typeof i=="number"&&i>0?iC(y,i,c):y))}function nC(e,t){const{environment:n,release:r,dist:o,maxValueLength:s=250}=t;e.environment=e.environment||n||Cc,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o);const i=e.request;i!=null&&i.url&&(i.url=ys(i.url,s))}function rC(e,t){var r,o;const n=tC(t);(o=(r=e.exception)==null?void 0:r.values)==null||o.forEach(s=>{var i,c;(c=(i=s.stacktrace)==null?void 0:i.frames)==null||c.forEach(a=>{a.filename&&(a.debug_id=n[a.filename])})})}function oC(e){var r,o;const t={};if((o=(r=e.exception)==null?void 0:r.values)==null||o.forEach(s=>{var i,c;(c=(i=s.stacktrace)==null?void 0:i.frames)==null||c.forEach(a=>{a.debug_id&&(a.abs_path?t[a.abs_path]=a.debug_id:a.filename&&(t[a.filename]=a.debug_id),delete a.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([s,i])=>{n.push({type:"sourcemap",code_file:s,debug_id:i})})}function sC(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function iC(e,t,n){var o,s;if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:kt(i.data,t,n)}}))},...e.user&&{user:kt(e.user,t,n)},...e.contexts&&{contexts:kt(e.contexts,t,n)},...e.extra&&{extra:kt(e.extra,t,n)}};return(o=e.contexts)!=null&&o.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=kt(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>({...i,...i.data&&{data:kt(i.data,t,n)}}))),(s=e.contexts)!=null&&s.flags&&r.contexts&&(r.contexts.flags=kt(e.contexts.flags,3,n)),r}function aC(e,t){if(!t)return e;const n=e?e.clone():new zt;return n.update(t),n}function cC(e){if(e)return lC(e)?{captureContext:e}:dC(e)?{captureContext:e}:e}function lC(e){return e instanceof zt||typeof e=="function"}const uC=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function dC(e){return Object.keys(e).some(t=>uC.includes(t))}function ar(e,t){return be().captureException(e,cC(t))}function xa(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return be().captureMessage(e,n,r)}function em(e,t){return be().captureEvent(e,t)}function tm(e,t){Rt().setContext(e,t)}function fC(){return Rt().lastEventId()}function pC(){const e=le();return(e==null?void 0:e.getOptions().enabled)!==!1&&!!(e!=null&&e.getTransport())}function hC(e){Rt().addEventProcessor(e)}function ed(e){const t=Rt(),n=be(),{userAgent:r}=pe.navigator||{},o=CT({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),s=t.getSession();return(s==null?void 0:s.status)==="ok"&&or(s,{status:"exited"}),nm(),t.setSession(o),o}function nm(){const e=Rt(),n=be().getSession()||e.getSession();n&&RT(n),rm(),e.setSession()}function rm(){const e=Rt(),t=le(),n=e.getSession();n&&t&&t.captureSession(n)}function td(e=!1){if(e){nm();return}rm()}const mC="7";function om(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function gC(e){return`${om(e)}${e.projectId}/envelope/`}function vC(e,t){const n={sentry_version:mC};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function yC(e,t,n){return t||`${gC(e)}?${vC(e,n)}`}function bC(e,t){const n=Nh(e);if(!n)return"";const r=`${om(n)}embed/error-page/`;let o=`dsn=${zn(n)}`;for(const s in t)if(s!=="dsn"&&s!=="onClose")if(s==="user"){const i=t.user;if(!i)continue;i.name&&(o+=`&name=${encodeURIComponent(i.name)}`),i.email&&(o+=`&email=${encodeURIComponent(i.email)}`)}else o+=`&${encodeURIComponent(s)}=${encodeURIComponent(t[s])}`;return`${r}?${o}`}const nd=[];function _C(e){const t={};return e.forEach(n=>{const{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function SC(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const o=n(t);r=Array.isArray(o)?o:[o]}else r=t;return _C(r)}function wC(e,t){const n={};return t.forEach(r=>{r&&sm(e,r,n)}),n}function rd(e,t){for(const n of t)n!=null&&n.afterAllSetup&&n.afterAllSetup(e)}function sm(e,t,n){if(n[t.name]){q&&z.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,nd.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),nd.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,s)=>r(o,s,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),o=Object.assign((s,i)=>r(s,i,e),{id:t.name});e.addEventProcessor(o)}q&&z.log(`Integration installed: ${t.name}`)}function xC(e,t,n){const r=[{type:"client_report"},{timestamp:Dn(),discarded_events:e}];return vn(t?{dsn:t}:{},[r])}function im(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n!=null&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function EC(e){var a;const{trace_id:t,parent_span_id:n,span_id:r,status:o,origin:s,data:i,op:c}=((a=e.contexts)==null?void 0:a.trace)??{};return{data:i??{},description:e.transaction,op:c,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:i==null?void 0:i[kc],exclusive_time:i==null?void 0:i[Sr],measurements:e.measurements,is_segment:!0}}function kC(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[kc]:e.profile_id},...e.exclusive_time&&{[Sr]:e.exclusive_time}}}},measurements:e.measurements}}const od="Not capturing exception because it's already been captured.",sd="Discarded session because of missing or non-string release",am=Symbol.for("SentryInternalError"),cm=Symbol.for("SentryDoNotSendEventError");function rs(e){return{message:e,[am]:!0}}function ji(e){return{message:e,[cm]:!0}}function id(e){return!!e&&typeof e=="object"&&am in e}function ad(e){return!!e&&typeof e=="object"&&cm in e}class TC{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Nh(t.dsn):q&&z.warn("No DSN provided, client will not send events."),this._dsn){const n=yC(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){const o=ht();if(Lu(t))return q&&z.log(od),o;const s={event_id:o,...n};return this._process(this.eventFromException(t,s).then(i=>this._captureEvent(i,s,r))),s.event_id}captureMessage(t,n,r,o){const s={event_id:ht(),...r},i=Sc(t)?t:String(t),c=qr(t)?this.eventFromMessage(i,n,s):this.eventFromException(t,s);return this._process(c.then(a=>this._captureEvent(a,s,o))),s.event_id}captureEvent(t,n,r){const o=ht();if(n!=null&&n.originalException&&Lu(n.originalException))return q&&z.log(od),o;const s={event_id:o,...n},i=t.sdkProcessingMetadata||{},c=i.capturedSpanScope,a=i.capturedSpanIsolationScope;return this._process(this._captureEvent(t,s,c||r,a)),s.event_id}captureSession(t){this.sendSession(t),or(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const n=this._transport;if(!n)return!0;this.emit("flush");const r=await this._isClientDoneProcessing(t),o=await n.flush(t);return r&&o}async close(t){const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];sm(this,t,this._integrations),n||rd(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=AI(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=wI(r,TI(o));this.sendEnvelope(r).then(o=>this.emit("afterSendEvent",t,o))}sendSession(t){const{release:n,environment:r=Cc}=this._options;if("aggregates"in t){const s=t.attrs||{};if(!s.release&&!n){q&&z.warn(sd);return}s.release=s.release||n,s.environment=s.environment||r,t.attrs=s}else{if(!t.release&&!n){q&&z.warn(sd);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const o=RI(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const o=`${t}:${n}`;q&&z.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||new Set,o=(...s)=>n(...s);return r.add(o),()=>{r.delete(o)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(o=>o(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return q&&z.error("Error while sending envelope:",n),{}}return q&&z.error("Transport disabled"),{}}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=wC(this,t),rd(this,t)}_updateSessionFromEvent(t,n){var a;let r=n.level==="fatal",o=!1;const s=(a=n.exception)==null?void 0:a.values;if(s){o=!0;for(const l of s){const d=l.mechanism;if((d==null?void 0:d.handled)===!1){r=!0;break}}}const i=t.status==="ok";(i&&t.errors===0||i&&r)&&(or(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,o){const s=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&(i!=null&&i.length)&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),Qh(s,t,n,r,this,o).then(c=>{if(c===null)return c;this.emit("postprocessEvent",c,n),c.contexts={trace:zT(r),...c.contexts};const a=Wh(this,r);return c.sdkProcessingMetadata={dynamicSamplingContext:a,...c.sdkProcessingMetadata},c})}_captureEvent(t,n={},r=be(),o=Rt()){return q&&Ea(t)&&z.log(`Captured error event \`${im(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,o).then(s=>s.event_id,s=>{q&&(ad(s)?z.log(s.message):id(s)?z.warn(s.message):z.warn(s))})}_processEvent(t,n,r,o){const s=this.getOptions(),{sampleRate:i}=s,c=lm(t),a=Ea(t),l=t.type||"error",d=`before send for type \`${l}\``,f=typeof i>"u"?void 0:Pn(i);if(a&&typeof f=="number"&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error"),Pc(ji(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const p=l==="replay_event"?"replay":l;return this._prepareEvent(t,n,r,o).then(h=>{if(h===null)throw this.recordDroppedEvent("event_processor",p),ji("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return h;const v=CC(this,s,h,n);return IC(v,d)}).then(h=>{var y;if(h===null){if(this.recordDroppedEvent("before_send",p),c){const _=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",_)}throw ji(`${d} returned \`null\`, will not send event.`)}const g=r.getSession()||o.getSession();if(a&&g&&this._updateSessionFromEvent(g,h),c){const b=((y=h.sdkProcessingMetadata)==null?void 0:y.spanCountBeforeProcessing)||0,_=h.spans?h.spans.length:0,S=b-_;S>0&&this.recordDroppedEvent("before_send","span",S)}const v=h.transaction_info;if(c&&v&&h.transaction!==t.transaction){const b="custom";h.transaction_info={...v,source:b}}return this.sendEvent(h,n),h}).then(null,h=>{throw ad(h)||id(h)?h:(this.captureException(h,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:h}),rs(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${h}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[o,s]=n.split(":");return{reason:o,category:s,quantity:r}})}_flushOutcomes(){q&&z.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){q&&z.log("No outcomes to send");return}if(!this._dsn){q&&z.log("No dsn provided, will not send outcomes");return}q&&z.log("Sending outcomes:",t);const n=xC(t,this._options.tunnel&&zn(this._dsn));this.sendEnvelope(n)}}function IC(e,t){const n=`${t} must return \`null\` or a valid event.`;if(yr(e))return e.then(r=>{if(!Gr(r)&&r!==null)throw rs(n);return r},r=>{throw rs(`${t} rejected with ${r}`)});if(!Gr(e)&&e!==null)throw rs(n);return e}function CC(e,t,n,r){const{beforeSend:o,beforeSendTransaction:s,beforeSendSpan:i,ignoreSpans:c}=t;let a=n;if(Ea(a)&&o)return o(a,r);if(lm(a)){if(i||c){const l=EC(a);if(c!=null&&c.length&&ws(l,c))return null;if(i){const d=i(l);d?a=io(n,kC(d)):ba()}if(a.spans){const d=[],f=a.spans;for(const h of f){if(c!=null&&c.length&&ws(h,c)){mI(f,h);continue}if(i){const g=i(h);g?d.push(g):(ba(),d.push(h))}else d.push(h)}const p=a.spans.length-d.length;p&&e.recordDroppedEvent("before_send","span",p),a.spans=d}}if(s){if(a.spans){const l=a.spans.length;a.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:l}}return s(a,r)}}return a}function Ea(e){return e.type===void 0}function lm(e){return e.type==="transaction"}function RC(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function AC(e,t,n,r){const o={};return t!=null&&t.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=zn(r)),vn(o,[RC(e)])}function Di(e,t){const n=OC(e)??[];if(n.length===0)return;const r=e.getOptions(),o=AC(n,r._metadata,r.tunnel,e.getDsn());um().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function OC(e){return um().get(e)}function um(){return gr("clientToLogBufferMap",()=>new WeakMap)}function PC(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function MC(e,t,n,r){const o={};return t!=null&&t.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=zn(r)),vn(o,[PC(e)])}function $i(e,t){const n=LC(e)??[];if(n.length===0)return;const r=e.getOptions(),o=MC(n,r._metadata,r.tunnel,e.getDsn());dm().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(o)}function LC(e){return dm().get(e)}function dm(){return gr("clientToMetricBufferMap",()=>new WeakMap)}function NC(e,t){t.debug===!0&&(q?z.enable():jn(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),be().update(t.initialScope);const r=new e(t);return jC(r),r.init(),r}function jC(e){be().setClient(e)}const fm=Symbol.for("SentryBufferFullError");function DC(e=100){const t=new Set;function n(){return t.size<e}function r(i){t.delete(i)}function o(i){if(!n())return Pc(fm);const c=i();return t.add(c),c.then(()=>r(c),()=>r(c)),c}function s(i){if(!t.size)return ii(!0);const c=Promise.allSettled(Array.from(t)).then(()=>!0);if(!i)return c;const a=[c,new Promise(l=>setTimeout(()=>l(!1),i))];return Promise.race(a)}return{get $(){return Array.from(t)},add:o,drain:s}}const $C=60*1e3;function zC(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?$C:r-t}function FC(e,t){return e[t]||e.all||0}function pm(e,t,n=Date.now()){return FC(e,t)>n}function hm(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},s=n==null?void 0:n["x-sentry-rate-limits"],i=n==null?void 0:n["retry-after"];if(s)for(const c of s.trim().split(",")){const[a,l,,,d]=c.split(":",5),f=parseInt(a,10),p=(isNaN(f)?60:f)*1e3;if(!l)o.all=r+p;else for(const h of l.split(";"))h==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(o[h]=r+p):o[h]=r+p}else i?o.all=r+zC(i,r):t===429&&(o.all=r+60*1e3);return o}const VC=64;function BC(e,t,n=DC(e.bufferSize||VC)){let r={};const o=i=>n.drain(i);function s(i){const c=[];if(Uu(i,(f,p)=>{const h=Hu(p);pm(r,h)?e.recordDroppedEvent("ratelimit_backoff",h):c.push(f)}),c.length===0)return Promise.resolve({});const a=vn(i[0],c),l=f=>{Uu(a,(p,h)=>{e.recordDroppedEvent(f,Hu(h))})},d=()=>t({body:xI(a)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&q&&z.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=hm(r,f),f),f=>{throw l("network_error"),q&&z.error("Encountered error running transport request:",f),f});return n.add(d).then(f=>f,f=>{if(f===fm)return q&&z.error("Skipped sending event because buffer is full."),l("queue_overflow"),Promise.resolve({});throw f})}return{send:s,flush:o}}const UC="thismessage:/";function Mc(e){return"isRelative"in e}function Lc(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?UC:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const o=new URL(e,r);return n?{isRelative:n,pathname:o.pathname,search:o.search,hash:o.hash}:o}catch{}}function HC(e){if(Mc(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function Tn(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function WC(e){return e.split(/[?#]/,1)[0]}function ZC(e,t){const n=t==null?void 0:t.getDsn(),r=t==null?void 0:t.getOptions().tunnel;return GC(e,n)||qC(e,r)}function qC(e,t){return t?cd(e)===cd(t):!1}function GC(e,t){const n=Lc(e);return!n||Mc(n)?!1:t?n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function cd(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function YC(e){var t;"aggregates"in e?((t=e.attrs)==null?void 0:t.ip_address)===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function mm(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(s=>({name:`${r}:@sentry/${s}`,version:xn})),version:xn}),e._metadata=o}function gm(e={}){const t=e.client||le();if(!pC()||!t)return{};const n=Nn(),r=_r(n);if(r.getTraceData)return r.getTraceData(e);const o=e.scope||be(),s=e.span||Je(),i=s?lI(s):KC(o),c=s?Jt(s):Wh(t,o),a=GT(c);if(!jh.test(i))return z.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const d={"sentry-trace":i,baggage:a};if(e.propagateTraceparent){const f=s?uI(s):JC(o);f&&(d.traceparent=f)}return d}function KC(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Dh(t,r,n)}function JC(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return $h(t,r,n)}function XC(e,t,n){let r,o,s;const i=n!=null&&n.maxWait?Math.max(n.maxWait,t):0,c=(n==null?void 0:n.setTimeoutImpl)||setTimeout;function a(){return l(),r=e(),r}function l(){o!==void 0&&clearTimeout(o),s!==void 0&&clearTimeout(s),o=s=void 0}function d(){return o!==void 0||s!==void 0?a():r}function f(){return o&&clearTimeout(o),o=c(a,t),i&&s===void 0&&(s=c(a,i)),r}return f.cancel=l,f.flush=d,f}const QC=100;function un(e,t){const n=le(),r=Rt();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=QC}=n.getOptions();if(s<=0)return;const c={timestamp:Dn(),...e},a=o?jn(()=>o(c,t)):c;a!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,s))}let ld;const eR="FunctionToString",ud=new WeakMap,tR=()=>({name:eR,setupOnce(){ld=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=xc(this),n=ud.has(le())&&t!==void 0?t:this;return ld.apply(n,e)}}catch{}},setup(e){ud.set(e,!0)}}),nR=tR,rR=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],oR="EventFilters",sR=(e={})=>{let t;return{name:oR,setup(n){const r=n.getOptions();t=dd(e,r)},processEvent(n,r,o){if(!t){const s=o.getOptions();t=dd(e,s)}return aR(n,t)?null:n}}},iR=(e={})=>({...sR(e),name:"InboundFilters"});function dd(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:rR],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function aR(e,t){if(e.type){if(e.type==="transaction"&&lR(e,t.ignoreTransactions))return q&&z.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${_n(e)}`),!0}else{if(cR(e,t.ignoreErrors))return q&&z.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${_n(e)}`),!0;if(pR(e))return q&&z.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${_n(e)}`),!0;if(uR(e,t.denyUrls))return q&&z.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${_n(e)}.
Url: ${xs(e)}`),!0;if(!dR(e,t.allowUrls))return q&&z.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${_n(e)}.
Url: ${xs(e)}`),!0}return!1}function cR(e,t){return t!=null&&t.length?im(e).some(n=>Ht(n,t)):!1}function lR(e,t){if(!(t!=null&&t.length))return!1;const n=e.transaction;return n?Ht(n,t):!1}function uR(e,t){if(!(t!=null&&t.length))return!1;const n=xs(e);return n?Ht(n,t):!1}function dR(e,t){if(!(t!=null&&t.length))return!0;const n=xs(e);return n?Ht(n,t):!0}function fR(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function xs(e){var t,n;try{const r=[...((t=e.exception)==null?void 0:t.values)??[]].reverse().find(s=>{var i,c,a;return((i=s.mechanism)==null?void 0:i.parent_id)===void 0&&((a=(c=s.stacktrace)==null?void 0:c.frames)==null?void 0:a.length)}),o=(n=r==null?void 0:r.stacktrace)==null?void 0:n.frames;return o?fR(o):null}catch{return q&&z.error(`Cannot extract url for event ${_n(e)}`),null}}function pR(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)!=null&&n.length?!e.message&&!e.exception.values.some(r=>r.stacktrace||r.type&&r.type!=="Error"||r.value):!1}function hR(e,t,n,r,o,s){var c;if(!((c=o.exception)!=null&&c.values)||!s||!Gt(s.originalException,Error))return;const i=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;i&&(o.exception.values=ka(e,t,r,s.originalException,n,o.exception.values,i,0))}function ka(e,t,n,r,o,s,i,c){if(s.length>=n+1)return s;let a=[...s];if(Gt(r[o],Error)){fd(i,c);const l=e(t,r[o]),d=a.length;pd(l,o,d,c),a=ka(e,t,n,r[o],o,[l,...a],l,d)}return Array.isArray(r.errors)&&r.errors.forEach((l,d)=>{if(Gt(l,Error)){fd(i,c);const f=e(t,l),p=a.length;pd(f,`errors[${d}]`,p,c),a=ka(e,t,n,l,o,[f,...a],f,p)}}),a}function fd(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function pd(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function vm(e){const t="console";hn(t,e),mn(t,mR)}function mR(){"console"in pe&&ph.forEach(function(e){e in pe.console&&et(pe.console,e,function(t){return vs[e]=t,function(...n){St("console",{args:n,level:e});const o=vs[e];o==null||o.apply(pe.console,n)}})})}function Nc(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const gR="CaptureConsole",vR=(e={})=>{const t=e.levels||ph,n=e.handled??!0;return{name:gR,setup(r){"console"in pe&&vm(({args:o,level:s})=>{le()!==r||!t.includes(s)||bR(o,s,n)})}}},yR=vR;function bR(e,t,n){const r={level:Nc(t),extra:{arguments:e}};$n(o=>{if(o.addEventProcessor(c=>(c.logger="console",On(c,{handled:n,type:"auto.core.capture_console"}),c)),t==="assert"){if(!e[0]){const c=`Assertion failed: ${bs(e.slice(1)," ")||"console.assert"}`;o.setExtra("arguments",e.slice(1)),xa(c,r)}return}const s=e.find(c=>c instanceof Error);if(s){ar(s,r);return}const i=bs(e," ");xa(i,r)})}const _R="Dedupe",SR=()=>{let e;return{name:_R,processEvent(t){if(t.type)return t;try{if(xR(t,e))return q&&z.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},wR=SR;function xR(e,t){return t?!!(ER(e,t)||kR(e,t)):!1}function ER(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!bm(e,t)||!ym(e,t))}function kR(e,t){const n=hd(t),r=hd(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!bm(e,t)||!ym(e,t))}function ym(e,t){let n=Ru(e),r=Ru(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){const s=r[o],i=n[o];if(s.filename!==i.filename||s.lineno!==i.lineno||s.colno!==i.colno||s.function!==i.function)return!1}return!0}function bm(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function hd(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function TR(e,t,n,r,o){if(!e.fetchData)return;const{method:s,url:i}=e.fetchData,c=Ct()&&t(i);if(e.endTimestamp&&c){const h=e.fetchData.__span;if(!h)return;const g=r[h];g&&(CR(g,e),delete r[h]);return}const{spanOrigin:a="auto.http.browser",propagateTraceparent:l=!1}=typeof o=="object"?o:{spanOrigin:o},d=!!Je(),f=c&&d?wr(AR(i,s,a)):new ln;if(e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f,n(e.fetchData.url)){const h=e.args[0],g=e.args[1]||{},v=IR(h,g,Ct()&&d?f:void 0,l);v&&(e.args[1]=g,g.headers=v)}const p=le();if(p){const h={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};p.emit("beforeOutgoingRequestSpan",f,h)}return f}function IR(e,t,n,r){const o=gm({span:n,propagateTraceparent:r}),s=o["sentry-trace"],i=o.baggage,c=o.traceparent;if(!s)return;const a=t.headers||(wh(e)?e.headers:void 0);if(a)if(RR(a)){const l=new Headers(a);if(l.get("sentry-trace")||l.set("sentry-trace",s),r&&c&&!l.get("traceparent")&&l.set("traceparent",c),i){const d=l.get("baggage");d?Lo(d)||l.set("baggage",`${d},${i}`):l.set("baggage",i)}return l}else if(Array.isArray(a)){const l=[...a];a.find(f=>f[0]==="sentry-trace")||l.push(["sentry-trace",s]),r&&c&&!a.find(f=>f[0]==="traceparent")&&l.push(["traceparent",c]);const d=a.find(f=>f[0]==="baggage"&&Lo(f[1]));return i&&!d&&l.push(["baggage",i]),l}else{const l="sentry-trace"in a?a["sentry-trace"]:void 0,d="traceparent"in a?a.traceparent:void 0,f="baggage"in a?a.baggage:void 0,p=f?Array.isArray(f)?[...f]:[f]:[],h=f&&(Array.isArray(f)?f.find(v=>Lo(v)):Lo(f));i&&!h&&p.push(i);const g={...a,"sentry-trace":l??s,baggage:p.length>0?p.join(","):void 0};return r&&c&&!d&&(g.traceparent=c),g}else return{...o}}function CR(e,t){var n,r;if(t.response){Ah(e,t.response.status);const o=(r=(n=t.response)==null?void 0:n.headers)==null?void 0:r.get("content-length");if(o){const s=parseInt(o);s>0&&e.setAttribute("http.response_content_length",s)}}else t.error&&e.setStatus({code:Fe,message:"internal_error"});e.end()}function Lo(e){return e.split(",").some(t=>t.trim().startsWith(Tc))}function RR(e){return typeof Headers<"u"&&Gt(e,Headers)}function AR(e,t,n){const r=Lc(e);return{name:r?`${t} ${HC(r)}`:t,attributes:OR(e,r,t,n)}}function OR(e,t,n,r){const o={url:e,type:"fetch","http.method":n,[Ve]:r,[Kt]:"http.client"};return t&&(Mc(t)||(o["http.url"]=t.href,o["server.address"]=t.host),t.search&&(o["http.query"]=t.search),t.hash&&(o["http.fragment"]=t.hash)),o}function _m(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Jr=pe;function PR(){return"history"in Jr&&!!Jr.history}function MR(){if(!("fetch"in Jr))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Ta(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function LR(){var n;if(typeof EdgeRuntime=="string")return!0;if(!MR())return!1;if(Ta(Jr.fetch))return!0;let e=!1;const t=Jr.document;if(t&&typeof t.createElement=="function")try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),(n=r.contentWindow)!=null&&n.fetch&&(e=Ta(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){q&&z.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}function Sm(e,t){const n="fetch";hn(n,e),mn(n,()=>wm(void 0,t))}function NR(e){const t="fetch-body-resolved";hn(t,e),mn(t,()=>wm(DR))}function wm(e,t=!1){t&&!LR()||et(pe,"fetch",function(n){return function(...r){const o=new Error,{method:s,url:i}=$R(r),c={args:r,fetchData:{method:s,url:i},startTimestamp:Ue()*1e3,virtualError:o,headers:zR(r)};return e||St("fetch",{...c}),n.apply(pe,r).then(async a=>(e?e(a):St("fetch",{...c,endTimestamp:Ue()*1e3,response:a}),a),a=>{if(St("fetch",{...c,endTimestamp:Ue()*1e3,error:a}),ri(a)&&a.stack===void 0&&(a.stack=o.stack,gt(a,"framesToPop",1)),a instanceof TypeError&&(a.message==="Failed to fetch"||a.message==="Load failed"||a.message==="NetworkError when attempting to fetch resource."))try{const l=new URL(c.fetchData.url);a.message=`${a.message} (${l.host})`}catch{}throw a})}})}async function jR(e,t){if(e!=null&&e.body){const n=e.body,r=n.getReader(),o=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let s=!0;for(;s;){let i;try{i=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:c}=await r.read();clearTimeout(i),c&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(i)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,()=>{})}}function DR(e){let t;try{t=e.clone()}catch{return}jR(t,()=>{St("fetch-body-resolved",{endTimestamp:Ue()*1e3,response:e})})}function Ia(e,t){return!!e&&typeof e=="object"&&!!e[t]}function md(e){return typeof e=="string"?e:e?Ia(e,"url")?e.url:e.toString?e.toString():"":""}function $R(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:md(n),method:Ia(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:md(t),method:Ia(t,"method")?String(t.method).toUpperCase():"GET"}}function zR(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(wh(t))return new Headers(t.headers)}catch{}}function FR(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function VR(){return"npm"}function BR(){return!FR()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function gd(){return typeof window<"u"&&(!BR()||UR())}function UR(){const e=pe.process;return(e==null?void 0:e.type)==="renderer"}const de=pe;let Ca=0;function xm(){return Ca>0}function HR(){Ca++,setTimeout(()=>{Ca--})}function cr(e,t={}){function n(o){return typeof o=="function"}if(!n(e))return e;try{const o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(xc(e))return e}catch{return e}const r=function(...o){try{const s=o.map(i=>cr(i,t));return e.apply(this,s)}catch(s){throw HR(),$n(i=>{i.addEventProcessor(c=>(t.mechanism&&(ga(c,void 0),On(c,t.mechanism)),c.extra={...c.extra,arguments:o},c)),ar(s)}),s}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}Eh(r,e),gt(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function jc(){const e=br(),{referrer:t}=de.document||{},{userAgent:n}=de.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function Dc(e,t){const n=$c(e,t),r={type:YR(t),value:KR(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function WR(e,t,n,r){const o=le(),s=o==null?void 0:o.getOptions().normalizeDepth,i=tA(t),c={__serialized__:Zh(t,s)};if(i)return{exception:{values:[Dc(e,i)]},extra:c};const a={exception:{values:[{type:oi(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:QR(t,{isUnhandledRejection:r})}]},extra:c};if(n){const l=$c(e,n);l.length&&(a.exception.values[0].stacktrace={frames:l})}return a}function zi(e,t){return{exception:{values:[Dc(e,t)]}}}function $c(e,t){const n=t.stacktrace||t.stack||"",r=qR(t),o=GR(t);try{return e(n,r,o)}catch{}return[]}const ZR=/Minified React error #\d+;/i;function qR(e){return e&&ZR.test(e.message)?1:0}function GR(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Em(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function YR(e){const t=e==null?void 0:e.name;return!t&&Em(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function KR(e){const t=e==null?void 0:e.message;return Em(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function JR(e,t,n,r){const o=(n==null?void 0:n.syntheticException)||void 0,s=zc(e,t,o,r);return On(s),s.level="error",n!=null&&n.event_id&&(s.event_id=n.event_id),ii(s)}function XR(e,t,n="info",r,o){const s=(r==null?void 0:r.syntheticException)||void 0,i=Ra(e,t,s,o);return i.level=n,r!=null&&r.event_id&&(i.event_id=r.event_id),ii(i)}function zc(e,t,n,r,o){let s;if(_h(t)&&t.error)return zi(e,t.error);if(Ou(t)||vT(t)){const i=t;if("stack"in t)s=zi(e,t);else{const c=i.name||(Ou(i)?"DOMError":"DOMException"),a=i.message?`${c}: ${i.message}`:c;s=Ra(e,a,n,r),ga(s,a)}return"code"in i&&(s.tags={...s.tags,"DOMException.code":`${i.code}`}),s}return ri(t)?zi(e,t):Gr(t)||oi(t)?(s=WR(e,t,n,o),On(s,{synthetic:!0}),s):(s=Ra(e,t,n,r),ga(s,`${t}`),On(s,{synthetic:!0}),s)}function Ra(e,t,n,r){const o={};if(r&&n){const s=$c(e,n);s.length&&(o.exception={values:[{value:t,stacktrace:{frames:s}}]}),On(o,{synthetic:!0})}if(Sc(t)){const{__sentry_template_string__:s,__sentry_template_values__:i}=t;return o.logentry={message:s,params:i},o}return o.message=t,o}function QR(e,{isUnhandledRejection:t}){const n=xT(e),r=t?"promise rejection":"exception";return _h(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:oi(e)?`Event \`${eA(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function eA(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function tA(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const vd=5e3;class nA extends TC{constructor(t){var a;const n=rA(t),r=de.SENTRY_SDK_SOURCE||VR();mm(n,"browser",["browser"],r),(a=n._metadata)!=null&&a.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:o,sendClientReports:s,enableLogs:i,_experiments:c}=this._options;de.document&&(s||i||c!=null&&c.enableMetrics)&&de.document.addEventListener("visibilitychange",()=>{de.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),i&&Di(this),c!=null&&c.enableMetrics&&$i(this))}),i&&(this.on("flush",()=>{Di(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{Di(this)},vd)})),c!=null&&c.enableMetrics&&(this.on("flush",()=>{$i(this)}),this.on("afterCaptureMetric",()=>{this._metricFlushIdleTimeout&&clearTimeout(this._metricFlushIdleTimeout),this._metricFlushIdleTimeout=setTimeout(()=>{$i(this)},vd)})),o&&this.on("beforeSendSession",YC)}eventFromException(t,n){return JR(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return XR(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,o)}}function rA(e){var t;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(t=de.SENTRY_RELEASE)==null?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const lr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,te=pe,oA=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",lo=(e,t,n,r)=>{let o,s;return i=>{t.value>=0&&(i||r)&&(s=t.value-(o??0),(s||o===void 0)&&(o=t.value,t.delta=s,t.rating=oA(t.value,n),e(t)))}},sA=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,uo=(e=!0)=>{var n,r;const t=(r=(n=te.performance)==null?void 0:n.getEntriesByType)==null?void 0:r.call(n,"navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},xr=()=>{const e=uo();return(e==null?void 0:e.activationStart)??0},fo=(e,t=-1)=>{var s,i;const n=uo();let r="navigate";return n&&((s=te.document)!=null&&s.prerendering||xr()>0?r="prerender":(i=te.document)!=null&&i.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:sA(),navigationType:r}},Fi=new WeakMap;function Fc(e,t){return Fi.get(e)||Fi.set(e,new t),Fi.get(e)}class Es{constructor(){Es.prototype.__init.call(this),Es.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){var o;if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),(o=this._onAfterProcessingUnexpectedShift)==null||o.call(this,t)}}const Er=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(o=>{Promise.resolve().then(()=>{t(o.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},Vc=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Nr=-1;const iA=()=>{var e,t;return((e=te.document)==null?void 0:e.visibilityState)==="hidden"&&!((t=te.document)!=null&&t.prerendering)?0:1/0},ks=e=>{te.document.visibilityState==="hidden"&&Nr>-1&&(Nr=e.type==="visibilitychange"?e.timeStamp:0,cA())},aA=()=>{addEventListener("visibilitychange",ks,!0),addEventListener("prerenderingchange",ks,!0)},cA=()=>{removeEventListener("visibilitychange",ks,!0),removeEventListener("prerenderingchange",ks,!0)},Bc=()=>{var e;if(te.document&&Nr<0){const t=xr();Nr=(te.document.prerendering||(e=globalThis.performance.getEntriesByType("visibility-state").filter(r=>r.name==="hidden"&&r.startTime>t)[0])==null?void 0:e.startTime)??iA(),aA()}return{get firstHiddenTime(){return Nr}}},ai=e=>{var t;(t=te.document)!=null&&t.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},lA=[1800,3e3],uA=(e,t={})=>{ai(()=>{const n=Bc(),r=fo("FCP");let o;const i=Er("paint",c=>{for(const a of c)a.name==="first-contentful-paint"&&(i.disconnect(),a.startTime<n.firstHiddenTime&&(r.value=Math.max(a.startTime-xr(),0),r.entries.push(a),o(!0)))});i&&(o=lo(e,r,lA,t.reportAllChanges))})},dA=[.1,.25],fA=(e,t={})=>{uA(Vc(()=>{var c,a;const n=fo("CLS",0);let r;const o=Fc(t,Es),s=l=>{for(const d of l)o._processEntry(d);o._sessionValue>n.value&&(n.value=o._sessionValue,n.entries=o._sessionEntries,r())},i=Er("layout-shift",s);i&&(r=lo(e,n,dA,t.reportAllChanges),(c=te.document)==null||c.addEventListener("visibilitychange",()=>{var l;((l=te.document)==null?void 0:l.visibilityState)==="hidden"&&(s(i.takeRecords()),r(!0))}),(a=te==null?void 0:te.setTimeout)==null||a.call(te,r))}))};let km=0,Vi=1/0,No=0;const pA=e=>{e.forEach(t=>{t.interactionId&&(Vi=Math.min(Vi,t.interactionId),No=Math.max(No,t.interactionId),km=No?(No-Vi)/7+1:0)})};let Aa;const Tm=()=>Aa?km:performance.interactionCount||0,hA=()=>{"interactionCount"in performance||Aa||(Aa=Er("event",pA,{type:"event",buffered:!0,durationThreshold:0}))},Bi=10;let Im=0;const mA=()=>Tm()-Im;class Ts{constructor(){Ts.prototype.__init.call(this),Ts.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){Im=Tm(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(mA()/50));return this._longestInteractionList[t]}_processEntry(t){var o,s;if((o=this._onBeforeProcessingEntry)==null||o.call(this,t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<Bi||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((i,c)=>c._latency-i._latency),this._longestInteractionList.length>Bi){const i=this._longestInteractionList.splice(Bi);for(const c of i)this._longestInteractionMap.delete(c.id)}(s=this._onAfterProcessingINPCandidate)==null||s.call(this,r)}}}const Uc=e=>{const t=n=>{var r;(n.type==="pagehide"||((r=te.document)==null?void 0:r.visibilityState)==="hidden")&&e(n)};te.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},Cm=e=>{var n;const t=te.requestIdleCallback||te.setTimeout;((n=te.document)==null?void 0:n.visibilityState)==="hidden"?e():(e=Vc(e),t(e),Uc(e))},gA=[200,500],vA=40,yA=(e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&ai(()=>{hA();const n=fo("INP");let r;const o=Fc(t,Ts),s=c=>{Cm(()=>{for(const l of c)o._processEntry(l);const a=o._estimateP98LongestInteraction();a&&a._latency!==n.value&&(n.value=a._latency,n.entries=a.entries,r())})},i=Er("event",s,{durationThreshold:t.durationThreshold??vA});r=lo(e,n,gA,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),Uc(()=>{s(i.takeRecords()),r(!0)}))})};class bA{_processEntry(t){var n;(n=this._onBeforeProcessingEntry)==null||n.call(this,t)}}const _A=[2500,4e3],SA=(e,t={})=>{ai(()=>{const n=Bc(),r=fo("LCP");let o;const s=Fc(t,bA),i=a=>{t.reportAllChanges||(a=a.slice(-1));for(const l of a)s._processEntry(l),l.startTime<n.firstHiddenTime&&(r.value=Math.max(l.startTime-xr(),0),r.entries=[l],o())},c=Er("largest-contentful-paint",i);if(c){o=lo(e,r,_A,t.reportAllChanges);const a=Vc(()=>{i(c.takeRecords()),c.disconnect(),o(!0)});for(const l of["keydown","click","visibilitychange"])te.document&&addEventListener(l,()=>Cm(a),{capture:!0,once:!0})}})},wA=[800,1800],Oa=e=>{var t,n;(t=te.document)!=null&&t.prerendering?ai(()=>Oa(e)):((n=te.document)==null?void 0:n.readyState)!=="complete"?addEventListener("load",()=>Oa(e),!0):setTimeout(e)},xA=(e,t={})=>{const n=fo("TTFB"),r=lo(e,n,wA,t.reportAllChanges);Oa(()=>{const o=uo();o&&(n.value=Math.max(o.responseStart-xr(),0),n.entries=[o],r(!0))})},jr={},Is={};let Rm,Am,Om,Pm;function Hc(e,t=!1){return ci("cls",e,kA,Rm,t)}function Wc(e,t=!1){return ci("lcp",e,TA,Am,t)}function EA(e){return ci("ttfb",e,IA,Om)}function Mm(e){return ci("inp",e,CA,Pm)}function Mn(e,t){return Lm(e,t),Is[e]||(RA(e),Is[e]=!0),Nm(e,t)}function po(e,t){const n=jr[e];if(n!=null&&n.length)for(const r of n)try{r(t)}catch(o){lr&&z.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${qt(r)}
Error:`,o)}}function kA(){return fA(e=>{po("cls",{metric:e}),Rm=e},{reportAllChanges:!0})}function TA(){return SA(e=>{po("lcp",{metric:e}),Am=e},{reportAllChanges:!0})}function IA(){return xA(e=>{po("ttfb",{metric:e}),Om=e})}function CA(){return yA(e=>{po("inp",{metric:e}),Pm=e})}function ci(e,t,n,r,o=!1){Lm(e,t);let s;return Is[e]||(s=n(),Is[e]=!0),r&&t({metric:r}),Nm(e,t,o?s:void 0)}function RA(e){const t={};e==="event"&&(t.durationThreshold=0),Er(e,n=>{po(e,{entries:n})},t)}function Lm(e,t){jr[e]=jr[e]||[],jr[e].push(t)}function Nm(e,t,n){return()=>{n&&n();const r=jr[e];if(!r)return;const o=r.indexOf(t);o!==-1&&r.splice(o,1)}}function AA(e){return"duration"in e}function Ui(e){return typeof e=="number"&&isFinite(e)}function dn(e,t,n,{...r}){const o=me(e).start_timestamp;return o&&o>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Ac(e,()=>{const s=wr({startTime:t,...r});return s&&s.end(n),s})}function Zc(e){var y;const t=le();if(!t)return;const{name:n,transaction:r,attributes:o,startTime:s}=e,{release:i,environment:c,sendDefaultPii:a}=t.getOptions(),l=t.getIntegrationByName("Replay"),d=l==null?void 0:l.getReplayId(),f=be(),p=f.getUser(),h=p!==void 0?p.email||p.id||p.ip_address:void 0;let g;try{g=f.getScopeData().contexts.profile.profile_id}catch{}const v={release:i,environment:c,user:h||void 0,profile_id:g||void 0,replay_id:d||void 0,transaction:r,"user_agent.original":(y=te.navigator)==null?void 0:y.userAgent,"client.address":a?"{{auto}}":void 0,...o};return wr({name:n,attributes:v,startTime:s,experimental:{standalone:!0}})}function ho(){return te.addEventListener&&te.performance}function Le(e){return e/1e3}function OA(e){let t="unknown",n="unknown",r="";for(const o of e){if(o==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}function jm(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function Dm(e,t){let n,r=!1;function o(c){!r&&n&&t(c,n),r=!0}Uc(()=>{o("pagehide")});const s=e.on("beforeStartNavigationSpan",(c,a)=>{a!=null&&a.isRedirect||(o("navigation"),s(),i())}),i=e.on("afterStartPageLoadSpan",c=>{n=c.spanContext().spanId,i()})}function PA(e){let t=0,n;if(!jm("layout-shift"))return;const r=Hc(({metric:o})=>{const s=o.entries[o.entries.length-1];s&&(t=o.value,n=s)},!0);Dm(e,(o,s)=>{MA(t,n,s,o),r()})}function MA(e,t,n,r){var l;lr&&z.log(`Sending CLS span (${e})`);const o=t?Le((ot()||0)+t.startTime):Ue(),s=be().getScopeData().transactionName,i=t?wt((l=t.sources[0])==null?void 0:l.node):"Layout shift",c={[Ve]:"auto.http.browser.cls",[Kt]:"ui.webvital.cls",[Sr]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t!=null&&t.sources&&t.sources.forEach((d,f)=>{c[`cls.source.${f+1}`]=wt(d.node)});const a=Zc({name:i,transaction:s,attributes:c,startTime:o});a&&(a.addEvent("cls",{[ao]:"",[co]:e}),a.end(o))}function LA(e){let t=0,n;if(!jm("largest-contentful-paint"))return;const r=Wc(({metric:o})=>{const s=o.entries[o.entries.length-1];s&&(t=o.value,n=s)},!0);Dm(e,(o,s)=>{NA(t,n,s,o),r()})}function NA(e,t,n,r){lr&&z.log(`Sending LCP span (${e})`);const o=Le((ot()||0)+((t==null?void 0:t.startTime)||0)),s=be().getScopeData().transactionName,i=t?wt(t.element):"Largest contentful paint",c={[Ve]:"auto.http.browser.lcp",[Kt]:"ui.webvital.lcp",[Sr]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(c["lcp.element"]=wt(t.element)),t.id&&(c["lcp.id"]=t.id),t.url&&(c["lcp.url"]=t.url.trim().slice(0,200)),t.loadTime!=null&&(c["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(c["lcp.renderTime"]=t.renderTime),t.size!=null&&(c["lcp.size"]=t.size));const a=Zc({name:i,transaction:s,attributes:c,startTime:o});a&&(a.addEvent("lcp",{[ao]:"millisecond",[co]:e}),a.end(o))}function bt(e){return e&&((ot()||performance.timeOrigin)+e)/1e3}function $m(e){var n;const t={};if(e.nextHopProtocol!=null){const{name:r,version:o}=OA(e.nextHopProtocol);t["network.protocol.version"]=o,t["network.protocol.name"]=r}return ot()||(n=ho())!=null&&n.timeOrigin?jA({...t,"http.request.redirect_start":bt(e.redirectStart),"http.request.redirect_end":bt(e.redirectEnd),"http.request.worker_start":bt(e.workerStart),"http.request.fetch_start":bt(e.fetchStart),"http.request.domain_lookup_start":bt(e.domainLookupStart),"http.request.domain_lookup_end":bt(e.domainLookupEnd),"http.request.connect_start":bt(e.connectStart),"http.request.secure_connection_start":bt(e.secureConnectionStart),"http.request.connection_end":bt(e.connectEnd),"http.request.request_start":bt(e.requestStart),"http.request.response_start":bt(e.responseStart),"http.request.response_end":bt(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function jA(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}const DA=2147483647;let yd=0,Tt={},Qe,Gn;function $A({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=ho();if(r&&ot()){r.mark&&te.performance.mark("sentry-tracing-init");const o=t?LA(n):UA(),s=HA(),i=e?PA(n):BA();return()=>{o==null||o(),s(),i==null||i()}}return()=>{}}function zA(){Mn("longtask",({entries:e})=>{const t=Je();if(!t)return;const{op:n,start_timestamp:r}=me(t);for(const o of e){const s=Le(ot()+o.startTime),i=Le(o.duration);n==="navigation"&&r&&s<r||dn(t,s,s+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[Ve]:"auto.ui.browser.metrics"}})}})}function FA(){new PerformanceObserver(t=>{const n=Je();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const o=Le(ot()+r.startTime),{start_timestamp:s,op:i}=me(n);if(i==="navigation"&&s&&o<s)continue;const c=Le(r.duration),a={[Ve]:"auto.ui.browser.metrics"},l=r.scripts[0],{invoker:d,invokerType:f,sourceURL:p,sourceFunctionName:h,sourceCharPosition:g}=l;a["browser.script.invoker"]=d,a["browser.script.invoker_type"]=f,p&&(a["code.filepath"]=p),h&&(a["code.function"]=h),g!==-1&&(a["browser.script.source_char_position"]=g),dn(n,o,o+c,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:a})}}).observe({type:"long-animation-frame",buffered:!0})}function VA(){Mn("event",({entries:e})=>{const t=Je();if(t){for(const n of e)if(n.name==="click"){const r=Le(ot()+n.startTime),o=Le(n.duration),s={name:wt(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[Ve]:"auto.ui.browser.metrics"}},i=xh(n.target);i&&(s.attributes["ui.component_name"]=i),dn(t,r,r+o,s)}}})}function BA(){return Hc(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Tt.cls={value:e.value,unit:""},Gn=t)},!0)}function UA(){return Wc(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Tt.lcp={value:e.value,unit:"millisecond"},Qe=t)},!0)}function HA(){return EA(({metric:e})=>{e.entries[e.entries.length-1]&&(Tt.ttfb={value:e.value,unit:"millisecond"})})}function WA(e,t){const n=ho(),r=ot();if(!(n!=null&&n.getEntries)||!r)return;const o=Le(r),s=n.getEntries(),{op:i,start_timestamp:c}=me(e);s.slice(yd).forEach(a=>{const l=Le(a.startTime),d=Le(Math.max(0,a.duration));if(!(i==="navigation"&&c&&o+l<c))switch(a.entryType){case"navigation":{GA(e,a,o);break}case"mark":case"paint":case"measure":{ZA(e,a,l,d,o,t.ignorePerformanceApiSpans);const f=Bc(),p=a.startTime<f.firstHiddenTime;a.name==="first-paint"&&p&&(Tt.fp={value:a.startTime,unit:"millisecond"}),a.name==="first-contentful-paint"&&p&&(Tt.fcp={value:a.startTime,unit:"millisecond"});break}case"resource":{JA(e,a,a.name,l,d,o,t.ignoreResourceSpans);break}}}),yd=Math.max(s.length-1,0),XA(e),i==="pageload"&&(tO(Tt),t.recordClsOnPageloadSpan||delete Tt.cls,t.recordLcpOnPageloadSpan||delete Tt.lcp,Object.entries(Tt).forEach(([a,l])=>{LI(a,l.value,l.unit)}),e.setAttribute("performance.timeOrigin",o),e.setAttribute("performance.activationStart",xr()),QA(e,t)),Qe=void 0,Gn=void 0,Tt={}}function ZA(e,t,n,r,o,s){if(["mark","measure"].includes(t.entryType)&&Ht(t.name,s))return;const i=uo(!1),c=Le(i?i.requestStart:0),a=o+Math.max(n,c),l=o+n,d=l+r,f={[Ve]:"auto.resource.browser.metrics"};a!==l&&(f["sentry.browser.measure_happened_before_request"]=!0,f["sentry.browser.measure_start_time"]=a),qA(f,t),a<=d&&dn(e,a,d,{name:t.name,op:t.entryType,attributes:f})}function qA(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,o]of Object.entries(n))if(o&&qr(o))e[`sentry.browser.measure.detail.${r}`]=o;else if(o!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(o)}catch{}return}if(qr(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function GA(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{jo(e,t,r,n)}),jo(e,t,"secureConnection",n,"TLS/SSL"),jo(e,t,"fetch",n,"cache"),jo(e,t,"domainLookup",n,"DNS"),KA(e,t,n)}function jo(e,t,n,r,o=n){const s=YA(n),i=t[s],c=t[`${n}Start`];!c||!i||dn(e,r+Le(c),r+Le(i),{op:`browser.${o}`,name:t.name,attributes:{[Ve]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function YA(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function KA(e,t,n){const r=n+Le(t.requestStart),o=n+Le(t.responseEnd),s=n+Le(t.responseStart);t.responseEnd&&(dn(e,r,o,{op:"browser.request",name:t.name,attributes:{[Ve]:"auto.ui.browser.metrics"}}),dn(e,s,o,{op:"browser.response",name:t.name,attributes:{[Ve]:"auto.ui.browser.metrics"}}))}function JA(e,t,n,r,o,s,i){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const c=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(i!=null&&i.includes(c))return;const a={[Ve]:"auto.resource.browser.metrics"},l=Tn(n);l.protocol&&(a["url.scheme"]=l.protocol.split(":").pop()),l.host&&(a["server.address"]=l.host),a["url.same_origin"]=n.includes(te.location.origin),eO(t,a,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const d={...a,...$m(t)},f=s+r,p=f+o;dn(e,f,p,{name:n.replace(te.location.origin,""),op:c,attributes:d})}function XA(e){const t=te.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Ui(n.rtt)&&(Tt["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Ui(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Ui(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function QA(e,t){Qe&&t.recordLcpOnPageloadSpan&&(Qe.element&&e.setAttribute("lcp.element",wt(Qe.element)),Qe.id&&e.setAttribute("lcp.id",Qe.id),Qe.url&&e.setAttribute("lcp.url",Qe.url.trim().slice(0,200)),Qe.loadTime!=null&&e.setAttribute("lcp.loadTime",Qe.loadTime),Qe.renderTime!=null&&e.setAttribute("lcp.renderTime",Qe.renderTime),e.setAttribute("lcp.size",Qe.size)),Gn!=null&&Gn.sources&&t.recordClsOnPageloadSpan&&Gn.sources.forEach((n,r)=>e.setAttribute(`cls.source.${r+1}`,wt(n.node)))}function eO(e,t,n){n.forEach(([r,o])=>{const s=e[r];s!=null&&(typeof s=="number"&&s<DA||typeof s=="string")&&(t[o]=s)})}function tO(e){const t=uo(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function nO(){return ho()&&ot()?Mn("element",rO):()=>{}}const rO=({entries:e})=>{const t=Je(),n=t?Ge(t):void 0,r=n?me(n).description:be().getScopeData().transactionName;e.forEach(o=>{var h,g;const s=o;if(!s.identifier)return;const i=s.name,c=s.renderTime,a=s.loadTime,[l,d]=a?[Le(a),"load-time"]:c?[Le(c),"render-time"]:[Ue(),"entry-emission"],f=i==="image-paint"?Le(Math.max(0,(c??0)-(a??0))):0,p={[Ve]:"auto.ui.browser.elementtiming",[Kt]:"ui.elementtiming",[It]:"component","sentry.span_start_time_source":d,"sentry.transaction_name":r,"element.id":s.id,"element.type":((g=(h=s.element)==null?void 0:h.tagName)==null?void 0:g.toLowerCase())||"unknown","element.size":s.naturalWidth&&s.naturalHeight?`${s.naturalWidth}x${s.naturalHeight}`:void 0,"element.render_time":c,"element.load_time":a,"element.url":s.url||void 0,"element.identifier":s.identifier,"element.paint_type":i};FI({name:`element[${s.identifier}]`,attributes:p,startTime:l,onlyIfParent:!0},v=>{v.end(l+f)})})},oO=1e3;let bd,Pa,Ma;function zm(e){const t="dom";hn(t,e),mn(t,sO)}function sO(){if(!te.document)return;const e=St.bind(null,"dom"),t=_d(e,!0);te.document.addEventListener("click",t,!1),te.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{var s,i;const o=(s=te[n])==null?void 0:s.prototype;(i=o==null?void 0:o.hasOwnProperty)!=null&&i.call(o,"addEventListener")&&(et(o,"addEventListener",function(c){return function(a,l,d){if(a==="click"||a=="keypress")try{const f=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},p=f[a]=f[a]||{refCount:0};if(!p.handler){const h=_d(e);p.handler=h,c.call(this,a,h,d)}p.refCount++}catch{}return c.call(this,a,l,d)}}),et(o,"removeEventListener",function(c){return function(a,l,d){if(a==="click"||a=="keypress")try{const f=this.__sentry_instrumentation_handlers__||{},p=f[a];p&&(p.refCount--,p.refCount<=0&&(c.call(this,a,p.handler,d),p.handler=void 0,delete f[a]),Object.keys(f).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return c.call(this,a,l,d)}}))})}function iO(e){if(e.type!==Pa)return!1;try{if(!e.target||e.target._sentryId!==Ma)return!1}catch{}return!0}function aO(e,t){return e!=="keypress"?!1:t!=null&&t.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function _d(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=cO(n);if(aO(n.type,r))return;gt(n,"_sentryCaptured",!0),r&&!r._sentryId&>(r,"_sentryId",ht());const o=n.type==="keypress"?"input":n.type;iO(n)||(e({event:n,name:o,global:t}),Pa=n.type,Ma=r?r._sentryId:void 0),clearTimeout(bd),bd=te.setTimeout(()=>{Ma=void 0,Pa=void 0},oO)}}function cO(e){try{return e.target}catch{return null}}let Do;function li(e){const t="history";hn(t,e),mn(t,lO)}function lO(){if(te.addEventListener("popstate",()=>{const t=te.location.href,n=Do;if(Do=t,n===t)return;St("history",{from:n,to:t})}),!PR())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const o=Do,s=uO(String(r));if(Do=s,o===s)return t.apply(this,n);St("history",{from:o,to:s})}return t.apply(this,n)}}et(te.history,"pushState",e),et(te.history,"replaceState",e)}function uO(e){try{return new URL(e,te.location.origin).toString()}catch{return e}}const os={};function Fm(e){const t=os[e];if(t)return t;let n=te[e];if(Ta(n))return os[e]=n.bind(te);const r=te.document;if(r&&typeof r.createElement=="function")try{const o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);const s=o.contentWindow;s!=null&&s[e]&&(n=s[e]),r.head.removeChild(o)}catch(o){lr&&z.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(os[e]=n.bind(te))}function dO(e){os[e]=void 0}function mo(...e){return Fm("setTimeout")(...e)}const Sn="__sentry_xhr_v3__";function Vm(e){const t="xhr";hn(t,e),mn(t,fO)}function fO(){if(!te.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const o=new Error,s=Ue()*1e3,i=Ut(r[0])?r[0].toUpperCase():void 0,c=pO(r[1]);if(!i||!c)return t.apply(n,r);n[Sn]={method:i,url:c,request_headers:{}},i==="POST"&&c.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const a=()=>{const l=n[Sn];if(l&&n.readyState===4){try{l.status_code=n.status}catch{}const d={endTimestamp:Ue()*1e3,startTimestamp:s,xhr:n,virtualError:o};St("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(l,d,f){return a(),l.apply(d,f)}}):n.addEventListener("readystatechange",a),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(l,d,f){const[p,h]=f,g=d[Sn];return g&&Ut(p)&&Ut(h)&&(g.request_headers[p.toLowerCase()]=h),l.apply(d,f)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const o=n[Sn];if(!o)return t.apply(n,r);r[0]!==void 0&&(o.body=r[0]);const s={startTimestamp:Ue()*1e3,xhr:n};return St("xhr",s),t.apply(n,r)}})}function pO(e){if(Ut(e))return e;try{return e.toString()}catch{}}function Bm(e){return new URLSearchParams(e).toString()}function Um(e,t=z){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Bm(e)];if(!e)return[void 0]}catch(n){return lr&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return lr&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Hm(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}const Hi=[],ss=new Map,hO=60;function mO(){if(ho()&&ot()){const t=gO();return()=>{t()}}return()=>{}}const Sd={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function gO(){return Mm(vO)}const vO=({metric:e})=>{if(e.value==null)return;const t=Le(e.value);if(t>hO)return;const n=e.entries.find(g=>g.duration===e.value&&Sd[g.name]);if(!n)return;const{interactionId:r}=n,o=Sd[n.name],s=Le(ot()+n.startTime),i=Je(),c=i?Ge(i):void 0,l=(r!=null?ss.get(r):void 0)||c,d=l?me(l).description:be().getScopeData().transactionName,f=wt(n.target),p={[Ve]:"auto.http.browser.inp",[Kt]:`ui.interaction.${o}`,[Sr]:n.duration},h=Zc({name:f,transaction:d,attributes:p,startTime:s});h&&(h.addEvent("inp",{[ao]:"millisecond",[co]:e.value}),h.end(s+t))};function yO(){const e=({entries:t})=>{const n=Je(),r=n&&Ge(n);t.forEach(o=>{if(!AA(o)||!r)return;const s=o.interactionId;if(s!=null&&!ss.has(s)){if(Hi.length>10){const i=Hi.shift();ss.delete(i)}Hi.push(s),ss.set(s,r)}})};Mn("event",e),Mn("first-input",e)}function bO(e,t=Fm("fetch")){let n=0,r=0;async function o(s){const i=s.body.length;n+=i,r++;const c={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const a=await t(e.url,c);return{statusCode:a.status,headers:{"x-sentry-rate-limits":a.headers.get("X-Sentry-Rate-Limits"),"retry-after":a.headers.get("Retry-After")}}}catch(a){throw dO("fetch"),a}finally{n-=i,r--}}return BC(e,o)}const _O=30,SO=50;function La(e,t,n,r){const o={filename:e,function:t==="<anonymous>"?An:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const wO=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,xO=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,EO=/\((\S*)(?::(\d+))(?::(\d+))\)/,kO=/at (.+?) ?\(data:(.+?),/,TO=e=>{const t=e.match(kO);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=wO.exec(e);if(n){const[,o,s,i]=n;return La(o,An,+s,+i)}const r=xO.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){const c=EO.exec(r[2]);c&&(r[2]=c[1],r[3]=c[2],r[4]=c[3])}const[s,i]=Wm(r[1]||An,r[2]);return La(i,s,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},IO=[_O,TO],CO=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,RO=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,AO=e=>{const t=CO.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=RO.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="")}let r=t[3],o=t[1]||An;return[o,r]=Wm(o,r),La(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},OO=[SO,AO],PO=[IO,OO],MO=gh(...PO),Wm=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:An,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},nt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,$o=1024,LO="Breadcrumbs",NO=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:LO,setup(n){t.console&&vm(zO(n)),t.dom&&zm($O(n,t.dom)),t.xhr&&Vm(FO(n)),t.fetch&&Sm(VO(n)),t.history&&li(BO(n)),t.sentry&&n.on("beforeSendEvent",DO(n))}}},jO=NO;function DO(e){return function(n){le()===e&&un({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:_n(n)},{event:n})}}function $O(e,t){return function(r){if(le()!==e)return;let o,s,i=typeof t=="object"?t.serializeAttribute:void 0,c=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;c&&c>$o&&(nt&&z.warn(`\`dom.maxStringLength\` cannot exceed ${$o}, but a value of ${c} was configured. Sentry will use ${$o} instead.`),c=$o),typeof i=="string"&&(i=[i]);try{const l=r.event,d=UO(l)?l.target:l;o=wt(d,{keyAttrs:i,maxStringLength:c}),s=xh(d)}catch{o="<unknown>"}if(o.length===0)return;const a={category:`ui.${r.name}`,message:o};s&&(a.data={"ui.component_name":s}),un(a,{event:r.event,name:r.name,global:r.global})}}function zO(e){return function(n){if(le()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Nc(n.level),message:bs(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${bs(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;un(r,{input:n.args,level:n.level})}}function FO(e){return function(n){if(le()!==e)return;const{startTimestamp:r,endTimestamp:o}=n,s=n.xhr[Sn];if(!r||!o||!s)return;const{method:i,url:c,status_code:a,body:l}=s,d={method:i,url:c,status_code:a},f={xhr:n.xhr,input:l,startTimestamp:r,endTimestamp:o},p={category:"xhr",data:d,type:"http",level:_m(a)};e.emit("beforeOutgoingRequestBreadcrumb",p,f),un(p,f)}}function VO(e){return function(n){if(le()!==e)return;const{startTimestamp:r,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const s=n.fetchData,i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o},c={category:"fetch",data:s,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",c,i),un(c,i)}else{const s=n.response,i={...n.fetchData,status_code:s==null?void 0:s.status};n.fetchData.request_body_size,n.fetchData.response_body_size,s==null||s.status;const c={input:n.args,response:s,startTimestamp:r,endTimestamp:o},a={category:"fetch",data:i,type:"http",level:_m(i.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",a,c),un(a,c)}}}function BO(e){return function(n){if(le()!==e)return;let r=n.from,o=n.to;const s=Tn(de.location.href);let i=r?Tn(r):void 0;const c=Tn(o);i!=null&&i.path||(i=s),s.protocol===c.protocol&&s.host===c.host&&(o=c.relative),s.protocol===i.protocol&&s.host===i.host&&(r=i.relative),un({category:"navigation",data:{from:r,to:o}})}}function UO(e){return!!e&&!!e.target}const HO=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],WO="BrowserApiErrors",ZO=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:WO,setupOnce(){t.setTimeout&&et(de,"setTimeout",wd),t.setInterval&&et(de,"setInterval",wd),t.requestAnimationFrame&&et(de,"requestAnimationFrame",GO),t.XMLHttpRequest&&"XMLHttpRequest"in de&&et(XMLHttpRequest.prototype,"send",YO);const n=t.eventTarget;n&&(Array.isArray(n)?n:HO).forEach(o=>KO(o,t))}}},qO=ZO;function wd(e){return function(...t){const n=t[0];return t[0]=cr(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${qt(e)}`}}),e.apply(this,t)}}function GO(e){return function(t){return e.apply(this,[cr(t,{mechanism:{data:{handler:qt(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function YO(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&et(n,o,function(s){const i={mechanism:{data:{handler:qt(s)},handled:!1,type:`auto.browser.browserapierrors.xhr.${o}`}},c=xc(s);return c&&(i.mechanism.data.handler=qt(c)),cr(s,i)})}),e.apply(this,t)}}function KO(e,t){var o,s;const r=(o=de[e])==null?void 0:o.prototype;(s=r==null?void 0:r.hasOwnProperty)!=null&&s.call(r,"addEventListener")&&(et(r,"addEventListener",function(i){return function(c,a,l){try{JO(a)&&(a.handleEvent=cr(a.handleEvent,{mechanism:{data:{handler:qt(a),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&XO(this,c,a),i.apply(this,[c,cr(a,{mechanism:{data:{handler:qt(a),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),l])}}),et(r,"removeEventListener",function(i){return function(c,a,l){try{const d=a.__sentry_wrapped__;d&&i.call(this,c,d,l)}catch{}return i.call(this,c,a,l)}}))}function JO(e){return typeof e.handleEvent=="function"}function XO(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const QO=()=>({name:"BrowserSession",setupOnce(){if(typeof de.document>"u"){nt&&z.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}ed({ignoreDuration:!0}),td(),li(({from:e,to:t})=>{e!==void 0&&e!==t&&(ed({ignoreDuration:!0}),td())})}}),eP="GlobalHandlers",tP=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:eP,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(rP(n),xd("onerror")),t.onunhandledrejection&&(oP(n),xd("onunhandledrejection"))}}},nP=tP;function rP(e){vh(t=>{const{stackParser:n,attachStacktrace:r}=Zm();if(le()!==e||xm())return;const{msg:o,url:s,line:i,column:c,error:a}=t,l=aP(zc(n,a||o,void 0,r,!1),s,i,c);l.level="error",em(l,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function oP(e){yh(t=>{const{stackParser:n,attachStacktrace:r}=Zm();if(le()!==e||xm())return;const o=sP(t),s=qr(o)?iP(o):zc(n,o,void 0,r,!0);s.level="error",em(s,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function sP(e){if(qr(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function iP(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function aP(e,t,n,r){const o=e.exception=e.exception||{},s=o.values=o.values||[],i=s[0]=s[0]||{},c=i.stacktrace=i.stacktrace||{},a=c.frames=c.frames||[],l=r,d=n,f=cP(t)??br();return a.length===0&&a.push({colno:l,filename:f,function:An,in_app:!0,lineno:d}),e}function xd(e){nt&&z.log(`Global Handler attached: ${e}`)}function Zm(){const e=le();return(e==null?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function cP(e){if(!(!Ut(e)||e.length===0)){if(e.startsWith("data:")){const t=e.match(/^data:([^;]+)/),n=t?t[1]:"text/javascript",r=e.includes("base64,");return`<data:${n}${r?",base64":""}>`}return e.slice(0,1024)}}const lP=()=>({name:"HttpContext",preprocessEvent(e){var r;if(!de.navigator&&!de.location&&!de.document)return;const t=jc(),n={...t.headers,...(r=e.request)==null?void 0:r.headers};e.request={...t,...e.request,headers:n}}}),uP="cause",dP=5,fP="LinkedErrors",pP=(e={})=>{const t=e.limit||dP,n=e.key||uP;return{name:fP,preprocessEvent(r,o,s){const i=s.getOptions();hR(Dc,i.stackParser,n,t,r,o)}}},hP=pP;function mP(){return gP()?(nt&&jn(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function gP(){var s;if(typeof de.window>"u")return!1;const e=de;if(e.nw)return!1;const t=e.chrome||e.browser;if(!((s=t==null?void 0:t.runtime)!=null&&s.id))return!1;const n=br(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(de===de.top&&r.some(i=>n.startsWith(`${i}://`)))}function vP(e){return[iR(),nR(),qO(),jO(),nP(),hP(),wR(),lP(),QO()]}function yP(e={}){const t=!e.skipBrowserExtensionCheck&&mP(),n={...e,enabled:t?!1:e.enabled,stackParser:pT(e.stackParser||MO),integrations:SC({integrations:e.integrations,defaultIntegrations:e.defaultIntegrations==null?vP():e.defaultIntegrations}),transport:e.transport||bO};return NC(nA,n)}function Ed(e={}){const t=de.document,n=(t==null?void 0:t.head)||(t==null?void 0:t.body);if(!n){nt&&z.error("[showReportDialog] Global document not defined");return}const r=be(),o=le(),s=o==null?void 0:o.getDsn();if(!s){nt&&z.error("[showReportDialog] DSN not configured");return}const i={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||fC()},c=de.document.createElement("script");c.async=!0,c.crossOrigin="anonymous",c.src=bC(s,i);const{onLoad:a,onClose:l}=i;if(a&&(c.onload=a),l){const d=f=>{if(f.data==="__sentry_reportdialog_closed__")try{l()}finally{de.removeEventListener("message",d)}};de.addEventListener("message",d)}n.appendChild(c)}const Ee=pe,qc="sentryReplaySession",bP="replay_event",Gc="Unable to send Replay",_P=3e5,SP=9e5,wP=5e3,xP=5500,EP=6e4,kP=5e3,TP=3,kd=15e4,zo=5e3,IP=3e3,CP=300,Yc=2e7,RP=4999,AP=15e3,Td=36e5;var OP=Object.defineProperty,PP=(e,t,n)=>t in e?OP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Id=(e,t,n)=>PP(e,typeof t!="symbol"?t+"":t,n),je=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(je||{});function MP(e){return e.nodeType===e.ELEMENT_NODE}function Dr(e){const t=e==null?void 0:e.host;return(t==null?void 0:t.shadowRoot)===e}function $r(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function LP(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function NP(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Cs(e){try{const t=e.rules||e.cssRules;return t?LP(Array.from(t,qm).join("")):null}catch{return null}}function jP(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,o=r[n],s=r.getPropertyPriority(o);t+=`${o}:${r.getPropertyValue(o)}${s?" !important":""};`}return`${e.selectorText} { ${t} }`}function qm(e){let t;if($P(e))try{t=Cs(e.styleSheet)||NP(e)}catch{}else if(zP(e)){let n=e.cssText;const r=e.selectorText.includes(":"),o=typeof e.style.all=="string"&&e.style.all;if(o&&(n=jP(e)),r&&(n=DP(n)),r||o)return n}return t||e.cssText}function DP(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function $P(e){return"styleSheet"in e}function zP(e){return"selectorText"in e}class Gm{constructor(){Id(this,"idNodeMap",new Map),Id(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function FP(){return new Gm}function ui({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function Xr({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function ur(e){return e.toLowerCase()}function Na(e){return e.toUpperCase()}const Cd="__rrweb_original__";function VP(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let o=0;o<e.height;o+=n){const s=t.getImageData,i=Cd in s?s[Cd]:s;if(new Uint32Array(i.call(t,r,o,Math.min(n,e.width-r),Math.min(n,e.height-o)).data.buffer).some(a=>a!==0))return!1}return!0}function Kc(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ur(t):null}function Rs(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function Ym(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,o=n.pathname.match(r);return(o==null?void 0:o[1])??null}const Rd={};function Km(e){const t=Rd[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const s=o.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(o)}catch{}return Rd[e]=r.bind(window)}function ja(...e){return Km("setTimeout")(...e)}function Jm(...e){return Km("clearTimeout")(...e)}function Xm(e){try{return e.contentDocument}catch{}}let BP=1;const UP=new RegExp("[^a-z0-9-_:]"),Qr=-2;function Jc(){return BP++}function HP(e){if(e instanceof HTMLFormElement)return"form";const t=ur(e.tagName);return UP.test(t)?"div":t}function WP(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let Hn,Ad;const ZP=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,qP=/^(?:[a-z+]+:)?\/\//i,GP=/^www\..*/i,YP=/^(data:)([^,]*),(.*)/i;function As(e,t){return(e||"").replace(ZP,(n,r,o,s,i,c)=>{const a=o||i||c,l=r||s||"";if(!a)return n;if(qP.test(a)||GP.test(a))return`url(${l}${a}${l})`;if(YP.test(a))return`url(${l}${a}${l})`;if(a[0]==="/")return`url(${l}${WP(t)+a}${l})`;const d=t.split("/"),f=a.split("/");d.pop();for(const p of f)p!=="."&&(p===".."?d.pop():d.push(p));return`url(${l}${d.join("/")}${l})`})}const KP=/^[^ \t\n\r\u000c]+/,JP=/^[, \t\n\r\u000c]+/;function XP(e,t){if(t.trim()==="")return t;let n=0;function r(s){let i;const c=s.exec(t.substring(n));return c?(i=c[0],n+=i.length,i):""}const o=[];for(;r(JP),!(n>=t.length);){let s=r(KP);if(s.slice(-1)===",")s=Yn(e,s.substring(0,s.length-1)),o.push(s);else{let i="";s=Yn(e,s);let c=!1;for(;;){const a=t.charAt(n);if(a===""){o.push((s+i).trim());break}else if(c)a===")"&&(c=!1);else if(a===","){n+=1,o.push((s+i).trim());break}else a==="("&&(c=!0);i+=a,n+=1}}}return o.join(", ")}const Od=new WeakMap;function Yn(e,t){return!t||t.trim()===""?t:di(e,t)}function QP(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function di(e,t){let n=Od.get(e);if(n||(n=e.createElement("a"),Od.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function Qm(e,t,n,r,o,s){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?Yn(e,r):n==="srcset"?XP(e,r):n==="style"?As(r,di(e)):t==="object"&&n==="data"?Yn(e,r):typeof s=="function"?s(n,r,o):r)}function eg(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function e2(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let o=e.classList.length;o--;){const s=e.classList[o];if(t.test(s))return!0}if(n)return e.matches(n)}catch{}return!1}function t2(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function wn(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:wn(e.parentNode,t,n,r+1)}function Kn(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(t2(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function dr(e,t,n,r,o,s){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(i===null)return!1;if(i.tagName==="INPUT"){const l=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(l))return!0}let c=-1,a=-1;if(s){if(a=wn(i,Kn(r,o)),a<0)return!0;c=wn(i,Kn(t,n),a>=0?a:1/0)}else{if(c=wn(i,Kn(t,n)),c<0)return!1;a=wn(i,Kn(r,o),c>=0?c:1/0)}return c>=0?a>=0?c<=a:!0:a>=0?!1:!!s}catch{}return!!s}function n2(e,t,n){const r=e.contentWindow;if(!r)return;let o=!1,s;try{s=r.document.readyState}catch{return}if(s!=="complete"){const c=ja(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{Jm(c),o=!0,t()});return}const i="about:blank";if(r.location.href!==i||e.src===i||e.src==="")return ja(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function r2(e,t,n){let r=!1,o;try{o=e.sheet}catch{return}if(o)return;const s=ja(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{Jm(s),r=!0,t()})}function o2(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:c,maskAttributeFn:a,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:g={},maskTextFn:v,maskInputFn:y,dataURLOptions:b={},inlineImages:_,recordCanvas:S,keepIframeSrcFn:E,newlyAddedElement:T=!1}=t,I=s2(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:je.Document,childNodes:[],compatMode:e.compatMode}:{type:je.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:je.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:I};case e.ELEMENT_NODE:return a2(e,{doc:n,blockClass:o,blockSelector:s,unblockSelector:i,inlineStylesheet:h,maskAttributeFn:a,maskInputOptions:g,maskInputFn:y,dataURLOptions:b,inlineImages:_,recordCanvas:S,keepIframeSrcFn:E,newlyAddedElement:T,rootId:I,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p});case e.TEXT_NODE:return i2(e,{doc:n,maskAllText:c,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskTextFn:v,maskInputOptions:g,maskInputFn:y,rootId:I});case e.CDATA_SECTION_NODE:return{type:je.CDATA,textContent:"",rootId:I};case e.COMMENT_NODE:return{type:je.Comment,textContent:e.textContent||"",rootId:I};default:return!1}}function s2(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function i2(e,t){var b;const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:s,unmaskTextSelector:i,maskTextFn:c,maskInputOptions:a,maskInputFn:l,rootId:d}=t,f=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const h=f==="STYLE"?!0:void 0,g=f==="SCRIPT"?!0:void 0,v=f==="TEXTAREA"?!0:void 0;if(h&&p){try{e.nextSibling||e.previousSibling||(b=e.parentNode.sheet)!=null&&b.cssRules&&(p=Cs(e.parentNode.sheet))}catch(_){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${_}`,e)}p=As(p,di(t.doc))}g&&(p="SCRIPT_PLACEHOLDER");const y=dr(e,r,s,o,i,n);if(!h&&!g&&!v&&p&&y&&(p=c?c(p,e.parentElement):p.replace(/[\S]/g,"*")),v&&p&&(a.textarea||y)&&(p=l?l(p,e.parentNode):p.replace(/[\S]/g,"*")),f==="OPTION"&&p){const _=ui({type:null,tagName:f,maskInputOptions:a});p=Xr({isMasked:dr(e,r,s,o,i,_),element:e,value:p,maskInputFn:l})}return{type:je.Text,textContent:p||"",isStyle:h,rootId:d}}function a2(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:s,inlineStylesheet:i,maskInputOptions:c={},maskAttributeFn:a,maskInputFn:l,dataURLOptions:d={},inlineImages:f,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:g=!1,rootId:v,maskTextClass:y,unmaskTextClass:b,maskTextSelector:_,unmaskTextSelector:S}=t,E=e2(e,r,o,s),T=HP(e);let I={};const w=e.attributes.length;for(let A=0;A<w;A++){const O=e.attributes[A];O.name&&!eg(T,O.name,O.value)&&(I[O.name]=Qm(n,T,ur(O.name),O.value,e,a))}if(T==="link"&&i){const A=Array.from(n.styleSheets).find(L=>L.href===e.href);let O=null;A&&(O=Cs(A)),O&&(I.rel=null,I.href=null,I.crossorigin=null,I._cssText=As(O,A.href))}if(T==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const A=Cs(e.sheet);A&&(I._cssText=As(A,di(n)))}if(T==="input"||T==="textarea"||T==="select"||T==="option"){const A=e,O=Kc(A),L=Rs(A,Na(T),O),M=A.checked;if(O!=="submit"&&O!=="button"&&L){const F=dr(A,y,_,b,S,ui({type:O,tagName:Na(T),maskInputOptions:c}));I.value=Xr({isMasked:F,element:A,value:L,maskInputFn:l})}M&&(I.checked=M)}if(T==="option"&&(e.selected&&!c.select?I.selected=!0:delete I.selected),T==="canvas"&&p){if(e.__context==="2d")VP(e)||(I.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){const A=e.toDataURL(d.type,d.quality),O=n.createElement("canvas");O.width=e.width,O.height=e.height;const L=O.toDataURL(d.type,d.quality);A!==L&&(I.rr_dataURL=A)}}if(T==="img"&&f){Hn||(Hn=n.createElement("canvas"),Ad=Hn.getContext("2d"));const A=e,O=A.currentSrc||A.getAttribute("src")||"<unknown-src>",L=A.crossOrigin,M=()=>{A.removeEventListener("load",M);try{Hn.width=A.naturalWidth,Hn.height=A.naturalHeight,Ad.drawImage(A,0,0),I.rr_dataURL=Hn.toDataURL(d.type,d.quality)}catch(F){if(A.crossOrigin!=="anonymous"){A.crossOrigin="anonymous",A.complete&&A.naturalWidth!==0?M():A.addEventListener("load",M);return}else console.warn(`Cannot inline img src=${O}! Error: ${F}`)}A.crossOrigin==="anonymous"&&(L?I.crossOrigin=L:A.removeAttribute("crossorigin"))};A.complete&&A.naturalWidth!==0?M():A.addEventListener("load",M)}if((T==="audio"||T==="video")&&(I.rr_mediaState=e.paused?"paused":"played",I.rr_mediaCurrentTime=e.currentTime),g||(e.scrollLeft&&(I.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(I.rr_scrollTop=e.scrollTop)),E){const{width:A,height:O}=e.getBoundingClientRect();I={class:I.class,rr_width:`${A}px`,rr_height:`${O}px`}}T==="iframe"&&!h(I.src)&&(!E&&!Xm(e)&&(I.rr_src=I.src),delete I.src);let R;try{customElements.get(T)&&(R=!0)}catch{}return{type:je.Element,tagName:T,attributes:I,childNodes:[],isSVG:QP(e)||void 0,needBlock:E,rootId:v,isCustom:R}}function xe(e){return e==null?"":e.toLowerCase()}function c2(e,t){if(t.comment&&e.type===je.Comment)return!0;if(e.type===je.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Ym(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(xe(e.attributes.name).match(/^msapplication-tile(image|color)$/)||xe(e.attributes.name)==="application-name"||xe(e.attributes.rel)==="icon"||xe(e.attributes.rel)==="apple-touch-icon"||xe(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&xe(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(xe(e.attributes.property).match(/^(og|twitter|fb):/)||xe(e.attributes.name).match(/^(og|twitter):/)||xe(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(xe(e.attributes.name)==="robots"||xe(e.attributes.name)==="googlebot"||xe(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(xe(e.attributes.name)==="author"||xe(e.attributes.name)==="generator"||xe(e.attributes.name)==="framework"||xe(e.attributes.name)==="publisher"||xe(e.attributes.name)==="progid"||xe(e.attributes.property).match(/^article:/)||xe(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(xe(e.attributes.name)==="google-site-verification"||xe(e.attributes.name)==="yandex-verification"||xe(e.attributes.name)==="csrf-token"||xe(e.attributes.name)==="p:domain_verify"||xe(e.attributes.name)==="verify-v1"||xe(e.attributes.name)==="verification"||xe(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Jn(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:c,maskTextClass:a,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,skipChild:p=!1,inlineStylesheet:h=!0,maskInputOptions:g={},maskAttributeFn:v,maskTextFn:y,maskInputFn:b,slimDOMOptions:_,dataURLOptions:S={},inlineImages:E=!1,recordCanvas:T=!1,onSerialize:I,onIframeLoad:w,iframeLoadTimeout:R=5e3,onBlockedImageLoad:A,onStylesheetLoad:O,stylesheetLoadTimeout:L=5e3,keepIframeSrcFn:M=()=>!1,newlyAddedElement:F=!1}=t;let{preserveWhiteSpace:j=!0}=t;const Z=o2(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:c,unblockSelector:i,maskTextClass:a,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:g,maskAttributeFn:v,maskTextFn:y,maskInputFn:b,dataURLOptions:S,inlineImages:E,recordCanvas:T,keepIframeSrcFn:M,newlyAddedElement:F});if(!Z)return console.warn(e,"not serialized"),null;let H;r.hasNode(e)?H=r.getId(e):c2(Z,_)||!j&&Z.type===je.Text&&!Z.isStyle&&!Z.textContent.replace(/^\s+|\s+$/gm,"").length?H=Qr:H=Jc();const N=Object.assign(Z,{id:H});if(r.add(e,N),H===Qr)return null;I&&I(e);let D=!p;if(N.type===je.Element){D=D&&!N.needBlock;const C=e.shadowRoot;C&&$r(C)&&(N.isShadowHost=!0)}if((N.type===je.Document||N.type===je.Element)&&D){_.headWhitespace&&N.type===je.Element&&N.tagName==="head"&&(j=!1);const C={doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:c,unblockSelector:i,maskTextClass:a,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,skipChild:p,inlineStylesheet:h,maskInputOptions:g,maskAttributeFn:v,maskTextFn:y,maskInputFn:b,slimDOMOptions:_,dataURLOptions:S,inlineImages:E,recordCanvas:T,preserveWhiteSpace:j,onSerialize:I,onIframeLoad:w,iframeLoadTimeout:R,onBlockedImageLoad:A,onStylesheetLoad:O,stylesheetLoadTimeout:L,keepIframeSrcFn:M},W=e.childNodes?Array.from(e.childNodes):[];for(const B of W){const U=Jn(B,C);U&&N.childNodes.push(U)}if(MP(e)&&e.shadowRoot)for(const B of Array.from(e.shadowRoot.childNodes)){const U=Jn(B,C);U&&($r(e.shadowRoot)&&(U.isShadow=!0),N.childNodes.push(U))}}if(e.parentNode&&Dr(e.parentNode)&&$r(e.parentNode)&&(N.isShadow=!0),N.type===je.Element&&N.tagName==="iframe"&&!N.needBlock&&n2(e,()=>{const C=Xm(e);if(C&&w){const W=Jn(C,{doc:C,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:c,maskTextClass:a,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:h,maskInputOptions:g,maskAttributeFn:v,maskTextFn:y,maskInputFn:b,slimDOMOptions:_,dataURLOptions:S,inlineImages:E,recordCanvas:T,preserveWhiteSpace:j,onSerialize:I,onIframeLoad:w,iframeLoadTimeout:R,onStylesheetLoad:O,stylesheetLoadTimeout:L,keepIframeSrcFn:M});W&&w(e,W)}},R),N.type===je.Element&&N.tagName==="img"&&!e.complete&&N.needBlock){const C=e,W=()=>{if(C.isConnected&&!C.complete&&A)try{const B=C.getBoundingClientRect();B.width>0&&B.height>0&&A(C,N,B)}catch{}C.removeEventListener("load",W)};C.isConnected&&C.addEventListener("load",W)}return N.type===je.Element&&N.tagName==="link"&&typeof N.attributes.rel=="string"&&(N.attributes.rel==="stylesheet"||N.attributes.rel==="preload"&&typeof N.attributes.href=="string"&&Ym(N.attributes.href)==="css")&&r2(e,()=>{if(O){const C=Jn(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:c,maskTextClass:a,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:h,maskInputOptions:g,maskAttributeFn:v,maskTextFn:y,maskInputFn:b,slimDOMOptions:_,dataURLOptions:S,inlineImages:E,recordCanvas:T,preserveWhiteSpace:j,onSerialize:I,onIframeLoad:w,iframeLoadTimeout:R,onStylesheetLoad:O,stylesheetLoadTimeout:L,keepIframeSrcFn:M});C&&O(e,C)}},L),N.type===je.Element&&delete N.needBlock,N}function l2(e,t){const{mirror:n=new Gm,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:s=null,maskAllText:i=!1,maskTextClass:c="rr-mask",unmaskTextClass:a=null,maskTextSelector:l=null,unmaskTextSelector:d=null,inlineStylesheet:f=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:g=!1,maskAttributeFn:v,maskTextFn:y,maskInputFn:b,slimDOM:_=!1,dataURLOptions:S,preserveWhiteSpace:E,onSerialize:T,onIframeLoad:I,iframeLoadTimeout:w,onBlockedImageLoad:R,onStylesheetLoad:A,stylesheetLoadTimeout:O,keepIframeSrcFn:L=()=>!1}=t||{};return Jn(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,maskAllText:i,maskTextClass:c,unmaskTextClass:a,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:g===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:g===!1?{}:g,maskAttributeFn:v,maskTextFn:y,maskInputFn:b,slimDOMOptions:_===!0||_==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:_==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:_===!1?{}:_,dataURLOptions:S,inlineImages:p,recordCanvas:h,preserveWhiteSpace:E,onSerialize:T,onIframeLoad:I,iframeLoadTimeout:w,onBlockedImageLoad:R,onStylesheetLoad:A,stylesheetLoadTimeout:O,keepIframeSrcFn:L,newlyAddedElement:!1})}function Ke(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Wn=`Please stop import mirror directly. Instead of that,\r
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
or you can use record.mirror to access the mirror instance during recording.`;let Pd={map:{},getId(){return console.error(Wn),-1},getNode(){return console.error(Wn),null},removeNodeFromMap(){console.error(Wn)},has(){return console.error(Wn),!1},reset(){console.error(Wn)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Pd=new Proxy(Pd,{get(e,t,n){return t==="map"&&console.error(Wn),Reflect.get(e,t,n)}}));function eo(e,t,n={}){let r=null,o=0;return function(...s){const i=Date.now();!o&&n.leading===!1&&(o=i);const c=t-(i-o),a=this;c<=0||c>t?(r&&(g2(r),r=null),o=i,e.apply(a,s)):!r&&n.trailing!==!1&&(r=fi(()=>{o=n.leading===!1?0:Date.now(),r=null,e.apply(a,s)},c))}}function tg(e,t,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(i){fi(()=>{n.set.call(this,i)},0),s&&s.set&&s.set.call(this,i)}}),()=>tg(e,t,s||{},!0)}function Xc(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}let Os=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Os=()=>new Date().getTime());function ng(e){var n,r,o,s,i,c;const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:(t==null?void 0:t.documentElement.scrollLeft)||((r=(n=t==null?void 0:t.body)==null?void 0:n.parentElement)==null?void 0:r.scrollLeft)||((o=t==null?void 0:t.body)==null?void 0:o.scrollLeft)||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(t==null?void 0:t.documentElement.scrollTop)||((i=(s=t==null?void 0:t.body)==null?void 0:s.parentElement)==null?void 0:i.scrollTop)||((c=t==null?void 0:t.body)==null?void 0:c.scrollTop)||0}}function rg(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function og(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function sg(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function ft(e,t,n,r,o){if(!e)return!1;const s=sg(e);if(!s)return!1;const i=Kn(t,n);if(!o){const l=r&&s.matches(r);return i(s)&&!l}const c=wn(s,i);let a=-1;return c<0?!1:(r&&(a=wn(s,Kn(null,r))),c>-1&&a<0?!0:c<a)}function u2(e,t){return t.getId(e)!==-1}function Wi(e,t){return t.getId(e)===Qr}function ig(e,t){if(Dr(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?ig(e.parentNode,t):!0:!0}function Da(e){return!!e.changedTouches}function d2(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function ag(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function cg(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function $a(e){return!!(e!=null&&e.shadowRoot)}class f2{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function lg(e){var n,r;let t=null;return((r=(n=e.getRootNode)==null?void 0:n.call(e))==null?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function p2(e){let t=e,n;for(;n=lg(t);)t=n;return t}function h2(e){const t=e.ownerDocument;if(!t)return!1;const n=p2(e);return t.contains(n)}function ug(e){const t=e.ownerDocument;return t?t.contains(e)||h2(e):!1}const Md={};function Qc(e){const t=Md[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const s=o.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(o)}catch{}return Md[e]=r.bind(window)}function m2(...e){return Qc("requestAnimationFrame")(...e)}function fi(...e){return Qc("setTimeout")(...e)}function g2(...e){return Qc("clearTimeout")(...e)}var ae=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(ae||{}),re=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(re||{}),Ye=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Ye||{}),Vt=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Vt||{}),Zn=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Zn||{});function el(e){try{return e.contentDocument}catch{}}function v2(e){try{return e.contentWindow}catch{}}function Ld(e){return"__ln"in e}class y2{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=(n==null?void 0:n.next)||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&Ld(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&Ld(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const Nd=(e,t)=>`${e}@${t}`;class b2{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new y2,o=a=>{let l=a,d=Qr;for(;d===Qr;)l=l&&l.nextSibling,d=l&&this.mirror.getId(l);return d},s=a=>{if(!a.parentNode||!ug(a))return;const l=Dr(a.parentNode)?this.mirror.getId(lg(a)):this.mirror.getId(a.parentNode),d=o(a);if(l===-1||d===-1)return r.addNode(a);const f=Jn(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:p=>{ag(p,this.mirror)&&!ft(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(p),cg(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),$a(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,this.doc)},onIframeLoad:(p,h)=>{ft(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(p,h),p.contentWindow&&this.canvasManager.addWindow(p.contentWindow),this.shadowDomManager.observeAttachShadow(p))},onStylesheetLoad:(p,h)=>{this.stylesheetManager.attachLinkElement(p,h)},onBlockedImageLoad:(p,h,{width:g,height:v})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:h.id,attributes:{style:{width:`${g}px`,height:`${v}px`}}}]})}});f&&(t.push({parentId:l,nextId:d,node:f}),n.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const a of this.movedSet)jd(this.removes,a,this.mirror)&&!this.movedSet.has(a.parentNode)||s(a);for(const a of this.addedSet)!Dd(this.droppedSet,a)&&!jd(this.removes,a,this.mirror)||Dd(this.movedSet,a)?s(a):this.droppedSet.add(a);let i=null;for(;r.length;){let a=null;if(i){const l=this.mirror.getId(i.value.parentNode),d=o(i.value);l!==-1&&d!==-1&&(a=i)}if(!a){let l=r.tail;for(;l;){const d=l;if(l=l.previous,d){const f=this.mirror.getId(d.value.parentNode);if(o(d.value)===-1)continue;if(f!==-1){a=d;break}else{const h=d.value;if(h.parentNode&&h.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const g=h.parentNode.host;if(this.mirror.getId(g)!==-1){a=d;break}}}}}}if(!a){for(;r.head;)r.removeNode(r.head.value);break}i=a.previous,r.removeNode(a.value),s(a.value)}const c={texts:this.texts.map(a=>({id:this.mirror.getId(a.node),value:a.value})).filter(a=>!n.has(a.id)).filter(a=>this.mirror.has(a.id)),attributes:this.attributes.map(a=>{const{attributes:l}=a;if(typeof l.style=="string"){const d=JSON.stringify(a.styleDiff),f=JSON.stringify(a._unchangedStyles);d.length<l.style.length&&(d+f).split("var(").length===l.style.split("var(").length&&(l.style=a.styleDiff)}return{id:this.mirror.getId(a.node),attributes:l}}).filter(a=>!n.has(a.id)).filter(a=>this.mirror.has(a.id)),removes:this.removes,adds:t};!c.texts.length&&!c.attributes.length&&!c.removes.length&&!c.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(c))},this.processMutation=t=>{if(!Wi(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!ft(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:dr(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,sg(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,o=t.target.getAttribute(r);if(r==="value"){const i=Kc(n),c=n.tagName;o=Rs(n,c,i);const a=ui({maskInputOptions:this.maskInputOptions,tagName:c,type:i}),l=dr(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a);o=Xr({isMasked:l,element:n,value:o,maskInputFn:this.maskInputFn})}if(ft(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===t.oldValue)return;let s=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(o))if(!el(n))r="rr_src";else return;if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(t.target,s)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!eg(n.tagName,r)&&(s.attributes[r]=Qm(this.doc,ur(n.tagName),ur(r),o,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");t.oldValue&&i.setAttribute("style",t.oldValue);for(const c of Array.from(n.style)){const a=n.style.getPropertyValue(c),l=n.style.getPropertyPriority(c);a!==i.style.getPropertyValue(c)||l!==i.style.getPropertyPriority(c)?l===""?s.styleDiff[c]=a:s.styleDiff[c]=[a,l]:s._unchangedStyles[c]=[a,l]}for(const c of Array.from(i.style))n.style.getPropertyValue(c)===""&&(s.styleDiff[c]=!1)}break}case"childList":{if(ft(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),o=Dr(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);ft(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Wi(n,this.mirror)||!u2(n,this.mirror)||(this.addedSet.has(n)?(za(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||ig(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Nd(r,o)]?za(this.movedSet,n):this.removes.push({parentId:o,id:r,isShadow:Dr(t.target)&&$r(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Wi(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[Nd(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);ft(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEach(r=>this.genAdds(r)),$a(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function za(e,t){var n;e.delete(t),(n=t.childNodes)==null||n.forEach(r=>za(e,r))}function jd(e,t,n){return e.length===0?!1:_2(e,t,n)}function _2(e,t,n){let r=t.parentNode;for(;r;){const o=n.getId(r);if(e.some(s=>s.id===o))return!0;r=r.parentNode}return!1}function Dd(e,t){return e.size===0?!1:dg(e,t)}function dg(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:dg(e,n):!1}let zr;function S2(e){zr=e}function w2(){zr=void 0}const fe=e=>zr?(...n)=>{try{return e(...n)}catch(r){if(zr&&zr(r)===!0)return()=>{};throw r}}:e,Xn=[];function go(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function fg(e,t){var i,c;const n=new b2;Xn.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=(c=(i=window==null?void 0:window.Zone)==null?void 0:i.__symbol__)==null?void 0:c.call(i,"MutationObserver");o&&window[o]&&(r=window[o]);const s=new r(fe(a=>{e.onMutation&&e.onMutation(a)===!1||n.processMutations.bind(n)(a)}));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function x2({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const o=typeof t.mousemove=="number"?t.mousemove:50,s=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let i=[],c;const a=eo(fe(f=>{const p=Date.now()-c;e(i.map(h=>(h.timeOffset-=p,h)),f),i=[],c=null}),s),l=fe(eo(fe(f=>{const p=go(f),{clientX:h,clientY:g}=Da(f)?f.changedTouches[0]:f;c||(c=Os()),i.push({x:h,y:g,id:r.getId(p),timeOffset:Os()-c}),a(typeof DragEvent<"u"&&f instanceof DragEvent?re.Drag:f instanceof MouseEvent?re.MouseMove:re.TouchMove)}),o,{trailing:!1})),d=[Ke("mousemove",l,n),Ke("touchmove",l,n),Ke("drag",l,n)];return fe(()=>{d.forEach(f=>f())})}function E2({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,sampling:i}){if(i.mouseInteraction===!1)return()=>{};const c=i.mouseInteraction===!0||i.mouseInteraction===void 0?{}:i.mouseInteraction,a=[];let l=null;const d=f=>p=>{const h=go(p);if(ft(h,r,o,s,!0))return;let g=null,v=f;if("pointerType"in p){switch(p.pointerType){case"mouse":g=Vt.Mouse;break;case"touch":g=Vt.Touch;break;case"pen":g=Vt.Pen;break}g===Vt.Touch?Ye[f]===Ye.MouseDown?v="TouchStart":Ye[f]===Ye.MouseUp&&(v="TouchEnd"):Vt.Pen}else Da(p)&&(g=Vt.Touch);g!==null?(l=g,(v.startsWith("Touch")&&g===Vt.Touch||v.startsWith("Mouse")&&g===Vt.Mouse)&&(g=null)):Ye[f]===Ye.Click&&(g=l,l=null);const y=Da(p)?p.changedTouches[0]:p;if(!y)return;const b=n.getId(h),{clientX:_,clientY:S}=y;fe(e)({type:Ye[v],id:b,x:_,y:S,...g!==null&&{pointerType:g}})};return Object.keys(Ye).filter(f=>Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&c[f]!==!1).forEach(f=>{let p=ur(f);const h=d(f);if(window.PointerEvent)switch(Ye[f]){case Ye.MouseDown:case Ye.MouseUp:p=p.replace("mouse","pointer");break;case Ye.TouchStart:case Ye.TouchEnd:return}a.push(Ke(p,h,t))}),fe(()=>{a.forEach(f=>f())})}function pg({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,sampling:i}){const c=fe(eo(fe(a=>{const l=go(a);if(!l||ft(l,r,o,s,!0))return;const d=n.getId(l);if(l===t&&t.defaultView){const f=ng(t.defaultView);e({id:d,x:f.left,y:f.top})}else e({id:d,x:l.scrollLeft,y:l.scrollTop})}),i.scroll||100));return Ke("scroll",c,t)}function k2({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const o=fe(eo(fe(()=>{const s=rg(),i=og();(n!==s||r!==i)&&(e({width:Number(i),height:Number(s)}),n=s,r=i)}),200));return Ke("resize",o,t)}const T2=["INPUT","TEXTAREA","SELECT"],$d=new WeakMap;function I2({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,ignoreClass:i,ignoreSelector:c,maskInputOptions:a,maskInputFn:l,sampling:d,userTriggeredOnInput:f,maskTextClass:p,unmaskTextClass:h,maskTextSelector:g,unmaskTextSelector:v}){function y(w){let R=go(w);const A=w.isTrusted,O=R&&Na(R.tagName);if(O==="OPTION"&&(R=R.parentElement),!R||!O||T2.indexOf(O)<0||ft(R,r,o,s,!0))return;const L=R;if(L.classList.contains(i)||c&&L.matches(c))return;const M=Kc(R);let F=Rs(L,O,M),j=!1;const Z=ui({maskInputOptions:a,tagName:O,type:M}),H=dr(R,p,g,h,v,Z);(M==="radio"||M==="checkbox")&&(j=R.checked),F=Xr({isMasked:H,element:R,value:F,maskInputFn:l}),b(R,f?{text:F,isChecked:j,userTriggered:A}:{text:F,isChecked:j});const N=R.name;M==="radio"&&N&&j&&t.querySelectorAll(`input[type="radio"][name="${N}"]`).forEach(D=>{if(D!==R){const C=Xr({isMasked:H,element:D,value:Rs(D,O,M),maskInputFn:l});b(D,f?{text:C,isChecked:!j,userTriggered:!1}:{text:C,isChecked:!j})}})}function b(w,R){const A=$d.get(w);if(!A||A.text!==R.text||A.isChecked!==R.isChecked){$d.set(w,R);const O=n.getId(w);fe(e)({...R,id:O})}}const S=(d.input==="last"?["change"]:["input","change"]).map(w=>Ke(w,fe(y),t)),E=t.defaultView;if(!E)return()=>{S.forEach(w=>w())};const T=E.Object.getOwnPropertyDescriptor(E.HTMLInputElement.prototype,"value"),I=[[E.HTMLInputElement.prototype,"value"],[E.HTMLInputElement.prototype,"checked"],[E.HTMLSelectElement.prototype,"value"],[E.HTMLTextAreaElement.prototype,"value"],[E.HTMLSelectElement.prototype,"selectedIndex"],[E.HTMLOptionElement.prototype,"selected"]];return T&&T.set&&S.push(...I.map(w=>tg(w[0],w[1],{set(){fe(y)({target:this,isTrusted:!1})}},!1,E))),fe(()=>{S.forEach(w=>w())})}function Ps(e){const t=[];function n(r,o){if(Fo("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Fo("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Fo("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Fo("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const i=Array.from(r.parentRule.cssRules).indexOf(r);o.unshift(i)}else if(r.parentStyleSheet){const i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);o.unshift(i)}return o}return n(e,t)}function on(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function C2({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:fe((d,f,p)=>{const[h,g]=p,{id:v,styleId:y}=on(f,t,n.styleMirror);return(v&&v!==-1||y&&y!==-1)&&e({id:v,styleId:y,adds:[{rule:h,index:g}]}),d.apply(f,p)})});const s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:fe((d,f,p)=>{const[h]=p,{id:g,styleId:v}=on(f,t,n.styleMirror);return(g&&g!==-1||v&&v!==-1)&&e({id:g,styleId:v,removes:[{index:h}]}),d.apply(f,p)})});let i;r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:fe((d,f,p)=>{const[h]=p,{id:g,styleId:v}=on(f,t,n.styleMirror);return(g&&g!==-1||v&&v!==-1)&&e({id:g,styleId:v,replace:h}),d.apply(f,p)})}));let c;r.CSSStyleSheet.prototype.replaceSync&&(c=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:fe((d,f,p)=>{const[h]=p,{id:g,styleId:v}=on(f,t,n.styleMirror);return(g&&g!==-1||v&&v!==-1)&&e({id:g,styleId:v,replaceSync:h}),d.apply(f,p)})}));const a={};Vo("CSSGroupingRule")?a.CSSGroupingRule=r.CSSGroupingRule:(Vo("CSSMediaRule")&&(a.CSSMediaRule=r.CSSMediaRule),Vo("CSSConditionRule")&&(a.CSSConditionRule=r.CSSConditionRule),Vo("CSSSupportsRule")&&(a.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(a).forEach(([d,f])=>{l[d]={insertRule:f.prototype.insertRule,deleteRule:f.prototype.deleteRule},f.prototype.insertRule=new Proxy(l[d].insertRule,{apply:fe((p,h,g)=>{const[v,y]=g,{id:b,styleId:_}=on(h.parentStyleSheet,t,n.styleMirror);return(b&&b!==-1||_&&_!==-1)&&e({id:b,styleId:_,adds:[{rule:v,index:[...Ps(h),y||0]}]}),p.apply(h,g)})}),f.prototype.deleteRule=new Proxy(l[d].deleteRule,{apply:fe((p,h,g)=>{const[v]=g,{id:y,styleId:b}=on(h.parentStyleSheet,t,n.styleMirror);return(y&&y!==-1||b&&b!==-1)&&e({id:y,styleId:b,removes:[{index:[...Ps(h),v]}]}),p.apply(h,g)})})}),fe(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),c&&(r.CSSStyleSheet.prototype.replaceSync=c),Object.entries(a).forEach(([d,f])=>{f.prototype.insertRule=l[d].insertRule,f.prototype.deleteRule=l[d].deleteRule})})}function hg({mirror:e,stylesheetManager:t},n){var i,c,a;let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const o=n.nodeName==="#document"?(i=n.defaultView)==null?void 0:i.Document:(a=(c=n.ownerDocument)==null?void 0:c.defaultView)==null?void 0:a.ShadowRoot,s=o!=null&&o.prototype?Object.getOwnPropertyDescriptor(o==null?void 0:o.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!o||!s?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){var l;return(l=s.get)==null?void 0:l.call(this)},set(l){var f;const d=(f=s.set)==null?void 0:f.call(this,l);if(r!==null&&r!==-1)try{t.adoptStyleSheets(l,r)}catch{}return d}}),fe(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})}))}function R2({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:fe((c,a,l)=>{var v;const[d,f,p]=l;if(n.has(d))return s.apply(a,[d,f,p]);const{id:h,styleId:g}=on((v=a.parentRule)==null?void 0:v.parentStyleSheet,t,r.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,set:{property:d,value:f,priority:p},index:Ps(a.parentRule)}),c.apply(a,l)})});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:fe((c,a,l)=>{var h;const[d]=l;if(n.has(d))return i.apply(a,[d]);const{id:f,styleId:p}=on((h=a.parentRule)==null?void 0:h.parentStyleSheet,t,r.styleMirror);return(f&&f!==-1||p&&p!==-1)&&e({id:f,styleId:p,remove:{property:d},index:Ps(a.parentRule)}),c.apply(a,l)})}),fe(()=>{o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=i})}function A2({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:s,doc:i}){const c=fe(l=>eo(fe(d=>{const f=go(d);if(!f||ft(f,t,n,r,!0))return;const{currentTime:p,volume:h,muted:g,playbackRate:v}=f;e({type:l,id:o.getId(f),currentTime:p,volume:h,muted:g,playbackRate:v})}),s.media||500)),a=[Ke("play",c(Zn.Play),i),Ke("pause",c(Zn.Pause),i),Ke("seeked",c(Zn.Seeked),i),Ke("volumechange",c(Zn.VolumeChange),i),Ke("ratechange",c(Zn.RateChange),i)];return fe(()=>{a.forEach(l=>l())})}function O2({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(a,l,d){const f=new s(a,l,d);return o.set(f,{family:a,buffer:typeof l!="string",descriptors:d,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),f};const i=Xc(t.fonts,"add",function(c){return function(a){return fi(fe(()=>{const l=o.get(a);l&&(e(l),o.delete(a))}),0),c.apply(this,[a])}});return r.push(()=>{n.FontFace=s}),r.push(i),fe(()=>{r.forEach(c=>c())})}function P2(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,selectionCb:i}=e;let c=!0;const a=fe(()=>{const l=t.getSelection();if(!l||c&&(l!=null&&l.isCollapsed))return;c=l.isCollapsed||!1;const d=[],f=l.rangeCount||0;for(let p=0;p<f;p++){const h=l.getRangeAt(p),{startContainer:g,startOffset:v,endContainer:y,endOffset:b}=h;ft(g,r,o,s,!0)||ft(y,r,o,s,!0)||d.push({start:n.getId(g),startOffset:v,end:n.getId(y),endOffset:b})}i({ranges:d})});return a(),Ke("selectionchange",a)}function M2({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:Xc(n.customElements,"define",function(o){return function(s,i,c){try{t({define:{name:s}})}catch{}return o.apply(this,[s,i,c])}})}function L2(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=fg(e,e.doc));const o=x2(e),s=E2(e),i=pg(e),c=k2(e,{win:n}),a=I2(e),l=A2(e);let d=()=>{},f=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(d=C2(e,{win:n}),f=hg(e,e.doc),p=R2(e,{win:n}),e.collectFonts&&(h=O2(e)));const g=P2(e),v=M2(e),y=[];for(const b of e.plugins)y.push(b.observer(b.callback,n,b.options));return fe(()=>{Xn.forEach(b=>b.reset()),r==null||r.disconnect(),o(),s(),i(),c(),a(),l(),d(),f(),p(),h(),g(),v(),y.forEach(b=>b())})}function Fo(e){return typeof window[e]<"u"}function Vo(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Fa{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,o){const s=r||this.getIdToRemoteIdMap(t),i=o||this.getRemoteIdToIdMap(t);let c=s.get(n);return c||(c=this.generateIdFn(),s.set(n,c),i.set(c,n)),c}getIds(t,n){const r=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return n.map(s=>this.getId(t,s,r,o))}getRemoteId(t,n,r){const o=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const s=o.get(n);return s||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(o=>this.getRemoteId(t,o,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class N2{constructor(){this.crossOriginIframeMirror=new Fa(Jc),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class j2{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Fa(Jc),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Fa(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){var o,s;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((o=t.contentWindow)==null||o.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,t);const r=el(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const o=this.crossOriginIframeMap.get(t.source);if(!o)return;const s=this.transformCrossOriginEvent(o,n.data.event);s&&this.wrappedEmit(s,n.data.isCheckout)}transformCrossOriginEvent(t,n){var r;switch(n.type){case ae.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const o=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,o),this.patchRootIdOnNode(n.data.node,o),{timestamp:n.timestamp,type:ae.IncrementalSnapshot,data:{source:re.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case ae.Meta:case ae.Load:case ae.DomContentLoaded:return!1;case ae.Plugin:return n;case ae.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case ae.IncrementalSnapshot:switch(n.data.source){case re.Mutation:return n.data.adds.forEach(o=>{this.replaceIds(o,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(o.node,t);const s=this.crossOriginIframeRootIdMap.get(t);s&&this.patchRootIdOnNode(o.node,s)}),n.data.removes.forEach(o=>{this.replaceIds(o,t,["parentId","id"])}),n.data.attributes.forEach(o=>{this.replaceIds(o,t,["id"])}),n.data.texts.forEach(o=>{this.replaceIds(o,t,["id"])}),n;case re.Drag:case re.TouchMove:case re.MouseMove:return n.data.positions.forEach(o=>{this.replaceIds(o,t,["id"])}),n;case re.ViewportResize:return!1;case re.MediaInteraction:case re.MouseInteraction:case re.Scroll:case re.CanvasMutation:case re.Input:return this.replaceIds(n.data,t,["id"]),n;case re.StyleSheetRule:case re.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case re.Font:return n;case re.Selection:return n.data.ranges.forEach(o=>{this.replaceIds(o,t,["start","end"])}),n;case re.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),(r=n.data.styles)==null||r.forEach(o=>{this.replaceStyleIds(o,t,["styleId"])}),n}}return!1}replace(t,n,r,o){for(const s of o)!Array.isArray(n[s])&&typeof n[s]!="number"||(Array.isArray(n[s])?n[s]=t.getIds(r,n[s]):n[s]=t.getId(r,n[s]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==je.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class D2{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class $2{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!$r(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=fg({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(pg({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),fi(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(hg({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=el(t),r=v2(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(Xc(t.prototype,"attachShadow",function(o){return function(s){const i=o.call(this,s);return this.shadowRoot&&ug(this)&&r.addShadowRoot(this.shadowRoot,n),i}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var zd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z2=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Bo=0;Bo<zd.length;Bo++)z2[zd.charCodeAt(Bo)]=Bo;class Fd{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class F2{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new f2,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},o=[];for(const s of t){let i;this.styleMirror.has(s)?i=this.styleMirror.getId(s):(i=this.styleMirror.add(s),o.push({styleId:i,rules:Array.from(s.rules||CSSRule,(c,a)=>({rule:qm(c),index:a}))})),r.styleIds.push(i)}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class V2{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(o=>o!==n)}add(t,n){this.active||(this.active=!0,m2(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let Pe,Ms;var gf;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((gf=e.contentWindow)==null?void 0:gf.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Et=FP();function Zt(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:s=null,unblockSelector:i=null,ignoreClass:c="rr-ignore",ignoreSelector:a=null,maskAllText:l=!1,maskTextClass:d="rr-mask",unmaskTextClass:f=null,maskTextSelector:p=null,unmaskTextSelector:h=null,inlineStylesheet:g=!0,maskAllInputs:v,maskInputOptions:y,slimDOMOptions:b,maskAttributeFn:_,maskInputFn:S,maskTextFn:E,maxCanvasSize:T=null,packFn:I,sampling:w={},dataURLOptions:R={},mousemoveWait:A,recordDOM:O=!0,recordCanvas:L=!1,recordCrossOriginIframes:M=!1,recordAfter:F=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:j=!1,collectFonts:Z=!1,inlineImages:H=!1,plugins:N,keepIframeSrcFn:D=()=>!1,ignoreCSSAttributes:C=new Set([]),errorHandler:W,onMutation:B,getCanvasManager:U}=e;S2(W);const $=M?window.parent===window:!0;let ne=!1;if(!$)try{window.parent.document&&(ne=!1)}catch{ne=!0}if($&&!t)throw new Error("emit function is required");if(!$&&!ne)return()=>{};A!==void 0&&w.mousemove===void 0&&(w.mousemove=A),Et.reset();const Se=v===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:y!==void 0?y:{},oe=b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:b==="all",headMetaDescKeywords:b==="all"}:b||{};d2();let $e,Ne=0;const st=ce=>{for(const ct of N||[])ct.eventProcessor&&(ce=ct.eventProcessor(ce));return I&&!ne&&(ce=I(ce)),ce};Pe=(ce,ct)=>{var ze;const ue=ce;if(ue.timestamp=Os(),(ze=Xn[0])!=null&&ze.isFrozen()&&ue.type!==ae.FullSnapshot&&!(ue.type===ae.IncrementalSnapshot&&ue.data.source===re.Mutation)&&Xn.forEach(Xe=>Xe.unfreeze()),$)t==null||t(st(ue),ct);else if(ne){const Xe={type:"rrweb",event:st(ue),origin:window.location.origin,isCheckout:ct};window.parent.postMessage(Xe,"*")}if(ue.type===ae.FullSnapshot)$e=ue,Ne=0;else if(ue.type===ae.IncrementalSnapshot){if(ue.data.source===re.Mutation&&ue.data.isAttachIframe)return;Ne++;const Xe=r&&Ne>=r,ge=n&&$e&&ue.timestamp-$e.timestamp>n;(Xe||ge)&&Ze(!0)}};const it=ce=>{Pe({type:ae.IncrementalSnapshot,data:{source:re.Mutation,...ce}})},yn=ce=>Pe({type:ae.IncrementalSnapshot,data:{source:re.Scroll,...ce}}),en=ce=>Pe({type:ae.IncrementalSnapshot,data:{source:re.CanvasMutation,...ce}}),kr=ce=>Pe({type:ae.IncrementalSnapshot,data:{source:re.AdoptedStyleSheet,...ce}}),at=new F2({mutationCb:it,adoptedStyleSheetCb:kr}),yt=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new N2:new j2({mirror:Et,mutationCb:it,stylesheetManager:at,recordCrossOriginIframes:M,wrappedEmit:Pe});for(const ce of N||[])ce.getMirror&&ce.getMirror({nodeMirror:Et,crossOriginIframeMirror:yt.crossOriginIframeMirror,crossOriginIframeStyleMirror:yt.crossOriginIframeStyleMirror});const At=new V2,Tr=U2(U,{mirror:Et,win:window,mutationCb:ce=>Pe({type:ae.IncrementalSnapshot,data:{source:re.CanvasMutation,...ce}}),recordCanvas:L,blockClass:o,blockSelector:s,unblockSelector:i,maxCanvasSize:T,sampling:w.canvas,dataURLOptions:R,errorHandler:W}),Fn=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new D2:new $2({mutationCb:it,scrollCb:yn,bypassOptions:{onMutation:B,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:l,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:g,maskInputOptions:Se,dataURLOptions:R,maskAttributeFn:_,maskTextFn:E,maskInputFn:S,recordCanvas:L,inlineImages:H,sampling:w,slimDOMOptions:oe,iframeManager:yt,stylesheetManager:at,canvasManager:Tr,keepIframeSrcFn:D,processedNodeManager:At},mirror:Et}),Ze=(ce=!1)=>{if(!O)return;Pe({type:ae.Meta,data:{href:window.location.href,width:og(),height:rg()}},ce),at.reset(),Fn.init(),Xn.forEach(ue=>ue.lock());const ct=l2(document,{mirror:Et,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:l,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:g,maskAllInputs:Se,maskAttributeFn:_,maskInputFn:S,maskTextFn:E,slimDOM:oe,dataURLOptions:R,recordCanvas:L,inlineImages:H,onSerialize:ue=>{ag(ue,Et)&&yt.addIframe(ue),cg(ue,Et)&&at.trackLinkElement(ue),$a(ue)&&Fn.addShadowRoot(ue.shadowRoot,document)},onIframeLoad:(ue,ze)=>{yt.attachIframe(ue,ze),ue.contentWindow&&Tr.addWindow(ue.contentWindow),Fn.observeAttachShadow(ue)},onStylesheetLoad:(ue,ze)=>{at.attachLinkElement(ue,ze)},onBlockedImageLoad:(ue,ze,{width:Xe,height:ge})=>{it({adds:[],removes:[],texts:[],attributes:[{id:ze.id,attributes:{style:{width:`${Xe}px`,height:`${ge}px`}}}]})},keepIframeSrcFn:D});if(!ct)return console.warn("Failed to snapshot the document");Pe({type:ae.FullSnapshot,data:{node:ct,initialOffset:ng(window)}}),Xn.forEach(ue=>ue.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&at.adoptStyleSheets(document.adoptedStyleSheets,Et.getId(document))};Ms=Ze;try{const ce=[],ct=ze=>{var Xe;return fe(L2)({onMutation:B,mutationCb:it,mousemoveCb:(ge,bn)=>Pe({type:ae.IncrementalSnapshot,data:{source:bn,positions:ge}}),mouseInteractionCb:ge=>Pe({type:ae.IncrementalSnapshot,data:{source:re.MouseInteraction,...ge}}),scrollCb:yn,viewportResizeCb:ge=>Pe({type:ae.IncrementalSnapshot,data:{source:re.ViewportResize,...ge}}),inputCb:ge=>Pe({type:ae.IncrementalSnapshot,data:{source:re.Input,...ge}}),mediaInteractionCb:ge=>Pe({type:ae.IncrementalSnapshot,data:{source:re.MediaInteraction,...ge}}),styleSheetRuleCb:ge=>Pe({type:ae.IncrementalSnapshot,data:{source:re.StyleSheetRule,...ge}}),styleDeclarationCb:ge=>Pe({type:ae.IncrementalSnapshot,data:{source:re.StyleDeclaration,...ge}}),canvasMutationCb:en,fontCb:ge=>Pe({type:ae.IncrementalSnapshot,data:{source:re.Font,...ge}}),selectionCb:ge=>{Pe({type:ae.IncrementalSnapshot,data:{source:re.Selection,...ge}})},customElementCb:ge=>{Pe({type:ae.IncrementalSnapshot,data:{source:re.CustomElement,...ge}})},blockClass:o,ignoreClass:c,ignoreSelector:a,maskAllText:l,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,maskInputOptions:Se,inlineStylesheet:g,sampling:w,recordDOM:O,recordCanvas:L,inlineImages:H,userTriggeredOnInput:j,collectFonts:Z,doc:ze,maskAttributeFn:_,maskInputFn:S,maskTextFn:E,keepIframeSrcFn:D,blockSelector:s,unblockSelector:i,slimDOMOptions:oe,dataURLOptions:R,mirror:Et,iframeManager:yt,stylesheetManager:at,shadowDomManager:Fn,processedNodeManager:At,canvasManager:Tr,ignoreCSSAttributes:C,plugins:((Xe=N==null?void 0:N.filter(ge=>ge.observer))==null?void 0:Xe.map(ge=>({observer:ge.observer,options:ge.options,callback:bn=>Pe({type:ae.Plugin,data:{plugin:ge.name,payload:bn}})})))||[]},{})};yt.addLoadListener(ze=>{try{ce.push(ct(ze.contentDocument))}catch(Xe){console.warn(Xe)}});const ue=()=>{Ze(),ce.push(ct(document))};return document.readyState==="interactive"||document.readyState==="complete"?ue():(ce.push(Ke("DOMContentLoaded",()=>{Pe({type:ae.DomContentLoaded,data:{}}),F==="DOMContentLoaded"&&ue()})),ce.push(Ke("load",()=>{Pe({type:ae.Load,data:{}}),F==="load"&&ue()},window))),()=>{ce.forEach(ze=>ze()),At.destroy(),Ms=void 0,w2()}}catch(ce){console.warn(ce)}}function B2(e){if(!Ms)throw new Error("please take full snapshot after start recording");Ms(e)}Zt.mirror=Et;Zt.takeFullSnapshot=B2;function U2(e,t){try{return e?e(t):new Fd}catch{return console.warn("Unable to initialize CanvasManager"),new Fd}}var Vd;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Vd||(Vd={}));const H2=3,W2=5;function tl(e){return e>9999999999?e:e*1e3}function Zi(e){return e>9999999999?e/1e3:e}function vo(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:ae.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:kt(t,10,1e3)}}),t.category==="console")))}const Z2="button,a";function mg(e){return e.closest(Z2)||e}function gg(e){const t=vg(e);return!t||!(t instanceof Element)?t:mg(t)}function vg(e){return q2(e)?e.target:e}function q2(e){return typeof e=="object"&&!!e&&"target"in e}let sn;function G2(e){return sn||(sn=[],Y2()),sn.push(e),()=>{const t=sn?sn.indexOf(e):-1;t>-1&&sn.splice(t,1)}}function Y2(){et(Ee,"open",function(e){return function(...t){if(sn)try{sn.forEach(n=>n())}catch{}return e.apply(Ee,t)}})}const K2=new Set([re.Mutation,re.StyleSheetRule,re.StyleDeclaration,re.AdoptedStyleSheet,re.CanvasMutation,re.Selection,re.MediaInteraction]);function J2(e,t,n){e.handleClick(t,n)}class X2{constructor(t,n,r=vo){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=G2(()=>{this._lastMutation=Bd()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(eM(n,this._ignoreSelector)||!tM(t))return;const r={timestamp:Zi(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(o=>o.node===r.node&&Math.abs(o.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Zi(t)}registerScroll(t=Date.now()){this._lastScroll=Zi(t)}registerClick(t){const n=mg(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=Bd();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const o=this._clicks.indexOf(r);o>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,s=!r&&!o,{clickCount:i,clickBreadcrumb:c}=t;if(s){const a=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,l=a<this._timeout*1e3?"mutation":"timeout",d={type:"default",message:c.message,timestamp:c.timestamp,category:"ui.slowClickDetected",data:{...c.data,url:Ee.location.href,route:n.getCurrentRoute(),timeAfterClickMs:a,endReason:l,clickCount:i||1}};this._addBreadcrumbEvent(n,d);return}if(i>1){const a={type:"default",message:c.message,timestamp:c.timestamp,category:"ui.multiClick",data:{...c.data,url:Ee.location.href,route:n.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(n,a)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=mo(()=>this._checkClicks(),1e3)}}const Q2=["A","BUTTON","INPUT"];function eM(e,t){return!!(!Q2.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function tM(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Bd(){return Date.now()/1e3}function nM(e,t){try{if(!rM(t))return;const{source:n}=t.data;if(K2.has(n)&&e.registerMutation(t.timestamp),n===re.Scroll&&e.registerScroll(t.timestamp),oM(t)){const{type:r,id:o}=t.data,s=Zt.mirror.getNode(o);s instanceof HTMLElement&&r===Ye.Click&&e.registerClick(s)}}catch{}}function rM(e){return e.type===H2}function oM(e){return e.data.source===re.MouseInteraction}function jt(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var nl=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(nl||{});const sM=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function iM(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(sM.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const aM=e=>t=>{if(!e.isEnabled())return;const n=cM(t);if(!n)return;const r=t.name==="click",o=r?t.event:void 0;r&&e.clickDetector&&(o!=null&&o.target)&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&J2(e.clickDetector,n,gg(t.event)),vo(e,n)};function yg(e,t){const n=Zt.mirror.getId(e),r=n&&Zt.mirror.getNode(n),o=r&&Zt.mirror.getMeta(r),s=o&&uM(o)?o:null;return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map(i=>i.type===nl.Text&&i.textContent).filter(Boolean).map(i=>i.trim()).join(""),attributes:iM(s.attributes)}}:{}}}function cM(e){const{target:t,message:n}=lM(e);return jt({category:`ui.${e.name}`,...yg(t,n)})}function lM(e){const t=e.name==="click";let n,r=null;try{r=t?gg(e.event):vg(e.event),n=wt(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function uM(e){return e.type===nl.Element}function dM(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=fM(t);n&&vo(e,n)}function fM(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:s,target:i}=e;if(!i||pM(i)||!s)return null;const c=t||r||o,a=s.length===1;if(!c&&a)return null;const l=wt(i,{maxStringLength:200})||"<unknown>",d=yg(i,l);return jt({category:"ui.keyDown",message:l,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:s}})}function pM(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const hM={resource:bM,paint:vM,navigation:yM};function qi(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function mM(e){return e.map(gM).filter(Boolean)}function gM(e){const t=hM[e.entryType];return t?t(e):null}function fr(e){return((ot()||Ee.performance.timeOrigin)+e)/1e3}function vM(e){const{duration:t,entryType:n,name:r,startTime:o}=e,s=fr(o);return{type:n,name:r,start:s,end:s+t,data:void 0}}function yM(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:s,encodedBodySize:i,domContentLoadedEventStart:c,domContentLoadedEventEnd:a,domInteractive:l,loadEventStart:d,loadEventEnd:f,redirectCount:p,startTime:h,transferSize:g,type:v}=e;return o===0?null:{type:`${t}.${v}`,start:fr(h),end:fr(s),name:n,data:{size:g,decodedBodySize:r,encodedBodySize:i,duration:o,domInteractive:l,domContentLoadedEventStart:c,domContentLoadedEventEnd:a,loadEventStart:d,loadEventEnd:f,domComplete:s,redirectCount:p}}}function bM(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:s,decodedBodySize:i,encodedBodySize:c,responseStatus:a,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:fr(s),end:fr(o),name:r,data:{size:l,statusCode:a,decodedBodySize:i,encodedBodySize:c}}}function _M(e){const t=e.entries[e.entries.length-1],n=t!=null&&t.element?[t.element]:void 0;return rl(e,"largest-contentful-paint",n)}function SM(e){return e.sources!==void 0}function wM(e){const t=[],n=[];for(const r of e.entries)if(SM(r)){const o=[];for(const s of r.sources)if(s.node){n.push(s.node);const i=Zt.mirror.getId(s.node);i&&o.push(i)}t.push({value:r.value,nodeIds:o.length?o:void 0})}return rl(e,"cumulative-layout-shift",n,t)}function xM(e){const t=e.entries[e.entries.length-1],n=t!=null&&t.target?[t.target]:void 0;return rl(e,"interaction-to-next-paint",n)}function rl(e,t,n,r){const o=e.value,s=e.rating,i=fr(o);return{type:"web-vital",name:t,start:i,end:i,data:{value:o,size:o,rating:s,nodeIds:n?n.map(c=>Zt.mirror.getId(c)):void 0,attributions:r}}}function EM(e){function t(o){e.performanceEntries.includes(o)||e.performanceEntries.push(o)}function n({entries:o}){o.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(o=>{r.push(Mn(o,n))}),r.push(Wc(qi(_M,e)),Hc(qi(wM,e)),Mm(qi(xM,e))),()=>{r.forEach(o=>o())}}const X=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,kM='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function TM(){const e=new Blob([kM]);return URL.createObjectURL(e)}const Ud=["log","warn","error"],is="[Replay] ";function Gi(e,t="info"){un({category:"console",data:{logger:"replay"},level:t,message:`${is}${e}`},{level:t})}function IM(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return X?(Ud.forEach(r=>{n[r]=(...o)=>{z[r](is,...o),t&&Gi(o.join(""),Nc(r))}}),n.exception=(r,...o)=>{o.length&&n.error&&n.error(...o),z.error(is,r),e?ar(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&Gi(r,"error")},n.infoTick=(...r)=>{z.log(is,...r),t&&setTimeout(()=>Gi(r[0]),0)}):Ud.forEach(r=>{n[r]=()=>{}}),n}const Q=IM();class ol extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Yc}.`)}}class bg{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>Yc)throw new ol;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?tl(t):null}}class CM{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){X&&Q.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((o,s)=>{const i=({data:c})=>{const a=c;if(a.method===t&&a.id===r){if(this._worker.removeEventListener("message",i),!a.success){X&&Q.error("Error in compression worker: ",a.response),s(new Error("Error in compression worker"));return}o(a.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class RM{constructor(t){this._worker=new CM(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=tl(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>Yc?Promise.reject(new ol):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{X&&Q.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class AM{constructor(t){this._fallback=new bg,this._compression=new RM(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){X&&Q.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,o=[];for(const s of t)o.push(this._compression.addEvent(s));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(o),this._fallback.clear()}catch(s){X&&Q.exception(s,"Failed to add events when switching buffers.")}}}function OM({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=PM(t);if(n)return n}return X&&Q.log("Using simple buffer"),new bg}function PM(e){try{const t=e||MM();if(!t)return;X&&Q.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new AM(n)}catch(t){X&&Q.exception(t,"Failed to create compression worker")}}function MM(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?TM():""}function sl(){try{return"sessionStorage"in Ee&&!!Ee.sessionStorage}catch{return!1}}function LM(e){NM(),e.session=void 0}function NM(){if(sl())try{Ee.sessionStorage.removeItem(qc)}catch{}}function _g(e){return e===void 0?!1:Math.random()<e}function il(e){if(sl())try{Ee.sessionStorage.setItem(qc,JSON.stringify(e))}catch{}}function Sg(e){const t=Date.now(),n=e.id||ht(),r=e.started||t,o=e.lastActivity||t,s=e.segmentId||0,i=e.sampled,c=e.previousSessionId;return{id:n,started:r,lastActivity:o,segmentId:s,sampled:i,previousSessionId:c}}function jM(e,t){return _g(e)?"session":t?"buffer":!1}function Hd({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=jM(e,t),s=Sg({sampled:o,previousSessionId:r});return n&&il(s),s}function DM(){if(!sl())return null;try{const e=Ee.sessionStorage.getItem(qc);if(!e)return null;const t=JSON.parse(e);return X&&Q.infoTick("Loading existing session"),Sg(t)}catch{return null}}function Va(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function wg(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Va(e.started,t,r)||Va(e.lastActivity,n,r)}function xg(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!wg(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function Yi({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const o=r.stickySession&&DM();return o?xg(o,{sessionIdleExpire:e,maxReplayDuration:t})?(X&&Q.infoTick("Session in sessionStorage is expired, creating new one..."),Hd(r,{previousSessionId:o.id})):o:(X&&Q.infoTick("Creating new session"),Hd(r,{previousSessionId:n}))}function $M(e){return e.type===ae.Custom}function al(e,t,n){return kg(e,t)?(Eg(e,t,n),!0):!1}function zM(e,t,n){return kg(e,t)?Eg(e,t,n):Promise.resolve(null)}async function Eg(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const o=e.recordingMode==="buffer";try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const s=e.getOptions(),i=FM(t,s.beforeAddRecordingEvent);return i?await r.addEvent(i):void 0}catch(s){const i=s&&s instanceof ol,c=i?"addEventSizeExceeded":"addEvent";if(i&&o)return r.clear(),r.waitForCheckout=!0,null;e.handleException(s),await e.stop({reason:c});const a=le();a&&a.recordDroppedEvent("internal_sdk_error","replay")}}function kg(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=tl(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(X&&Q.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function FM(e,t){try{if(typeof t=="function"&&$M(e))return t(e)}catch(n){return X&&Q.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function cl(e){return!e.type}function Ba(e){return e.type==="transaction"}function VM(e){return e.type==="replay_event"}function Wd(e){return e.type==="feedback"}function BM(e){return(t,n)=>{if(!e.isEnabled()||!cl(t)&&!Ba(t))return;const r=n.statusCode;if(!(!r||r<200||r>=300)){if(Ba(t)){UM(e,t);return}HM(e,t)}}}function UM(e,t){var r,o;const n=e.getContext();(o=(r=t.contexts)==null?void 0:r.trace)!=null&&o.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function HM(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||mo(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(o){e.handleException(o)}})}function WM(e){return t=>{!e.isEnabled()||!cl(t)||ZM(e,t)}}function ZM(e,t){var r,o,s;const n=(s=(o=(r=t.exception)==null?void 0:r.values)==null?void 0:o[0])==null?void 0:s.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const i=jt({category:"replay.hydrate-error",data:{url:br()}});vo(e,i)}}function qM(e){const t=le();t&&t.on("beforeAddBreadcrumb",n=>GM(e,n))}function GM(e,t){if(!e.isEnabled()||!Tg(t))return;const n=YM(t);n&&vo(e,n)}function YM(e){return!Tg(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?KM(e):jt(e)}function KM(e){var o;const t=(o=e.data)==null?void 0:o.arguments;if(!Array.isArray(t)||t.length===0)return jt(e);let n=!1;const r=t.map(s=>{if(!s)return s;if(typeof s=="string")return s.length>zo?(n=!0,`${s.slice(0,zo)}…`):s;if(typeof s=="object")try{const i=kt(s,7);return JSON.stringify(i).length>zo?(n=!0,`${JSON.stringify(i,null,2).slice(0,zo)}…`):i}catch{}return s});return jt({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Tg(e){return!!e.category}function JM(e,t){var n,r,o;return e.type||!((r=(n=e.exception)==null?void 0:n.values)!=null&&r.length)?!1:!!((o=t.originalException)!=null&&o.__rrweb__)}function Ig(){const e=be().getPropagationContext().dsc;e&&delete e.replay_id;const t=Je();if(t){const n=Jt(t);delete n.replay_id}}function XM(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:ae.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function QM(e,t){return e.recordingMode!=="buffer"||t.message===Gc||!t.exception||t.type?!1:_g(e.getOptions().errorSampleRate)}function eL(e){return Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:VM(t)?(delete t.breadcrumbs,t):!cl(t)&&!Ba(t)&&!Wd(t)?t:e.checkAndHandleExpiredSession()?Wd(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),XM(e,t),t):JM(t,n)&&!e.getOptions()._experiments.captureExceptions?(X&&Q.log("Ignoring error from rrweb internals",t),null):((QM(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(Ig(),t),{id:"Replay"})}function pi(e,t){return t.map(({type:n,start:r,end:o,name:s,data:i})=>{const c=e.throttledAddEvent({type:ae.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:s,startTimestamp:r,endTimestamp:o,data:i}}});return typeof c=="string"?Promise.resolve(null):c})}function tL(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function nL(e){return t=>{if(!e.isEnabled())return;const n=tL(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(pi(e,[n]),!1)))}}function rL(e,t){return X&&e.getOptions()._experiments.traceInternals?!1:ZC(t,le())}function Cg(e,t){e.isEnabled()&&t!==null&&(rL(e,t.name)||e.addUpdate(()=>(pi(e,[t]),!0)))}function hi(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=Bm(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Rg(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Ls(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function Ag(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:s,statusCode:i,request:c,response:a}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:{method:s,statusCode:i,request:c,response:a}}}function to(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function an(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:s}=oL(n);return r.body=o,s!=null&&s.length&&(r._meta={warnings:s}),r}function Ua(e,t){return Object.entries(e).reduce((n,[r,o])=>{const s=r.toLowerCase();return t.includes(s)&&e[r]&&(n[s]=o),n},{})}function oL(e){if(!e||typeof e!="string")return{body:e};const t=e.length>kd,n=sL(e);if(t){const r=e.slice(0,kd);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function sL(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Ns(e,t){const n=iL(e);return Ht(n,t)}function iL(e,t=Ee.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Ee.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function aL(e,t,n){try{const r=await lL(e,t,n),o=Ag("resource.fetch",r);Cg(n.replay,o)}catch(r){X&&Q.exception(r,"Failed to capture fetch breadcrumb")}}function cL(e,t){const{input:n,response:r}=t,o=n?Hm(n):void 0,s=hi(o),i=r?Rg(r.headers.get("content-length")):void 0;s!==void 0&&(e.data.request_body_size=s),i!==void 0&&(e.data.response_body_size=i)}async function lL(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r}=t,{url:i,method:c,status_code:a=0,request_body_size:l,response_body_size:d}=e.data,f=Ns(i,n.networkDetailAllowUrls)&&!Ns(i,n.networkDetailDenyUrls),p=f?uL(n,t.input,l):to(l),h=await dL(f,n,t.response,d);return{startTimestamp:o,endTimestamp:s,url:i,method:c,statusCode:a,request:p,response:h}}function uL({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?hL(n,t):{};if(!e)return an(o,r,void 0);const s=Hm(n),[i,c]=Um(s,Q),a=an(o,r,i);return c?Ls(a,c):a}async function dL(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&o!==void 0)return to(o);const s=r?Og(r.headers,n):{};if(!r||!t&&o!==void 0)return an(s,o,void 0);const[i,c]=await pL(r),a=fL(i,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:s});return c?Ls(a,c):a}function fL(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{const s=e!=null&&e.length&&n===void 0?hi(e):n;return r?t?an(o,s,e):an(o,s,void 0):to(s)}catch(s){return X&&Q.exception(s,"Failed to serialize response body"),an(o,n,void 0)}}async function pL(e){const t=mL(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await gL(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(X&&Q.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(X&&Q.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function Og(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function hL(e,t){return e.length===1&&typeof e[0]!="string"?Zd(e[0],t):e.length===2?Zd(e[1],t):{}}function Zd(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Og(n,t):Array.isArray(n)?{}:Ua(n,t):{}}function mL(e){try{return e.clone()}catch(t){X&&Q.exception(t,"Failed to clone response body")}}function gL(e){return new Promise((t,n)=>{const r=mo(()=>n(new Error("Timeout while trying to read response body")),500);vL(e).then(o=>t(o),o=>n(o)).finally(()=>clearTimeout(r))})}async function vL(e){return await e.text()}async function yL(e,t,n){try{const r=_L(e,t,n),o=Ag("resource.xhr",r);Cg(n.replay,o)}catch(r){X&&Q.exception(r,"Failed to capture xhr breadcrumb")}}function bL(e,t){const{xhr:n,input:r}=t;if(!n)return;const o=hi(r),s=n.getResponseHeader("content-length")?Rg(n.getResponseHeader("content-length")):EL(n.response,n.responseType);o!==void 0&&(e.data.request_body_size=o),s!==void 0&&(e.data.response_body_size=s)}function _L(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r,input:i,xhr:c}=t,{url:a,method:l,status_code:d=0,request_body_size:f,response_body_size:p}=e.data;if(!a)return null;if(!c||!Ns(a,n.networkDetailAllowUrls)||Ns(a,n.networkDetailDenyUrls)){const I=to(f),w=to(p);return{startTimestamp:o,endTimestamp:s,url:a,method:l,statusCode:d,request:I,response:w}}const h=c[Sn],g=h?Ua(h.request_headers,n.networkRequestHeaders):{},v=Ua(SL(c),n.networkResponseHeaders),[y,b]=n.networkCaptureBodies?Um(i,Q):[void 0],[_,S]=n.networkCaptureBodies?wL(c):[void 0],E=an(g,f,y),T=an(v,p,_);return{startTimestamp:o,endTimestamp:s,url:a,method:l,statusCode:d,request:b?Ls(E,b):E,response:S?Ls(T,S):T}}function SL(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
`).reduce((n,r)=>{const[o,s]=r.split(": ");return s&&(n[o.toLowerCase()]=s),n},{}):{}}function wL(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return xL(e.response,e.responseType)}catch(n){t.push(n)}return X&&Q.warn("Failed to get xhr response body",...t),[void 0]}function xL(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return X&&Q.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return X&&Q.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function EL(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return hi(n)}catch{return}}function kL(e){const t=le();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:i}=e.getOptions(),c={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",(a,l)=>TL(c,a,l))}catch{}}function TL(e,t,n){if(t.data)try{IL(t)&&RL(n)&&(bL(t,n),yL(t,n,e)),CL(t)&&AL(n)&&(cL(t,n),aL(t,n,e))}catch(r){X&&Q.exception(r,"Error when enriching network breadcrumb")}}function IL(e){return e.category==="xhr"}function CL(e){return e.category==="fetch"}function RL(e){return e==null?void 0:e.xhr}function AL(e){return e==null?void 0:e.response}function OL(e){const t=le();zm(aM(e)),li(nL(e)),qM(e),kL(e);const n=eL(e);hC(n),t&&(t.on("beforeSendEvent",WM(e)),t.on("afterSendEvent",BM(e)),t.on("createDsc",r=>{const o=e.getSessionId();o&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=o)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",async(r,o)=>{var i;const s=e.getSessionId();o!=null&&o.includeReplay&&e.isEnabled()&&s&&((i=r.contexts)!=null&&i.feedback)&&(r.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=s)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function PL(e){try{return Promise.all(pi(e,[ML(Ee.performance.memory)]))}catch{return[]}}function ML(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function LL(e,t,n){return XC(e,t,{...n,setTimeoutImpl:mo})}const _t=pe.navigator;function NL(){return/iPhone|iPad|iPod/i.test((_t==null?void 0:_t.userAgent)??"")||/Macintosh/i.test((_t==null?void 0:_t.userAgent)??"")&&(_t!=null&&_t.maxTouchPoints)&&(_t==null?void 0:_t.maxTouchPoints)>1?{sampling:{mousemove:!1}}:{}}function jL(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){X&&Q.warn("Received replay event after session expired.");return}const o=r||!t;t=!0,e.clickDetector&&nM(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&o&&e.setInitialState(),!al(e,n,o))return!0;if(!o)return!1;const s=e.session;if($L(e,o),e.recordingMode==="buffer"&&s&&e.eventBuffer){const i=e.eventBuffer.getEarliestTimestamp();i&&(X&&Q.log(`Updating session start time to earliest event in buffer to ${new Date(i)}`),s.started=i,e.getOptions().stickySession&&il(s))}return s!=null&&s.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function DL(e){const t=e.getOptions();return{type:ae.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function $L(e,t){!t||!e.session||e.session.segmentId!==0||al(e,DL(e),!1)}function zL(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function FL(e,t,n,r){return vn(qh(e,Rc(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function VL({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
`;if(typeof e=="string")n=`${r}${e}`;else{const s=new TextEncoder().encode(r);n=new Uint8Array(s.length+e.length),n.set(s),n.set(e,s.length)}return n}async function BL({client:e,scope:t,replayId:n,event:r}){const o=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,s={event_id:n,integrations:o};e.emit("preprocessEvent",r,s);const i=await Qh(e.getOptions(),r,s,t,e,Rt());if(!i)return null;e.emit("postprocessEvent",i,s),i.platform=i.platform||"javascript";const c=e.getSdkMetadata(),{name:a,version:l,settings:d}=(c==null?void 0:c.sdk)||{};return i.sdk={...i.sdk,name:a||"sentry.javascript.unknown",version:l||"0.0.0",settings:d},i}async function UL({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:s}){const i=VL({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:a,traceIds:l,initialTimestamp:d}=r,f=le(),p=be(),h=f==null?void 0:f.getTransport(),g=f==null?void 0:f.getDsn();if(!f||!h||!g||!s.sampled)return Promise.resolve({});const v={type:bP,replay_start_timestamp:d/1e3,timestamp:o/1e3,error_ids:a,trace_ids:l,urls:c,replay_id:t,segment_id:n,replay_type:s.sampled},y=await BL({scope:p,client:f,replayId:t,event:v});if(!y)return f.recordDroppedEvent("event_processor","replay"),X&&Q.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete y.sdkProcessingMetadata;const b=FL(y,i,g,f.getOptions().tunnel);let _;try{_=await h.send(b)}catch(E){const T=new Error(Gc);try{T.cause=E}catch{}throw T}if(typeof _.statusCode=="number"&&(_.statusCode<200||_.statusCode>=300))throw new Pg(_.statusCode);const S=hm({},_);if(pm(S,"replay"))throw new ll(S);return _}class Pg extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class ll extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function Mg(e,t={count:0,interval:kP}){const{recordingData:n,onError:r}=e;if(n.length)try{return await UL(e),!0}catch(o){if(o instanceof Pg||o instanceof ll)throw o;if(tm("Replays",{_retryCount:t.count}),r&&r(o),t.count>=TP){const s=new Error(`${Gc} - max retries exceeded`);try{s.cause=o}catch{}throw s}return t.interval*=++t.count,new Promise((s,i)=>{mo(async()=>{try{await Mg(e,t),s(!0)}catch(c){i(c)}},t.interval)})}}const Lg="__THROTTLED",HL="__SKIPPED";function WL(e,t,n){const r=new Map,o=c=>{const a=c-n;r.forEach((l,d)=>{d<a&&r.delete(d)})},s=()=>[...r.values()].reduce((c,a)=>c+a,0);let i=!1;return(...c)=>{const a=Math.floor(Date.now()/1e3);if(o(a),s()>=t){const d=i;return i=!0,d?HL:Lg}i=!1;const l=r.get(a)||0;return r.set(a,l+1),e(...c)}}class ZL{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:_P,sessionIdleExpire:SP},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=LL(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=WL((i,c)=>zM(this,i,c),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:o}=this.getOptions(),s=r?{threshold:Math.min(IP,r),timeout:r,scrollTimeout:CP,ignoreSelector:o?o.join(","):""}:void 0;if(s&&(this.clickDetector=new X2(this,s)),X){const i=t._experiments;Q.setConfig({captureExceptions:!!i.captureExceptions,traceInternals:!!i.traceInternals})}this._handleVisibilityChange=()=>{Ee.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const i=jt({category:"ui.blur"});this._doChangeToBackgroundTasks(i)},this._handleWindowFocus=()=>{const i=jt({category:"ui.focus"});this._doChangeToForegroundTasks(i)},this._handleKeyboardEvent=i=>{dM(this,i)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){X&&Q.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,o=n<=0&&r<=0;if(this._requiresManualStart=o,!o){if(this._initializeSessionForSampling(t),!this.session){X&&Q.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",X&&Q.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){X&&Q.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){X&&Q.log("Buffering is in progress, call `flush()` to save the replay");return}X&&Q.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=Yi({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){X&&Q.log("Buffering is in progress, call `flush()` to save the replay");return}X&&Q.infoTick("Starting replay in buffer mode");const t=Yi({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=Zt({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:EP}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:jL(this),...NL(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){var r;if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{X&&Q.log(`Stopping Replay${n?` triggered by ${n}`:""}`),Ig(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),(r=this.eventBuffer)==null||r.destroy(),this.eventBuffer=null,LM(this)}catch(o){this.handleException(o)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),X&&Q.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),X&&Q.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();X&&Q.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(t){var n,r;if(!(t&&((n=this.session)==null?void 0:n.sampled)===!1))return(r=this.session)==null?void 0:r.id}checkAndHandleExpiredSession(){if(this._lastActivity&&Va(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${Ee.location.pathname}${Ee.location.hash}${Ee.location.search}`,n=`${Ee.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===Lg){const o=jt({category:"replay.throttled"});this.addUpdate(()=>!al(this,{type:W2,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||Je(),n=t&&Ge(t),o=(n&&me(n).data||{})[It];if(!(!n||!o||!["route","custom"].includes(o)))return me(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=OM({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=Yi({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return xg(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{Ee.document.addEventListener("visibilitychange",this._handleVisibilityChange),Ee.addEventListener("blur",this._handleWindowBlur),Ee.addEventListener("focus",this._handleWindowFocus),Ee.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(OL(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=EM(this)}_removeListeners(){try{Ee.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Ee.removeEventListener("blur",this._handleWindowBlur),Ee.removeEventListener("focus",this._handleWindowFocus),Ee.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||wg(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){X&&Q.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:ae.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=mM(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(pi(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){var n;const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){X&&Q.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!((n=this.eventBuffer)!=null&&n.hasEvents)&&(await PL(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const r=Date.now();if(r-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const o=this._popEventContext(),s=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await Mg({replayId:t,recordingData:i,segmentId:s,eventContext:o,session:this.session,timestamp:r,onError:c=>this.handleException(c)})}catch(r){this.handleException(r),this.stop({reason:"sendReplay"});const o=le();if(o){const s=r instanceof ll?"ratelimit_backoff":"send_error";o.recordDroppedEvent(s,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){X&&Q.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,o=Date.now()-n;this._debouncedFlush.cancel();const s=o<this._options.minReplayDuration,i=o>this._options.maxReplayDuration+5e3;if(s||i){X&&Q.log(`Session duration (${Math.floor(o/1e3)}s) is too ${s?"short":"long"}, not sending replay.`),s&&this._debouncedFlush();return}const c=this.eventBuffer;c&&this.session.segmentId===0&&!c.hasCheckout&&X&&Q.log("Flushing initial segment without checkout.");const a=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(l){this.handleException(l)}finally{this._flushLock=void 0,a&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&il(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n!=null&&n.length&&t.some(c=>{const a=zL(c.target),l=n.join(",");return a==null?void 0:a.matches(l)}))return!1;const r=t.length,o=this._options.mutationLimit,s=this._options.mutationBreadcrumbLimit,i=o&&r>o;if(r>s||i){const c=jt({category:"replay.mutations",data:{count:r,limit:i}});this._createCustomBreadcrumb(c)}return i?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function Or(e,t){return[...e,...t].join(",")}function qL({mask:e,unmask:t,block:n,unblock:r,ignore:o}){const s=["base","iframe[srcdoc]:not([src])"],i=Or(e,[".sentry-mask","[data-sentry-mask]"]),c=Or(t,[]);return{maskTextSelector:i,unmaskTextSelector:c,blockSelector:Or(n,[".sentry-block","[data-sentry-block]",...s]),unblockSelector:Or(r,[]),ignoreSelector:Or(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function GL({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:s}){return!r||o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?s:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s}const qd='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',YL=["content-length","content-type","accept"];let Gd=!1;const KL=e=>new JL(e);class JL{constructor({flushMinDelay:t=wP,flushMaxDelay:n=xP,minReplayDuration:r=RP,maxReplayDuration:o=Td,stickySession:s=!0,useCompression:i=!0,workerUrl:c,_experiments:a={},maskAllText:l=!0,maskAllInputs:d=!0,blockAllMedia:f=!0,mutationBreadcrumbLimit:p=750,mutationLimit:h=1e4,slowClickTimeout:g=7e3,slowClickIgnoreSelectors:v=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:b=[],networkCaptureBodies:_=!0,networkRequestHeaders:S=[],networkResponseHeaders:E=[],mask:T=[],maskAttributes:I=["title","placeholder","aria-label"],unmask:w=[],block:R=[],unblock:A=[],ignore:O=[],maskFn:L,beforeAddRecordingEvent:M,beforeErrorSampling:F,onError:j}={}){this.name="Replay";const Z=qL({mask:T,unmask:w,block:R,unblock:A,ignore:O});if(this._recordingOptions={maskAllInputs:d,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:L,maskInputFn:L,maskAttributeFn:(H,N,D)=>GL({maskAttributes:I,maskAllText:l,privacyOptions:Z,key:H,value:N,el:D}),...Z,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:H=>{try{H.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!a.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,AP),maxReplayDuration:Math.min(o,Td),stickySession:s,useCompression:i,workerUrl:c,blockAllMedia:f,maskAllInputs:d,maskAllText:l,mutationBreadcrumbLimit:p,mutationLimit:h,slowClickTimeout:g,slowClickIgnoreSelectors:v,networkDetailAllowUrls:y,networkDetailDenyUrls:b,networkCaptureBodies:_,networkRequestHeaders:Yd(S),networkResponseHeaders:Yd(E),beforeAddRecordingEvent:M,beforeErrorSampling:F,onError:j,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${qd}`:qd),this._isInitialized&&gd())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Gd}set _isInitialized(t){Gd=t}afterAllSetup(t){!gd()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(t){var n;if((n=this._replay)!=null&&n.isEnabled())return this._replay.getSessionId(t)}getRecordingMode(){var t;if((t=this._replay)!=null&&t.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=XL(this._initialOptions,t);this._replay=new ZL({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function XL(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},o=Pn(n.replaysSessionSampleRate),s=Pn(n.replaysOnErrorSampleRate);return o==null&&s==null&&jn(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),o!=null&&(r.sessionSampleRate=o),s!=null&&(r.errorSampleRate=s),r}function Yd(e){return[...YL,...e.map(t=>t.toLowerCase())]}const Kd=new WeakMap,Ki=new Map,Ng={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function QL(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:s,enableHTTPTimings:i,tracePropagationTargets:c,onRequestSpanStart:a}={...Ng,...t},l=typeof s=="function"?s:h=>!0,d=h=>tN(h,c),f={},p=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(h=>(h.type==="transaction"&&h.spans&&h.spans.forEach(g=>{if(g.op==="http.client"){const v=Ki.get(g.span_id);v&&(g.timestamp=v/1e3,Ki.delete(g.span_id))}}),h)),o&&NR(h=>{if(h.response){const g=Kd.get(h.response);g&&h.endTimestamp&&Ki.set(g,h.endTimestamp)}}),Sm(h=>{const g=TR(h,l,d,f,{propagateTraceparent:p});if(h.response&&h.fetchData.__span&&Kd.set(h.response,h.fetchData.__span),g){const v=jg(h.fetchData.url),y=v?Tn(v).host:void 0;g.setAttributes({"http.url":v,"server.address":y}),i&&Jd(g),a==null||a(g,{headers:h.headers})}})),r&&Vm(h=>{var v;const g=nN(h,l,d,f,p);if(g){i&&Jd(g);let y;try{y=new Headers((v=h.xhr.__sentry_xhr_v3__)==null?void 0:v.request_headers)}catch{}a==null||a(g,{headers:y})}})}function eN(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function Jd(e){const{url:t}=me(e).data;if(!t||typeof t!="string")return;const n=Mn("resource",({entries:r})=>{r.forEach(o=>{eN(o)&&o.name.endsWith(t)&&(e.setAttributes($m(o)),setTimeout(n))})})}function tN(e,t){const n=br();if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch{return!1}const s=r.origin===o;return t?Ht(r.toString(),t)||s&&Ht(r.pathname,t):s}else{const r=!!e.match(/^\/(?!\/)/);return t?Ht(e,t):r}}function nN(e,t,n,r,o){const s=e.xhr,i=s==null?void 0:s[Sn];if(!s||s.__sentry_own_request__||!i)return;const{url:c,method:a}=i,l=Ct()&&t(c);if(e.endTimestamp&&l){const y=s.__sentry_xhr_span_id__;if(!y)return;const b=r[y];b&&i.status_code!==void 0&&(Ah(b,i.status_code),b.end(),delete r[y]);return}const d=jg(c),f=Tn(d||c),p=WC(c),h=!!Je(),g=l&&h?wr({name:`${a} ${p}`,attributes:{url:c,type:"xhr","http.method":a,"http.url":d,"server.address":f==null?void 0:f.host,[Ve]:"auto.http.browser",[Kt]:"http.client",...(f==null?void 0:f.search)&&{"http.query":f==null?void 0:f.search},...(f==null?void 0:f.hash)&&{"http.fragment":f==null?void 0:f.hash}}}):new ln;s.__sentry_xhr_span_id__=g.spanContext().spanId,r[s.__sentry_xhr_span_id__]=g,n(c)&&rN(s,Ct()&&h?g:void 0,o);const v=le();return v&&v.emit("beforeOutgoingRequestSpan",g,e),g}function rN(e,t,n){const{"sentry-trace":r,baggage:o,traceparent:s}=gm({span:t,propagateTraceparent:n});r&&oN(e,r,o,s)}function oN(e,t,n,r){var s;const o=(s=e.__sentry_xhr_v3__)==null?void 0:s.request_headers;if(!(o!=null&&o["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!(o!=null&&o.traceparent)&&e.setRequestHeader("traceparent",r),n){const i=o==null?void 0:o.baggage;(!i||!sN(i))&&e.setRequestHeader("baggage",n)}}catch{}}function sN(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function jg(e){try{return new URL(e,de.location.origin).href}catch{return}}function iN(){de.document?de.document.addEventListener("visibilitychange",()=>{const e=Je();if(!e)return;const t=Ge(e);if(de.document.hidden&&t){const n="cancelled",{op:r,status:o}=me(t);nt&&z.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),o||t.setStatus({code:Fe,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):nt&&z.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const aN=3600,Dg="sentry_previous_trace",cN="sentry.previous_trace";function lN(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let o=r?fN():void 0;e.on("spanStart",i=>{if(Ge(i)!==i)return;const c=be().getPropagationContext();o=uN(o,i,c),r&&dN(o)});let s=!0;n&&e.on("beforeSampling",i=>{if(!o)return;const c=be(),a=c.getPropagationContext();if(s&&a.parentSpanId){s=!1;return}c.setPropagationContext({...a,dsc:{...a.dsc,sample_rate:String(o.sampleRate),sampled:String(Ha(o.spanContext))},sampleRand:o.sampleRand}),i.parentSampled=Ha(o.spanContext),i.parentSampleRate=o.sampleRate,i.spanAttributes={...i.spanAttributes,[Ch]:o.sampleRate}})}function uN(e,t,n){const r=me(t);function o(){var c,a;try{return Number((c=n.dsc)==null?void 0:c.sample_rate)??Number((a=r.data)==null?void 0:a[Ec])}catch{return 0}}const s={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:o(),sampleRand:n.sampleRand};if(!e)return s;const i=e.spanContext;return i.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=aN&&(nt&&z.log(`Adding previous_trace ${i} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:i,attributes:{[FT]:"previous_trace"}}),t.setAttribute(cN,`${i.traceId}-${i.spanId}-${Ha(i)?1:0}`)),s)}function dN(e){try{de.sessionStorage.setItem(Dg,JSON.stringify(e))}catch(t){nt&&z.warn("Could not store previous trace in sessionStorage",t)}}function fN(){var e;try{const t=(e=de.sessionStorage)==null?void 0:e.getItem(Dg);return JSON.parse(t)}catch{return}}function Ha(e){return e.traceFlags===1}const pN="BrowserTracing",hN={...ns,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...Ng},mN=(e={})=>{const t={name:void 0,source:void 0},n=de.document,{enableInp:r,enableElementTiming:o,enableLongTask:s,enableLongAnimationFrame:i,_experiments:{enableInteractions:c,enableStandaloneClsSpans:a,enableStandaloneLcpSpans:l},beforeStartSpan:d,idleTimeout:f,finalTimeout:p,childSpanTimeout:h,markBackgroundSpan:g,traceFetch:v,traceXHR:y,trackFetchStreamPerformance:b,shouldCreateSpanForRequest:_,enableHTTPTimings:S,ignoreResourceSpans:E,ignorePerformanceApiSpans:T,instrumentPageLoad:I,instrumentNavigation:w,detectRedirects:R,linkPreviousTrace:A,consistentTraceSampling:O,enableReportPageLoaded:L,onRequestSpanStart:M}={...hN,...e};let F,j,Z;function H(N,D,C=!0){const W=D.op==="pageload",B=D.name,U=d?d(D):D,$=U.attributes||{};if(B!==U.name&&($[It]="custom",U.attributes=$),!C){const oe=Dn();wr({...U,startTime:oe}).end(oe);return}t.name=U.name,t.source=$[It];const ne=Xh(U,{idleTimeout:f,finalTimeout:p,childSpanTimeout:h,disableAutoFinish:W,beforeSpanEnd:oe=>{F==null||F(),WA(oe,{recordClsOnPageloadSpan:!a,recordLcpOnPageloadSpan:!l,ignoreResourceSpans:E,ignorePerformanceApiSpans:T}),Qd(N,void 0);const $e=be(),Ne=$e.getPropagationContext();$e.setPropagationContext({...Ne,traceId:ne.spanContext().traceId,sampled:gn(ne),dsc:Jt(oe)}),W&&(Z=void 0)},trimIdleSpanEndTimestamp:!L});W&&L&&(Z=ne),Qd(N,ne);function Se(){n&&["interactive","complete"].includes(n.readyState)&&N.emit("idleSpanEnableAutoFinish",ne)}W&&!L&&n&&(n.addEventListener("readystatechange",()=>{Se()}),Se())}return{name:pN,setup(N){if(hI(),F=$A({recordClsStandaloneSpans:a||!1,recordLcpStandaloneSpans:l||!1,client:N}),r&&mO(),o&&nO(),i&&pe.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?FA():s&&zA(),c&&VA(),R&&n){const C=()=>{j=Ue()};addEventListener("click",C,{capture:!0}),addEventListener("keydown",C,{capture:!0,passive:!0})}function D(){const C=no(N);C&&!me(C).timestamp&&(nt&&z.log(`[Tracing] Finishing current active span with op: ${me(C).op}`),C.setAttribute(Yr,"cancelled"),C.end())}N.on("startNavigationSpan",(C,W)=>{if(le()!==N)return;if(W!=null&&W.isRedirect){nt&&z.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),H(N,{op:"navigation.redirect",...C},!1);return}j=void 0,D(),Rt().setPropagationContext({traceId:Yt(),sampleRand:Math.random(),propagationSpanId:Ct()?void 0:Wt()});const B=be();B.setPropagationContext({traceId:Yt(),sampleRand:Math.random(),propagationSpanId:Ct()?void 0:Wt()}),B.setSDKProcessingMetadata({normalizedRequest:void 0}),H(N,{op:"navigation",...C,parentSpan:null,forceTransaction:!0})}),N.on("startPageLoadSpan",(C,W={})=>{if(le()!==N)return;D();const B=W.sentryTrace||Xd("sentry-trace"),U=W.baggage||Xd("baggage"),$=sI(B,U),ne=be();ne.setPropagationContext($),Ct()||(ne.getPropagationContext().propagationSpanId=Wt()),ne.setSDKProcessingMetadata({normalizedRequest:jc()}),H(N,{op:"pageload",...C})}),N.on("endPageloadSpan",()=>{L&&Z&&(Z.setAttribute(Yr,"reportPageLoaded"),Z.end())})},afterAllSetup(N){let D=br();if(A!=="off"&&lN(N,{linkPreviousTrace:A,consistentTraceSampling:O}),de.location){if(I){const C=ot();gN(N,{name:de.location.pathname,startTime:C?C/1e3:void 0,attributes:{[It]:"url",[Ve]:"auto.pageload.browser"}})}w&&li(({to:C,from:W})=>{if(W===void 0&&(D==null?void 0:D.indexOf(C))!==-1){D=void 0;return}D=void 0;const B=Lc(C),U=no(N),$=U&&R&&bN(U,j);vN(N,{name:(B==null?void 0:B.pathname)||de.location.pathname,attributes:{[It]:"url",[Ve]:"auto.navigation.browser"}},{url:C,isRedirect:$})})}g&&iN(),c&&yN(N,f,p,h,t),r&&yO(),QL(N,{traceFetch:v,traceXHR:y,trackFetchStreamPerformance:b,tracePropagationTargets:N.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:_,enableHTTPTimings:S,onRequestSpanStart:M})}}};function gN(e,t,n){e.emit("startPageLoadSpan",t,n),be().setTransactionName(t.name);const r=no(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function vN(e,t,n){const{url:r,isRedirect:o}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});const s=be();return s.setTransactionName(t.name),r&&!o&&s.setSDKProcessingMetadata({normalizedRequest:{...jc(),url:r}}),no(e)}function Xd(e){const t=de.document,n=t==null?void 0:t.querySelector(`meta[name=${e}]`);return(n==null?void 0:n.getAttribute("content"))||void 0}function yN(e,t,n,r,o){const s=de.document;let i;const c=()=>{const a="ui.action.click",l=no(e);if(l){const d=me(l).op;if(["navigation","pageload"].includes(d)){nt&&z.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`);return}}if(i&&(i.setAttribute(Yr,"interactionInterrupted"),i.end(),i=void 0),!o.name){nt&&z.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}i=Xh({name:o.name,op:a,attributes:{[It]:o.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};s&&addEventListener("click",c,{capture:!0})}const $g="_sentry_idleSpan";function no(e){return e[$g]}function Qd(e,t){gt(e,$g,t)}const ef=1.5;function bN(e,t){const n=me(e),r=Dn(),o=n.start_timestamp;return!(r-o>ef||t&&r-t<=ef)}function _N(e){const t={...e};return mm(t,"react"),tm("react",{version:m.version}),yP(t)}function SN(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function wN(e,t){const n=new WeakSet;function r(o,s){if(!n.has(o)){if(o.cause)return n.add(o),r(o.cause,s);o.cause=s}}r(e,t)}function xN(e,{componentStack:t},n){if(SN(m.version)&&ri(e)&&t){const r=new Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,wN(e,r)}return $n(r=>(r.setContext("react",{componentStack:t}),ar(e,n)))}const EN=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ji={componentStack:null,error:null,eventId:null};class kN extends m.Component{constructor(t){super(t),this.state=Ji,this._openFallbackReportDialog=!0;const n=le();n&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",r=>{!r.type&&this._lastEventId&&r.event_id===this._lastEventId&&Ed({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,n){const{componentStack:r}=n,{beforeCapture:o,onError:s,showDialog:i,dialogOptions:c}=this.props;$n(a=>{o&&o(a,t,r);const l=this.props.handled!=null?this.props.handled:!!this.props.fallback,d=xN(t,n,{mechanism:{handled:l,type:"auto.function.react.error_boundary"}});s&&s(t,r,d),i&&(this._lastEventId=d,this._openFallbackReportDialog&&Ed({...c,eventId:d})),this.setState({error:t,componentStack:r,eventId:d})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:o}=this.props;o&&(this.state===Ji?o(null,null,null):o(t,n,r)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:t}=this.props,{error:n,componentStack:r,eventId:o}=this.state;t&&t(n,r,o),this.setState(Ji)}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.componentStack===null)return typeof n=="function"?n():n;const o=typeof t=="function"?m.createElement(t,{error:r.error,componentStack:r.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:r.eventId}):t;return m.isValidElement(o)?o:(t&&EN&&z.warn("fallback did not produce a valid ReactElement"),null)}}function TN(){const[e,t]=m.useState(!1),n=!!ar;if(e)throw new Error("Sentry test: React render crash");return m.useMemo(()=>typeof window>"u"?!1:window.location.search.includes("sentryTest=1"),[])?u.jsxs("div",{className:"fixed bottom-4 right-4 z-50 max-w-sm rounded-md border border-slate-200 bg-white p-4 shadow-lg dark:border-slate-800 dark:bg-slate-900",children:[u.jsx("div",{className:"mb-2 font-medium",children:"Sentry Test Panel"}),u.jsxs("div",{className:"mb-3 text-sm text-slate-600 dark:text-slate-300",children:[u.jsxs("div",{children:["Sentry Ready: ",n?"✅ Yes":"❌ No"]}),u.jsx("div",{className:"text-xs mt-1",children:"Integration: NPM Package (@sentry/react)"})]}),u.jsxs("div",{className:"flex flex-col gap-2",children:[u.jsx("button",{className:"rounded bg-emerald-600 px-3 py-2 text-white hover:bg-emerald-700",onClick:()=>{console.error("Sentry test: console.error triggered",{marker:"sentry-test",time:new Date().toISOString()}),alert("console.error triggered - check Sentry dashboard")},children:"Trigger console.error"}),u.jsx("button",{className:"rounded bg-purple-600 px-3 py-2 text-white hover:bg-purple-700",onClick:()=>{xa("Sentry test: manual message capture","info"),alert("Sentry.captureMessage called")},children:"Capture Message"}),u.jsx("button",{className:"rounded bg-blue-600 px-3 py-2 text-white hover:bg-blue-700",onClick:()=>{ar(new Error("Sentry test: manual captureException"),{tags:{test:"manual-capture"},level:"error"}),alert("Sentry.captureException called")},children:"Capture Exception"}),u.jsx("button",{className:"rounded bg-orange-600 px-3 py-2 text-white hover:bg-orange-700",onClick:()=>{Promise.reject(new Error("Sentry test: unhandled promise rejection")),alert("Unhandled promise rejection triggered")},children:"Unhandled Promise Rejection"}),u.jsx("button",{className:"rounded bg-red-600 px-3 py-2 text-white hover:bg-red-700",onClick:()=>t(!0),children:"React Crash (ErrorBoundary)"})]}),u.jsx("div",{className:"mt-3 text-xs text-slate-500",children:"This panel is only visible with ?sentryTest=1 in the URL."})]}):null}function IN(){const t=js().pathname,{data:n,isLoading:r}=cn({queryKey:["seo-data",t],queryFn:async()=>{const{data:o,error:s}=await he.from("seo_pages").select("title, meta_title, meta_description, keywords, is_indexed").eq("path",t).single();return s?(console.log("No SEO data found for path:",t),null):o},staleTime:30*60*1e3,gcTime:60*60*1e3,refetchOnWindowFocus:!1,refetchOnMount:!1});return{seoData:n,isLoading:r}}const CN="https://talenthunter.me";function RN({fallbackTitle:e,fallbackDescription:t}){const{seoData:n}=IN(),r=js();return m.useEffect(()=>{const o=(n==null?void 0:n.meta_title)||(n==null?void 0:n.title)||e||"Talent Hunter";document.title=o;const s=(n==null?void 0:n.meta_description)||t||"";let i=document.querySelector('meta[name="description"]');if(i||(i=document.createElement("meta"),i.setAttribute("name","description"),document.head.appendChild(i)),i.setAttribute("content",s),n!=null&&n.keywords){let d=document.querySelector('meta[name="keywords"]');d||(d=document.createElement("meta"),d.setAttribute("name","keywords"),document.head.appendChild(d)),d.setAttribute("content",n.keywords)}let c=document.querySelector('meta[name="robots"]');c||(c=document.createElement("meta"),c.setAttribute("name","robots"),document.head.appendChild(c)),c.setAttribute("content",(n==null?void 0:n.is_indexed)!==!1?"index, follow":"noindex, nofollow");const a=r.pathname==="/home"?"/":r.pathname;if(!(a==="/")){let d=document.querySelector('link[rel="canonical"]');d||(d=document.createElement("link"),d.setAttribute("rel","canonical"),document.head.appendChild(d));const f=`${CN}${a}`;d.setAttribute("href",f)}},[n,e,t,r.pathname]),null}function AN({schemas:e}){return m.useEffect(()=>(document.querySelectorAll('script[data-structured-data="true"]').forEach(n=>n.remove()),e.forEach((n,r)=>{const o=document.createElement("script");o.type="application/ld+json",o.setAttribute("data-structured-data","true");let s;switch(n.type){case"Organization":s={"@context":"https://schema.org","@type":"Organization",name:n.name,url:n.url,...n.logo&&{logo:n.logo},...n.description&&{description:n.description},...n.sameAs&&{sameAs:n.sameAs}};break;case"WebSite":s={"@context":"https://schema.org","@type":"WebSite",name:n.name,url:n.url,...n.description&&{description:n.description},...n.potentialAction&&{potentialAction:{"@type":n.potentialAction.type,target:n.potentialAction.target,"query-input":n.potentialAction.queryInput}}};break;case"WebPage":s={"@context":"https://schema.org","@type":"WebPage",name:n.name,url:n.url,...n.description&&{description:n.description}};break}o.textContent=JSON.stringify(s),document.head.appendChild(o)}),()=>{document.querySelectorAll('script[data-structured-data="true"]').forEach(r=>r.remove())}),[e]),null}const ON=m.lazy(()=>k(()=>import("./FindBestCompanies-DZLMGMSI.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]))),PN=m.lazy(()=>k(()=>import("./TalentPlatformPromo-Xscog7Sv.js"),__vite__mapDeps([13,1,2,14,15,16,17,18,11,3,12]))),MN=m.lazy(()=>k(()=>import("./HEXAwardsPromo-BgBmx8Pg.js"),__vite__mapDeps([19,1,2,20,16,11,3,12]))),LN=m.lazy(()=>k(()=>import("./ConfirmedPartners-arZJMUS6.js"),__vite__mapDeps([21,1,2,22,16,14,23,11,3,12]))),NN=m.lazy(()=>k(()=>import("./Footer-CxLqhqCI.js"),__vite__mapDeps([24,1,2,9,25,26,27,28,29,11,3,12]))),Uo=m.lazy(()=>k(()=>import("./SafeComponentWrapper-CcaAueey.js"),__vite__mapDeps([30,1,2])).then(e=>({default:e.SafeComponentWrapper}))),Xi=()=>u.jsx("div",{className:"py-16 flex justify-center",children:u.jsx("div",{className:"animate-pulse h-8 w-48 bg-muted rounded"})});function jN(){return u.jsxs(u.Fragment,{children:[u.jsx(RN,{fallbackTitle:"Talent Hunter - AI-Powered Jobs Board",fallbackDescription:"Transform your hiring process with AI-powered job matching. Automated CV screening, intelligent interviews, and data-driven candidate selection."}),u.jsx(AN,{schemas:[{type:"Organization",name:"Talent Hunter",url:"https://talenthunter.me",logo:"https://talenthunter.me/fav_icon.webp",description:"AI-Powered Jobs Board - Transform your hiring process with automated CV screening, intelligent interviews, and data-driven candidate selection.",sameAs:["https://www.linkedin.com/company/talenthunter"]},{type:"WebSite",name:"Talent Hunter",url:"https://talenthunter.me",description:"AI-Powered Jobs Board",potentialAction:{type:"SearchAction",target:"https://talenthunter.me/job-list?search={search_term_string}",queryInput:"required name=search_term_string"}}]}),u.jsx(Nw,{navClass:"!justify-end nav-light"}),u.jsx(iT,{}),u.jsx(m.Suspense,{fallback:u.jsx(Xi,{}),children:u.jsx(Uo,{name:"HEX Awards Promo",fallback:u.jsx("div",{className:"py-16 text-center text-muted-foreground",children:"Awards section unavailable"}),children:u.jsx(MN,{})})}),u.jsx(m.Suspense,{fallback:u.jsx(Xi,{}),children:u.jsx("section",{className:"md:py-24 py-16",children:u.jsx(Uo,{name:"Best Companies",fallback:u.jsx("div",{className:"py-16 text-center text-muted-foreground",children:"Companies section unavailable"}),children:u.jsx(ON,{})})})}),u.jsx(m.Suspense,{fallback:u.jsx(Xi,{}),children:u.jsx(Uo,{name:"Talent Platform Promo",fallback:u.jsx("div",{className:"py-16 text-center text-muted-foreground",children:"Promotional section unavailable"}),children:u.jsx(PN,{})})}),u.jsx(m.Suspense,{fallback:null,children:u.jsx(Uo,{name:"Confirmed Partners",fallback:null,children:u.jsx(LN,{})})}),u.jsx(m.Suspense,{fallback:u.jsx("div",{className:"h-64 bg-background"}),children:u.jsx(NN,{})}),u.jsx(TN,{})]})}const DN=()=>{const{pathname:e}=js();return m.useEffect(()=>{window.scrollTo(0,0)},[e]),null},$N=()=>{var s;const{userRole:e}=Ln(),{settings:t,loading:n}=ac();return{isMessagingEnabled:e==="admin"||(((s=t==null?void 0:t.beta_features)==null?void 0:s.messaging_enabled)??!1),loading:n}},zN=()=>{const{settings:e,loading:t}=ac();return{isAdvancedResumeEnabled:(e==null?void 0:e.advanced_resume_enabled)??!1,loading:t}},FN=m.lazy(()=>k(()=>import("./home-v2-CYMoQq0D.js"),__vite__mapDeps([31,11,2,1,16,3,12])));m.lazy(()=>k(()=>import("./AIChatBubble-FvDTktDT.js"),__vite__mapDeps([32,1,2,14,33,34,35,36,37,38,17,11,3,12])).then(e=>({default:e.AIChatBubble})));const VN=m.lazy(()=>k(()=>import("./LiveAvatarWidget-DV_hG08T.js"),__vite__mapDeps([39,1,2,26,37,11,3,12]))),BN=m.lazy(()=>k(()=>import("./MessagesDiagnostic-B318Foaf.js"),__vite__mapDeps([40,1,2,14,41,33,11,3,12])).then(e=>({default:e.MessagesDiagnostic}))),UN=m.lazy(()=>k(()=>import("./job-categories-C27KOOY8.js"),__vite__mapDeps([42,1,2,43,24,9,25,26,27,28,29,11,3,12,5,4,44,45,46,47,22,16,48,49,50,51,52,53,54,55,36,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,18,23,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,37,116,117,118,119,120,121,17,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,38,144,145,146,147,148,149,150,151,152,153,154,155,156,157,15,158,20,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175]))),HN=m.lazy(()=>k(()=>import("./job-apply-qXvKDSi6.js"),__vite__mapDeps([176,1,2,3,5,4,177,178,179,180,12,143,181,182,34,69,64,183,184,175,67,185,24,9,25,26,27,28,29,11,71,97,38,108]))),WN=m.lazy(()=>k(()=>import("./job-application-success-B5HJ3Guq.js"),__vite__mapDeps([186,1,2,14,71,91,56,106,22,11,3,12]))),ZN=m.lazy(()=>k(()=>import("./job-apply-enhanced-CZlLL4NP.js"),__vite__mapDeps([187,1,2,188,189,3,5,4,190,14,191,97,49,91,143,15,70,75,54,71,33,41,24,9,25,26,27,28,29,11,12,175,67,37]))),qN=m.lazy(()=>k(()=>import("./job-post-BGKCpA1c.js"),__vite__mapDeps([192,1,2,24,9,25,26,27,28,29,11,3,12,193,194,188,195,196,197,198,199,200,33,201,202,65,68,64,5,4,180,143,181,69,203,183,185,14,41,204,205,206,169,139,136,157,77,207,71,76,108,208,209,210,211,97,79,212,146,82,182,34,191,70,167,37,113,75,72,84,213,214,215,178,216,58,160,62,142,217,83,184,175,67,218,219,158]))),GN=m.lazy(()=>k(()=>import("./job-list-_n5_Qr7-.js"),__vite__mapDeps([220,1,2,221,25,222,24,9,26,27,28,29,11,3,12,223,8,224,225,226,86,18,73,227,228,10,229,50,230,231,232,233,234,235,174,184,175,67,236,5,4]))),tf=m.lazy(()=>k(()=>import("./job-detail-one-DfbfJf-O.js"),__vite__mapDeps([237,1,2,5,3,4,9,223,8,224,225,226,86,18,73,174,24,25,26,27,28,29,11,12,184,175,67,238,239,6,14,185,70,139,37,57,158,106,10,227,212,33,200,146,82,230,231,232,233,234,235]))),YN=m.lazy(()=>k(()=>import("./overview-CY-FfVse.js"),__vite__mapDeps([240,1,2,174,9,24,25,26,27,28,29,11,3,12,184,175,67,241,242,243,205,65,244,188,245,197,33,41,200,14]))),KN=m.lazy(()=>k(()=>import("./guides-BPNF1qfJ.js"),__vite__mapDeps([246,1,2,24,9,25,26,27,28,29,11,3,12,174,184,175,67,16]))),JN=m.lazy(()=>k(()=>import("./aboutus-ClytMOWD.js"),__vite__mapDeps([247,1,2,43,9,221,25,222,242,3,184,175,67,174,24,26,27,28,29,11,12]))),XN=m.lazy(()=>k(()=>import("./services-DQOmXjo4.js"),__vite__mapDeps([248,1,2,43,174,9,25,24,26,27,28,29,11,3,12,184,175,67,241,242,243,205,65]))),QN=m.lazy(()=>k(()=>import("./pricing-aQfLmUpG.js"),__vite__mapDeps([249,1,2,250,3,251,252,253,12,70,221,25,222,174,9,24,26,27,28,29,11,184,175,67,218,37]))),ej=m.lazy(()=>k(()=>import("./ForEmployers-X8v2Y8b6.js"),__vite__mapDeps([254,1,2,250,3,251,242,24,9,25,26,27,28,29,11,12,218,37,253,70,61,63,172,147,101,58,56,164,167,36,15,122,143,97,53,243,205,65]))),tj=m.lazy(()=>k(()=>import("./ForCandidates-C0gg9ZJF.js"),__vite__mapDeps([255,1,2,242,3,24,9,25,26,27,28,29,11,12,154,93,15,165,149,163,143,167,56,243,205,65]))),nj=m.lazy(()=>k(()=>import("./FreeCVAnalysis-CVuRfVzG.js"),__vite__mapDeps([256,1,2,71,154,15,49,93,172,141,163,160,3,165,77,18,243,205,65,27,143,56,70,24,9,25,26,28,29,11,12]))),rj=m.lazy(()=>k(()=>import("./list-BmxcAmDM.js"),__vite__mapDeps([257,1,2,9,3,6,223,8,228,10,258,67,64,76,216,143,58,99,43,24,25,26,27,28,29,11,12,174,184,175,241,242,243,205,65]))),nf=m.lazy(()=>k(()=>import("./detail-FX8lXkCe.js"),__vite__mapDeps([259,1,2,223,8,9,260,3,6,224,225,226,86,18,73,227,230,231,232,233,234,235,24,25,26,27,28,29,11,12,184,175,67,222,174]))),oj=m.lazy(()=>k(()=>import("./InterviewLanding-Nr7JudlK.js"),__vite__mapDeps([261,1,2,14,34,227,41,200,33,71,70,225,226,61,262,22,59,77,120,11,3,12]))),sj=m.lazy(()=>k(()=>import("./DeviceSetup-CM0vF91l.js"),__vite__mapDeps([263,1,2,14,264,64,202,65,68,262,22,70,139,62,166,125,167,123,71,11,3,12]))),ij=m.lazy(()=>k(()=>import("./InterviewSessionInterface-DbBggQxI.js").then(e=>e.a),__vite__mapDeps([265,1,2,14,191,266,267,262,22,122,77,200,41,37,123,151,71,110,62,167,268,185,70,139,158,3,130,168]))),aj=m.lazy(()=>k(()=>import("./InterviewComplete-CBjauvEh.js"),__vite__mapDeps([269,1,2,14,267,71,62,123,11,3,12]))),cj=m.lazy(()=>k(()=>import("./list-DsUg_MI6.js"),__vite__mapDeps([270,1,2,271,3,228,10,119,153,105,24,9,25,26,27,28,29,11,12,174,184,175,67]))),rf=m.lazy(()=>k(()=>import("./detail-B2LGOehE.js"),__vite__mapDeps([272,1,2,33,200,41,201,202,65,68,64,207,210,12,211,273,222,271,3,105,24,9,25,26,27,28,29,11,238,239,174,274,275,184,175,67]))),lj=m.lazy(()=>k(()=>import("./candidate-profile-setting-jF5W7CYI.js"),__vite__mapDeps([276,1,2,184,175,67,14,277,200,202,65,68,64,193,178,3,278,279,197,280,281,188,195,33,41,264,245,218,37,136,153,132,157,119,135,59,236,274,133,275,282,283,90,91,179,180,12,143,181,182,34,69,97,160,15,61,11]))),uj=m.lazy(()=>k(()=>import("./VerifyReference-COmxh6XJ.js"),__vite__mapDeps([284,1,2,14,200,41,285,76,33,218,37,219,158,139,11,3,12]))),dj=m.lazy(()=>k(()=>import("./VerifyEmployment-Ce5G-0B6.js"),__vite__mapDeps([286,1,2,14,200,41,285,76,33,218,37,219,158,139,24,9,25,26,27,28,29,11,3,12,224,225,226,86,18,73,72,58,56,61]))),fj=m.lazy(()=>k(()=>import("./BlogDrafts-thnm1BI_.js"),__vite__mapDeps([287,1,2,64,82,11,3,12]))),pj=m.lazy(()=>k(()=>import("./dashboard-BeEVET7k.js"),__vite__mapDeps([288,1,2,198,34,14,33,200,178,3,278,279,197,280,281,188,195,41,202,65,68,64,264,245,218,37,136,153,132,157,119,135,59,236,274,133,275,282,283,90,91,289,290,15,16,154,97,112,71,191,291,6,292,293,294,295,224,225,226,86,18,73,30,70,122,56,105,75,55,53,61,77,11,12]))),hj=m.lazy(()=>k(()=>import("./applications-DkiBlQx-.js"),__vite__mapDeps([296,1,2,14,33,292,3,297,298,12,87,23,66,67,173,185,70,200,160,197,158,37,299,41,226,225,235,71,77,75,59,61,86,120,167,91,157,11]))),mj=m.lazy(()=>k(()=>import("./saved-jobs-DPxqd5YP.js"),__vite__mapDeps([300,1,2,14,33,6,293,3,229,224,225,226,86,18,73,105,143,55,120,77,23,11,12]))),gj=m.lazy(()=>k(()=>import("./job-alerts-hZGTzAwi.js"),__vite__mapDeps([301,1,2,14,33,200,202,65,68,64,201,197,294,3,302,37,53,136,145,120,86,56,137,150,157,11,12]))),vj=m.lazy(()=>k(()=>import("./interviews-B9hNq5az.js"),__vite__mapDeps([303,1,2,14,191,185,33,202,65,68,64,295,3,304,305,306,226,234,225,307,308,231,61,66,67,77,58,167,76,62,168,115,165,71,70,143,37,11,12]))),yj=m.lazy(()=>k(()=>import("./messages-8H28LHKk.js"),__vite__mapDeps([309,1,2,14,33,6,41,3,310,122,77,140,225,226,11,12]))),bj=m.lazy(()=>k(()=>import("./resume-JA8D7e4s.js"),__vite__mapDeps([311,1,2,14,191,178,3,312,177,289,290,298,297,12,87,23,66,67,173,97,91,153,143,15,70,75,71,49,190,54,277,72,279,197,224,225,226,86,18,73,30,160,157,61,141,63,11]))),_j=m.lazy(()=>k(()=>import("./settings-CR-DDg-A.js"),__vite__mapDeps([313,1,2,14,201,200,185,6,314,3,278,302,53,158,157,37,11,12]))),Sj=m.lazy(()=>k(()=>import("./dashboard-B_EdxP26.js"),__vite__mapDeps([315,1,2,14,258,67,64,76,3,194,188,195,193,196,197,198,199,200,33,201,202,65,68,5,4,180,12,143,181,69,203,183,185,41,204,205,206,169,139,136,157,77,207,71,108,208,209,210,211,97,79,212,25,146,82,182,34,191,70,167,37,113,75,72,84,213,316,297,298,87,23,66,173,317,318,56,102,122,319,114,100,91,153,99,61,225,226,320,158,214,215,178,216,58,160,62,142,217,83,321,322,305,277,323,275,281,218,285,165,131,119,135,120,38,105,324,310,245,325,326,327,328,232,307,234,306,329,330,331,130,299,74,15,121,125,168,123,172,49,154,35,22,141,291,250,239,16,332,252,290,145,89,150,11]))),wj=m.lazy(()=>k(()=>import("./jobs-BKHK31Kq.js"),__vite__mapDeps([333,1,2,14,194,188,195,193,196,3,197,198,199,200,33,201,202,65,68,64,5,4,180,12,143,181,69,203,183,185,41,204,205,206,169,139,136,157,77,207,71,76,108,208,209,210,211,97,79,212,25,146,82,182,34,191,70,167,37,113,75,72,84,213,316,297,298,87,23,66,67,173,317,318,56,102,122,319,114,100,91,153,99,61,225,226,334,277,325,326,327,328,232,307,234,306,330,331,130,299,74,15,121,165,125,168,123,172,49,154,35,22,141,335,329,320,158,214,215,178,216,58,160,62,142,217,83,336,224,86,18,73,120,80,150,258,89,115,11]))),xj=m.lazy(()=>k(()=>import("./applications-DP8B5rHA.js"),__vite__mapDeps([337,1,2,14,319,3,338,297,298,12,87,23,66,67,173,318,191,71,56,102,75,70,122,97,339,321,33,200,41,202,65,68,64,322,305,61,77,277,323,275,281,218,37,285,76,165,131,119,58,72,153,135,225,226,120,91,38,105,114,100,310,330,197,331,198,185,130,299,74,15,167,121,125,168,123,172,49,154,35,22,141,63,82,139,99,143,340,341,89,11]))),Ej=m.lazy(()=>k(()=>import("./CandidateDetailPage-C6ynW1X6.js"),__vite__mapDeps([342,1,2,3,14,198,297,298,12,87,23,66,67,173,323,275,281,218,37,33,200,285,76,165,131,119,58,72,75,70,153,135,61,225,226,56,120,77,91,38,105,102,330,197,331,185,130,299,191,122,74,15,167,121,125,168,123,172,49,154,35,71,22,141,97,114,100,63,11]))),kj=m.lazy(()=>k(()=>import("./interviews-CUOTOayW.js"),__vite__mapDeps([343,1,2,14,258,67,64,76,33,202,65,68,322,3,330,197,331,198,185,298,37,130,299,191,122,74,77,15,153,91,56,167,121,165,125,168,123,172,49,154,70,35,71,22,87,141,97,224,225,226,86,18,73,200,41,326,327,328,232,307,234,306,66,181,139,75,61,344,82,329,345,136,308,231,115,143,89,47,27,11,12]))),Tj=m.lazy(()=>k(()=>import("./applications-CY023IUQ.js"),__vite__mapDeps([346,1,2,14,347,3,319,348,299,338,297,298,12,87,23,66,67,173,318,191,71,56,102,75,70,122,97,339,321,33,200,41,202,65,68,64,322,305,61,77,277,323,275,281,218,37,285,76,165,131,119,58,72,153,135,225,226,120,91,38,105,114,100,310,330,197,331,198,185,130,74,15,167,121,125,168,123,172,49,154,35,22,141,63,82,139,99,143,340,341,89,11]))),Ij=m.lazy(()=>k(()=>import("./analytics-zzzCPjbP.js"),__vite__mapDeps([349,1,2,14,3,319,322,239,191,27,154,71,49,15,12,124,317,326,226,225,327,328,232,307,234,306,66,67,181,202,65,68,64,61,56,165,91,97,77,63,11]))),Cj=m.lazy(()=>k(()=>import("./company-profile-Bzo1NhTf.js"),__vite__mapDeps([350,1,2,14,33,200,41,202,65,68,64,215,3,178,6,216,142,37,58,139,160,62,11,12]))),Rj=m.lazy(()=>k(()=>import("./billing-Db_1tB8O.js"),__vite__mapDeps([351,1,2,14,198,185,204,205,250,3,203,6,219,158,139,253,12,70,332,217,252,290,170,171,57,37,71,83,138,75,145,87,11]))),Aj=m.lazy(()=>k(()=>import("./settings-BwmtMqyY.js"),__vite__mapDeps([352,1,2,14,33,41,200,201,198,202,65,68,64,178,3,218,37,279,197,314,278,142,53,91,147,117,157,119,145,11,12]))),Oj=m.lazy(()=>k(()=>import("./job-detail-BT3K9xet.js"),__vite__mapDeps([353,1,2,3,4,224,225,226,86,18,73,14,191,97,154,15,165,93,167,161,317,48,71,75,91,194,188,195,193,196,197,198,199,200,33,201,202,65,68,64,5,180,12,143,181,69,203,183,185,41,204,205,206,169,139,136,157,77,207,76,108,208,209,210,211,79,212,25,146,82,182,34,70,37,113,72,84,213,277,227,10,230,231,232,233,234,235,11]))),Pj=m.lazy(()=>k(()=>import("./interview-templates-wt4gd0YM.js"),__vite__mapDeps([354,1,2,14,197,199,188,200,33,41,202,65,68,64,204,205,195,305,3,245,136,104,157,193,132,77,97,165,11,12]))),Mj=m.lazy(()=>k(()=>import("./contact-BCEBNzEM.js"),__vite__mapDeps([355,1,2,24,9,25,26,27,28,29,11,3,12,33,200,41,14,184,175,67,244,188,245,197]))),Lj=m.lazy(()=>k(()=>import("./TransformYourHiring-BXje80E5.js"),__vite__mapDeps([356,1,2,24,9,25,26,27,28,29,11,3,12,357,33,200,146,82,15,165,49,72,16]))),Nj=m.lazy(()=>k(()=>import("./CandidateExperienceROI-Cg2TYbRf.js"),__vite__mapDeps([358,1,2,24,9,25,26,27,28,29,11,3,12,357,33,200,146,82,165,15,49,72,16]))),jj=m.lazy(()=>k(()=>import("./CvsToSkillsRecruitment-DGTPmMQl.js"),__vite__mapDeps([359,1,2,24,9,25,26,27,28,29,11,3,12,357,33,200,146,82,15,165,154,56,72,16]))),Dj=m.lazy(()=>k(()=>import("./IrelandWageParadox-Fp7reagy.js"),__vite__mapDeps([360,1,2,24,9,25,26,27,28,29,11,3,12,357,33,200,146,82,15,165,158,58,16]))),$j=m.lazy(()=>k(()=>import("./Ireland2026SalaryGuide-CcgTO4OT.js"),__vite__mapDeps([361,1,2,24,9,25,26,27,28,29,11,3,12,357,33,200,146,82,147,63,77,15,165,154,56,16]))),zj=m.lazy(()=>k(()=>import("./SmartTechnologyFutureHiring-B0wh5qSu.js"),__vite__mapDeps([362,1,2,24,9,25,26,27,28,29,11,3,12,357,33,200,146,82,49,165,143,154,148,56,15,77,61,16]))),Fj=m.lazy(()=>k(()=>import("./DiversityEquityInclusionPolicy-CpB00Sd4.js"),__vite__mapDeps([363,1,2,24,9,25,26,27,28,29,11,3,12,357,33,200,146,82,165,154,72,147,49]))),Vj=m.lazy(()=>k(()=>import("./SustainableProcurementPolicy-tCkOOiCC.js"),__vite__mapDeps([364,1,2,24,9,25,26,27,28,29,11,3,12,357,33,200,146,82,147,49,72,154,165]))),Bj=m.lazy(()=>k(()=>import("./Maintenance-n28lbaNT.js"),__vite__mapDeps([365,1,2,77,119,11,3,12]))),Uj=m.lazy(()=>k(()=>import("./error-CbCdRGGi.js"),__vite__mapDeps([366,1,2]))),Hj=m.lazy(()=>k(()=>import("./thankyou-CGz4N1n6.js"),__vite__mapDeps([367,1,2,10,11,3,12]))),Wj=m.lazy(()=>k(()=>import("./privacy-CdOMMoKf.js"),__vite__mapDeps([368,1,2,24,9,25,26,27,28,29,11,3,12,184,175,67,10]))),Zj=m.lazy(()=>k(()=>import("./terms-CNm_E65T.js"),__vite__mapDeps([369,1,2,24,9,25,26,27,28,29,11,3,12,184,175,67,10]))),of=m.lazy(()=>k(()=>import("./login-DttWBnXV.js"),__vite__mapDeps([370,1,2,188,33,14,199,200,185,282,283,90,91,77,71,119,158,11,3,12]))),qj=m.lazy(()=>k(()=>import("./signup--ROZveD4.js"),__vite__mapDeps([371,1,2,188,33,264,64,14,199,200,185,282,283,90,91,3,202,65,68,77,71,158,119,11,12]))),Gj=m.lazy(()=>k(()=>import("./SignupRoleSelection-D2V7Eoey.js"),__vite__mapDeps([372,1,2,14,24,9,25,26,27,28,29,11,3,12,56,64,58]))),sf=m.lazy(()=>k(()=>import("./reset-password-CNPaOvdd.js"),__vite__mapDeps([373,1,2,33,200,14,11,3,12]))),Yj=m.lazy(()=>k(()=>import("./PasswordResetComplete-P8m3tpZd.js"),__vite__mapDeps([374,1,2,33,200,14,191,283,90,91,71,70,11,3,12]))),Kj=m.lazy(()=>k(()=>import("./AuthCallback-BCHZBUmQ.js"),__vite__mapDeps([375,1,2,14,218,37,77,119,70,71,11,3,12]))),Jj=m.lazy(()=>k(()=>import("./blogs--zv9G_Ld.js"),__vite__mapDeps([376,1,2,10,222,377,3,6,341,66,67,89,24,9,25,26,27,28,29,11,12,184,175]))),Qi=m.lazy(()=>k(()=>import("./blog-detail-ByVK2qQd.js"),__vite__mapDeps([378,1,2,10,222,377,3,6,24,9,25,26,27,28,29,11,12,174,184,175,67]))),Xj=m.lazy(()=>k(()=>import("./NotFound-BHkBZz7q.js"),__vite__mapDeps([379,1,2]))),Qj=m.lazy(()=>k(()=>import("./AccessDenied-Dd2oL4qa.js"),__vite__mapDeps([380,1,2,118,106,11,3,12]))),eD=m.lazy(()=>k(()=>import("./Unsubscribe-DpGYXiBo.js"),__vite__mapDeps([381,1,2,14,119,37,71,70,11,3,12]))),tD=m.lazy(()=>k(()=>import("./AdminLayout-BDW4s4DB.js"),__vite__mapDeps([382,1,2,383,26,33,277,6,111,34,181,299,3,384,45,46,47,22,16,48,49,50,51,52,53,54,55,36,27,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,29,83,84,85,86,87,88,89,18,23,90,91,92,28,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,112,113,114,115,37,116,117,118,119,120,121,17,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,38,144,145,146,147,148,149,150,151,152,153,154,155,156,157,15,158,20,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,258,385,14,32,35,11,12])).then(e=>({default:e.AdminLayout}))),nD=m.lazy(()=>k(()=>import("./EmployerLayout-DmSfYBuz.js"),__vite__mapDeps([386,1,2,383,26,33,277,6,111,3,136,56,165,61,97,63,58,83,145,258,67,64,76,106,22,193,32,14,34,35,36,37,38,17,11,12])).then(e=>({default:e.EmployerLayout}))),rD=m.lazy(()=>k(()=>import("./CandidateLayout-KfXKdtEe.js"),__vite__mapDeps([387,1,2,383,26,33,277,6,111,302,143,97,55,53,61,160,122,145,258,67,64,76,106,22,193,32,14,34,35,36,37,38,17,11,3,12])).then(e=>({default:e.CandidateLayout}))),oD=m.lazy(()=>k(()=>import("./AdminDashboard-DDZ5JH03.js"),__vite__mapDeps([388,1,2,14,6,3,165,56,58,97,158,139,91,162,70,163,11,12]))),sD=m.lazy(()=>k(()=>import("./AllUsers-C18lO4dA.js"),__vite__mapDeps([389,1,2,348,299,3,33,264,64,317,258,67,76,14,6,165,161,77,109,390,99,277,191,224,225,226,86,18,73,119,135,120,61,150,71,51,157,83,37,56,15,188,197,202,65,68,199,200,282,283,90,91,70,195,41,178,391,245,324,310,185,158,147,340,341,66,89,279,230,231,232,233,234,235,163,143,11,12])).then(e=>({default:e.AllUsers}))),iD=m.lazy(()=>k(()=>import("./UserRoles-2GsET5Zd.js"),__vite__mapDeps([392,1,2,14,317,33,200,41,264,64,390,3,6,197,136,165,150,157,11,12]))),aD=m.lazy(()=>k(()=>import("./UserVerification-CrCrkHIp.js"),__vite__mapDeps([393,1,2,14,198,317,41,200,77,71,75,70,91,64,11,3,12]))),cD=m.lazy(()=>k(()=>import("./SuspendedUsers-DoMgo7w_.js"),__vite__mapDeps([394,1,2,14,317,33,41,200,3,391,6,158,77,61,91,141,11,12]))),lD=m.lazy(()=>k(()=>import("./AllJobs-Ca8LMz4F.js"),__vite__mapDeps([395,1,2,227,348,299,3,336,396,14,56,108,397,4,33,264,64,317,258,67,76,202,65,68,197,194,188,195,193,196,198,199,200,201,5,180,12,143,181,69,203,183,185,41,204,205,206,169,139,136,157,77,207,71,208,209,210,211,97,79,212,25,146,82,182,34,191,70,167,37,113,75,72,84,213,214,215,178,216,58,160,62,142,217,83,316,297,298,87,23,66,173,318,102,122,319,114,100,91,153,99,61,225,226,334,277,325,326,327,328,232,307,234,306,330,331,130,74,15,121,165,125,168,123,172,49,154,35,22,141,335,329,398,158,150,120,86,89,11]))),uD=m.lazy(()=>k(()=>import("./AllJobsOptimized-DlueVqh1.js"),__vite__mapDeps([399,1,2,348,299,3,336,397,4,396,14,56,108,5,33,202,65,68,64,317,58,77,150,165,143,99,120,86,225,226,11,12]))),dD=m.lazy(()=>k(()=>import("./JobsApproval-CYZOzsou.js"),__vite__mapDeps([400,1,2,227,33,264,64,317,14,198,41,6,3,4,398,158,37,130,157,87,77,71,75,58,143,120,86,61,91,11,12]))),fD=m.lazy(()=>k(()=>import("./FeaturedJobs-DWszt2TC.js"),__vite__mapDeps([401,1,2,227,33,317,258,67,64,76,14,202,65,68,201,3,4,143,153,120,86,58,152,84,37,15,99,61,89,91,165,11,12]))),pD=m.lazy(()=>k(()=>import("./ReportedJobs-BEf4J-Rw.js"),__vite__mapDeps([402,1,2,14,33,198,317,41,3,4,37,91,71,75,157,11,12]))),hD=m.lazy(()=>k(()=>import("./JobCategories-DauJss_G.js"),__vite__mapDeps([403,1,2,33,317,258,67,64,76,14,199,188,200,41,201,44,45,46,47,22,16,48,49,50,51,52,53,54,55,36,27,56,57,58,59,60,61,62,63,65,66,68,69,70,71,72,73,74,75,77,78,79,80,81,82,29,83,84,85,86,87,88,89,18,23,90,91,92,28,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,37,116,117,118,119,120,121,17,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,38,144,145,146,147,148,149,150,151,152,153,154,155,156,157,15,158,20,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,181,34,6,3,345,11,12]))),mD=m.lazy(()=>k(()=>import("./avatar-settings-DZltupik.js"),__vite__mapDeps([404,1,2,14,200,180,12,143,181,3,37,69,64,405,145,168,71,75,123,11]))),gD=m.lazy(()=>k(()=>import("./InterviewSettings-DPED2Gfe.js"),__vite__mapDeps([406,1,2,14,200,202,65,68,64,198,33,41,201,136,132,157,122,72,108,3,236,134,154,91,79,27,142,11,12]))),vD=m.lazy(()=>k(()=>import("./RateLimitManagement-CA_40a-e.js"),__vite__mapDeps([407,1,2,3,385,299,14,37,147,116,225,226,11,12]))),yD=m.lazy(()=>k(()=>import("./AITesting-C534A2O7.js"),__vite__mapDeps([408,1,2,14,33,200,198,277,190,191,97,49,91,143,15,70,75,54,71,41,64,82,90,3,223,8,120,58,77,86,27,37,56,409,202,65,68,201,265,266,267,262,22,122,123,151,110,62,167,268,185,139,158,130,168,331,197,298,299,74,153,121,165,125,172,154,35,87,141,5,4,304,23,36,145,206,410,142,157,119,189,397,347,180,12,181,69,160,155,11]))),bD=m.lazy(()=>k(()=>import("./AIAnalytics-Doya48NT.js"),__vite__mapDeps([411,1,2,14,202,65,68,64,198,6,185,3,233,226,225,327,139,87,167,77,71,165,61,122,70,11,12]))),_D=m.lazy(()=>k(()=>import("./HeygenTaskTester-BTFD38vI.js"),__vite__mapDeps([412,1,2,14,41,34,268,405,3,37,151,36,11,12]))),SD=m.lazy(()=>k(()=>import("./HeyGenAPILogs-jRQrMabi.js"),__vite__mapDeps([413,1,2,14,198,3,414,327,226,225,6,46,159,15,70,77,156,317,202,65,68,64,67,72,12,33,200,145,326,328,232,307,234,306,66,181,61,415,196,185,83,139,158,230,231,233,235,22,11]))),wD=m.lazy(()=>k(()=>import("./SiteContent-BQ66oWeY.js"),__vite__mapDeps([416,1,2,14,33,41,200,201,277,197,37,139,90,91,142,133,107,136,157,113,101,158,11,3,12]))),xD=m.lazy(()=>k(()=>import("./BlogManagement-fEtudDbg.js"),__vite__mapDeps([417,1,2,14,33,202,65,68,64,317,3,258,67,76,341,66,89,200,41,273,12,227,183,79,81,91,82,201,277,61,23,153,225,226,279,197,136,143,150,157,11]))),ED=m.lazy(()=>k(()=>import("./MediaLibrary-Dmeavc5f.js"),__vite__mapDeps([418,1,2,14,33,202,65,68,64,197,200,201,3,37,160,103,115,143,150,101,117,91,87,157,47,97,127,167,107,11,12]))),kD=m.lazy(()=>k(()=>import("./PagesSEO-Bt80VVSB.js"),__vite__mapDeps([419,1,2,14,33,200,41,201,198,420,317,3,279,197,202,65,68,64,34,94,71,75,101,139,82,87,136,150,157,191,70,23,264,158,230,231,226,232,233,234,235,172,38,97,56,77,142,63,154,15,91,46,12,11]))),TD=m.lazy(()=>k(()=>import("./Messages-BSrtLXkc.js"),__vite__mapDeps([421,1,2,14,33,198,41,202,65,68,64,6,3,193,279,197,70,122,77,71,143,140,157,11,12]))),ID=m.lazy(()=>k(()=>import("./EmailTemplates-DEZcEBCS.js"),__vite__mapDeps([422,1,2,14,33,198,200,41,202,65,68,64,423,3,277,279,197,136,119,143,91,150,82,145,157,11,12]))),CD=m.lazy(()=>k(()=>import("./Notifications-BEz_HMqp.js"),__vite__mapDeps([424,1,2,14,33,198,3,200,41,202,65,68,64,201,60,38,145,136,53,143,165,172,61,150,157,11,12]))),RD=m.lazy(()=>k(()=>import("./OverviewAnalytics-D_jgS_R9.js"),__vite__mapDeps([425,1,2,14,202,65,68,64,3,6,99,87,165,15,56,46,86,12,11]))),AD=m.lazy(()=>k(()=>import("./UserAnalytics-DnhKfdw9.js"),__vite__mapDeps([426,1,2,14,202,65,68,64,198,3,306,226,415,328,414,327,225,6,87,165,15,163,161,77,12,101,11]))),OD=m.lazy(()=>k(()=>import("./JobAnalytics-H-mSu9f0.js"),__vite__mapDeps([427,1,2,14,202,65,68,64,198,3,306,226,415,328,225,6,87,56,15,165,77,86,12,120,11]))),PD=m.lazy(()=>k(()=>import("./FinancialReports-DsrYTXi7.js"),__vite__mapDeps([428,1,2,14,202,65,68,64,198,3,225,226,415,328,306,234,87,86,15,165,138,52,12,11]))),MD=m.lazy(()=>k(()=>import("./SystemPerformance-Df4D7vw3.js"),__vite__mapDeps([429,1,2,14,85,71,158,171,46,144,11,3,12]))),LD=m.lazy(()=>k(()=>import("./RealTimePerformance-CSv3QvMF.js"),__vite__mapDeps([430,1,2,14,3,139,29,71,77,158,85,171,165,15,46,12,11]))),ND=m.lazy(()=>k(()=>import("./PredictiveInsights-CkNCO6Cx.js"),__vite__mapDeps([431,1,2,14,202,65,68,64,198,3,27,15,154,56,165,12,158,77,71,46,11]))),jD=m.lazy(()=>k(()=>import("./SystemSettings-DHFbkEh6.js"),__vite__mapDeps([432,1,2,14,200,198,3,433,6,264,64,185,317,197,157,158,93,46,71,70,74,61,277,344,37,77,27,119,144,53,75,11,12]))),DD=m.lazy(()=>k(()=>import("./ProjectStatus-C7TXDVVS.js"),__vite__mapDeps([434,1,2,14,191,277,264,64,27,147,71,36,85,15,172,77,143,165,123,119,11,3,12]))),$D=m.lazy(()=>k(()=>import("./AllCompanies-BLrLibYV.js"),__vite__mapDeps([435,1,2,14,33,317,202,65,68,64,258,67,76,341,66,89,6,410,3,436,7,8,277,150,157,58,101,120,165,61,119,135,114,92,41,200,37,227,260,4,56,153,143,86,91,225,226,97,87,185,158,348,299,71,77,11,12]))),zD=m.lazy(()=>k(()=>import("./CompanyVerification-CXsaqrcB.js"),__vite__mapDeps([437,1,2,14,33,317,198,6,410,3,436,7,8,70,139,77,71,75,58,101,11,12]))),FD=m.lazy(()=>k(()=>import("./CompanyApplications-DuR6JZPD.js"),__vite__mapDeps([438,1,2,14,33,317,202,65,68,64,410,3,436,7,8,58,77,71,165,101,11,12]))),VD=m.lazy(()=>k(()=>import("./AdminMenuEditor-IaxIdTN0.js"),__vite__mapDeps([439,1,2,14,202,65,68,64,33,264,204,205,45,46,47,22,16,48,49,50,51,52,53,54,55,36,27,56,57,58,59,60,61,62,63,66,67,69,70,71,72,73,74,75,76,77,78,79,80,81,82,29,83,84,85,86,87,88,89,18,23,90,91,92,28,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,37,116,117,118,119,120,121,17,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,38,144,145,146,147,148,149,150,151,152,153,154,155,156,157,15,158,20,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,390,3,299,384,201,200,11,12]))),BD=m.lazy(()=>k(()=>import("./AdminProfileSettings-BI1B_7pL.js"),__vite__mapDeps([440,1,2,14,33,200,201,198,41,178,3,218,37,62,119,135,101,120,142,53,147,117,91,145,122,97,17,72,167,11,12]))),UD=m.lazy(()=>k(()=>import("./AutoInterviewManager-e-qS9sE6.js"),__vite__mapDeps([441,1,2,14,277,185,317,3,91,98,172,158,77,75,71,230,231,226,232,233,234,235,61,145,70,165,119,11,12]))),HD=m.lazy(()=>k(()=>import("./ResumeTemplates-DuFqbNtx.js"),__vite__mapDeps([442,1,2,14,33,198,202,65,68,64,312,3,26,97,153,91,56,129,20,79,102,143,11,12]))),WD=m.lazy(()=>k(()=>import("./ResumeTemplatePreview-mSj625FN.js"),__vite__mapDeps([443,1,2,14,312,3,26,97,22,153,87,131,56,11,12]))),ZD=m.lazy(()=>k(()=>import("./ResumeBuilder-QiaUCV8M.js"),__vite__mapDeps([444,1,2,14,33,41,198,277,200,312,3,445,23,87,26,97,22,91,142,56,102,49,136,11,12]))),qD=m.lazy(()=>k(()=>import("./AdminResumeTemplates-X59vtxtO.js"),__vite__mapDeps([446,1,2,33,14,202,65,68,64,258,67,76,264,447,3,312,136,143,103,115,88,150,91,82,157,11,12]))),af=m.lazy(()=>k(()=>import("./HTMLResumeTemplateEditor-D2f9PEfB.js"),__vite__mapDeps([448,1,2,33,200,41,14,198,201,202,65,68,64,277,447,3,312,445,23,87,22,91,142,129,79,11,12]))),GD=m.lazy(()=>k(()=>import("./ResumeTemplatePreview-BC5GvddE.js"),__vite__mapDeps([449,1,2,14,277,447,3,445,23,87,22,82,146,150,95,11,12]))),ea=m.lazy(()=>k(()=>import("./EmailManagementPage-BYz0AQ14.js"),__vite__mapDeps([450,1,2,198,14,185,3,119,77,158,71,75,33,200,202,65,68,64,41,204,205,423,208,70,108,38,277,433,6,37,142,61,145,147,23,143,225,226,11,12]))),YD=m.lazy(()=>k(()=>import("./EmailCampaignsPage-DDU0HVpD.js"),__vite__mapDeps([451,1,2,198,14,317,185,423,3,33,200,41,202,65,68,64,165,91,79,97,119,71,37,38,258,67,76,89,133,82,130,75,157,136,70,126,77,61,51,162,158,99,143,87,163,201,209,210,12,211,183,34,204,205,150,11]))),cf=m.lazy(()=>k(()=>import("./ScheduledInterviews-BPTJ1m43.js"),__vite__mapDeps([452,1,2,14,33,202,65,68,64,317,335,3,329,325,200,41,326,226,225,327,328,232,307,234,306,66,67,181,77,61,339,190,191,97,49,91,143,15,70,75,54,71,204,205,330,197,331,198,185,298,37,130,299,122,74,153,56,167,121,165,125,168,123,172,154,35,22,87,141,279,99,59,150,119,11,12]))),KD=m.lazy(()=>k(()=>import("./interview-diagnostics-BlmQP-1F.js"),__vite__mapDeps([453,1,2,14,317,202,65,68,64,3,139,158,77,75,96,225,226,11,12]))),JD=m.lazy(()=>k(()=>import("./InterviewWorkflowTester-C5deGW-i.js"),__vite__mapDeps([454,1,2,14,185,191,155,139,158,77,71,11,3,12]))),XD=m.lazy(()=>k(()=>import("./AIInterviewTesting-CB8QXa5k.js"),__vite__mapDeps([455,1,2,14,198,185,265,191,266,267,262,22,122,77,200,41,37,123,151,71,110,62,167,268,70,139,158,3,130,168,166,125,75,36,156,409,202,65,68,64,33,277,201,331,197,298,299,74,15,153,91,56,121,165,172,49,154,35,87,141,97,5,4,304,23,82,145,155,11,12]))),QD=m.lazy(()=>k(()=>import("./InterviewFlowTest-Gw2s1qrd.js"),__vite__mapDeps([456,1,2,14,191,77,70,71,37,75,198,33,200,145,11,3,12]))),e$=m.lazy(()=>k(()=>import("./VideoAnalysisTestPage-BNPl1vZ7.js"),__vite__mapDeps([457,1,2,14,185,198,74,125,145,78,167,27,85,71,172,158,91,11,3,12])).then(e=>({default:e.VideoAnalysisTestPage}))),t$=m.lazy(()=>k(()=>import("./EndToEndVideoAnalysisTest-B4BTPhwr.js"),__vite__mapDeps([458,1,2,14,191,304,3,167,37,71,158,85,63,91,11,12])).then(e=>({default:e.EndToEndVideoAnalysisTest}))),n$=m.lazy(()=>k(()=>import("./VideoRecordingTestInterface-5klr8D4W.js"),__vite__mapDeps([459,1,2,14,191,266,267,167,77,85,123,75,71,11,3,12]))),r$=m.lazy(()=>k(()=>import("./TemplatePrototype-CXZCLsAg.js"),__vite__mapDeps([460,1,2,445,23,87,14,198,97,91,79,11,3,12]))),o$=m.lazy(()=>k(()=>import("./SeedTemplates-CifJLUPx.js"),__vite__mapDeps([461,1,2,14,85,72,37,11,3,12]))),s$=m.lazy(()=>k(()=>import("./Plans-BN-7NeaG.js"),__vite__mapDeps([462,1,2,348,299,3,14,33,218,37,420,317,258,67,64,76,188,195,41,200,201,202,65,68,136,104,213,197,143,128,72,75,172,91,90,88,133,137,82,157,225,226,11,12]))),i$=m.lazy(()=>k(()=>import("./PSAVerificationPage-B6TtVxp2.js"),__vite__mapDeps([463,1,2,33,200,201,14,317,185,147,37,143,70,23,61,72,75,11,3,12]))),lf=()=>u.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:u.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary"})});function uf(){const{loading:e}=Ln(),{isMessagingEnabled:t,loading:n}=$N(),{isAdvancedResumeEnabled:r,loading:o}=zN();return m.useEffect(()=>{document.documentElement.setAttribute("dir","ltr"),document.documentElement.classList.add("light")},[]),m.useEffect(()=>{const{pathname:s,search:i,hash:c}=window.location;if(s.startsWith("//verify-reference")){const a=s.replace(/^\/+/,"/");window.history.replaceState({},"",`${a}${i}${c}`)}},[]),m.useEffect(()=>{const{pathname:s,search:i,hash:c,origin:a}=window.location,l=new URLSearchParams(c.replace(/^#/,"")),d=new URLSearchParams(i),f=l.has("access_token")||l.has("refresh_token")||d.has("code")||d.has("access_token")||d.has("refresh_token")||d.has("error")||l.has("error"),p=l.get("type")==="recovery"||d.get("type")==="recovery",h=s==="/auth/callback";if(p&&!(s==="/auth/reset-password-complete")){window.location.replace(`${a}/auth/reset-password-complete${i}${c}`);return}f&&!h&&!p&&window.location.replace(`${a}/auth/callback${i}${c}`)},[]),e||n||o?u.jsx(lf,{}):u.jsx(CS,{children:u.jsxs(Mv,{children:[u.jsx(DN,{}),u.jsxs(m.Suspense,{fallback:u.jsx(lf,{}),children:[u.jsxs(Lv,{children:[u.jsx(x,{path:"/",element:u.jsx(jN,{})}),u.jsx(x,{path:"/home",element:u.jsx(lt,{to:"/",replace:!0})}),u.jsx(x,{path:"/home-v2",element:u.jsx(FN,{})}),u.jsx(x,{path:"/messages-diagnostic",element:u.jsx(BN,{})}),u.jsx(x,{path:"/job-application-success",element:u.jsx(WN,{})}),u.jsx(x,{path:"/job-apply",element:u.jsx(HN,{})}),u.jsx(x,{path:"/job-apply-enhanced",element:u.jsx(ZN,{})}),u.jsx(x,{path:"/job-post",element:u.jsx(qN,{})}),u.jsx(x,{path:"/job-list",element:u.jsx(GN,{})}),u.jsx(x,{path:"/job-detail-one/:id",element:u.jsx(tf,{})}),u.jsx(x,{path:"/job-detail-one",element:u.jsx(tf,{})}),u.jsx(x,{path:"/job-categories",element:u.jsx(UN,{})}),u.jsx(x,{path:"/helpcenter",element:u.jsx(lt,{to:"/helpcenter-overview",replace:!0})}),u.jsx(x,{path:"/helpcenter-overview",element:u.jsx(YN,{})}),u.jsx(x,{path:"/helpcenter-guides",element:u.jsx(KN,{})}),u.jsx(x,{path:"/aboutus",element:u.jsx(JN,{})}),u.jsx(x,{path:"/services",element:u.jsx(XN,{})}),u.jsx(x,{path:"/pricing",element:u.jsx(QN,{})}),u.jsx(x,{path:"/for-employers",element:u.jsx(ej,{})}),u.jsx(x,{path:"/for-candidates",element:u.jsx(tj,{})}),u.jsx(x,{path:"/free-cv-analysis",element:u.jsx(nj,{})}),u.jsx(x,{path:"/employer/dashboard",element:u.jsx(lt,{to:"/employer-dashboard",replace:!0})}),u.jsx(x,{path:"/employer-list",element:u.jsx(rj,{})}),u.jsx(x,{path:"/employer-detail/:id",element:u.jsx(nf,{})}),u.jsx(x,{path:"/employer-detail",element:u.jsx(nf,{})}),u.jsx(x,{path:"/candidate-list",element:u.jsx(cj,{})}),u.jsx(x,{path:"/candidate-profile/:id",element:u.jsx(rf,{})}),u.jsx(x,{path:"/candidate-profile",element:u.jsx(rf,{})}),u.jsx(x,{path:"/verify-reference",element:u.jsx(uj,{})}),u.jsx(x,{path:"/verify-employment",element:u.jsx(dj,{})}),u.jsxs(x,{path:"/candidate",element:u.jsx(rD,{}),children:[u.jsx(x,{index:!0,element:u.jsx(pj,{})}),u.jsx(x,{path:"applications",element:u.jsx(hj,{})}),u.jsx(x,{path:"saved-jobs",element:u.jsx(mj,{})}),u.jsx(x,{path:"job-alerts",element:u.jsx(gj,{})}),u.jsx(x,{path:"interviews",element:u.jsx(vj,{})}),t&&u.jsx(x,{path:"messages",element:u.jsx(yj,{})}),r&&u.jsx(x,{path:"resume",element:u.jsx(bj,{})}),u.jsx(x,{path:"resume-templates",element:u.jsx(HD,{})}),u.jsx(x,{path:"resume-templates/:templateId/preview",element:u.jsx(WD,{})}),u.jsx(x,{path:"resume-templates/:templateId/edit",element:u.jsx(ZD,{})}),u.jsx(x,{path:"profile",element:u.jsx(lj,{})}),u.jsx(x,{path:"settings",element:u.jsx(_j,{})})]}),u.jsx(x,{path:"/resume-templates",element:u.jsx(lt,{to:"/candidate/resume-templates",replace:!0})}),u.jsx(x,{path:"/resume-templates/:templateId/preview",element:u.jsx(lt,{to:"/candidate/resume-templates/:templateId/preview",replace:!0})}),u.jsx(x,{path:"/resume-templates/:templateId/edit",element:u.jsx(lt,{to:"/candidate/resume-templates/:templateId/edit",replace:!0})}),u.jsx(x,{path:"/employer/applications",element:u.jsx(lt,{to:"/employer-dashboard/applications",replace:!0})}),u.jsx(x,{path:"/employer/billing",element:u.jsx(lt,{to:"/employer-dashboard/billing",replace:!0})}),u.jsx(x,{path:"/talent-platform",element:u.jsx(lt,{to:"/transform-your-hiring",replace:!0})}),u.jsx(x,{path:"/job-grid",element:u.jsx(lt,{to:"/job-list",replace:!0})}),u.jsx(x,{path:"/jobs",element:u.jsx(lt,{to:"/job-list",replace:!0})}),u.jsxs(x,{path:"/employer-dashboard",element:u.jsx(nD,{}),children:[u.jsx(x,{index:!0,element:u.jsx(Sj,{})}),u.jsx(x,{path:"jobs",element:u.jsx(wj,{})}),u.jsx(x,{path:"job-detail/:id",element:u.jsx(Oj,{})}),u.jsx(x,{path:"applications",element:u.jsx(xj,{})}),u.jsx(x,{path:"candidate/:candidateId",element:u.jsx(Ej,{})}),u.jsx(x,{path:"interviews",element:u.jsx(kj,{})}),u.jsx(x,{path:"interview-templates",element:u.jsx(Pj,{})}),u.jsx(x,{path:"analytics",element:u.jsx(Ij,{})}),u.jsx(x,{path:"company-profile",element:u.jsx(Cj,{})}),u.jsx(x,{path:"billing",element:u.jsx(Rj,{})}),u.jsx(x,{path:"settings",element:u.jsx(Aj,{})})]}),u.jsx(x,{path:"/contact",element:u.jsx(Mj,{})}),u.jsx(x,{path:"/transform-your-hiring",element:u.jsx(Lj,{})}),u.jsx(x,{path:"/candidate-experience-roi",element:u.jsx(Nj,{})}),u.jsx(x,{path:"/cvs-to-skills-recruitment",element:u.jsx(jj,{})}),u.jsx(x,{path:"/ireland-wage-paradox",element:u.jsx(Dj,{})}),u.jsx(x,{path:"/ireland-2026-salary-guide",element:u.jsx($j,{})}),u.jsx(x,{path:"/diversity-equity-inclusion-policy",element:u.jsx(Fj,{})}),u.jsx(x,{path:"/sustainable-procurement-policy",element:u.jsx(Vj,{})}),u.jsx(x,{path:"/smart-technology-future-hiring",element:u.jsx(zj,{})}),u.jsx(x,{path:"/blog-drafts",element:u.jsx(fj,{})}),u.jsx(x,{path:"/maintenance",element:u.jsx(Bj,{})}),u.jsx(x,{path:"/error",element:u.jsx(Uj,{})}),u.jsx(x,{path:"/thankyou",element:u.jsx(Hj,{})}),u.jsx(x,{path:"/privacy",element:u.jsx(Wj,{})}),u.jsx(x,{path:"/terms",element:u.jsx(Zj,{})}),u.jsx(x,{path:"/unsubscribe",element:u.jsx(eD,{})}),u.jsx(x,{path:"/login",element:u.jsx(of,{})}),u.jsx(x,{path:"/signup",element:u.jsx(Gj,{})}),u.jsx(x,{path:"/auth/login",element:u.jsx(of,{})}),u.jsx(x,{path:"/auth/signup",element:u.jsx(qj,{})}),u.jsx(x,{path:"/reset-password",element:u.jsx(sf,{})}),u.jsx(x,{path:"/auth/reset-password",element:u.jsx(sf,{})}),u.jsx(x,{path:"/auth/reset-password-complete",element:u.jsx(Yj,{})}),u.jsx(x,{path:"/auth/callback",element:u.jsx(Kj,{})}),u.jsx(x,{path:"/access-denied",element:u.jsx(Qj,{})}),u.jsx(x,{path:"/blogs",element:u.jsx(Jj,{})}),u.jsx(x,{path:"/blog/:slug",element:u.jsx(Qi,{})}),u.jsx(x,{path:"/blog-detail",element:u.jsx(Qi,{})}),u.jsx(x,{path:"/blog-detail/:slug",element:u.jsx(Qi,{})}),u.jsx(x,{path:"/interview/:token",element:u.jsx(oj,{})}),u.jsx(x,{path:"/interview/:token/setup",element:u.jsx(sj,{})}),u.jsx(x,{path:"/interview/:token/session",element:u.jsx(ij,{})}),u.jsx(x,{path:"/interview/complete",element:u.jsx(aj,{})}),u.jsx(x,{path:"/test-interview-flow",element:u.jsx(QD,{})}),u.jsx(x,{path:"/video-analysis-test",element:u.jsx(e$,{})}),u.jsx(x,{path:"/end-to-end-test",element:u.jsx(t$,{})}),u.jsx(x,{path:"/video-test",element:u.jsx(n$,{})}),u.jsx(x,{path:"/admin/login",element:u.jsx(lt,{to:"/login",replace:!0})}),u.jsxs(x,{path:"/admin",element:u.jsx(tD,{}),children:[u.jsx(x,{index:!0,element:u.jsx(oD,{})}),u.jsx(x,{path:"users",element:u.jsx(sD,{})}),u.jsx(x,{path:"users/roles",element:u.jsx(iD,{})}),u.jsx(x,{path:"users/verification",element:u.jsx(aD,{})}),u.jsx(x,{path:"users/suspended",element:u.jsx(cD,{})}),u.jsx(x,{path:"jobs",element:u.jsx(lD,{})}),u.jsx(x,{path:"jobs/approval",element:u.jsx(dD,{})}),u.jsx(x,{path:"jobs/featured",element:u.jsx(fD,{})}),u.jsx(x,{path:"jobs/reported",element:u.jsx(pD,{})}),u.jsx(x,{path:"jobs/categories",element:u.jsx(hD,{})}),u.jsx(x,{path:"jobs/optimized",element:u.jsx(uD,{})}),u.jsx(x,{path:"applications",element:u.jsx(Tj,{})}),u.jsx(x,{path:"interviews",element:u.jsx(lt,{to:"/admin/interviews/scheduled",replace:!0})}),u.jsx(x,{path:"interviews/scheduled",element:u.jsx(cf,{})}),u.jsx(x,{path:"interviews/diagnostics",element:u.jsx(KD,{})}),u.jsx(x,{path:"companies",element:u.jsx($D,{})}),u.jsx(x,{path:"companies/verification",element:u.jsx(zD,{})}),u.jsx(x,{path:"companies/applications",element:u.jsx(FD,{})}),u.jsx(x,{path:"ai/testing",element:u.jsx(yD,{})}),u.jsx(x,{path:"ai/heygen-task-tester",element:u.jsx(_D,{})}),u.jsx(x,{path:"ai/avatar-settings",element:u.jsx(mD,{})}),u.jsx(x,{path:"ai/interview-settings",element:u.jsx(gD,{})}),u.jsx(x,{path:"ai/analytics",element:u.jsx(bD,{})}),u.jsx(x,{path:"heygen-api-logs",element:u.jsx(SD,{})}),u.jsx(x,{path:"ai/auto-interviews",element:u.jsx(UD,{})}),u.jsx(x,{path:"content",element:u.jsx(wD,{})}),u.jsx(x,{path:"content/blog",element:u.jsx(xD,{})}),u.jsx(x,{path:"content/media",element:u.jsx(ED,{})}),u.jsx(x,{path:"content/pages",element:u.jsx(kD,{})}),u.jsx(x,{path:"content/resume-templates",element:u.jsx(qD,{})}),u.jsx(x,{path:"content/resume-templates/new",element:u.jsx(af,{})}),u.jsx(x,{path:"content/resume-templates/:id/edit",element:u.jsx(af,{})}),u.jsx(x,{path:"content/resume-templates/:id/preview",element:u.jsx(GD,{})}),t&&u.jsx(x,{path:"messages",element:u.jsx(TD,{})}),t&&u.jsx(x,{path:"messages/templates",element:u.jsx(ID,{})}),t&&u.jsx(x,{path:"messages/notifications",element:u.jsx(CD,{})}),t&&u.jsx(x,{path:"messages/email-testing",element:u.jsx(ea,{})}),u.jsx(x,{path:"email-testing",element:u.jsx(ea,{})}),u.jsx(x,{path:"campaigns",element:u.jsx(YD,{})}),u.jsx(x,{path:"analytics",element:u.jsx(RD,{})}),u.jsx(x,{path:"analytics/users",element:u.jsx(AD,{})}),u.jsx(x,{path:"analytics/jobs",element:u.jsx(OD,{})}),u.jsx(x,{path:"analytics/financial",element:u.jsx(PD,{})}),u.jsx(x,{path:"analytics/system",element:u.jsx(MD,{})}),u.jsx(x,{path:"analytics/realtime",element:u.jsx(LD,{})}),u.jsx(x,{path:"analytics/predictive",element:u.jsx(ND,{})}),u.jsx(x,{path:"profile",element:u.jsx(BD,{})}),u.jsx(x,{path:"settings",element:u.jsx(jD,{})}),u.jsx(x,{path:"settings/menu-editor",element:u.jsx(VD,{})}),u.jsx(x,{path:"settings/rate-limits",element:u.jsx(vD,{})}),u.jsx(x,{path:"plans",element:u.jsx(s$,{})}),u.jsx(x,{path:"project-status",element:u.jsx(DD,{})}),u.jsx(x,{path:"email-testing",element:u.jsx(ea,{})}),u.jsx(x,{path:"ai/interview-testing",element:u.jsx(XD,{})}),u.jsx(x,{path:"interviews/scheduled",element:u.jsx(cf,{})}),u.jsx(x,{path:"interview-workflow-tester",element:u.jsx(JD,{})}),u.jsx(x,{path:"seed-templates",element:u.jsx(o$,{})})]}),u.jsx(x,{path:"/prototype/template",element:u.jsx(r$,{})}),u.jsx(x,{path:"/demo/psa-verification",element:u.jsx(i$,{})}),u.jsx(x,{path:"*",element:u.jsx(Xj,{})})]}),u.jsx(VN,{})]})]})})}var ul="ToastProvider",[dl,a$,c$]=Ev("Toast"),[zg,O4]=vf("Toast",[c$]),[l$,mi]=zg(ul),Fg=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[c,a]=m.useState(null),[l,d]=m.useState(0),f=m.useRef(!1),p=m.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${ul}\`. Expected non-empty \`string\`.`),u.jsx(dl.Provider,{scope:t,children:u.jsx(l$,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:l,viewport:c,onViewportChange:a,onToastAdd:m.useCallback(()=>d(h=>h+1),[]),onToastRemove:m.useCallback(()=>d(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:p,children:i})})};Fg.displayName=ul;var Vg="ToastViewport",u$=["F8"],Wa="toast.viewportPause",Za="toast.viewportResume",Bg=m.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=u$,label:o="Notifications ({hotkey})",...s}=e,i=mi(Vg,n),c=a$(n),a=m.useRef(null),l=m.useRef(null),d=m.useRef(null),f=m.useRef(null),p=xf(t,f,i.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=i.toastCount>0;m.useEffect(()=>{const y=b=>{var S;r.length!==0&&r.every(E=>b[E]||b.code===E)&&((S=f.current)==null||S.focus())};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[r]),m.useEffect(()=>{const y=a.current,b=f.current;if(g&&y&&b){const _=()=>{if(!i.isClosePausedRef.current){const I=new CustomEvent(Wa);b.dispatchEvent(I),i.isClosePausedRef.current=!0}},S=()=>{if(i.isClosePausedRef.current){const I=new CustomEvent(Za);b.dispatchEvent(I),i.isClosePausedRef.current=!1}},E=I=>{!y.contains(I.relatedTarget)&&S()},T=()=>{y.contains(document.activeElement)||S()};return y.addEventListener("focusin",_),y.addEventListener("focusout",E),y.addEventListener("pointermove",_),y.addEventListener("pointerleave",T),window.addEventListener("blur",_),window.addEventListener("focus",S),()=>{y.removeEventListener("focusin",_),y.removeEventListener("focusout",E),y.removeEventListener("pointermove",_),y.removeEventListener("pointerleave",T),window.removeEventListener("blur",_),window.removeEventListener("focus",S)}}},[g,i.isClosePausedRef]);const v=m.useCallback(({tabbingDirection:y})=>{const _=c().map(S=>{const E=S.ref.current,T=[E,...x$(E)];return y==="forwards"?T:T.reverse()});return(y==="forwards"?_.reverse():_).flat()},[c]);return m.useEffect(()=>{const y=f.current;if(y){const b=_=>{var T,I,w;const S=_.altKey||_.ctrlKey||_.metaKey;if(_.key==="Tab"&&!S){const R=document.activeElement,A=_.shiftKey;if(_.target===y&&A){(T=l.current)==null||T.focus();return}const M=v({tabbingDirection:A?"backwards":"forwards"}),F=M.findIndex(j=>j===R);ta(M.slice(F+1))?_.preventDefault():A?(I=l.current)==null||I.focus():(w=d.current)==null||w.focus()}};return y.addEventListener("keydown",b),()=>y.removeEventListener("keydown",b)}},[c,v]),u.jsxs(kv,{ref:a,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&u.jsx(qa,{ref:l,onFocusFromOutsideViewport:()=>{const y=v({tabbingDirection:"forwards"});ta(y)}}),u.jsx(dl.Slot,{scope:n,children:u.jsx(Xt.ol,{tabIndex:-1,...s,ref:p})}),g&&u.jsx(qa,{ref:d,onFocusFromOutsideViewport:()=>{const y=v({tabbingDirection:"backwards"});ta(y)}})]})});Bg.displayName=Vg;var Ug="ToastFocusProxy",qa=m.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=mi(Ug,n);return u.jsx(Ef,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var l;const c=i.relatedTarget;!((l=s.viewport)!=null&&l.contains(c))&&r()}})});qa.displayName=Ug;var gi="Toast",d$="toast.swipeStart",f$="toast.swipeMove",p$="toast.swipeCancel",h$="toast.swipeEnd",Hg=m.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[c=!0,a]=Tv({prop:r,defaultProp:o,onChange:s});return u.jsx(Iv,{present:n||c,children:u.jsx(v$,{open:c,...i,ref:t,onClose:()=>a(!1),onPause:Fr(e.onPause),onResume:Fr(e.onResume),onSwipeStart:Nt(e.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Nt(e.onSwipeMove,l=>{const{x:d,y:f}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","move"),l.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:Nt(e.onSwipeCancel,l=>{l.currentTarget.setAttribute("data-swipe","cancel"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Nt(e.onSwipeEnd,l=>{const{x:d,y:f}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","end"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),a(!1)})})})});Hg.displayName=gi;var[m$,g$]=zg(gi,{onClose(){}}),v$=m.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:c,onPause:a,onResume:l,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:p,onSwipeEnd:h,...g}=e,v=mi(gi,n),[y,b]=m.useState(null),_=xf(t,j=>b(j)),S=m.useRef(null),E=m.useRef(null),T=o||v.duration,I=m.useRef(0),w=m.useRef(T),R=m.useRef(0),{onToastAdd:A,onToastRemove:O}=v,L=Fr(()=>{var Z;(y==null?void 0:y.contains(document.activeElement))&&((Z=v.viewport)==null||Z.focus()),i()}),M=m.useCallback(j=>{!j||j===1/0||(window.clearTimeout(R.current),I.current=new Date().getTime(),R.current=window.setTimeout(L,j))},[L]);m.useEffect(()=>{const j=v.viewport;if(j){const Z=()=>{M(w.current),l==null||l()},H=()=>{const N=new Date().getTime()-I.current;w.current=w.current-N,window.clearTimeout(R.current),a==null||a()};return j.addEventListener(Wa,H),j.addEventListener(Za,Z),()=>{j.removeEventListener(Wa,H),j.removeEventListener(Za,Z)}}},[v.viewport,T,a,l,M]),m.useEffect(()=>{s&&!v.isClosePausedRef.current&&M(T)},[s,T,v.isClosePausedRef,M]),m.useEffect(()=>(A(),()=>O()),[A,O]);const F=m.useMemo(()=>y?Jg(y):null,[y]);return v.viewport?u.jsxs(u.Fragment,{children:[F&&u.jsx(y$,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:F}),u.jsx(m$,{scope:n,onClose:L,children:Ya.createPortal(u.jsx(dl.ItemSlot,{scope:n,children:u.jsx(Cv,{asChild:!0,onEscapeKeyDown:Nt(c,()=>{v.isFocusedToastEscapeKeyDownRef.current||L(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(Xt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":v.swipeDirection,...g,ref:_,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Nt(e.onKeyDown,j=>{j.key==="Escape"&&(c==null||c(j.nativeEvent),j.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,L()))}),onPointerDown:Nt(e.onPointerDown,j=>{j.button===0&&(S.current={x:j.clientX,y:j.clientY})}),onPointerMove:Nt(e.onPointerMove,j=>{if(!S.current)return;const Z=j.clientX-S.current.x,H=j.clientY-S.current.y,N=!!E.current,D=["left","right"].includes(v.swipeDirection),C=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,W=D?C(0,Z):0,B=D?0:C(0,H),U=j.pointerType==="touch"?10:2,$={x:W,y:B},ne={originalEvent:j,delta:$};N?(E.current=$,Ho(f$,f,ne,{discrete:!1})):df($,v.swipeDirection,U)?(E.current=$,Ho(d$,d,ne,{discrete:!1}),j.target.setPointerCapture(j.pointerId)):(Math.abs(Z)>U||Math.abs(H)>U)&&(S.current=null)}),onPointerUp:Nt(e.onPointerUp,j=>{const Z=E.current,H=j.target;if(H.hasPointerCapture(j.pointerId)&&H.releasePointerCapture(j.pointerId),E.current=null,S.current=null,Z){const N=j.currentTarget,D={originalEvent:j,delta:Z};df(Z,v.swipeDirection,v.swipeThreshold)?Ho(h$,h,D,{discrete:!0}):Ho(p$,p,D,{discrete:!0}),N.addEventListener("click",C=>C.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),y$=e=>{const{__scopeToast:t,children:n,...r}=e,o=mi(gi,t),[s,i]=m.useState(!1),[c,a]=m.useState(!1);return S$(()=>i(!0)),m.useEffect(()=>{const l=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(l)},[]),c?null:u.jsx(Rv,{asChild:!0,children:u.jsx(Ef,{...r,children:s&&u.jsxs(u.Fragment,{children:[o.label," ",n]})})})},b$="ToastTitle",Wg=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(Xt.div,{...r,ref:t})});Wg.displayName=b$;var _$="ToastDescription",Zg=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(Xt.div,{...r,ref:t})});Zg.displayName=_$;var qg="ToastAction",Gg=m.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?u.jsx(Kg,{altText:n,asChild:!0,children:u.jsx(fl,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${qg}\`. Expected non-empty \`string\`.`),null)});Gg.displayName=qg;var Yg="ToastClose",fl=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=g$(Yg,n);return u.jsx(Kg,{asChild:!0,children:u.jsx(Xt.button,{type:"button",...r,ref:t,onClick:Nt(e.onClick,o.onClose)})})});fl.displayName=Yg;var Kg=m.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return u.jsx(Xt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Jg(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),w$(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...Jg(r))}}),t}function Ho(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Av(o,s):o.dispatchEvent(s)}var df=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function S$(e=()=>{}){const t=Fr(e);Ga(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function w$(e){return e.nodeType===e.ELEMENT_NODE}function x$(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ta(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var E$=Fg,Xg=Bg,Qg=Hg,ev=Wg,tv=Zg,nv=Gg,rv=fl;const k$=E$,ov=m.forwardRef(({className:e,...t},n)=>u.jsx(Xg,{ref:n,className:Be("fixed top-0 z-[9999] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));ov.displayName=Xg.displayName;const T$=oc("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),sv=m.forwardRef(({className:e,variant:t,...n},r)=>u.jsx(Qg,{ref:r,className:Be(T$({variant:t}),e),...n}));sv.displayName=Qg.displayName;const I$=m.forwardRef(({className:e,...t},n)=>u.jsx(nv,{ref:n,className:Be("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));I$.displayName=nv.displayName;const iv=m.forwardRef(({className:e,...t},n)=>u.jsx(rv,{ref:n,className:Be("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:u.jsx(wp,{className:"h-4 w-4"})}));iv.displayName=rv.displayName;const av=m.forwardRef(({className:e,...t},n)=>u.jsx(ev,{ref:n,className:Be("text-sm font-semibold",e),...t}));av.displayName=ev.displayName;const cv=m.forwardRef(({className:e,...t},n)=>u.jsx(tv,{ref:n,className:Be("text-sm opacity-90",e),...t}));cv.displayName=tv.displayName;function ff(){const{toasts:e}=Ka();return u.jsxs(k$,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return u.jsxs(sv,{...s,children:[u.jsxs("div",{className:"grid gap-1",children:[n&&u.jsx(av,{children:n}),r&&u.jsx(cv,{children:r})]}),o,u.jsx(iv,{})]},t)}),u.jsx(ov,{})]})}var pf=["light","dark"],C$="(prefers-color-scheme: dark)",R$=m.createContext(void 0),A$={setTheme:e=>{},themes:[]},O$=()=>{var e;return(e=m.useContext(R$))!=null?e:A$};m.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,attrs:c,nonce:a})=>{let l=s==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${c.map(g=>`'${g}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=o?pf.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(g,v=!1,y=!0)=>{let b=i?i[g]:g,_=v?g+"|| ''":`'${b}'`,S="";return o&&y&&!v&&pf.includes(g)&&(S+=`d.style.colorScheme = '${g}';`),n==="class"?v||b?S+=`c.add(${_})`:S+="null":b&&(S+=`d[s](n,${_})`),S},h=e?`!function(){${d}${p(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${l})){var t='${C$}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${p(i?"x[e]":"e",!0)}}${l?"":"else{"+p(s,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${p(i?"x[e]":"e",!0)}}else{${p(s,!1,!1)};}${f}}catch(t){}}();`;return m.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:h}})});const hf=({...e})=>{const{theme:t="system"}=O$();return u.jsx(lx,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg group-[.toaster]:z-[9999]",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},mf=new $v({defaultOptions:{queries:{staleTime:5*60*1e3,gcTime:30*60*1e3,refetchOnWindowFocus:!1,refetchOnReconnect:!0,refetchInterval:!1,retry:(e,t)=>(t==null?void 0:t.status)===404||(t==null?void 0:t.status)===403||(t==null?void 0:t.status)>=400&&(t==null?void 0:t.status)<500?!1:e<3,retryDelay:e=>Math.min(1e3*2**e,3e4),refetchOnMount:"always",networkMode:"online"},mutations:{retry:(e,t)=>(t==null?void 0:t.status)>=400&&(t==null?void 0:t.status)<500?!1:e<2,retryDelay:e=>Math.min(1e3*2**e,1e4),networkMode:"online"}}});if(window.location.hostname==="talent.mikai.ai"){const{pathname:e,search:t,hash:n,protocol:r}=window.location,o=`${r}//talenthunter.me${e}${t}${n}`;throw console.log("[Domain Redirect] Redirecting from old domain to:",o),window.location.replace(o),new Error("Redirecting to new domain...")}const pl=!window.location.hostname.includes("lovable.dev")&&!window.location.hostname.includes("lovable.app")&&!window.location.hostname.includes("lovableproject.com");pl&&_N({dsn:"https://039584ab67e71f836222de4d451930eb@o4510081059127296.ingest.de.sentry.io/4510182040272976",environment:"production",integrations:[mN(),KL({maskAllText:!1,blockAllMedia:!1}),yR({levels:["error","warn"]})],tracesSampleRate:1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,beforeSend(e){var o,s,i,c,a,l,d,f,p;const t=((i=(s=(o=e==null?void 0:e.exception)==null?void 0:o.values)==null?void 0:s[0])==null?void 0:i.value)||(e==null?void 0:e.message)||"";if(/Rate limit exceeded/i.test(t)||/IP temporarily blocked/i.test(t)||/too many attempts/i.test(t)||/Unknown message type: iframe-pos/i.test(t)||/Failed to load Stripe\.js/i.test(t)||/cross-origin frame/i.test(t)||/Blocked a frame with origin/i.test(t)||/Password is known to be weak/i.test(t)||/password has been found in data breaches/i.test(t)||/weak_password/i.test(t)||/Invalid login credentials/i.test(t)||/Email not confirmed/i.test(t)||/User already registered/i.test(t)||/Signup disabled/i.test(t)||/enableDidUserTypeOnKeyboardLogging/i.test(t)||/Java object is gone/i.test(t)||/webkit\.messageHandlers/i.test(t)||/evaluating 'window\.webkit\.messageHandlers'/i.test(t)||(a=(c=e.exception)==null?void 0:c.values)!=null&&a.some(h=>{var g,v;return((g=h.value)==null?void 0:g.includes("app.rybbit.io"))||((v=h.value)==null?void 0:v.includes("rybbit"))}))return null;const n=((p=(f=(d=(l=e==null?void 0:e.exception)==null?void 0:l.values)==null?void 0:d[0])==null?void 0:f.stacktrace)==null?void 0:p.frames)||[];return n.some(h=>{const g=(h==null?void 0:h.filename)||"";return g.includes("flock.js")||g.includes("/~")||g.includes("extension://")||g.includes("chrome-extension://")||g.includes("moz-extension://")||g.includes("safari-extension://")})||t.includes("Failed to fetch")&&(n.some(v=>{const y=(v==null?void 0:v.function)||"";return y.includes("_refreshAccessToken")||y.includes("_callRefreshToken")||y.includes("_recoverAndRefresh")||y.includes("Wkt._refreshAccessToken")||y.includes("Wkt._callRefreshToken")})||n.some(v=>{const y=(v==null?void 0:v.filename)||"",b=(v==null?void 0:v.function)||"";return y.includes("/api/script.js")||b.includes("sendTrackingData")||b.includes("trackPageview")||b.includes("T.track")}))?null:e}});console.log(pl?"✅ Sentry initialized for production":"🔧 Development mode - Sentry disabled");Tf(document.getElementById("root")).render(u.jsx(V.StrictMode,{children:pl?u.jsx(kN,{fallback:u.jsx("div",{className:"min-h-screen flex items-center justify-center p-4",children:u.jsxs("div",{className:"text-center",children:[u.jsx("h1",{className:"text-2xl font-bold mb-2",children:"Something went wrong"}),u.jsx("p",{className:"text-muted-foreground",children:"Please refresh the page"})]})}),children:u.jsx(bl,{client:mf,children:u.jsxs(Hl,{children:[u.jsx(uf,{}),u.jsx(ff,{}),u.jsx(hf,{})]})})}):u.jsx(bl,{client:mf,children:u.jsxs(Hl,{children:[u.jsx(uf,{}),u.jsx(ff,{}),u.jsx(hf,{})]})})}));export{ku as $,c4 as A,Lr as B,U$ as C,W$ as D,oT as E,Eo as F,ar as G,y4 as H,d4 as I,sT as J,Z$ as K,H$ as L,Y$ as M,Nw as N,J$ as O,Pw as P,s4 as Q,n4 as R,Cw as S,Dw as T,Rw as U,e4 as V,u4 as W,wp as X,C4 as Y,ee as Z,b4 as _,rp as a,rT as a0,R4 as a1,h4 as a2,q$ as a3,i4 as a4,mS as a5,Jl as a6,Vs as a7,A4 as a8,Tw as a9,p4 as aA,K$ as aB,m4 as aC,hx as aD,t4 as aE,g4 as aF,Q$ as aG,r4 as aH,o4 as aI,w4 as aJ,SS as aK,F$ as aL,yp as aM,bp as aN,_p as aO,$N as aP,V$ as aQ,_4 as aR,X$ as aS,B$ as aT,S4 as aU,G$ as aV,zN as aW,E4 as aX,x4 as aY,Ql as aa,oc as ab,dx as ac,Tp as ad,px as ae,mx as af,gx as ag,oo as ah,mt as ai,H0 as aj,qo as ak,$0 as al,$$ as am,N0 as an,vS as ao,Fs as ap,Xf as aq,_w as ar,D$ as as,Yf as at,o0 as au,xa as av,ac as aw,q0 as ax,z$ as ay,I4 as az,jS as b,FS as c,zS as d,DS as e,VS as f,$S as g,ux as h,$w as i,zw as j,xp as k,Ep as l,RN as m,AN as n,TN as o,Be as p,Iw as q,k4 as r,he as s,na as t,Ln as u,Ka as v,a4 as w,f4 as x,l4 as y,v4 as z};